Update various warning-option lists to match what the configure script
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 1 Jun 2013 02:20:12 +0000 (02:20 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 1 Jun 2013 02:20:12 +0000 (02:20 +0000)
adds by default.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@49670 f5534014-38df-0310-8fa8-9805f1628bb7

CMakeLists.txt

index 70a4cf319130606a693617b37f07ab1a6e3efda1..b1b0316005d6e1e2f0ea8c6b6797ea5ca6f29f88 100644 (file)
@@ -126,6 +126,17 @@ set(WIRESHARK_C_FLAGS
        -Warray-bounds
        -Wcast-align
        -Wformat-security
+       -Wshorten-64-to-32
+       -Wvla
+       -Waddress
+       -Warray-bounds
+       -Wattributes
+       -Wdiv-by-zero
+       -Wignored-qualifiers
+       -Wpragmas
+       -Wno-overlength-strings
+       -Wwrite-strings
+       -Wno-long-long
 )
 if (NOT APPLE)
        set(WIRESHARK_C_FLAGS ${WIRESHARK_C_FLAGS} -fexcess-precision=fast)
@@ -136,46 +147,30 @@ set(WIRESHARK_C_ONLY_FLAGS
        -Wc++-compat
        -Wdeclaration-after-statement
        -Wlogical-op
+       -Wshadow
        -Wno-pointer-sign
        -Wold-style-definition
        -Wshadow
+       -Wstrict-prototypes
+       -Wjump-misses-init
 )
 
 set(WIRESHARK_EXTRA_C_FLAGS
        -pedantic
        -Woverflow
-       -Wno-overlength-strings
        -fstrict-overflow -Wstrict-overflow=4
        -Wunreachable-code
        -Wunsafe-loop-optimizations
-       -Wno-long-long
        -Wcast-qual
-       -Waddress
-       -Warray-bounds
-       -Wattributes
-       -Wdiv-by-zero
        -Wformat-security
-       -Wignored-qualifiers
-       -Wpragmas
        -Wredundant-decls
-       -Wvla
-       # packet-ncp2222.inc prevents this from going into all warnings
-       -Wwrite-strings
        # All the registration functions block these for now.
        -Wmissing-declarations
-       # Problem with packet-afs.c
-       -Wshadow
-       # More cleanup needed for this on LP64
-       -Wshorten-64-to-32
-
 )
 
 set(WIRESHARK_EXTRA_C_ONLY_FLAGS
        # The following are C only, not C++
        -Wbad-function-cast
-       -Wjump-misses-init
-       # GLib blocks this for now.
-       -Wstrict-prototypes
        # All the registration functions block these for now.
        -Wmissing-prototypes
 )