[llvm] ffaf667 - [Support][unittests] Silence warning when building with Clang 13 on

Alexandre Ganea via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 8 08:08:28 PDT 2022


Author: Alexandre Ganea
Date: 2022-04-08T11:08:21-04:00
New Revision: ffaf667a435bf064553f12c04a3a199263e3fdcb

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

LOG: [Support][unittests] Silence warning when building with Clang 13 on
Windows.

Added: 
    

Modified: 
    llvm/unittests/Support/Path.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp
index c3ba0b51f06f7..00c41044bda12 100644
--- a/llvm/unittests/Support/Path.cpp
+++ b/llvm/unittests/Support/Path.cpp
@@ -2316,7 +2316,7 @@ TEST_F(FileSystemTest, widenPath) {
   for (size_t i = 0; i < NumChars; ++i)
     Input += Pi;
   // Check that UTF-8 length already exceeds MAX_PATH.
-  EXPECT_GT(Input.size(), MAX_PATH);
+  EXPECT_GT(Input.size(), (size_t)MAX_PATH);
   SmallVector<wchar_t, MAX_PATH + 16> Result;
   ASSERT_NO_ERROR(windows::widenPath(Input, Result));
   // Result should not start with the long path prefix.


        


More information about the llvm-commits mailing list