Skip to content

Commit

Permalink
CLANG_VERSION_NUMBER
Browse files Browse the repository at this point in the history
  • Loading branch information
vieiro committed Nov 24, 2024
1 parent da5848f commit b3399da
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions make/autoconf/flags-cflags.m4
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,14 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS],
WARNINGS_ENABLE_ALL="-Wall -Wextra -Wformat=2"
WARNINGS_ENABLE_ADDITIONAL_JVM="-Wpointer-arith -Wsign-compare -Wunused-function -Wundef -Wunused-value -Woverloaded-virtual"
# DISABLED_WARNINGS="unused-parameter unused"
DISABLED_WARNINGS="unused-parameter unused deprecated-declarations deprecated-non-prototype"
if test "x$OPENJDK_TARGET_OS" = xmacosx; then
# With clang >= XX on macosx add '-Wno-deprecated-declarations' and '-Wno-deprecated-non-prototyupe'
AC_MSG_RESULT([Adding -Wno-deprecated-declarations and -Wno-deprecated-non-protype on clang/macosx with version $CLANG_VERSION_NUMBER $CLANG_VERSION_STRING])
DISABLED_WARNINGS="unused-parameter unused deprecated-declarations deprecated-non-prototype"
else
DISABLED_WARNINGS="unused-parameter unused"
fi
;;
xlc)
Expand Down

0 comments on commit b3399da

Please sign in to comment.