Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian GCC (http://www.linux-archive.org/debian-gcc/)
-   -   Don't build with -Werror (http://www.linux-archive.org/debian-gcc/585469-dont-build-werror.html)

Daniel Drake 10-09-2011 07:03 PM

Don't build with -Werror
 
This -Werror has caused
https://bugzilla.redhat.com/show_bug.cgi?id=715663

and some confusion at
https://bugzilla.redhat.com/show_bug.cgi?id=709161
because the equivalent F15 update build failed.

In general it doesn't seem like a good idea to bail out on warnings
as future versions of gcc will have a different idea of what should
be warned about.

On the other hand, this build failure actually found a real bug, so
I may not be making a convincing case here. Thoughts?
---
Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 3b8eb7b..d059ed1 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ DEBUGSRC := "/usr/src/debug"
DEBUGLIB := "/usr/lib/debug"
CC := gcc
PYVER := $(shell python -c "import sys; print sys.version[0:3]")
-CFLAGS := -g -I/usr/include/python$(PYVER) -Wall -Werror -fPIC $(OPTFLAGS) -fno-strict-aliasing
+CFLAGS := -g -I/usr/include/python$(PYVER) -Wall -fPIC $(OPTFLAGS) -fno-strict-aliasing
LDFLAGS := -shared

VERSION := $(shell awk '/Version:/ { print $$2 }' python-pyblock.spec)
--
1.7.6.4

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


All times are GMT. The time now is 03:48 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.