[libc] Remove unused variable
authorGuillaume Chatelet <gchatelet@google.com>
Mon, 22 Nov 2021 10:12:46 +0000 (10:12 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Mon, 22 Nov 2021 10:12:46 +0000 (10:12 +0000)
libc/src/__support/str_to_float.h

index b2347a9..7c26720 100644 (file)
@@ -746,11 +746,9 @@ static inline T strtofloatingpoint(const char *__restrict src,
 
   if (isdigit(*src) || *src == DECIMAL_POINT) { // regular number
     int base = 10;
-    char exponentMarker = 'e';
     if (is_float_hex_start(src, DECIMAL_POINT)) {
       base = 16;
       src += 2;
-      exponentMarker = 'p';
       seenDigit = true;
     }
     char *newStrEnd = nullptr;