summaryrefslogtreecommitdiff
path: root/dev-java/jna/files/jna-5.11.0-no-Werror.patch
blob: 629a1a4452de5f4b61440729240241d0edb59fc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
https://bugs.gentoo.org/888813
--- a/native/Makefile
+++ b/native/Makefile
@@ -356,11 +356,11 @@ ifeq ($(CC),gcc)
     GCC_MAJOR_VERSION = $(shell gcc -dumpversion | cut -f 1 -d '.')
     ifneq ($(GCC_MAJOR_VERSION),4)
 	ifneq ($(GCC_MAJOR_VERSION),3)
-	    LOC_CC_OPTS=-Wno-unknown-warning-option -Werror -Wno-clobbered -Wno-unused-variable -Wno-alloca-larger-than
+	    LOC_CC_OPTS=-Wno-unknown-warning-option -Wno-clobbered -Wno-unused-variable -Wno-alloca-larger-than
 	endif
     endif
 else
-    LOC_CC_OPTS=-Wno-unknown-warning-option -Werror -Wno-clobbered -Wno-unused-variable
+    LOC_CC_OPTS=-Wno-unknown-warning-option -Wno-clobbered -Wno-unused-variable
 endif
 
 # Enable 64-bit builds if the arch demands it