Skip to content

Commit c99638d

Browse files
committed
8335801: [11u] Backport of 8210988 to 11u removes gcc warnings
Reviewed-by: phh
1 parent 513a67a commit c99638d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

make/autoconf/flags-cflags.m4

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,12 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS],
192192
DISABLE_WARNING_PREFIX="-Wno-"
193193
BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-"
194194
CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
195+
196+
WARNINGS_ENABLE_ALL="-Wall -Wextra -Wformat=2"
197+
WARNINGS_ENABLE_ADDITIONAL_JVM="-Wpointer-arith -Wsign-compare -Wunused-function -Wundef -Wunused-value -Woverloaded-virtual -Wreturn-type"
198+
199+
DISABLED_WARNINGS="unused-parameter unused"
200+
195201
;;
196202
197203
clang)
@@ -200,7 +206,7 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS],
200206
CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
201207
202208
WARNINGS_ENABLE_ALL="-Wall -Wextra -Wformat=2"
203-
WARNINGS_ENABLE_ADDITIONAL_JVM="-Wpointer-arith -Wsign-compare -Wunused-function -Wundef -Wunused-value -Woverloaded-virtual -Wreorder"
209+
WARNINGS_ENABLE_ADDITIONAL_JVM="-Wpointer-arith -Wsign-compare -Wunused-function -Wundef -Wunused-value -Woverloaded-virtual"
204210
205211
DISABLED_WARNINGS="unused-parameter unused"
206212
;;

0 commit comments

Comments
 (0)