[PATCH] GCC seriously needs to be less picky.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Don't tell me I have to catch the return value of write in a variable just
to later complain that I'm not doing anything with that variable.  That's
borderline sociopathic behavior.
---
 configure.ac |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 6e677b5..ab37f4a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -185,8 +185,12 @@ if test x$ipv6 = xyes ; then
     AC_SUBST(IPV6_CFLAGS, [-DENABLE_IPV6])
 fi
 
+# GCC likes to bomb out on some ridiculous warnings.  Add your favorites
+# here.
+SHUT_UP_GCC="-Wno-unused-but-set-variable"
+
 # Add remaining compiler flags we want to use
-CFLAGS="$CFLAGS -Wall -Werror -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
+CFLAGS="$CFLAGS -Wall -Werror $SHUT_UP_GCC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
 
 # Filter CFLAGS (remove duplicate flags)
 cflags_filter() {
-- 
1.7.1.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux