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:
Kefu Chai
2023-11-17 17:49:44 +08:00
parent 15bfa09454
commit 781b7de502
2 changed files with 2 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ add_compile_options(
"-Werror"
"-Wno-error=deprecated-declarations"
"-Wimplicit-fallthrough"
"-Wignore-qualifiers"
${_supported_warnings})
function(default_target_arch arch)

View File

@@ -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',