[clang] 096cad5 - [Serialization] Fix a warning

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 25 07:53:31 PDT 2025


Author: Kazu Hirata
Date: 2025-06-25T07:53:24-07:00
New Revision: 096cad59dff5718924882f1a5c775cab49e888a9

URL: https://github.com/llvm/llvm-project/commit/096cad59dff5718924882f1a5c775cab49e888a9
DIFF: https://github.com/llvm/llvm-project/commit/096cad59dff5718924882f1a5c775cab49e888a9.diff

LOG: [Serialization] Fix a warning

This patch fixes:

  clang/unittests/Serialization/SourceLocationEncodingTest.cpp:39:34:
  error: unused variable 'Biggest' [-Werror,-Wunused-const-variable]

Added: 
    

Modified: 
    clang/unittests/Serialization/SourceLocationEncodingTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/Serialization/SourceLocationEncodingTest.cpp b/clang/unittests/Serialization/SourceLocationEncodingTest.cpp
index 8ce0e55c88b4e..18fedd4de3973 100644
--- a/clang/unittests/Serialization/SourceLocationEncodingTest.cpp
+++ b/clang/unittests/Serialization/SourceLocationEncodingTest.cpp
@@ -36,7 +36,6 @@ void roundTrip(SourceLocation::UIntTy Loc,
 constexpr SourceLocation::UIntTy MacroBit =
     1 << (sizeof(SourceLocation::UIntTy) * CHAR_BIT - 1);
 constexpr SourceLocation::UIntTy Big = MacroBit >> 1;
-constexpr SourceLocation::UIntTy Biggest = -1;
 
 TEST(SourceLocationEncoding, Individual) {
   roundTrip(1, 2);


        


More information about the cfe-commits mailing list