summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/parse.y2
1 files changed, 1 insertions, 1 deletions
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;