diff options
author | Joerg Mayer <jmayer@loplof.de> | 2018-03-27 19:58:32 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-03-27 19:58:32 -0700 |
commit | cbfafcf5e1245d134ce941d5cd4cafdd1e9a3734 (patch) | |
tree | 672ba1aa2cf9bc8ca7f328046f8849822286fcbe /diag-control.h | |
parent | 1ad618f72208e238962843950c657261d5282779 (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.h | 8 |
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) |