Re: [PATCH] checkpolicy: add missing forward declaration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 23, 2020 at 2:03 PM Roberts, William C
<william.c.roberts@xxxxxxxxx> wrote:
>
> > -----Original Message-----
> > From: selinux-owner@xxxxxxxxxxxxxxx [mailto:selinux-owner@xxxxxxxxxxxxxxx]
> > On Behalf Of Christian Göttsche
> > Sent: Monday, March 23, 2020 1:27 PM
> > To: selinux@xxxxxxxxxxxxxxx
> > Subject: [PATCH] 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]
> >
> > 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
>
> Acked-by: William Roberts <william.c.roberts@xxxxxxxxx>
Merged: https://github.com/SELinuxProject/selinux/pull/212




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux