summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2015-11-19 20:47:49 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2015-11-20 07:07:45 -0500
commitdde155d03acf6c9ecbaf478c3dd7ed9d4fb6e930 (patch)
tree3b37aab18d95c21983be378de9d6dac31323dbbc /toke.c
parent4ad1d95f698467e24dcb42454e182755e52ff224 (diff)
downloadperl-dde155d03acf6c9ecbaf478c3dd7ed9d4fb6e930.tar.gz
hexfp: if HEXFP_NV the shift2 is unused
HEXFP_NV happens with e.g. -Duselongdouble. The unusedness is warned about by e.g. gcc/g++ at least since 4.6, but seemingly not by clang, even at 3.7.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index 2c0a3c9d17..d665b3d088 100644
--- a/toke.c
+++ b/toke.c
@@ -10505,6 +10505,7 @@ Perl_scan_num(pTHX_ const char *start, YYSTYPE* lvalp)
hexfp_uquad |= b;
hexfp_frac_bits += shift2;
#else /* HEXFP_NV */
+ PERL_UNUSED_VAR(shift2);
hexfp_nv += b * mult;
mult /= 16.0;
#endif