From 20c79986bcfad0c3b883be79a44167de9cf6afd9 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..973d226b095 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) -Wno-deprecated-non-prototype LIBAWT_LWAWT_EXFILES := fontpath.c awt_Font.c X11Color.c LIBAWT_LWAWT_EXCLUDES := $(TOPDIR)/src/$(MODULE)/unix/native/common/awt/medialib