summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-04-18 00:20:24 -0700
committerGuy Harris <guy@alum.mit.edu>2019-04-18 00:20:24 -0700
commit7c30120f52c22c1dd971431383ad2df8ca1a12c4 (patch)
treecee0948848d9fefaccf9010ceb1159275eda54d0 /CMakeLists.txt
parent1f30c0e9d32a2b7bb8e6571b7d9b2d57d3dc16ba (diff)
downloadtcpdump-7c30120f52c22c1dd971431383ad2df8ca1a12c4.tar.gz
Squelch C4324 warnings.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 32564309..6dddef6a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -873,6 +873,18 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.devel OR EXISTS ${CMAKE_BINARY_DIR}/.devel)
# XXX - add /Qspectre if that is really worth doing.
#
check_and_add_compiler_option(-wd5045)
+ #
+ # We do *not* care whether a structure had padding added at
+ # the end because of __declspec(align) - *we* don't use
+ # __declspec(align), because the only structures whose layout
+ # we precisely specify are those that get overlayed on packet
+ # data, and in those every element is an array of octets so
+ # that we have full control over the size and aligmnet, and,
+ # apparently, jmp_buf has such a declaration on x86, meaning
+ # that everything that includes netdissect.h, i.e. almost every
+ # file in tcpdump, gets a warning.
+ #
+ check_and_add_compiler_option(-wd4324)
else()
#
# Other compilers, including MSVC with a Clang front end and