diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-03-23 03:45:18 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-03-23 03:45:18 +0000 |
commit | 0ec8fba18ced708100cf2c15cd273a3709040fa5 (patch) | |
tree | f4fde94d807b949aa0c67c749840dd2f49066b0c | |
parent | 1c5c3a0ef807f99717f641960753f3fb3940a599 (diff) |
fix warnings of (generated) grammar.c
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21146 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | epan/dfilter/Makefile.nmake | 2 | ||||
-rw-r--r-- | 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( yyact<YYNSTATE ){ yy_shift(yypParser,yyact,yymajor,&yyminorunion); yypParser->yyerrcnt--; @@ -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 ){ |