summaryrefslogtreecommitdiff
path: root/unittests/Support
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-02-04 22:53:45 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-02-04 22:53:45 +0000
commit51ca0040e67335bdb8b5685be53b09fc88f04781 (patch)
tree3bcd554646af88f71ea92c1124a731f96bbd66dd /unittests/Support
parent19a4033c68bc2e2f57695b05242ad0f38c468a22 (diff)
Silence a warning:
In file included from ../unittests/Support/ProcessTest.cpp:11: ../utils/unittest/googletest/include/gtest/gtest.h:1448:28: warning: comparison of integers of different signs: 'const unsigned int' and 'const int' [-Wsign-compare] GTEST_IMPL_CMP_HELPER_(NE, !=); ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ../utils/unittest/googletest/include/gtest/gtest.h:1433:12: note: expanded from macro 'GTEST_IMPL_CMP_HELPER_' if (val1 op val2) {\ ^ ../unittests/Support/ProcessTest.cpp:46:3: note: in instantiation of function template specialization 'testing::internal::CmpHelperNE<unsigned int, int>' requested here EXPECT_NE((r1 | r2), 0); ^ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Support')
-rw-r--r--unittests/Support/ProcessTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/Support/ProcessTest.cpp b/unittests/Support/ProcessTest.cpp
index 19694e55d06..f4060720961 100644
--- a/unittests/Support/ProcessTest.cpp
+++ b/unittests/Support/ProcessTest.cpp
@@ -43,7 +43,7 @@ TEST(ProcessTest, GetRandomNumberTest) {
const unsigned r1 = Process::GetRandomNumber();
const unsigned r2 = Process::GetRandomNumber();
// It should be extremely unlikely that both r1 and r2 are 0.
- EXPECT_NE((r1 | r2), 0);
+ EXPECT_NE((r1 | r2), 0u);
}
#ifdef _MSC_VER