[file-roller] enable more warnings only when --enable-debug is used
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] enable more warnings only when --enable-debug is used
- Date: Thu, 28 Jun 2012 07:20:49 +0000 (UTC)
commit 46ce43fe9b36433a7d97972378a97e2dd0b5a46f
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Jun 28 09:19:38 2012 +0200
enable more warnings only when --enable-debug is used
configure.ac | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 5f5e7a2..93e5370 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,7 +59,11 @@ fi
dnl ===========================================================================
+if test x$ENABLE_DEBUG = xyes; then
WARN_CFLAGS="-Wall -Wcast-align -Wtype-limits -Wclobbered -Wempty-body -Wignored-qualifiers -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare"
+else
+WARN_CFLAGS="-Wall"
+fi
for option in $WARN_CFLAGS; do
SAVE_CFLAGS="$CFLAGS"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]