提交 5b9ce1a3 编写于 作者: I Islam AbdelRahman

Merge pull request #820 from yuslepukhin/enable_compiler_warnings

Enable Windows warnings C4307 C4309 C4512 C4701
...@@ -58,7 +58,7 @@ add_custom_command(OUTPUT ${BUILD_VERSION_CC} ...@@ -58,7 +58,7 @@ add_custom_command(OUTPUT ${BUILD_VERSION_CC}
add_custom_target(GenerateBuildVersion DEPENDS ${BUILD_VERSION_CC}) add_custom_target(GenerateBuildVersion DEPENDS ${BUILD_VERSION_CC})
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} /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+ /W3 /WX /wd4127 /wd4200 /wd4244 /wd4267 /wd4305 /wd4307 /wd4309 /wd4512 /wd4701 /wd4702 /wd4800 /wd4804 /wd4996") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /FC /d2Zi+ /W3 /WX /wd4127 /wd4200 /wd4244 /wd4267 /wd4305 /wd4702 /wd4800 /wd4804 /wd4996")
# Used to run CI build and tests so we can run faster # Used to run CI build and tests so we can run faster
set(OPTIMIZE_DEBUG_DEFAULT 0) # Debug build is unoptimized by default use -DOPTDBG=1 to optimize set(OPTIMIZE_DEBUG_DEFAULT 0) # Debug build is unoptimized by default use -DOPTDBG=1 to optimize
......
...@@ -635,7 +635,7 @@ DEFINE_double(soft_rate_limit, 0.0, ""); ...@@ -635,7 +635,7 @@ DEFINE_double(soft_rate_limit, 0.0, "");
DEFINE_double(hard_rate_limit, 0.0, "DEPRECATED"); DEFINE_double(hard_rate_limit, 0.0, "DEPRECATED");
DEFINE_uint64(hard_pending_compaction_bytes_limit, 128u * 1024 * 1024 * 1024, DEFINE_uint64(hard_pending_compaction_bytes_limit, 128ull * 1024 * 1024 * 1024,
"Stop writes if pending compaction bytes exceed this number"); "Stop writes if pending compaction bytes exceed this number");
DEFINE_uint64(delayed_write_rate, 2097152u, DEFINE_uint64(delayed_write_rate, 2097152u,
......
...@@ -160,7 +160,7 @@ class PlainTableFactory : public TableFactory { ...@@ -160,7 +160,7 @@ class PlainTableFactory : public TableFactory {
const PlainTableOptions& GetTableOptions() const; const PlainTableOptions& GetTableOptions() const;
static const char kValueTypeSeqId0 = 0xFF; static const char kValueTypeSeqId0 = char(0xFF);
// Sanitizes the specified DB Options. // Sanitizes the specified DB Options.
Status SanitizeOptions(const DBOptions& db_opts, Status SanitizeOptions(const DBOptions& db_opts,
......
...@@ -225,7 +225,7 @@ DBOptions::DBOptions() ...@@ -225,7 +225,7 @@ DBOptions::DBOptions()
use_fsync(false), use_fsync(false),
db_log_dir(""), db_log_dir(""),
wal_dir(""), wal_dir(""),
delete_obsolete_files_period_micros(6 * 60 * 60 * 1000000UL), delete_obsolete_files_period_micros(6ULL * 60 * 60 * 1000000),
max_background_compactions(1), max_background_compactions(1),
max_subcompactions(1), max_subcompactions(1),
max_background_flushes(1), max_background_flushes(1),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册