From 6e2e285142895f3ed4b7e5b99ff1595092d84969 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Thu, 17 Dec 2015 21:52:25 +0000 Subject: Fixed few warnings --- dm_parser.ragel | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'dm_parser.ragel') diff --git a/dm_parser.ragel b/dm_parser.ragel index 80c873b..735b2fd 100644 --- a/dm_parser.ragel +++ b/dm_parser.ragel @@ -66,7 +66,7 @@ int parse_dm( token_list *tl, const char *str ) { static uint8_t cs; const int stacksize = 10; - int res=0, *top=0, *stack=NULL, act=0; + int res=0, *stack=NULL, act=0; stack = malloc( sizeof(stack)*stacksize ); char *p=(char *)str, *pe = (char *)str + strlen( str ), *eof=NULL; char *ts, *te = 0; @@ -74,10 +74,6 @@ int parse_dm( token_list *tl, const char *str ) /* variables used in state machine */ - char *token_s=NULL, *token_e=NULL; - char *value_s=NULL, *value_e=NULL; - int token_type=0; - int dm_current_tok = TOK_NONE; %%write init; %%write exec; -- cgit v1.2.3