File openjdk-6-src-b17-no-werror.patch of Package java-1_6_0-openjdk
Index: icedtea6-1.7/openjdk/hotspot/make/linux/makefiles/gcc.make =================================================================== --- icedtea6-1.7.orig/openjdk/hotspot/make/linux/makefiles/gcc.make +++ icedtea6-1.7/openjdk/hotspot/make/linux/makefiles/gcc.make @@ -111,7 +111,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/$@))