[gucharmap] build: Don't use gnome-common macros for compiler warnings
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gucharmap] build: Don't use gnome-common macros for compiler warnings
- Date: Mon, 19 Dec 2011 15:33:08 +0000 (UTC)
commit 5de316b8a152e34f9dac9ec23d4f724cb0488bd8
Author: Christian Persch <chpe gnome org>
Date: Mon Dec 19 15:03:13 2011 +0100
build: Don't use gnome-common macros for compiler warnings
configure.ac | 19 +++++++++++++++++--
gucharmap/Makefile.am | 4 ----
2 files changed, 17 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6ad8a6a..a6b4057 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,8 +62,6 @@ AM_PROG_CC_C_O
# checks for stuff
GNOME_COMMON_INIT
GNOME_DEBUG_CHECK
-GNOME_COMPILE_WARNINGS([maximum])
-#GNOME_MAINTAINER_MODE_DEFINES
# check for win32
case "$host" in
@@ -229,6 +227,23 @@ fi
AC_SUBST([BSYMBOLIC_LDFLAG])
+# ***********
+# Compilation
+# ***********
+
+CC_CHECK_CFLAGS_APPEND([ \
+ -Wall -Wextra \
+ -Wformat-nonliteral -Werror=format-security \
+ -Wsign-compare -Werror=implicit-function-declaration \
+ -Wpointer-arith -Wwrite-strings -Wstrict-prototypes \
+ -Waggregate-return -Wcast-align -Wimplicit -Wuninitialized \
+ -Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
+ -Wpacked -Wmissing-format-attribute -Wshadow \
+ -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations \
+ -Wdeclaration-after-statement -Wold-style-definition \
+ -Wno-missing-field-initializers -Wno-unused-parameter \
+ -fno-common -Wno-switch-enum])
+
# ***************
# API & User Docs
# ***************
diff --git a/gucharmap/Makefile.am b/gucharmap/Makefile.am
index e3c3763..c40f4b8 100644
--- a/gucharmap/Makefile.am
+++ b/gucharmap/Makefile.am
@@ -77,12 +77,10 @@ libgucharmap GUCHARMAP_LIBRARY_SUFFIX_U@_la_CPPFLAGS = \
-DGDK_DISABLE_SINGLE_INCLUDES \
-DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES \
-DGTK_DISABLE_SINGLE_INCLUDES \
- $(DISABLE_DEPRECATED) \
$(AM_CPPFLAGS)
libgucharmap GUCHARMAP_LIBRARY_SUFFIX_U@_la_CFLAGS = \
$(GTK_CFLAGS) \
- $(WARN_CFLAGS) \
$(AM_CFLAGS)
libgucharmap GUCHARMAP_LIBRARY_SUFFIX_U@_la_LDFLAGS = \
@@ -145,13 +143,11 @@ gucharmap_CPPFLAGS = \
-DGDK_DISABLE_SINGLE_INCLUDES \
-DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES \
-DGTK_DISABLE_SINGLE_INCLUDES \
- $(DISABLE_DEPRECATED) \
$(AM_CPPFLAGS)
gucharmap_CFLAGS = \
$(GTK_CFLAGS) \
$(GCONF_CFLAGS) \
- $(WARN_CFLAGS) \
$(AM_CFLAGS)
gucharmap_LDFLAGS = \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]