aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-09-11 20:14:52 -0700
committerGuy Harris <guy@alum.mit.edu>2018-09-12 03:23:12 +0000
commit4bab4b2e0c44fdeabad73ae8d81d30825a9adc1c (patch)
treecb2119ab7e9c3bfac888f9d0763ab861ac2b2ff7
parent47b1ec984bc114b30c3bc144f48cd9b4c477e8c5 (diff)
OK, try to prevent -Wunused-function warnings with llvm-gcc as well.
Change-Id: I53e48eb14d157eacd24322fb978f039e57377ed8 Reviewed-on: https://code.wireshark.org/review/29622 Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index de23e91..ec29925 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -503,9 +503,14 @@ else() # ! MSVC
# So we only add -Wshorten-64-to-32 if either 1) we're not building
# on/for Apple or 2) we're using Clang.
#
+ # We also suppress -Wunused-function; that's enabled by -Wall,
+ # but it's another warning that can be difficult to suppress
+ # in generated code.
+ #
if ((NOT APPLE) OR CMAKE_C_COMPILER_ID MATCHES "Clang")
list(APPEND WIRESHARK_COMMON_FLAGS
-Wshorten-64-to-32
+ -Wno-unused-function
)
endif()