Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ben-bot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (BENBOT_IPO)
set_target_properties (ben_bot PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
endif ()

add_feature_info (benbot_ipo BENBOT_IPO "Enable IPO/LTO")
add_feature_info (benbot_ipo BENBOT_IPO "Interprocedural optimization for BenBot")

#

Expand Down
2 changes: 1 addition & 1 deletion config/cmake/Coverage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ include (FeatureSummary)

add_feature_info (
coverage [[CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" AND NOT WIN32]]
"Enabled coverage reporting flags for debug configurations"
"Coverage reporting flags for debug configurations"
)

if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" AND NOT WIN32)
Expand Down
14 changes: 8 additions & 6 deletions config/cmake/Warnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
-Wconversion
-Werror=format-security
-Wextra
-Wformat
-Wformat=2
-Woverloaded-virtual
-Wimplicit-fallthrough
Expand Down Expand Up @@ -76,12 +75,14 @@ endif ()
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options (
--extra-warnings
-fcolor-diagnostics
-Wbool-conversion
-Wconditional-uninitialized
-Wconstant-conversion
-Wdouble-promotion
-Wextra-semi
-Wint-conversion
-Wnull-dereference
-Wold-style-cast
-Wnullable-to-nonnull-conversion
-Wshadow-all
-Wshift-sign-overflow
Expand All @@ -90,22 +91,23 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
-Weverything
)

if (WIN32)
add_compile_options (-Wno-reserved-macro-identifier)
endif ()

if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 21)
add_compile_options (-Wno-nrvo)
endif ()
elseif (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
add_compile_options (
-Waggressive-loop-optimizations
-Wduplicated-branches
-Wduplicated-cond
-Wmisleading-indentation
-Wlogical-op
-Wpointer-arith
-Wredundant-decls
-Wwrite-strings
-Wdelete-non-virtual-dtor
-Wsuggest-override
-Wtrampolines
-Wuseless-cast
-Wbidi-chars=any
#
-Wno-attributes
Expand Down
3 changes: 2 additions & 1 deletion libbenbot/src/engine/Bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ namespace {
search::Callbacks {
.onSearchStart = nullptr,
.onSearchComplete = [this](const SearchResult& res) { print_info(res); result = res; },
.onIteration = [this](const SearchResult& res) { print_info(res); }
.onIteration = [this](const SearchResult& res) { print_info(res); },
.onRootMove = nullptr
}
};
// clang-format on
Expand Down
2 changes: 1 addition & 1 deletion libutil/src/MulHi64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace {
};

auto get_hi_32_bits = [](const uint64_t value) noexcept {
return static_cast<uint64_t>(value >> UINT64_C(32));
return value >> UINT64_C(32);
};

const auto a_lo = get_lo_32_bits(first);
Expand Down
Loading