[gnumeric] configuration: Turn off -Wstrict-prototypes for the stable series.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] configuration: Turn off -Wstrict-prototypes for the stable series.
- Date: Tue, 16 Feb 2010 21:16:31 +0000 (UTC)
commit f560f1256ccd1435f10cb6ccd63b00ca4a2155c0
Author: Morten Welinder <terra gnome org>
Date: Tue Feb 16 16:14:07 2010 -0500
configuration: Turn off -Wstrict-prototypes for the stable series.
ChangeLog | 4 ++++
NEWS | 3 +++
configure.in | 15 +++++++++++++--
3 files changed, 20 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b9c75c5..ae3825e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-02-16 Morten Welinder <terra gnome org>
+
+ * configure.in: turn off -Wstrict-prototypes for stable builds.
+
2010-02-16 Jean Brefort <jean brefort normalesup org>
* plugins/excelplugins/excelplugins.c
diff --git a/NEWS b/NEWS
index 046e27d..a90fe35 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,9 @@ Gnumeric 1.10.1
Jean:
* Fix a crasher in excelplugin: don't call a NULL function. [#610012]
+Morten:
+ * Turn off -Wstrict-prototypes for the stable series.
+
--------------------------------------------------------------------------
Gnumeric 1.10.0
diff --git a/configure.in b/configure.in
index 5bd1db5..9b303b2 100644
--- a/configure.in
+++ b/configure.in
@@ -357,8 +357,19 @@ ifdef([GNOME_COMPILE_WARNINGS],
)
set_more_warnings=yes
if test "$GCC" = yes -a "x$set_more_warnings" != xno; then
- for option in -Wsign-compare -Wpointer-arith -Wnested-externs -Wchar-subscripts -Wwrite-strings -Wdeclaration-after-statement -Wnested-externs -Wmissing-noreturn -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-pointer-sign -Werror=format-security \
- -Wbitwise -Wcast-to-as -Wdefault-bitfield-sign -Wdo-while -Wparen-string -Wptr-subtraction-blows -Wreturn-void -Wtypesign ; do
+ warning_options="-Wsign-compare -Wpointer-arith -Wnested-externs \
+ -Wchar-subscripts -Wwrite-strings \
+ -Wdeclaration-after-statement -Wnested-externs \
+ -Wmissing-noreturn -Wmissing-prototypes \
+ -Wmissing-declarations -Wno-pointer-sign \
+ -Werror=format-security -Wbitwise -Wcast-to-as \
+ -Wdefault-bitfield-sign -Wdo-while -Wparen-string \
+ -Wptr-subtraction-blows -Wreturn-void -Wtypesign"
+ if test $gnumeric_devel = yes; then
+ dnl Avoid triggering a warning in gtk+ headers for stable.
+ warning_options="$warning_options -Wstrict-prototypes"
+ fi
+ for option in $warning_options ; do
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $option"
AC_MSG_CHECKING([whether gcc understands $option])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]