File openjdk-6-src-b20-no-werror.patch of Package java-1_6_0-openjdk.1035

Index: icedtea6-1.9.7/openjdk/hotspot/make/linux/makefiles/gcc.make
===================================================================
--- icedtea6-1.9.7.orig/openjdk/hotspot/make/linux/makefiles/gcc.make
+++ icedtea6-1.9.7/openjdk/hotspot/make/linux/makefiles/gcc.make
@@ -118,7 +118,7 @@ else
 endif
 
 # Compiler warnings are treated as errors
-WARNINGS_ARE_ERRORS = -Werror
+WARNINGS_ARE_ERRORS = -Wall
 
 # Except for a few acceptable ones
 # Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit
@@ -130,7 +130,8 @@ else
 ACCEPTABLE_WARNINGS = -Wpointer-arith -Wconversion -Wsign-compare
 endif
 
-CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS) $(ACCEPTABLE_WARNINGS)
+# gcc 4.5 produces a lot of errors expecially in autogenarated files, so turn -Weror off
+CFLAGS_WARN/DEFAULT = $(ACCEPTABLE_WARNINGS)
 # Special cases
 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@)) 
 
Index: icedtea6-1.9.7/openjdk/jdk/make/common/Defs-linux.gmk
===================================================================
--- icedtea6-1.9.7.orig/openjdk/jdk/make/common/Defs-linux.gmk
+++ icedtea6-1.9.7/openjdk/jdk/make/common/Defs-linux.gmk
@@ -153,9 +153,9 @@ GCC_WARNINGS	= -W -Wall $(GCC_STYLE) $(G
 #
 # Treat compiler warnings as errors, if warnings not allowed
 #
-ifeq ($(COMPILER_WARNINGS_FATAL),true)
-  GCC_WARNINGS += -Werror
-endif
+#ifeq ($(COMPILER_WARNINGS_FATAL),true)
+#  GCC_WARNINGS += -Wall
+#endif
 
 #
 # Misc compiler options
Index: icedtea6-1.9.7/openjdk/hotspot/make/linux/makefiles/adlc.make
===================================================================
--- icedtea6-1.9.7.orig/openjdk/hotspot/make/linux/makefiles/adlc.make
+++ icedtea6-1.9.7/openjdk/hotspot/make/linux/makefiles/adlc.make
@@ -62,7 +62,8 @@ CPPFLAGS += -DASSERT
 
 # CFLAGS_WARN holds compiler options to suppress/enable warnings.
 # Compiler warnings are treated as errors
-CFLAGS_WARN = -Werror
+# XXX: Who could fix all those stupid errors on gcc 4.5?
+#CFLAGS_WARN = -Wall
 CFLAGS += $(CFLAGS_WARN)
 
 OBJECTNAMES = \
Index: icedtea6-1.9.7/openjdk/corba/make/common/Defs-linux.gmk
===================================================================
--- icedtea6-1.9.7.orig/openjdk/corba/make/common/Defs-linux.gmk
+++ icedtea6-1.9.7/openjdk/corba/make/common/Defs-linux.gmk
@@ -143,9 +143,9 @@ GCC_WARNINGS	= -W -Wall $(GCC_STYLE) $(G
 #
 # Treat compiler warnings as errors, if warnings not allowed
 #
-ifeq ($(COMPILER_WARNINGS_FATAL),true)
-  GCC_WARNINGS += -Werror
-endif
+#ifeq ($(COMPILER_WARNINGS_FATAL),true)
+#  GCC_WARNINGS += -Wall
+#endif
 
 #
 # Misc compiler options
Index: icedtea6-1.9.7/openjdk/hotspot/make/solaris/makefiles/gcc.make
===================================================================
--- icedtea6-1.9.7.orig/openjdk/hotspot/make/solaris/makefiles/gcc.make
+++ icedtea6-1.9.7/openjdk/hotspot/make/solaris/makefiles/gcc.make
@@ -111,10 +111,10 @@ endif
 
 
 # Compiler warnings are treated as errors 
-WARNINGS_ARE_ERRORS = -Werror 
+WARNINGS_ARE_ERRORS = -Wall
 # Enable these warnings. See 'info gcc' about details on these options
 ADDITIONAL_WARNINGS = -Wpointer-arith -Wconversion -Wsign-compare 
-CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS) $(ADDITIONAL_WARNINGS) 
+CFLAGS_WARN/DEFAULT = $(ADDITIONAL_WARNINGS) 
 # Special cases 
 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@))  
 
openSUSE Build Service is sponsored by