[RFC 4/4] meson: Enable -Wundef

Andrea Bolognani posted 4 patches 1 year, 11 months ago
[RFC 4/4] meson: Enable -Wundef
Posted by Andrea Bolognani 1 year, 11 months ago
This will catch cases in which we try to use the value of a
macro that is only defined when the corresponding feature is
present.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
---
 meson.build | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meson.build b/meson.build
index 9628fbcd59..3a83fb992a 100644
--- a/meson.build
+++ b/meson.build
@@ -399,6 +399,7 @@ cc_flags += [
   '-Wno-typedef-redefinition',
   '-Wuninitialized',
   '-Wunknown-pragmas',
+  '-Wundef',
   '-Wunused',
   '-Wunused-but-set-parameter',
   '-Wunused-but-set-variable',
-- 
2.43.2
_______________________________________________
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-leave@lists.libvirt.org