Re: Removing GCC warnings from flex- and bison- generated C

John Millaway <johnmillaway@yahoo.com>
16 Jan 2004 22:22:30 -0500

          From comp.compilers

Related articles
Removing GCC warnings from flex- and bison- generated C code zender@uci.edu (Charlie Zender) (2004-01-09)
Re: Removing GCC warnings from flex- and bison- generated C johnmillaway@yahoo.com (John Millaway) (2004-01-16)
| List of all articles for this month |

From: John Millaway <johnmillaway@yahoo.com>
Newsgroups: comp.compilers
Date: 16 Jan 2004 22:22:30 -0500
Organization: Compilers Central
References: 04-01-045
Keywords: lex, yacc, comment
Posted-Date: 16 Jan 2004 22:22:30 EST

> >ncap_lex.c:2865: warning: no previous prototype for `yyget_leng'
> >ncap_lex.c:2874: warning: no previous prototype for `yyget_text'
> >ncap_lex.c:2883: warning: no previous prototype for `yyset_lineno'
> >ncap_lex.c:2895: warning: no previous prototype for `yyset_in'
> >ncap_lex.c:2900: warning: no previous prototype for `yyset_out'
> >ncap_lex.c:2905: warning: no previous prototype for `yyget_debug'
> >ncap_lex.c:2910: warning: no previous prototype for `yyset_debug'
> >ncap_lex.c:2916: warning: no previous prototype for `yylex_destroy'
>
> Those warnings can all be eliminated by declaring prototypes
> for the corresponding functions.


Or, preferably, use the option --header=FILE (%header=FILE) to generate a C
header file which contains the prototypes. -John M


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.