diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 43 |
1 files changed, 39 insertions, 4 deletions
diff --git a/meson.build b/meson.build index 92d4a548..63f6e6ce 100644 --- a/meson.build +++ b/meson.build @@ -62,15 +62,50 @@ if cc.get_id() == 'msvc' test_c_only_flags = [] elif cc.get_id() == 'gcc' or cc.get_id() == 'clang' test_c_only_flags = [ + '-Wno-c++11-extensions', + '-Wno-missing-include-dirs', + '-Wno-typedef-redefinition', + '-Wduplicated-branches', + '-Wduplicated-cond', + '-Wformat=2', + '-Wformat-nonliteral', + '-Wformat-security', + '-Wignored-qualifiers', '-Wimplicit-function-declaration', - '-Wstrict-prototypes', - '-Wmissing-prototypes', + '-Wlogical-op', + '-Wmisleading-indentation', + '-Wmissing-format-attribute', + '-Wmissing-include-dirs', + '-Wmissing-noreturn', '-Wnested-externs', '-Wold-style-definition', - '-Wno-int-conversion', - '-Wno-discarded-qualifiers', + '-Wpointer-arith', + '-Wshadow', + '-Wstrict-prototypes', + '-Wswitch-default', + '-Wswitch-enum', + '-Wundef', + '-Wuninitialized', + '-Wunused', + '-Werror=address', + '-Werror=array-bounds', + '-Werror=empty-body', '-Werror=implicit', + '-Werror=implicit-fallthrough', + '-Werror=init-self', + '-Werror=int-to-pointer-cast', + '-Werror=main', + '-Werror=missing-braces', + '-Werror=missing-declarations', + '-Werror=missing-prototypes', + '-Werror=nonnull', '-Werror=pointer-to-int-cast', + '-Werror=redundant-decls', + '-Werror=return-type', + '-Werror=sequence-point', + '-Werror=trigraphs', + '-Werror=vla', + '-Werror=write-strings', ] test_cflags = test_c_only_flags + [ |