From cde58fd20a6e0a3f83ad3dafde2a0e89994c6e29 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Wed, 3 Mar 2021 14:01:40 +0200 Subject: [PATCH] build: add -Wundef There is no case in pre-processor directives where would like to have undefined identifiers be silently replaced with a zero. This warning can discover typos and forgotten includes. Signed-off-by: Pekka Paalanen --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 5a2db937..44efeaee 100644 --- a/meson.build +++ b/meson.build @@ -63,6 +63,7 @@ global_args_maybe = [ '-Wno-shift-negative-value', # required due to Pixman '-Wno-missing-field-initializers', '-Wno-pedantic', + '-Wundef', '-fvisibility=hidden', ] foreach a : global_args_maybe