]> The Tcpdump Group git mirrors - libpcap/commitdiff
Squelch another warning from Microsoft's headers.
authorGuy Harris <[email protected]>
Tue, 20 Mar 2018 20:05:47 +0000 (13:05 -0700)
committerGuy Harris <[email protected]>
Tue, 20 Mar 2018 20:05:47 +0000 (13:05 -0700)
CMakeLists.txt

index 91db5590ec9ad5dc897a37e166f1942d36d867f8..a67abc35d4ed7235fa5835a02742301fabafe008 100644 (file)
@@ -1588,6 +1588,13 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.devel)
         #
         check_and_add_compiler_option(-wd4255)
         #
+        # Perhaps testing something #defined to be 0 with #ifdef is an
+        # error, and it should be tested with #if, but perhaps it's
+        # not, and Microsoft does that in its headers, so we squelch
+        # that warning.
+        #
+        check_and_add_compiler_option(-wd4574)
+        #
         # The Windows headers also test not-defined values in #if, so
         # we don't want warnings about that, either.
         #