meson.build: merge duplicate warning flags to test_common_flags

This commit is contained in:
Max Kellermann 2021-06-01 11:03:41 +02:00
parent 6af7be4a45
commit fc54877c6b

View File

@ -47,8 +47,11 @@ test_global_common_flags = [
] ]
test_common_flags = [ test_common_flags = [
'-Wvla', '-Wcast-qual',
'-Wdouble-promotion', '-Wdouble-promotion',
'-Wshadow',
'-Wvla',
'-Wwrite-strings',
'-ffast-math', '-ffast-math',
'-ftree-vectorize', '-ftree-vectorize',
@ -64,18 +67,15 @@ test_cxxflags = test_common_flags + [
'-fno-threadsafe-statics', '-fno-threadsafe-statics',
'-fmerge-all-constants', '-fmerge-all-constants',
'-Wcast-qual',
'-Wcomma-subscript', '-Wcomma-subscript',
'-Wextra-semi', '-Wextra-semi',
'-Wmismatched-tags', '-Wmismatched-tags',
'-Wmissing-declarations', '-Wmissing-declarations',
'-Woverloaded-virtual', '-Woverloaded-virtual',
'-Wshadow',
'-Wsign-promo', '-Wsign-promo',
'-Wunused', '-Wunused',
'-Wvolatile', '-Wvolatile',
'-Wvirtual-inheritance', '-Wvirtual-inheritance',
'-Wwrite-strings',
# a vtable without a dtor is just fine # a vtable without a dtor is just fine
'-Wno-non-virtual-dtor', '-Wno-non-virtual-dtor',
@ -95,11 +95,8 @@ if compiler.get_id() != 'gcc' or compiler.version().version_compare('>=9')
endif endif
test_cflags = test_common_flags + [ test_cflags = test_common_flags + [
'-Wcast-qual',
'-Wmissing-prototypes', '-Wmissing-prototypes',
'-Wshadow',
'-Wstrict-prototypes', '-Wstrict-prototypes',
'-Wwrite-strings',
] ]
test_ldflags = [ test_ldflags = [