summaryrefslogtreecommitdiff
path: root/dm_parser.ragel
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-12-17 21:52:25 +0000
committerFreeArtMan <dos21h@gmail.com>2015-12-17 21:52:25 +0000
commit6e2e285142895f3ed4b7e5b99ff1595092d84969 (patch)
treed681a1852b4adc8a2540d893d782c5e10ebef84e /dm_parser.ragel
parent02496faab558fa758adf3a24006201cf5ab557fb (diff)
downloaddm-6e2e285142895f3ed4b7e5b99ff1595092d84969.tar.gz
dm-6e2e285142895f3ed4b7e5b99ff1595092d84969.zip
Fixed few warnings
Diffstat (limited to 'dm_parser.ragel')
-rw-r--r--dm_parser.ragel6
1 files changed, 1 insertions, 5 deletions
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;