diff --git a/meson.build b/meson.build index 125aad3..598bd05 100644 --- a/meson.build +++ b/meson.build @@ -17,16 +17,42 @@ cc = meson.get_compiler('c') add_project_arguments( cc.get_supported_arguments([ + '-Wbad-function-cast', + # '-Wcast-align', '-Wchar-subscripts', + # '-Wempty-body', '-Wformat=2', + # '-Wformat', + # '-Wformat-nonliteral', + # '-Wformat-security', + # '-Wformat-y2k', + '-Winit-self', + '-Winline', '-Wmissing-declarations', + '-Wmissing-include-dirs', '-Wmissing-prototypes', '-Wnested-externs', + '-Wold-style-definition', '-Wpointer-arith', + '-Wredundant-decls', '-Wshadow', '-Wsign-compare', '-Wstrict-prototypes', + '-Wswitch-enum', '-Wtype-limits', + '-Wundef', + '-Wuninitialized', + '-Wunused', + '-Wunused-variable', + '-Wwrite-strings', + '-fdiagnostics-color=auto', + # warnings disabled on purpose + '-Wno-unused-parameter', + '-Wno-unused-function', + '-Wno-deprecated-declarations', + # should be removed and the code fixed + '-Wno-incompatible-pointer-types-discards-qualifiers', + '-Wno-missing-field-initializers', ]), language: 'c', )