r303734 - Fix 'set but not used' [-Wunused-but-set-variable] warning

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Wed May 24 03:38:09 PDT 2017


Author: rksimon
Date: Wed May 24 05:38:09 2017
New Revision: 303734

URL: http://llvm.org/viewvc/llvm-project?rev=303734&view=rev
Log:
Fix 'set but not used' [-Wunused-but-set-variable] warning

Modified:
    cfe/trunk/lib/Lex/LiteralSupport.cpp

Modified: cfe/trunk/lib/Lex/LiteralSupport.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/LiteralSupport.cpp?rev=303734&r1=303733&r2=303734&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/LiteralSupport.cpp (original)
+++ cfe/trunk/lib/Lex/LiteralSupport.cpp Wed May 24 05:38:09 2017
@@ -563,7 +563,6 @@ NumericLiteralParser::NumericLiteralPars
   // Parse the suffix.  At this point we can classify whether we have an FP or
   // integer constant.
   bool isFPConstant = isFloatingLiteral();
-  const char *ImaginarySuffixLoc = nullptr;
 
   // Loop over all of the characters of the suffix.  If we see something bad,
   // we break out of the loop.
@@ -657,7 +656,6 @@ NumericLiteralParser::NumericLiteralPars
     case 'J':
       if (isImaginary) break;   // Cannot be repeated.
       isImaginary = true;
-      ImaginarySuffixLoc = s;
       continue;  // Success.
     }
     // If we reached here, there was an error or a ud-suffix.




More information about the cfe-commits mailing list