diff options
author | Jie Fu <jiefu@tencent.com> | 2023-02-10 10:47:18 +0800 |
---|---|---|
committer | Jie Fu <jiefu@tencent.com> | 2023-02-10 10:51:21 +0800 |
commit | 35537aea1228df29c4e32049e4750029c5f0693b (patch) | |
tree | b8c30616d48bdca3d384a347a6d736212eb59e5a /lldb/source/Commands/CommandObjectCommands.cpp | |
parent | 591fdcde921334b2d502779006d7c168307a2106 (diff) | |
download | llvm-35537aea1228df29c4e32049e4750029c5f0693b.zip llvm-35537aea1228df29c4e32049e4750029c5f0693b.tar.gz llvm-35537aea1228df29c4e32049e4750029c5f0693b.tar.bz2 |
[Modules][Test][NFC] Fix -Wsign-compare in clang/unittests/Lex/ModuleDeclStateTest.cpp
In file included from /data/jiefu/llvm-project/clang/unittests/Lex/ModuleDeclStateTest.cpp:22:
/data/jiefu/llvm-project/third-party/unittest/googletest/include/gtest/gtest.h:1526:11: error: comparison of integers of different signs: 'const unsigned long' and 'const int' [-Werror,-Wsign-compare]
if (lhs == rhs) {
~~~ ^ ~~~
/data/jiefu/llvm-project/third-party/unittest/googletest/include/gtest/gtest.h:1553:12: note: in instantiation of function template specialization 'testing::internal::CmpHelperEQ<unsigned long, int>' requested here
return CmpHelperEQ(lhs_expression, rhs_expression, lhs, rhs);
^
/data/jiefu/llvm-project/clang/unittests/Lex/ModuleDeclStateTest.cpp:124:3: note: in instantiation of function template specialization 'testing::internal::EqHelper::Compare<unsigned long, int, nullptr>' requested here
EXPECT_EQ(Callback->importNamedModuleNum(), 0);
^
/data/jiefu/llvm-project/third-party/unittest/googletest/include/gtest/gtest.h:2027:54: note: expanded from macro 'EXPECT_EQ'
EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2)
^
1 error generated.
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
0 files changed, 0 insertions, 0 deletions