aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2021-11-29 17:01:23 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2021-11-30 21:11:19 +0000
commit60404b415aa7b6b2818478c482da21fe28b445f6 (patch)
tree197a5b0b976f1ac5a244a4612a4af0783ebca73f
parent5df13f4fc209dd20ef7fa61c92532e3e38147d2a (diff)
downloadwaffle-60404b415aa7b6b2818478c482da21fe28b445f6.tar.gz
meson: Enable format-string-related compiler warnings
Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
-rw-r--r--meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index acf4e02..bc4609e 100644
--- a/meson.build
+++ b/meson.build
@@ -212,6 +212,8 @@ if cc.get_argument_syntax() == 'gcc'
add_project_arguments(
cc.get_supported_arguments([
'-Wno-unused-parameter',
+ '-Werror=format',
+ '-Werror=format-security',
'-Werror=incompatible-pointer-types',
'-Werror=init-self',
'-Werror=int-conversion',
@@ -220,6 +222,7 @@ if cc.get_argument_syntax() == 'gcc'
'-Werror=pointer-arith',
'-Werror=undef',
'-Werror=vla',
+ '-Wsuggest-attribute=format',
]),
language : ['c', 'cpp'],
)