]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fixup the final #ifndef ordering in diag-control.h.
authorDenis Ovsienko <[email protected]>
Sun, 3 Mar 2024 17:20:03 +0000 (17:20 +0000)
committerDenis Ovsienko <[email protected]>
Sun, 3 Mar 2024 21:05:31 +0000 (21:05 +0000)
Make it consistently "DIAG_OFF_, then DIAG_ON_" in all cases, as that's
the order in which the macros are defined and used.

diag-control.h

index f4edc8d56a63ee592303fba809d3cc4500d16efd..800111bf831a44644749f2b36b23ba90705d3e80 100644 (file)
 #ifndef DIAG_OFF_BISON_BYACC
 #define DIAG_OFF_BISON_BYACC
 #endif
-#ifndef DIAG_ON_WARN_UNUSED_RESULT
-#define DIAG_ON_WARN_UNUSED_RESULT
-#endif
+//
+// DIAG_ON_BISON_BYACC does not need to be defined.
+//
 #ifndef DIAG_OFF_WARN_UNUSED_RESULT
 #define DIAG_OFF_WARN_UNUSED_RESULT
 #endif
+#ifndef DIAG_ON_WARN_UNUSED_RESULT
+#define DIAG_ON_WARN_UNUSED_RESULT
+#endif
 #ifndef DIAG_OFF_STRICT_PROTOTYPES
 #define DIAG_OFF_STRICT_PROTOTYPES
 #endif