From 8dd77fa5ae2c20cce903501e9090c663bf97d144 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 19 Dec 2023 12:57:08 -0800 Subject: [Support] Fix warnings This patch fixes: third-party/unittest/googletest/include/gtest/gtest.h:1379:11: error: comparison of integers of different signs: 'const int' and 'const unsigned int' [-Werror,-Wsign-compare] llvm/unittests/Support/CommandLineTest.cpp:2294:3: note: in instantiation of function template specialization 'testing::internal::EqHelper::Compare' requested here --- llvm/unittests/Support/CommandLineTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/unittests/Support/CommandLineTest.cpp') diff --git a/llvm/unittests/Support/CommandLineTest.cpp b/llvm/unittests/Support/CommandLineTest.cpp index 328674a..a9d0790 100644 --- a/llvm/unittests/Support/CommandLineTest.cpp +++ b/llvm/unittests/Support/CommandLineTest.cpp @@ -2291,10 +2291,10 @@ TEST(CommandLineTest, SubCommandGroups) { // The "--opt12" option is expected to be added to both subcommands in the // group, but not to the top-level "no subcommand" pseudo-subcommand or the // "sc3" subcommand. - EXPECT_EQ(1, SC1.OptionsMap.size()); + EXPECT_EQ(1U, SC1.OptionsMap.size()); EXPECT_TRUE(SC1.OptionsMap.contains("opt12")); - EXPECT_EQ(1, SC2.OptionsMap.size()); + EXPECT_EQ(1U, SC2.OptionsMap.size()); EXPECT_TRUE(SC2.OptionsMap.contains("opt12")); EXPECT_FALSE(cl::SubCommand::getTopLevel().OptionsMap.contains("opt12")); -- cgit v1.1