Package: jffi / 1.3.13+ds-1

disable-warnings-as-errors-for-jni.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Date: Tue, 25 Oct 2022 21:38:20 -0400
Subject: Disable warnings as errors for jni

Reviewed-By: Tim Potter <tpot@hp.com>
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)