From e3fc6b3c346f583adbdb38b0935cc73439aaad99 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Thu, 12 Mar 2020 15:30:10 +0100 Subject: [PATCH] [lldb][NFC] Fix unsigned/signed comparison warning in SymbolFileDWARFTest.cpp offset_t is unsigned, so if the RHS is signed we get a warning from clang: warning: comparison of integers of different signs: 'const unsigned long long' and 'const int' --- lldb/unittests/SymbolFile/DWARF/SymbolFileDWARFTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/unittests/SymbolFile/DWARF/SymbolFileDWARFTests.cpp b/lldb/unittests/SymbolFile/DWARF/SymbolFileDWARFTests.cpp index f1010a1..8bf019e 100644 --- a/lldb/unittests/SymbolFile/DWARF/SymbolFileDWARFTests.cpp +++ b/lldb/unittests/SymbolFile/DWARF/SymbolFileDWARFTests.cpp @@ -344,5 +344,5 @@ TEST_F(SymbolFileDWARFTests, ParseArangesNonzeroSegmentSize) { EXPECT_TRUE(bool(error)); EXPECT_EQ("segmented arange entries are not supported", llvm::toString(std::move(error))); - EXPECT_EQ(off, 12); // Parser should read no further than the segment size + EXPECT_EQ(off, 12U); // Parser should read no further than the segment size } -- 2.7.4