more warning cleanup (trunk only)

More warning bits that never got committed.
More appropriate compiler flags for warning checks (macosx only for the moment).
The changes in dgn*[lc] just rename line_number to nh_line_number to avoid a
clash, so no need to regenerate the lex output.
This commit is contained in:
keni
2008-04-18 17:37:33 +00:00
parent 0b3e8bbd88
commit 7b2fb4d0b5
7 changed files with 20 additions and 18 deletions

View File

@@ -73,7 +73,7 @@ void FDECL(init_yyout, (FILE *));
extern YYSTYPE yylval;
int line_number = 1;
int nh_line_number = 1;
%}
%%
@@ -110,8 +110,8 @@ RNDCHLEVEL return(RNDCHLEVEL);
yylval.str = (char *) alloc(strlen(yytext+1)+1);
Strcpy(yylval.str, yytext+1); /* Discard the first \" */
return(STRING); }
^#.*\n { line_number++; }
\r?\n { line_number++; }
^#.*\n { nh_line_number++; }
\r?\n { nh_line_number++; }
[ \t]+ ; /* skip trailing tabs & spaces */
. { return yytext[0]; }
%%