diff options
author | Christian Faulhammer <opfer@gentoo.org> | 2007-11-04 11:05:47 +0000 |
---|---|---|
committer | Christian Faulhammer <opfer@gentoo.org> | 2007-11-04 11:05:47 +0000 |
commit | bf861e7b43ce9ffd8205402fb32695519c5b897f (patch) | |
tree | 5ba8232f814f3f70ff048a002b4f398e4fee7b64 /dev-libs/qof/files | |
parent | Version bump. (diff) | |
download | gentoo-2-bf861e7b43ce9ffd8205402fb32695519c5b897f.tar.gz gentoo-2-bf861e7b43ce9ffd8205402fb32695519c5b897f.tar.bz2 gentoo-2-bf861e7b43ce9ffd8205402fb32695519c5b897f.zip |
remove all warning CFLAGS as they can hinder successful compilation, see bugs 197999 and 196103
(Portage version: 2.1.3.16)
Diffstat (limited to 'dev-libs/qof/files')
-rw-r--r-- | dev-libs/qof/files/qof-0.7.2-remove_spurious_CFLAGS.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-libs/qof/files/qof-0.7.2-remove_spurious_CFLAGS.patch b/dev-libs/qof/files/qof-0.7.2-remove_spurious_CFLAGS.patch new file mode 100644 index 000000000000..38d9e49ffcc6 --- /dev/null +++ b/dev-libs/qof/files/qof-0.7.2-remove_spurious_CFLAGS.patch @@ -0,0 +1,54 @@ +--- /tmp/configure 2007-11-04 11:44:13.000000000 +0100 ++++ configure 2007-11-04 11:51:58.000000000 +0100 +@@ -26367,18 +26367,18 @@ + echo $ECHO_N "checking what extra warning flags to pass to the C compiler... $ECHO_C" >&6; } + if test ${GCC}x = yesx; then + warnFLAGS= +- CFLAGS="${CFLAGS} -g2 -Wall" ++ CFLAGS="${CFLAGS}" + # Check whether --enable-error-on-warning was given. + if test "${enable_error_on_warning+set}" = set; then + enableval=$enable_error_on_warning; case "${enableval}" in +- yes) warnFLAGS="${warnFLAGS} -Werror" ;; ++ yes) warnFLAGS="${warnFLAGS}" ;; + no) ;; + *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-error-on-warning" >&5 + echo "$as_me: error: bad value ${enableval} for --enable-error-on-warning" >&2;} + { (exit 1); exit 1; }; } ;; + esac + else +- warnFLAGS="${warnFLAGS} -Werror" ++ warnFLAGS="${warnFLAGS}" + fi + + GCC_VERSION=`${CC} -dumpversion` +@@ -26386,10 +26386,10 @@ + # This is gcc >= 3.x.x + if test `echo ${GCC_VERSION} | cut -d. -f2` -ge 4; then + # This is gcc >= 3.4.x +- warnFLAGS="${warnFLAGS} -Wdeclaration-after-statement" ++ warnFLAGS="${warnFLAGS}" + else if test `echo ${GCC_VERSION} | cut -d. -f1` -ge 4; then + # This is gcc == 4.x.x +- warnFLAGS="${warnFLAGS} -Wdeclaration-after-statement -Wno-pointer-sign" ++ warnFLAGS="${warnFLAGS}" + fi + fi + fi +@@ -26408,16 +26408,6 @@ + fi + + +-if test "$GCC" = "yes" -a "$set_compile_warnings" != "no"; then +- warnFLAGS="$warnFLAGS -Wcast-align -Wsign-compare \ +- -Wmissing-prototypes -Wmissing-declarations -Werror -Wmissing-include-dirs \ +- -Wstrict-prototypes -Winline -Wnested-externs -Wpointer-arith \ +- -Wmissing-field-initializers" +-fi +- +- +- +- + + DATADIR=`eval echo $datadir` + QSF_SCHEMA_DIR=`eval echo $DATADIR`"/xml/qof/qsf" |