summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-03-14 17:01:36 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-03-14 17:01:36 (GMT)
commita2b767b244e03f00c6a987bbd9872796ed385f47 (patch)
treecd4f2f0c516948fad80493d1a7193b454f9153fc
parentc4231094c9c77c685371d726d28e65c0459486de (diff)
Turned off lots of warnings by using the _GNU_SOURCE compliance.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@54 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
-rw-r--r--ChangeLog18
-rw-r--r--configure.ac8
-rw-r--r--src/Makefile.am2
-rwxr-xr-xsrc/analysis/Makefile.am2
-rw-r--r--src/arch/Makefile.am2
-rw-r--r--src/arch/x86/Makefile.am2
-rwxr-xr-xsrc/common/Makefile.am2
-rw-r--r--src/format/Makefile.am2
-rw-r--r--src/format/dwarf/Makefile.am2
-rw-r--r--src/format/elf/Makefile.am2
-rwxr-xr-xsrc/format/java/Makefile.am2
-rw-r--r--src/format/mangling/Makefile.am2
-rwxr-xr-xsrc/format/pe/Makefile.am2
-rw-r--r--src/gtkext/Makefile.am2
-rwxr-xr-xsrc/panel/Makefile.am2
15 files changed, 38 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index 420ecf8..30e3904 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2009-03-14 Cyrille Bagard <nocbos@gmail.com>
+
+ * configure.ac:
+ * src/analysis/Makefile.am:
+ * src/arch/Makefile.am:
+ * src/arch/x86/Makefile.am:
+ * src/common/Makefile.am:
+ * src/format/dwarf/Makefile.am:
+ * src/format/elf/Makefile.am:
+ * src/format/java/Makefile.am:
+ * src/format/Makefile.am:
+ * src/format/mangling/Makefile.am:
+ * src/format/pe/Makefile.am:
+ * src/gtkext/Makefile.am:
+ * src/Makefile.am:
+ * src/panel/Makefile.am:
+ Turn off lots of warnings by using the _GNU_SOURCE compliance.
+
2009-03-11 Cyrille Bagard <nocbos@gmail.com>
* src/analysis/line.c:
diff --git a/configure.ac b/configure.ac
index 7a95ffd..1b7bdfa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -141,12 +141,18 @@ AC_SUBST(DEBUG_CFLAGS)
#-Wall -Wimplicit -Wreturn-type -Wunused -Wswitch -Wcomment -Wuninitialized -Wparentheses -Wpointer-arith -Wmissing-prototypes
-WARNING_FLAGS="-D_ISOC99_SOURCE -Wall -Wimplicit -Wreturn-type -Wunused -Wswitch -Wcomment -Wuninitialized -Wparentheses -Wpointer-arith -Wmissing-prototypes"
+WARNING_FLAGS="-Wall -Wimplicit -Wreturn-type -Wunused -Wswitch -Wcomment -Wuninitialized -Wparentheses -Wpointer-arith -Wmissing-prototypes"
#-Wcast-qual -Wconversion -Wsign-compare -Wdisabled-optimization
AC_SUBST(WARNING_FLAGS)
+# _XOPEN_SOURCE: strdup, snprintf
+# _ISOC99_SOURCE: INFINITY; NAN
+COMPLIANCE_FLAGS="-D_GNU_SOURCE"
+
+AC_SUBST(COMPLIANCE_FLAGS)
+
#--- Checks for GTK 2.0
PKG_CHECK_MODULES(LIBGTK,gtk+-2.0 >= 2.4.3,[libgtk_found=yes],[libgtk_found=no])
diff --git a/src/Makefile.am b/src/Makefile.am
index 30dc2d2..a3e4c74 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -20,7 +20,7 @@ INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/intl $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS
AM_CPPFLAGS =
-AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS)
+AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS)
openida_LDFLAGS = $(LIBGTK_LIBS) -L/usr/X11R6/lib -ldl -lm $(LIBXML_LIBS) `pkg-config --libs gthread-2.0`
diff --git a/src/analysis/Makefile.am b/src/analysis/Makefile.am
index e652f5d..df380b5 100755
--- a/src/analysis/Makefile.am
+++ b/src/analysis/Makefile.am
@@ -13,6 +13,6 @@ INCLUDES = $(LIBGTK_CFLAGS)
AM_CPPFLAGS =
-AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS)
+AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS)
SUBDIRS =
diff --git a/src/arch/Makefile.am b/src/arch/Makefile.am
index 7f231de..a7134b6 100644
--- a/src/arch/Makefile.am
+++ b/src/arch/Makefile.am
@@ -16,7 +16,7 @@ INCLUDES =
AM_CPPFLAGS =
-AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS)
+AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS)
SUBDIRS = x86
diff --git a/src/arch/x86/Makefile.am b/src/arch/x86/Makefile.am
index 42326c9..a061438 100644
--- a/src/arch/x86/Makefile.am
+++ b/src/arch/x86/Makefile.am
@@ -47,7 +47,7 @@ INCLUDES =
AM_CPPFLAGS =
-AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS)
+AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS)
SUBDIRS =
diff --git a/src/common/Makefile.am b/src/common/Makefile.am
index 6ad3fc3..5b21da3 100755
--- a/src/common/Makefile.am
+++ b/src/common/Makefile.am
@@ -13,6 +13,6 @@ INCLUDES =
AM_CPPFLAGS =
-AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS)
+AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS)
SUBDIRS =
diff --git a/src/format/Makefile.am b/src/format/Makefile.am
index 13f80a6..baf11de 100644
--- a/src/format/Makefile.am
+++ b/src/format/Makefile.am
@@ -14,6 +14,6 @@ INCLUDES = $(LIBGTK_CFLAGS)
AM_CPPFLAGS =
-AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS)
+AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS)
SUBDIRS = dwarf elf java mangling pe
diff --git a/src/format/dwarf/Makefile.am b/src/format/dwarf/Makefile.am
index 507a50e..0c36205 100644
--- a/src/format/dwarf/Makefile.am
+++ b/src/format/dwarf/Makefile.am
@@ -15,4 +15,4 @@ INCLUDES =
AM_CPPFLAGS =
-AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS)
+AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS)
diff --git a/src/format/elf/Makefile.am b/src/format/elf/Makefile.am
index 2240a35..03ebed2 100644
--- a/src/format/elf/Makefile.am
+++ b/src/format/elf/Makefile.am
@@ -15,4 +15,4 @@ INCLUDES =
AM_CPPFLAGS =
-AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS)
+AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS)
diff --git a/src/format/java/Makefile.am b/src/format/java/Makefile.am
index 2cb2326..f94466d 100755
--- a/src/format/java/Makefile.am
+++ b/src/format/java/Makefile.am
@@ -16,4 +16,4 @@ INCLUDES = $(LIBGTK_CFLAGS)
AM_CPPFLAGS =
-AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS)
+AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS)
diff --git a/src/format/mangling/Makefile.am b/src/format/mangling/Makefile.am
index 71a0923..3f7acc5 100644
--- a/src/format/mangling/Makefile.am
+++ b/src/format/mangling/Makefile.am
@@ -18,7 +18,7 @@ INCLUDES = $(LIBGTK_CFLAGS)
AM_CPPFLAGS =
-AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS)
+AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS)
# Automake fait les choses à moitié
diff --git a/src/format/pe/Makefile.am b/src/format/pe/Makefile.am
index 853e3f5..cf47c4e 100755
--- a/src/format/pe/Makefile.am
+++ b/src/format/pe/Makefile.am
@@ -12,4 +12,4 @@ INCLUDES =
AM_CPPFLAGS =
-AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS)
+AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS)
diff --git a/src/gtkext/Makefile.am b/src/gtkext/Makefile.am
index 5afd881..a42d77c 100644
--- a/src/gtkext/Makefile.am
+++ b/src/gtkext/Makefile.am
@@ -13,5 +13,5 @@ INCLUDES = $(LIBGTK_CFLAGS)
AM_CPPFLAGS =
-AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS)
+AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS)
diff --git a/src/panel/Makefile.am b/src/panel/Makefile.am
index cf70076..19079d5 100755
--- a/src/panel/Makefile.am
+++ b/src/panel/Makefile.am
@@ -12,6 +12,6 @@ INCLUDES = $(LIBGTK_CFLAGS)
AM_CPPFLAGS =
-AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS)
+AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS)
SUBDIRS =