diff options
author | Kazu Hirata <kazu@google.com> | 2023-12-19 12:57:08 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-12-19 12:57:08 -0800 |
commit | 8dd77fa5ae2c20cce903501e9090c663bf97d144 (patch) | |
tree | 4f259fc6577e9980a15d3b5eb95bf44cda64396e /llvm/unittests/Support/CommandLineTest.cpp | |
parent | 35b366ace73d0ede3cdeeb4d09150a9945750b7f (diff) | |
download | llvm-8dd77fa5ae2c20cce903501e9090c663bf97d144.zip llvm-8dd77fa5ae2c20cce903501e9090c663bf97d144.tar.gz llvm-8dd77fa5ae2c20cce903501e9090c663bf97d144.tar.bz2 |
[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<int, unsigned int, nullptr>'
requested here
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
-rw-r--r-- | llvm/unittests/Support/CommandLineTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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")); |