Skip to content

Commit 72018a1

Browse files
committedSep 1, 2023
8313576: GCC 7 reports compiler warning in bundled freetype 2.13.0
Backport-of: 8248e351d0bed263fb68d8468004a4286e6391af
1 parent dc47d1f commit 72018a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎make/lib/Awt2dLibraries.gmk

+2
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ else
516516
LIBFREETYPE_LIBS := -lfreetype
517517
endif
518518

519+
# gcc_ftobjs.c := maybe-uninitialized required for GCC 7 builds.
519520
$(eval $(call SetupJdkLibrary, BUILD_LIBFREETYPE, \
520521
NAME := freetype, \
521522
OPTIMIZATION := HIGHEST, \
@@ -528,6 +529,7 @@ else
528529
DISABLED_WARNINGS_microsoft := 4018 4267 4244 4312 4819, \
529530
DISABLED_WARNINGS_gcc := implicit-fallthrough cast-function-type bad-function-cast, \
530531
DISABLED_WARNINGS_clang := missing-declarations, \
532+
DISABLED_WARNINGS_gcc_ftobjs.c := maybe-uninitialized, \
531533
LDFLAGS := $(LDFLAGS_JDKLIB) \
532534
$(call SET_SHARED_LIBRARY_ORIGIN), \
533535
))

0 commit comments

Comments
 (0)
Please sign in to comment.