From: Guy Harris Date: Tue, 20 Mar 2018 20:05:47 +0000 (-0700) Subject: Squelch another warning from Microsoft's headers. X-Git-Tag: libpcap-1.9-bp~205 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/2a870ce70cd7ce6817af503be265dbd9af45a00d Squelch another warning from Microsoft's headers. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 91db5590..a67abc35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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. #