From fc1f62ce80558459f73f29eb1c5c7211f2bec7d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 23 Mar 2020 19:26:33 +0100 Subject: [PATCH] checkpolicy: add missing forward declaration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit policy_scan.l:294:3: warning: implicit declaration of function 'yyerror' is invalid in C99 [-Wimplicit-function-declaration] { yyerror("unrecognized character");} ^ policy_scan.l:294:3: warning: this function declaration is not a prototype [-Wstrict-prototypes] Acked-by: William Roberts Signed-off-by: Christian Göttsche --- checkpolicy/policy_scan.l | 1 + 1 file changed, 1 insertion(+) diff --git a/checkpolicy/policy_scan.l b/checkpolicy/policy_scan.l index 094645d1..4067268b 100644 --- a/checkpolicy/policy_scan.l +++ b/checkpolicy/policy_scan.l @@ -37,6 +37,7 @@ typedef int (* require_func_t)(void); static char linebuf[2][255]; static unsigned int lno = 0; int werror = 0; +int yyerror(const char *msg); int yywarn(const char *msg); void set_source_file(const char *name);