Wed Oct 9 22:05:10 2019 UTC ()
no error for function cast


(christos)
diff -r1.19 -r1.20 src/lib/libpam/libpam/Makefile

cvs diff -r1.19 -r1.20 src/lib/libpam/libpam/Makefile (expand / switch to context diff)
--- src/lib/libpam/libpam/Makefile 2017/05/21 15:28:41 1.19
+++ src/lib/libpam/libpam/Makefile 2019/10/09 22:05:09 1.20
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2017/05/21 15:28:41 riastradh Exp $
+# $NetBSD: Makefile,v 1.20 2019/10/09 22:05:09 christos Exp $
 #-
 # Copyright (c) 1998 Juniper Networks, Inc.
 # All rights reserved.
@@ -204,6 +204,9 @@
 	    openpam_static.o ${STATIC_MODULE_LIBS}
 
 CWARNFLAGS.clang+=	-Wno-error=tautological-pointer-compare
+.if ${ACTIVE_CC} == "gcc"
+COPTS.openpam_dynamic.c += -Wno-error=cast-function-type
+.endif
 
 .include <bsd.lib.mk>
 .PATH.h: ${DIST}/include