summaryrefslogtreecommitdiffstats
path: root/freebsd/contrib/libpcap/diag-control.h
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/contrib/libpcap/diag-control.h')
-rw-r--r--freebsd/contrib/libpcap/diag-control.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/freebsd/contrib/libpcap/diag-control.h b/freebsd/contrib/libpcap/diag-control.h
index 12770361..cfc581b3 100644
--- a/freebsd/contrib/libpcap/diag-control.h
+++ b/freebsd/contrib/libpcap/diag-control.h
@@ -120,13 +120,14 @@
* shadowing the global declaration.
*
* So, if the compiler warns about that, we turn off -Wshadow warnings.
+ *
+ * In addition, the generated code may have functions with unreachable
+ * code, so suppress warnings about those.
*/
#if defined(_MSC_VER)
/*
* This is Microsoft Visual Studio; we can use
* __pragma(warning(disable:XXXX)) and __pragma(warning(push/pop)).
- *
- * Suppress unreachable code warnings.
*/
#define DIAG_OFF_BISON_BYACC \
__pragma(warning(push)) \
@@ -166,6 +167,9 @@
#else
/*
* Bison.
+ *
+ * The generated code may have functions with unreachable code, so
+ * suppress warnings about those.
*/
#if defined(_MSC_VER)
/*