From: Nick Bowler Date: Sun, 23 Jul 2023 15:48:33 +0000 (-0400) Subject: Avoid warnings about unused scanner functions. X-Git-Tag: v1.3~100 X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/commitdiff_plain/95fee5a98002691b3cb1203b5808ec1ecfd7955b Avoid warnings about unused scanner functions. We don't use input or unput in the scanner, so we can define some macros to disable them which avoids some compiler warnings. --- diff --git a/src/scan.l b/src/scan.l index 8a6572e..29dd33d 100644 --- a/src/scan.l +++ b/src/scan.l @@ -19,6 +19,9 @@ #include #include "parse.h" + +#define YY_NO_INPUT 1 +#define YY_NO_UNPUT 1 } %option nodefault noyywrap bison-locations reentrant never-interactive