From: Debian Java Maintainers Date: Tue, 25 Oct 2022 21:38:20 -0400 Subject: Disable warnings as errors for jni Reviewed-By: Tim Potter Last-Update: 2015-02-25 Remove the default use of -Werror when building the jni native extensions as expecting a warning-free build of cross-platform software is a bit of a fairy tale really. --- jni/GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: jffi/jni/GNUmakefile =================================================================== --- jffi.orig/jni/GNUmakefile +++ jffi/jni/GNUmakefile @@ -63,7 +63,7 @@ JFLAGS = -fno-omit-frame-pointer -fno-st OFLAGS = -O2 $(JFLAGS) # MacOS headers aren't completely warning free, so turn them off -WERROR = -Werror +WERROR = ifneq ($(OS),darwin) ifneq ($(OS),aix) WFLAGS += -Wundef $(WERROR)