diff options
author | David Robillard <d@drobilla.net> | 2022-11-25 07:05:28 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-11-25 07:33:22 -0500 |
commit | 445a56f6d576f1d5bd3f61fd5e722722b563ee74 (patch) | |
tree | 6a49cef136f904a865c0c0dd7b35048ef8234288 /meson/warnings | |
parent | ae5a48ad57b56d2fefe167b4eb1a5f3c4111c2e0 (diff) | |
download | serd-445a56f6d576f1d5bd3f61fd5e722722b563ee74.tar.gz serd-445a56f6d576f1d5bd3f61fd5e722722b563ee74.tar.bz2 serd-445a56f6d576f1d5bd3f61fd5e722722b563ee74.zip |
Trim redundant warning flags enabled by -Wextra and -Wpedantic
Diffstat (limited to 'meson/warnings')
-rw-r--r-- | meson/warnings/meson.build | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/meson/warnings/meson.build b/meson/warnings/meson.build index 80d57749..c0e523b9 100644 --- a/meson/warnings/meson.build +++ b/meson/warnings/meson.build @@ -61,40 +61,30 @@ gcc_common_warnings = [ '-Wattribute-alias=2', '-Wbidi-chars=ucn', '-Wcast-align=strict', - '-Wcast-function-type', '-Wcast-qual', - '-Wclobbered', '-Wconversion', '-Wdate-time', '-Wdisabled-optimization', '-Wdouble-promotion', '-Wduplicated-branches', '-Wduplicated-cond', - '-Wempty-body', - '-Wendif-labels', '-Wfloat-equal', '-Wformat-overflow=2', '-Wformat-signedness', '-Wformat-truncation=2', '-Wformat=2', - '-Wignored-qualifiers', - '-Wimplicit-fallthrough=3', '-Winit-self', '-Winline', '-Winvalid-pch', '-Wlogical-op', '-Wmissing-declarations', - '-Wmissing-field-initializers', '-Wmissing-include-dirs', '-Wmultichar', '-Wnormalized=nfc', '-Wnull-dereference', '-Wopenacc-parallelism', - '-Woverlength-strings', '-Wpacked', - '-Wpacked-bitfield-compat', '-Wpadded', - '-Wpointer-arith', '-Wredundant-decls', '-Wshadow', '-Wshift-negative-value', @@ -102,7 +92,6 @@ gcc_common_warnings = [ '-Wstack-protector', '-Wstrict-aliasing=3', '-Wstrict-overflow=5', - '-Wstring-compare', '-Wstringop-overflow=3', '-Wsuggest-attribute=cold', '-Wsuggest-attribute=const', @@ -114,11 +103,9 @@ gcc_common_warnings = [ '-Wswitch-enum', '-Wtrampolines', '-Wtrivial-auto-var-init', - '-Wtype-limits', '-Wundef', '-Wuninitialized', '-Wunsafe-loop-optimizations', - '-Wunused', '-Wunused-const-variable=2', '-Wunused-macros', '-Wvector-operation-performance', @@ -145,18 +132,11 @@ if is_variable('cc') elif cc.get_id() == 'gcc' all_c_warnings += gcc_common_warnings + [ - '-Wabsolute-value', '-Wbad-function-cast', '-Wc++-compat', - '-Wenum-conversion', - '-Wjump-misses-init', - '-Wmissing-parameter-type', '-Wmissing-prototypes', '-Wnested-externs', - '-Wold-style-declaration', '-Wold-style-definition', - '-Woverride-init', - '-Wsign-compare', '-Wstrict-prototypes', '-Wunsuffixed-float-constants', ] |