[libc-commits] [libc] 2f1c037 - [libc] Remove unused variable

Guillaume Chatelet via libc-commits libc-commits at lists.llvm.org
Mon Nov 22 02:12:57 PST 2021


Author: Guillaume Chatelet
Date: 2021-11-22T10:12:46Z
New Revision: 2f1c037bbdc4a949e83466d6b315002d71c67731

URL: https://github.com/llvm/llvm-project/commit/2f1c037bbdc4a949e83466d6b315002d71c67731
DIFF: https://github.com/llvm/llvm-project/commit/2f1c037bbdc4a949e83466d6b315002d71c67731.diff

LOG: [libc] Remove unused variable

Added: 
    

Modified: 
    libc/src/__support/str_to_float.h

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/str_to_float.h b/libc/src/__support/str_to_float.h
index b2347a97aa8b0..7c2672017c685 100644
--- a/libc/src/__support/str_to_float.h
+++ b/libc/src/__support/str_to_float.h
@@ -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;


        


More information about the libc-commits mailing list