[Cogl] [PATCH 3/3] build: Use -Wundef when possible

Damien Lespiau damien.lespiau at gmail.com
Sat Dec 29 06:30:08 PST 2012


From: Damien Lespiau <damien.lespiau at intel.com>

This allows us to catch the use of undefined macros (that default to 0)
in preprocessor conditionals.
---
 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 32e95f7..e247bcb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -300,7 +300,7 @@ AC_ARG_ENABLE(
 
 MAINTAINER_COMPILER_FLAGS="-Wall -Wcast-align -Wuninitialized
                            -Wno-strict-aliasing -Wempty-body -Wformat
-                           -Wformat-security -Winit-self
+                           -Wformat-security -Winit-self -Wundef
                            -Wdeclaration-after-statement -Wvla
                            -Wpointer-arith -Wmissing-declarations"
 
-- 
1.7.7.5



More information about the Cogl mailing list