]> The Tcpdump Group git mirrors - libpcap/commitdiff
Squelch some other warnings generated by Windows header files.
authorGuy Harris <[email protected]>
Tue, 20 Mar 2018 19:34:14 +0000 (12:34 -0700)
committerGuy Harris <[email protected]>
Tue, 20 Mar 2018 19:34:14 +0000 (12:34 -0700)
If Microsoft doesn't care, we don't care, either.

CMakeLists.txt

index 294ae6ce065e72d02ad185e6bd240e26d0bc2a9b..91db5590ec9ad5dc897a37e166f1942d36d867f8 100644 (file)
@@ -1581,6 +1581,18 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.devel)
         #
         check_and_add_compiler_option(-wd4100)
         #
+        # In theory, we care whether somebody uses f() rather than
+        # f(void) to declare a function with no arguments, but, in
+        # practice, there are places in the Windows header files
+        # that appear to do that, so we squelch that warning.
+        #
+        check_and_add_compiler_option(-wd4255)
+        #
+        # The Windows headers also test not-defined values in #if, so
+        # we don't want warnings about that, either.
+        #
+        check_and_add_compiler_option(-wd4668)
+        #
         # We do *not* care whether some function is, or isn't, going to be
         # expanded inline.
         #