From b83f89d4d95d4387412491d8560a4da0f89df342 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 12 Aug 2020 16:35:27 -0400 Subject: remove unused variable warning if not dealing with NANs or INFs --- src/stdlib/_strtod.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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) { -- cgit v1.2.1