]> The Tcpdump Group git mirrors - libpcap/commitdiff
No, Bison *doesn't* have that problem. It's Flex.
authorGuy Harris <[email protected]>
Thu, 31 May 2018 04:28:42 +0000 (21:28 -0700)
committerGuy Harris <[email protected]>
Thu, 31 May 2018 04:28:42 +0000 (21:28 -0700)
We're supposedly suppressing that warning with Flex; more debugging is
necessary.

diag-control.h

index 270a5852406026732184fddbc6b137cf3ba59401..cfc581b37b57ca7b43e7efba717f42eb6249756f 100644 (file)
   /*
    * 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)
     /*
      */
     #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)
      */
     #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)