[Xfce4-commits] <postler:master> Disable C compiler warnings in debug and full levels

Christian Dywan noreply at xfce.org
Tue Jun 8 03:06:01 CEST 2010


Updating branch refs/heads/master
         to 69b9ed389b57d15c22daa262af745b29c956398d (commit)
       from 160b65ed85906b71c3dfa702013f22d36762b7a0 (commit)

commit 69b9ed389b57d15c22daa262af745b29c956398d
Author: Christian Dywan <christian at twotoasts.de>
Date:   Mon Jun 7 22:21:56 2010 +0200

    Disable C compiler warnings in debug and full levels

 wscript |   20 ++------------------
 1 files changed, 2 insertions(+), 18 deletions(-)

diff --git a/wscript b/wscript
index 6398ad4..1a04b72 100644
--- a/wscript
+++ b/wscript
@@ -146,25 +146,9 @@ def configure (conf):
                     '-DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS '
                     '-DG_DISABLE_ASSERT'.split ())
         elif debug_level == 'debug':
-            conf.env.append_value ('CCFLAGS', '-Wall -O0 -g'.split ())
+            conf.env.append_value ('CCFLAGS', '-w -O0 -g'.split ())
         elif debug_level == 'full':
-            # -Wdeclaration-after-statement
-            # -Wmissing-declarations -Wmissing-prototypes
-            # -Wwrite-strings -Wunsafe-loop-optimizations -Wmissing-include-dirs
-            conf.env.append_value ('CCFLAGS',
-                '-Wall -Wextra -O1 -g '
-                '-Waggregate-return -Wno-unused-parameter '
-                '-Wno-missing-field-initializers '
-                '-Wredundant-decls -Wmissing-noreturn '
-                '-Wshadow -Wpointer-arith -Wcast-align '
-                '-Winline -Wformat-security '
-                '-Winit-self -Wundef -Wdeclaration-after-statement '
-                '-Wmissing-format-attribute -Wnested-externs '
-            # -DGSEAL_ENABLE
-                '-DG_ENABLE_DEBUG -DG_DISABLE_DEPRECATED '
-                '-DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED '
-                '-DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED '
-                '-DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE'.split ())
+            conf.env.append_value ('CCFLAGS', '-w -O1 -g -DG_ENABLE_DEBUG'.split ())
     if debug_level == 'full':
         conf.env.append_value ('VALAFLAGS', '--enable-checking'.split ())
     elif debug_level == 'none':



More information about the Xfce4-commits mailing list