build/meson: sort compiler flags in "meson.build"

Also remove duplicates.
This commit is contained in:
Thomas Haller
2022-11-03 10:18:04 +01:00
parent c884d4d347
commit f3682588b2

View File

@@ -184,11 +184,14 @@ common_flags += cc.get_supported_arguments([
'-Wmissing-declarations',
'-Wmissing-include-dirs',
'-Wmissing-prototypes',
'-Wparentheses-equality',
'-Wpointer-arith',
'-Wshadow',
'-Wshift-negative-value',
'-Wstrict-prototypes',
'-Wtypedef-redefinition',
'-Wundef',
'-Wunknown-attributes',
'-Wvla',
'-Wno-duplicate-decl-specifier',
'-Wno-format-truncation',
@@ -200,13 +203,6 @@ common_flags += cc.get_supported_arguments([
'-Wno-tautological-constant-out-of-range-compare',
'-Wno-unknown-pragmas',
'-Wno-unused-parameter',
'-Wparentheses-equality',
'-Wpointer-arith',
'-Wshadow',
'-Wstrict-prototypes',
'-Wtypedef-redefinition',
'-Wundef',
'-Wunknown-attributes',
'-fno-strict-aliasing',
])