diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-02-04 22:53:45 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-02-04 22:53:45 +0000 |
commit | f6ae49226b128695fd77d9b20ed44d32d0ec0ccb (patch) | |
tree | 41c4362305b45b2e5141d3eca26d657a37af482a /llvm/unittests/Support/ProcessTest.cpp | |
parent | 975e115eacff9b6da4533dac671b62817456ac4d (diff) | |
download | bcm5719-llvm-f6ae49226b128695fd77d9b20ed44d32d0ec0ccb.tar.gz bcm5719-llvm-f6ae49226b128695fd77d9b20ed44d32d0ec0ccb.zip |
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);
^
llvm-svn: 200801
Diffstat (limited to 'llvm/unittests/Support/ProcessTest.cpp')
-rw-r--r-- | llvm/unittests/Support/ProcessTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/ProcessTest.cpp b/llvm/unittests/Support/ProcessTest.cpp index 19694e55d06..f4060720961 100644 --- a/llvm/unittests/Support/ProcessTest.cpp +++ b/llvm/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 |