From: Guy Harris Date: Tue, 20 Mar 2018 20:30:50 +0000 (-0700) Subject: Suppress another error from Microsoft's headers. X-Git-Tag: libpcap-1.9-bp~201 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/d5b993414ce1421a2b7a9301121485a1f453c15c Suppress another error from Microsoft's headers. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a67abc35..de985e09 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1588,6 +1588,10 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.devel) # check_and_add_compiler_option(-wd4255) # + # Windows FD_SET() generates this, so we suppress it. + # + check_and_add_compiler_option(-wd4548) + # # 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