File tree Expand file tree Collapse file tree 5 files changed +13
-10
lines changed
Expand file tree Collapse file tree 5 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ if (BENBOT_IPO)
3131 set_target_properties (ben_bot PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE )
3232endif ()
3333
34- add_feature_info (benbot_ipo BENBOT_IPO "Enable IPO/LTO " )
34+ add_feature_info (benbot_ipo BENBOT_IPO "Interprocedural optimization for BenBot " )
3535
3636#
3737
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ include (FeatureSummary)
1818
1919add_feature_info (
2020 coverage [[CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" AND NOT WIN32]]
21- "Enabled coverage reporting flags for debug configurations"
21+ "Coverage reporting flags for debug configurations"
2222)
2323
2424if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" AND NOT WIN32 )
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
4444 -Wconversion
4545 -Werror=format-security
4646 -Wextra
47- -Wformat
4847 -Wformat=2
4948 -Woverloaded-virtual
5049 -Wimplicit-fallthrough
@@ -76,12 +75,14 @@ endif ()
7675if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
7776 add_compile_options (
7877 --extra-warnings
79- -fcolor-diagnostics
8078 -Wbool-conversion
8179 -Wconditional-uninitialized
8280 -Wconstant-conversion
81+ -Wdouble-promotion
8382 -Wextra-semi
8483 -Wint-conversion
84+ -Wnull-dereference
85+ -Wold-style-cast
8586 -Wnullable-to-nonnull-conversion
8687 -Wshadow-all
8788 -Wshift-sign-overflow
@@ -90,22 +91,23 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
9091 -Weverything
9192 )
9293
93- if (WIN32 )
94- add_compile_options (-Wno-reserved-macro-identifier)
95- endif ()
96-
9794 if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 21)
9895 add_compile_options (-Wno-nrvo)
9996 endif ()
10097elseif (CMAKE_CXX_COMPILER_ID MATCHES "GNU" )
10198 add_compile_options (
10299 -Waggressive-loop-optimizations
100+ -Wduplicated-branches
101+ -Wduplicated-cond
102+ -Wmisleading-indentation
103+ -Wlogical-op
103104 -Wpointer-arith
104105 -Wredundant-decls
105106 -Wwrite-strings
106107 -Wdelete-non-virtual-dtor
107108 -Wsuggest-override
108109 -Wtrampolines
110+ -Wuseless-cast
109111 -Wbidi-chars=any
110112 #
111113 -Wno-attributes
Original file line number Diff line number Diff line change @@ -111,7 +111,8 @@ namespace {
111111 search::Callbacks {
112112 .onSearchStart = nullptr ,
113113 .onSearchComplete = [this ](const SearchResult& res) { print_info (res); result = res; },
114- .onIteration = [this ](const SearchResult& res) { print_info (res); }
114+ .onIteration = [this ](const SearchResult& res) { print_info (res); },
115+ .onRootMove = nullptr
115116 }
116117 };
117118 // clang-format on
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ namespace {
2525 };
2626
2727 auto get_hi_32_bits = [](const uint64_t value) noexcept {
28- return static_cast < uint64_t >( value >> UINT64_C (32 ) );
28+ return value >> UINT64_C (32 );
2929 };
3030
3131 const auto a_lo = get_lo_32_bits (first);
You can’t perform that action at this time.
0 commit comments