8027059: (sctp) fatal warnings overly restrictive with gcc 4.8.1
authorchegar
Wed, 23 Oct 2013 13:43:12 +0100
changeset 20900 c5e76df5aa74
parent 20899 3ff530a51a1b
child 20901 70f69e624fc9
8027059: (sctp) fatal warnings overly restrictive with gcc 4.8.1 Reviewed-by: mduigou, dxu, erikj, ihse
jdk/makefiles/lib/NioLibraries.gmk
--- a/jdk/makefiles/lib/NioLibraries.gmk	Wed Oct 23 13:06:37 2013 +0200
+++ b/jdk/makefiles/lib/NioLibraries.gmk	Wed Oct 23 13:43:12 2013 +0100
@@ -150,7 +150,8 @@
 
   ifneq ($(OPENJDK_TARGET_OS), macosx)
 
-    SCTP_WERROR := -Werror
+    # Suppress unused parameters required by exported JNI functions.
+    SCTP_WERROR := -Werror -Wno-error=unused-parameter
     ifeq ($(OPENJDK_TARGET_CPU_ARCH), ppc)
       SCTP_WERROR :=
     endif