mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-12-04 01:20:52 +00:00
checkpolicy: add missing forward declaration
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 <william.c.roberts@intel.com> Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
This commit is contained in:
parent
43b905246a
commit
fc1f62ce80
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user