All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] checkpolicy: add missing forward declaration
@ 2020-03-23 18:26 Christian Göttsche
  2020-03-23 19:03 ` Roberts, William C
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Göttsche @ 2020-03-23 18:26 UTC (permalink / raw)
  To: selinux

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@googlemail.com>
---
 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [PATCH] checkpolicy: add missing forward declaration
  2020-03-23 18:26 [PATCH] checkpolicy: add missing forward declaration Christian Göttsche
@ 2020-03-23 19:03 ` Roberts, William C
  2020-03-25 14:54   ` William Roberts
  0 siblings, 1 reply; 3+ messages in thread
From: Roberts, William C @ 2020-03-23 19:03 UTC (permalink / raw)
  To: Christian Göttsche, selinux

> -----Original Message-----
> From: selinux-owner@vger.kernel.org [mailto:selinux-owner@vger.kernel.org]
> On Behalf Of Christian Göttsche
> Sent: Monday, March 23, 2020 1:27 PM
> To: selinux@vger.kernel.org
> 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@googlemail.com>
> ---
>  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@intel.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] checkpolicy: add missing forward declaration
  2020-03-23 19:03 ` Roberts, William C
@ 2020-03-25 14:54   ` William Roberts
  0 siblings, 0 replies; 3+ messages in thread
From: William Roberts @ 2020-03-25 14:54 UTC (permalink / raw)
  To: Roberts, William C; +Cc: Christian Göttsche, selinux

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-25 14:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23 18:26 [PATCH] checkpolicy: add missing forward declaration Christian Göttsche
2020-03-23 19:03 ` Roberts, William C
2020-03-25 14:54   ` William Roberts

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.