diff options
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | configure.ac | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index db345b02..799673de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -314,11 +314,13 @@ if (${GNUC}) -Wlogical-op -Wwrite-strings + + # Disable unused-function warnings. These trigger for minheap-internal.h. + -Wno-unused-function ) if (${CLANG}) list(APPEND __FLAGS - -Wno-unused-function # we use this hack in tests -Wno-void-pointer-to-enum-cast) endif() diff --git a/configure.ac b/configure.ac index a93f0304..85e02bd4 100644 --- a/configure.ac +++ b/configure.ac @@ -775,10 +775,10 @@ if test "$enable_gcc_warnings" != "no" && test "$GCC" = "yes"; then #error #endif])], have_clang=yes, have_clang=no) - if test "$have_clang" = "yes"; then - dnl Disable unused-function warnings. These trigger for minheap-internal.h. - AX_CHECK_COMPILE_FLAG([-Wno-unused-function], [CFLAGS="$CFLAGS -Wno-unused-function"],[],[-Werror]) + dnl Disable unused-function warnings. These trigger for minheap-internal.h. + AX_CHECK_COMPILE_FLAG([-Wno-unused-function], [CFLAGS="$CFLAGS -Wno-unused-function"],[],[-Werror]) + if test "$have_clang" = "yes"; then case "$host_os" in darwin*) dnl Clang on macOS emits warnings for each directory specified which |