summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-12 16:35:27 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-12 16:35:27 -0400
commitb83f89d4d95d4387412491d8560a4da0f89df342 (patch)
treef69307d7c819f04dfb24f000dc64ef9e77c27813 /src
parentab5a9fda3dda8698153b6e52f81909f5620c55f8 (diff)
remove unused variable warning if not dealing with NANs or INFs
Diffstat (limited to 'src')
-rw-r--r--src/stdlib/_strtod.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stdlib/_strtod.h b/src/stdlib/_strtod.h
index 05b8f318..aa7e60d4 100644
--- a/src/stdlib/_strtod.h
+++ b/src/stdlib/_strtod.h
@@ -52,6 +52,9 @@
if (nptr[0] == '0' && toupper(nptr[1] == 'X')) {
return ret;
}
+ #else
+ (void)nan;
+ (void)inf;
#endif
while (*nptr) {