build: enable -Wignore-qualifiers
`-Wignore-qualifiers` is included by -Wextra. but we are not there yet, with this change, we can keep the changes introducing -Wignore-qualifiers warnings out of the repo, before applying `-Wextra`. Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
This commit is contained in:
@@ -16,6 +16,7 @@ add_compile_options(
|
||||
"-Werror"
|
||||
"-Wno-error=deprecated-declarations"
|
||||
"-Wimplicit-fallthrough"
|
||||
"-Wignore-qualifiers"
|
||||
${_supported_warnings})
|
||||
|
||||
function(default_target_arch arch)
|
||||
|
||||
@@ -1506,6 +1506,7 @@ def get_warning_options(cxx):
|
||||
'-Wall',
|
||||
'-Werror',
|
||||
'-Wimplicit-fallthrough',
|
||||
'-Wignore-qualifiers',
|
||||
'-Wno-mismatched-tags', # clang-only
|
||||
'-Wno-c++11-narrowing',
|
||||
'-Wno-overloaded-virtual',
|
||||
|
||||
Reference in New Issue
Block a user