[gimp] Add some extra compiler warnings to CFLAGS
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Add some extra compiler warnings to CFLAGS
- Date: Fri, 18 Mar 2011 16:50:11 +0000 (UTC)
commit f47645dc51d2b1b27afa32cfab54abb2e59570e8
Author: Mukund Sivaraman <muks banu com>
Date: Fri Mar 18 22:16:31 2011 +0530
Add some extra compiler warnings to CFLAGS
configure.ac | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index cf60fa8..c59b9af 100644
--- a/configure.ac
+++ b/configure.ac
@@ -338,6 +338,9 @@ CFLAGS="$CFLAGS $extra_warnings"
GIMP_DETECT_CFLAGS(extra_warnings, '-Wmissing-declarations')
CFLAGS="$CFLAGS $extra_warnings"
+GIMP_DETECT_CFLAGS(extra_warnings, '-Wredundant-decls')
+CFLAGS="$CFLAGS $extra_warnings"
+
GIMP_DETECT_CFLAGS(extra_warnings, '-Winit-self')
CFLAGS="$CFLAGS $extra_warnings"
@@ -356,6 +359,24 @@ CFLAGS="$CFLAGS $extra_warnings"
GIMP_DETECT_CFLAGS(extra_warnings, '-Wformat-non-literal')
CFLAGS="$CFLAGS $extra_warnings"
+GIMP_DETECT_CFLAGS(extra_warnings, '-Wundef')
+CFLAGS="$CFLAGS $extra_warnings"
+
+GIMP_DETECT_CFLAGS(extra_warnings, '-Wshadow')
+CFLAGS="$CFLAGS $extra_warnings"
+
+GIMP_DETECT_CFLAGS(extra_warnings, '-Wlogical-op')
+CFLAGS="$CFLAGS $extra_warnings"
+
+GIMP_DETECT_CFLAGS(extra_warnings, '-Wendif-labels')
+CFLAGS="$CFLAGS $extra_warnings"
+
+GIMP_DETECT_CFLAGS(extra_warnings, '-Wcast-align')
+CFLAGS="$CFLAGS $extra_warnings"
+
+GIMP_DETECT_CFLAGS(extra_warnings, '-Wwrite-strings')
+CFLAGS="$CFLAGS $extra_warnings"
+
# Ensure MSVC-compatible struct packing convention is used when
# compiling for Win32 with gcc.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]