aboutsummaryrefslogtreecommitdiff
path: root/diag-control.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-05-30 21:28:42 -0700
committerGuy Harris <guy@alum.mit.edu>2018-05-30 21:28:42 -0700
commit2637cff5f130d20a257498650b1861b8994030b6 (patch)
tree5376203cf262d60171ecdf3f16da0a98487fcd55 /diag-control.h
parent3ea0ff9d18a963af9d08d15d5d9f08d29d5344e9 (diff)
No, Bison *doesn't* have that problem. It's Flex.
We're supposedly suppressing that warning with Flex; more debugging is necessary.
Diffstat (limited to 'diag-control.h')
-rw-r--r--diag-control.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/diag-control.h b/diag-control.h
index 270a5852..cfc581b3 100644
--- a/diag-control.h
+++ b/diag-control.h
@@ -168,8 +168,8 @@
/*
* Bison.
*
- * The generated code may have functions with unused parameters and
- * unreachable code, so suppress warnings about those.
+ * The generated code may have functions with unreachable code, so
+ * suppress warnings about those.
*/
#if defined(_MSC_VER)
/*
@@ -192,7 +192,6 @@
*/
#define DIAG_OFF_BISON_BYACC \
PCAP_DO_PRAGMA(clang diagnostic push) \
- PCAP_DO_PRAGMA(clang diagnostic ignored "-Wunused-parameter") \
PCAP_DO_PRAGMA(clang diagnostic ignored "-Wunreachable-code")
#define DIAG_ON_BISON_BYACC \
PCAP_DO_PRAGMA(clang diagnostic pop)
@@ -204,7 +203,6 @@
*/
#define DIAG_OFF_BISON_BYACC \
PCAP_DO_PRAGMA(GCC diagnostic push) \
- PCAP_DO_PRAGMA(GCC diagnostic ignored "-Wunused-parameter") \
PCAP_DO_PRAGMA(GCC diagnostic ignored "-Wunreachable-code")
#define DIAG_ON_BISON_BYACC \
PCAP_DO_PRAGMA(GCC diagnostic pop)