[cogl/cogl-1.14: 104/174] build: Use -Wundef when possible



commit f51f2459ac3b2000f645e01b65cda1e6facea2be
Author: Damien Lespiau <damien lespiau intel com>
Date:   Sat Dec 29 03:07:52 2012 +0000

    build: Use -Wundef when possible
    
    This allows us to catch the use of undefined macros (that default to 0)
    in preprocessor conditionals.
    
    (cherry picked from commit 53ddc20fe9cd1400d18274e521932f84a4aecc5b)

 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4f5de0e..c9f5464 100644
--- a/configure.ac
+++ b/configure.ac
@@ -310,7 +310,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"
 



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