From 95fee5a98002691b3cb1203b5808ec1ecfd7955b Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Sun, 23 Jul 2023 11:48:33 -0400 Subject: [PATCH 1/1] 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. --- src/scan.l | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.43.2