meson.build: sort warning options

This commit is contained in:
Max Kellermann 2021-05-25 21:47:09 +02:00
parent 6aeb0e335b
commit 1375dcc4ec

View File

@ -64,13 +64,12 @@ test_cxxflags = test_common_flags + [
'-fno-threadsafe-statics', '-fno-threadsafe-statics',
'-fmerge-all-constants', '-fmerge-all-constants',
'-Wcast-qual',
'-Wextra-semi',
'-Wmissing-declarations', '-Wmissing-declarations',
'-Wshadow', '-Wshadow',
'-Wcast-qual',
'-Wwrite-strings',
'-Wextra-semi',
'-Wunused', '-Wunused',
'-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',
@ -84,10 +83,10 @@ test_cxxflags = test_common_flags + [
] ]
test_cflags = test_common_flags + [ test_cflags = test_common_flags + [
'-Wcast-qual',
'-Wmissing-prototypes', '-Wmissing-prototypes',
'-Wshadow', '-Wshadow',
'-Wstrict-prototypes', '-Wstrict-prototypes',
'-Wcast-qual',
'-Wwrite-strings', '-Wwrite-strings',
] ]