From: Matthew Fernandez Date: Sun, 16 Oct 2022 04:06:44 +0000 (-0700) Subject: cgraph aagerror: squash -Wmissing-prototypes warning X-Git-Tag: 7.0.0~2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a348ed6de2975b1751542534bb59224947c63b86;p=graphviz cgraph aagerror: squash -Wmissing-prototypes warning 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) | ^~~~~~~~ --- 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];