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] Signed-off-by: Christian Göttsche <cgzones@xxxxxxxxxxxxxx> --- 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); -- 2.26.0.rc2