[RFC 4/4] meson: Enable -Wundef

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux