Lines Matching +full:- +full:- +full:disable +full:- +full:documentation

1 /* -*- Mode: c; tab-width: 8; indent-tabs-mode: 1; c-basic-offset: 8; -*- */
13 * documentation and/or other materials provided with the distribution.
38 #include "pcap/compiler-tests.h"
44 * warning-suppressing pragmas differ between Clang and GCC, so we test
55 * This is Microsoft Visual Studio; we can use __pragma(warning(disable:XXXX))
58 * Suppress signed-vs-unsigned comparison, narrowing, and unreachable
63 __pragma(warning(disable:4127)) \
64 __pragma(warning(disable:4242)) \
65 __pragma(warning(disable:4244)) \
66 __pragma(warning(disable:4702))
71 * ignored -Wxxx" and "clang diagnostic push/pop".
73 * Suppress -Wdocumentation warnings; GCC doesn't support -Wdocumentation,
74 * at least according to the GCC 7.3 documentation. Apparently, Flex
76 * -Wdocumentation.
80 PCAP_DO_PRAGMA(clang diagnostic ignored "-Wsign-compare") \
81 PCAP_DO_PRAGMA(clang diagnostic ignored "-Wdocumentation") \
82 PCAP_DO_PRAGMA(clang diagnostic ignored "-Wmissing-noreturn") \
83 PCAP_DO_PRAGMA(clang diagnostic ignored "-Wunused-parameter") \
84 PCAP_DO_PRAGMA(clang diagnostic ignored "-Wunreachable-code")
90 * We can use "GCC diagnostic ignored -Wxxx" (introduced in 4.2)
95 PCAP_DO_PRAGMA(GCC diagnostic ignored "-Wsign-compare") \
96 PCAP_DO_PRAGMA(GCC diagnostic ignored "-Wunused-parameter") \
97 PCAP_DO_PRAGMA(GCC diagnostic ignored "-Wunreachable-code")
122 * So, if the compiler warns about that, we turn off -Wshadow warnings.
130 * __pragma(warning(disable:XXXX)) and __pragma(warning(push/pop)).
134 __pragma(warning(disable:4702))
139 * ignored -Wxxx" and "clang diagnostic push/pop".
143 PCAP_DO_PRAGMA(clang diagnostic ignored "-Wshadow") \
144 PCAP_DO_PRAGMA(clang diagnostic ignored "-Wunreachable-code")
150 * We can use "GCC diagnostic ignored -Wxxx" (introduced in 4.2)
155 PCAP_DO_PRAGMA(GCC diagnostic ignored "-Wshadow") \
156 PCAP_DO_PRAGMA(GCC diagnostic ignored "-Wunreachable-code")
177 * __pragma(warning(disable:XXXX)) and __pragma(warning(push/pop)).
183 __pragma(warning(disable:4127)) \
184 __pragma(warning(disable:4242)) \
185 __pragma(warning(disable:4244)) \
186 __pragma(warning(disable:4702))
191 * ignored -Wxxx" and "clang diagnostic push/pop".
195 PCAP_DO_PRAGMA(clang diagnostic ignored "-Wunreachable-code")
201 * We can use "GCC diagnostic ignored -Wxxx" (introduced in 4.2)
206 PCAP_DO_PRAGMA(GCC diagnostic ignored "-Wunreachable-code")