aboutsummaryrefslogtreecommitdiff
path: root/diag-control.h
diff options
context:
space:
mode:
authorJoerg Mayer <jmayer@loplof.de>2018-03-27 19:58:32 -0700
committerGuy Harris <guy@alum.mit.edu>2018-03-27 19:58:32 -0700
commitcbfafcf5e1245d134ce941d5cd4cafdd1e9a3734 (patch)
tree672ba1aa2cf9bc8ca7f328046f8849822286fcbe /diag-control.h
parent1ad618f72208e238962843950c657261d5282779 (diff)
Turn off -Wdocumentation warning for Flex-generated code.
Flex 2.5.35 Apple(flex-31) appears to generate comments that Clang's -Wdocumentation doesn't like. Comment-updated-by: Guy Harris <guy@alum.mit.edu> Signed-off-by: Joerg Mayer <jmayer@loplof.de>
Diffstat (limited to 'diag-control.h')
-rw-r--r--diag-control.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/diag-control.h b/diag-control.h
index 8ab89526..6c2d4f45 100644
--- a/diag-control.h
+++ b/diag-control.h
@@ -61,6 +61,11 @@
#else
/*
* Suppress -Wsigned-compare warnings.
+ *
+ * Suppress -Wdocumentation warnings with Clang; GCC doesn't
+ * support -Wdocumentation, at least according to the GCC 7.3
+ * documentation. Apparently, Flex generates code that upsets
+ * at least some versions of Clang's -Wdocumentation.
*/
#if PCAP_IS_AT_LEAST_CLANG_VERSION(2,8)
/*
@@ -69,7 +74,8 @@
*/
#define DIAG_OFF_FLEX \
PCAP_DO_PRAGMA(clang diagnostic push) \
- PCAP_DO_PRAGMA(clang diagnostic ignored "-Wsign-compare")
+ PCAP_DO_PRAGMA(clang diagnostic ignored "-Wsign-compare") \
+ PCAP_DO_PRAGMA(clang diagnostic ignored "-Wdocumentation")
#define DIAG_ON_FLEX \
PCAP_DO_PRAGMA(clang diagnostic pop)
#elif PCAP_IS_AT_LEAST_GNUC_VERSION(4,6)