Skip to content

Commit f1c9aa6

Browse files
committed
More unsigned/signed compare fixes
1 parent 38693d9 commit f1c9aa6

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ release:
181181
$(MAKE) clean
182182
OPT="-DNDEBUG -O2" $(MAKE) static_lib $(PROGRAMS) -j32
183183

184+
release_shared_lib:
185+
$(MAKE) clean
186+
OPT="-DNDEBUG -O2" $(MAKE) shared_lib -j32
187+
184188
coverage:
185189
$(MAKE) clean
186190
COVERAGEFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS+="-lgcov" $(MAKE) all check -j32

db/column_family_test.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ TEST(ColumnFamilyTest, DontRollEmptyLogs) {
934934
}
935935
int total_new_writable_files =
936936
env_->GetNumberOfNewWritableFileCalls() - num_writable_file_start;
937-
ASSERT_EQ(total_new_writable_files, handles_.size() + 1);
937+
ASSERT_EQ(static_cast<size_t>(total_new_writable_files), handles_.size() + 1);
938938
Close();
939939
}
940940

db/db_test.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -5735,10 +5735,10 @@ TEST(DBTest, ReadFirstRecordCache) {
57355735

57365736
SequenceNumber s;
57375737
ASSERT_OK(dbfull()->TEST_ReadFirstLine(path, &s));
5738-
ASSERT_EQ(s, 0);
5738+
ASSERT_EQ(s, 0U);
57395739

57405740
ASSERT_OK(dbfull()->TEST_ReadFirstRecord(kAliveLogFile, 1, &s));
5741-
ASSERT_EQ(s, 0);
5741+
ASSERT_EQ(s, 0U);
57425742

57435743
log::Writer writer(std::move(file));
57445744
WriteBatch batch;
@@ -5751,12 +5751,12 @@ TEST(DBTest, ReadFirstRecordCache) {
57515751
ASSERT_EQ(env_->sequential_read_counter_.Read(), 0);
57525752

57535753
ASSERT_OK(dbfull()->TEST_ReadFirstRecord(kAliveLogFile, 1, &s));
5754-
ASSERT_EQ(s, 10);
5754+
ASSERT_EQ(s, 10U);
57555755
// did a read
57565756
ASSERT_EQ(env_->sequential_read_counter_.Read(), 1);
57575757

57585758
ASSERT_OK(dbfull()->TEST_ReadFirstRecord(kAliveLogFile, 1, &s));
5759-
ASSERT_EQ(s, 10);
5759+
ASSERT_EQ(s, 10U);
57605760
// no new reads since the value is cached
57615761
ASSERT_EQ(env_->sequential_read_counter_.Read(), 1);
57625762
}

0 commit comments

Comments
 (0)