From db20b4e0638ca275d9ecab43305525f41809cbdd Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Thu, 17 May 2012 09:23:18 +0900 Subject: ignore return value from strtod() --- src/parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/parse.y b/src/parse.y index 45a024b0b..e6d980d1c 100644 --- a/src/parse.y +++ b/src/parse.y @@ -4062,7 +4062,7 @@ parser_yylex(parser_state *p) } tokfix(p); if (is_float) { - strtod(tok(p), 0); + (void)strtod(tok(p), 0); /* just check if float is within range */ if (errno == ERANGE) { yywarning_s(p, "float %s out of range", tok(p)); errno = 0; -- cgit v1.2.3