From a348ed6de2975b1751542534bb59224947c63b86 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 15 Oct 2022 21:06:44 -0700 Subject: [PATCH] cgraph aagerror: squash -Wmissing-prototypes warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Calls to this function are generated by Flex – it normally generates calls to `yyerror` but we alter the Flex prefix to `aag` – but it does not generate a prototype for the function. So squash the compiler’s overly cautious warning: ../../lib/cgraph/scan.l: At top level: ../../lib/cgraph/scan.l:219:6: warning: no previous prototype for ‘aagerror’ [-Wmissing-prototypes] 219 | void aagerror(const char *str) | ^~~~~~~~ --- lib/cgraph/scan.l | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cgraph/scan.l b/lib/cgraph/scan.l index 8dfb23a9d..72be9b3d0 100644 --- a/lib/cgraph/scan.l +++ b/lib/cgraph/scan.l @@ -216,6 +216,7 @@ ID ({NAME}|{NUMBER}) . return aagtext[0]; %% +void aagerror(const char *str); void aagerror(const char *str) { char xbuf[BUFSIZ]; -- 2.40.0