[clang-tools-extra] r282074 - Fix compiler warnings.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 21 08:19:04 PDT 2016
Author: hokein
Date: Wed Sep 21 10:19:04 2016
New Revision: 282074
URL: http://llvm.org/viewvc/llvm-project?rev=282074&view=rev
Log:
Fix compiler warnings.
Modified:
clang-tools-extra/trunk/unittests/clang-move/ClangMoveTests.cpp
Modified: clang-tools-extra/trunk/unittests/clang-move/ClangMoveTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-move/ClangMoveTests.cpp?rev=282074&r1=282073&r2=282074&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-move/ClangMoveTests.cpp (original)
+++ clang-tools-extra/trunk/unittests/clang-move/ClangMoveTests.cpp Wed Sep 21 10:19:04 2016
@@ -194,7 +194,7 @@ TEST(ClangMove, MoveHeaderOnly) {
Spec.OldHeader = "foo.h";
Spec.NewHeader = "new_foo.h";
auto Results = runClangMoveOnCode(Spec);
- EXPECT_EQ(2, Results.size());
+ EXPECT_EQ(2u, Results.size());
EXPECT_EQ(ExpectedTestHeader, Results[Spec.OldHeader]);
EXPECT_EQ(ExpectedNewHeader, Results[Spec.NewHeader]);
}
@@ -205,7 +205,7 @@ TEST(ClangMove, MoveCCOnly) {
Spec.OldCC = "foo.cc";
Spec.NewCC = "new_foo.cc";
auto Results = runClangMoveOnCode(Spec);
- EXPECT_EQ(2, Results.size());
+ EXPECT_EQ(2u, Results.size());
EXPECT_EQ(ExpectedTestCC, Results[Spec.OldCC]);
EXPECT_EQ(ExpectedNewCC, Results[Spec.NewCC]);
}
@@ -218,7 +218,7 @@ TEST(ClangMove, MoveNonExistClass) {
Spec.NewHeader = "new_foo.h";
Spec.NewCC = "new_foo.cc";
auto Results = runClangMoveOnCode(Spec);
- EXPECT_EQ(0, Results.size());
+ EXPECT_EQ(0u, Results.size());
}
} // namespace
More information about the cfe-commits
mailing list