forked from osmocom/wireshark
CMake: limit -Wextra-semi to C++ only
Saves a check and removes a GCC warning from CMakeError.log: cc1: warning: command line option ‘-Wextra-semi’ is valid for C++/ObjC++ but not for C Change-Id: I76d027e7b5703b06237ac70eb340c4a09322e09e Fixes: v2.9.0rc0-958-g866ddb1b18 ("Add -Wextra-semi to (clang) C and C++ flags to make sure the buildbots will find this.") Reviewed-on: https://code.wireshark.org/review/30948 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: João Valverde <j@v6e.pt> Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
This commit is contained in:
parent
247e729d9e
commit
ceef87c550
|
@ -563,7 +563,6 @@ else() # ! MSVC
|
|||
# -O<X> and -g get set by the CMAKE_BUILD_TYPE
|
||||
-Wall
|
||||
-Wextra
|
||||
-Wextra-semi
|
||||
-Wendif-labels
|
||||
-Wpointer-arith
|
||||
-Wformat-security
|
||||
|
@ -641,6 +640,7 @@ else() # ! MSVC
|
|||
|
||||
|
||||
list(APPEND WIRESHARK_CXX_ONLY_FLAGS
|
||||
-Wextra-semi
|
||||
)
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue