aboutsummaryrefslogtreecommitdiffstats
path: root/meson
diff options
context:
space:
mode:
Diffstat (limited to 'meson')
-rw-r--r--meson/warnings/meson.build30
1 files changed, 3 insertions, 27 deletions
diff --git a/meson/warnings/meson.build b/meson/warnings/meson.build
index 215ce70..094b2e6 100644
--- a/meson/warnings/meson.build
+++ b/meson/warnings/meson.build
@@ -52,6 +52,9 @@
# Wtemplates
gcc_common_warnings = [
+ '-Wextra',
+ '-Wpedantic',
+
'-Walloc-zero',
'-Walloca',
'-Wanalyzer-too-complex',
@@ -60,40 +63,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',
@@ -101,7 +94,6 @@ gcc_common_warnings = [
'-Wstack-protector',
'-Wstrict-aliasing=3',
'-Wstrict-overflow=5',
- '-Wstring-compare',
'-Wstringop-overflow=3',
'-Wsuggest-attribute=cold',
'-Wsuggest-attribute=const',
@@ -113,11 +105,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',
@@ -137,18 +127,11 @@ if is_variable('cc') and not is_variable('all_c_warnings')
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',
]
@@ -182,16 +165,11 @@ if is_variable('cpp')
'-Wcomma-subscript',
'-Wconditionally-supported',
'-Wctor-dtor-privacy',
- '-Wdelete-non-virtual-dtor',
- '-Wdeprecated',
- '-Wdeprecated-copy',
'-Wdeprecated-copy-dtor',
'-Wdeprecated-enum-enum-conversion',
'-Wdeprecated-enum-float-conversion',
'-Weffc++',
- '-Wexpansion-to-defined',
'-Wextra-semi',
- '-Wimport',
'-Winvalid-imported-macros',
'-Wmismatched-tags',
'-Wmultiple-inheritance',
@@ -204,9 +182,7 @@ if is_variable('cpp')
'-Wredundant-move',
'-Wredundant-tags',
'-Wregister',
- '-Wsign-compare',
'-Wsign-promo',
- '-Wsized-deallocation',
'-Wstrict-null-sentinel',
'-Wsuggest-final-methods',
'-Wsuggest-final-types',