Skip to content

Commit

Permalink
xcode14: Use -Wno-deprecated-non-prototype to bypass passing argument…
Browse files Browse the repository at this point in the history
…s to a function without a prototype
  • Loading branch information
vieiro committed Nov 19, 2024
1 parent b76b926 commit 20c7998
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion make/lib/Awt2dLibraries.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 20c7998

Please sign in to comment.