Skip to content

Commit

Permalink
CMake Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dpetrov4 committed Jan 4, 2024
1 parent 4cb4d64 commit af2b2ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zi /nologo /EHsc /GS /Gd /GR /GF /fp:precise /Zc:wchar_t /Zc:forScope /errorReport:queue")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /FC /d2Zi+ /W4 /wd4127 /wd4800 /wd4996 /wd4351 /wd4100 /wd4204 /wd4324")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W -Wextra -Wall -pthread")
set(CMAKE_CXX_FLAGS "-W -Wextra -Wall ${CMAKE_CXX_FLAGS} -pthread")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wstrict-prototypes")
Expand Down Expand Up @@ -989,7 +989,6 @@ set(SOURCES
cloud/cloud_scheduler.cc
cloud/cloud_storage_provider.cc
cloud/cloud_file_deletion_scheduler.cc
db/db_impl/db_impl_remote_compaction.cc
db/db_impl/replication_codec.cc)

list(APPEND SOURCES
Expand Down Expand Up @@ -1327,7 +1326,6 @@ if(WITH_TESTS)
cloud/db_cloud_test.cc
cloud/cloud_manifest_test.cc
cloud/cloud_scheduler_test.cc
cloud/remote_compaction_test.cc
cloud/replication_test.cc
db/blob/blob_counting_iterator_test.cc
db/blob/blob_file_addition_test.cc
Expand Down
2 changes: 1 addition & 1 deletion db/compaction/compaction_job_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ class CompactionJobTestBase : public testing::Test {
} else if (table_type_ == TableTypeForTest::kMockTable) {
file_size = 10;
EXPECT_OK(mock_table_factory_->CreateMockTable(
env_, GenerateFileName(file_number), std::move(contents)));
env_, GenerateFileName(file_number), contents));
} else {
assert(false);
}
Expand Down
2 changes: 1 addition & 1 deletion third-party/gtest-1.8.1/fused-src/gtest/gtest-all.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8676,7 +8676,7 @@ static void StackLowerThanAddress(const void* ptr, bool* result) {
// Make sure AddressSanitizer does not tamper with the stack here.
GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
static bool StackGrowsDown() {
int dummy;
int dummy = 1;
bool result;
StackLowerThanAddress(&dummy, &result);
return result;
Expand Down

0 comments on commit af2b2ec

Please sign in to comment.