From fec6eed567a9c118b92c1d8287eded8ad3c2a13f Mon Sep 17 00:00:00 2001 From: Antonio Vieiro Date: Tue, 19 Nov 2024 07:47:14 +0100 Subject: [PATCH] xcode14: Use -Wno-deprecated-non-prototype to bypass passing arguments to a function without a prototype --- make/lib/Awt2dLibraries.gmk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/make/lib/Awt2dLibraries.gmk b/make/lib/Awt2dLibraries.gmk index d50e5fa4cf0..1c6b9019f1f 100644 --- a/make/lib/Awt2dLibraries.gmk +++ b/make/lib/Awt2dLibraries.gmk @@ -208,6 +208,10 @@ ifeq ($(call isTargetOs, linux), true) LIBAWT_CFLAGS += $(EXPORT_ALL_SYMBOLS) endif +ifeq ($(call isBuildOs, macosx), true) + LIBAWT_CFLAGS += $(CFLAGS_XCODE14_DEPR_NON_PROTOTYPE) +endif + # Turn off all warnings for debug_mem.c This is needed because the specific warning # about initializing a declared 'extern' cannot be turned off individually. Only # applies to debug builds. @@ -931,7 +935,7 @@ ifeq ($(call isTargetOs, macosx), true) libosxapp \ # - LIBAWT_LWAWT_CFLAGS := $(X_CFLAGS) $(X_LIBS) + LIBAWT_LWAWT_CFLAGS := $(X_CFLAGS) $(X_LIBS) $(CFLAGS_XCODE14_DEPR_NON_PROTOTYPE) LIBAWT_LWAWT_EXFILES := fontpath.c awt_Font.c X11Color.c LIBAWT_LWAWT_EXCLUDES := $(TOPDIR)/src/$(MODULE)/unix/native/common/awt/medialib