From 3dfa722849d5048e36f51cd1f439a3acb3374b9f Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Fri, 23 Mar 2007 03:45:18 +0000 Subject: [PATCH] fix warnings of (generated) grammar.c svn path=/trunk/; revision=21146 --- epan/dfilter/Makefile.nmake | 2 +- tools/lemon/lempar.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/epan/dfilter/Makefile.nmake b/epan/dfilter/Makefile.nmake index 2d1ce6b1ae..218284a625 100644 --- a/epan/dfilter/Makefile.nmake +++ b/epan/dfilter/Makefile.nmake @@ -9,7 +9,7 @@ include ..\..\config.nmake LEMON=..\..\tools\lemon -CFLAGS=-DHAVE_CONFIG_H /I. /I.. /I..\.. /I$(LEMON) \ +CFLAGS=-WX -DHAVE_CONFIG_H /I. /I.. /I..\.. /I$(LEMON) \ $(GLIB_CFLAGS) $(PCRE_CFLAGS) /I$(PCAP_DIR)\include -D_U_="" $(LOCAL_CFLAGS) CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL diff --git a/tools/lemon/lempar.c b/tools/lemon/lempar.c index 174ba6fe66..aaa7a8d2a5 100644 --- a/tools/lemon/lempar.c +++ b/tools/lemon/lempar.c @@ -523,7 +523,7 @@ static void yy_reduce( yygoto = yyRuleInfo[yyruleno].lhs; yysize = yyRuleInfo[yyruleno].nrhs; yypParser->yyidx -= yysize; - yyact = yy_find_reduce_action(yymsp[-yysize].stateno,yygoto); + yyact = yy_find_reduce_action(yymsp[-yysize].stateno,(YYCODETYPE)yygoto); if( yyact < YYNSTATE ){ #ifdef NDEBUG /* If we are not debugging and the reduce action popped at least @@ -649,7 +649,7 @@ void Parse( #endif do{ - yyact = yy_find_shift_action(yypParser,yymajor); + yyact = yy_find_shift_action(yypParser,(YYCODETYPE)yymajor); if( yyactyyerrcnt--; @@ -698,7 +698,7 @@ void Parse( yyTracePrompt,yyTokenName[yymajor]); } #endif - yy_destructor(yymajor,&yyminorunion); + yy_destructor((YYCODETYPE)yymajor,&yyminorunion); yymajor = YYNOCODE; }else{ while( @@ -709,7 +709,7 @@ void Parse( yy_pop_parser_stack(yypParser); } if( yypParser->yyidx < 0 || yymajor==0 ){ - yy_destructor(yymajor,&yyminorunion); + yy_destructor((YYCODETYPE)yymajor,&yyminorunion); yy_parse_failed(yypParser); yymajor = YYNOCODE; }else if( yymx!=YYERRORSYMBOL ){