]> git.draconx.ca Git - cdecl99.git/commitdiff
Avoid warnings about unused scanner functions.
authorNick Bowler <nbowler@draconx.ca>
Sun, 23 Jul 2023 15:48:33 +0000 (11:48 -0400)
committerNick Bowler <nbowler@draconx.ca>
Sun, 23 Jul 2023 15:48:33 +0000 (11:48 -0400)
We don't use input or unput in the scanner, so we can define some
macros to disable them which avoids some compiler warnings.

src/scan.l

index 8a6572ef2444d267ff565b58a402804b5c969b94..29dd33da4374060ea6a9428e7e297a34e0ee6190 100644 (file)
@@ -19,6 +19,9 @@
 
 #include <config.h>
 #include "parse.h"
+
+#define YY_NO_INPUT 1
+#define YY_NO_UNPUT 1
 }
 
 %option nodefault noyywrap bison-locations reentrant never-interactive