Skip to content

Commit f0b3068

Browse files
tchaikovavikivity
authored andcommitted
build: cmake: disable unused-parameter, missing-field-initializers and deprecated-copy
-Wunused-parameter, -Wmissing-field-initializers and -Wdeprecated-copy warning options are enabled by -Wextra. the tree fails to build with these options enabled, before we address them if the warning are genuine problems, let's disable them. Signed-off-by: Kefu Chai <kefu.chai@scylladb.com> Closes scylladb#17352
1 parent 50ebce8 commit f0b3068

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmake/mode.common.cmake

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
set(disabled_warnings
22
c++11-narrowing
3+
deprecated-copy
34
mismatched-tags
5+
missing-field-initializers
46
overloaded-virtual
57
unsupported-friend
6-
enum-constexpr-conversion)
8+
enum-constexpr-conversion
9+
unused-parameter)
710
include(CheckCXXCompilerFlag)
811
foreach(warning ${disabled_warnings})
912
check_cxx_compiler_flag("-Wno-${warning}" _warning_supported_${warning})

0 commit comments

Comments
 (0)