From dd4e757ea58924fa81dd7c1e8b92eede57688639 Mon Sep 17 00:00:00 2001 From: Vysheng Date: Wed, 10 Sep 2014 16:25:49 +0400 Subject: [PATCH] Fixed strange warn about unused result of strtod and strtoll --- auto-static.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/auto-static.c b/auto-static.c index 60870ef..a455ffa 100644 --- a/auto-static.c +++ b/auto-static.c @@ -25,7 +25,7 @@ static int cur_token_len; static char *cur_token; static int cur_token_real_len; static int cur_token_quoted; -static int multiline_output; +static int multiline_output = 1; static int multiline_offset; static int multiline_offset_size = 2; @@ -71,7 +71,7 @@ static int is_int (void) { cur_token[cur_token_len] = 0; char *p = 0; - strtoll (cur_token, &p, 10); + if (strtoll (cur_token, &p, 10)) {} cur_token[cur_token_len] = c; return p == cur_token + cur_token_len; @@ -95,7 +95,7 @@ static int is_double (void) { cur_token[cur_token_len] = 0; char *p = 0; - strtod (cur_token, &p); + if (strtod (cur_token, &p)) {} cur_token[cur_token_len] = c; return p == cur_token + cur_token_len;