Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libpam/libpam use GCC_NO_CAST_FUNCTION_TYPE.



details:   https://anonhg.NetBSD.org/src/rev/416311d033f9
branches:  trunk
changeset: 455304:416311d033f9
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Oct 13 21:24:37 2019 +0000

description:
use GCC_NO_CAST_FUNCTION_TYPE.

diffstat:

 lib/libpam/libpam/Makefile |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (20 lines):

diff -r fd2818f953a6 -r 416311d033f9 lib/libpam/libpam/Makefile
--- a/lib/libpam/libpam/Makefile        Sun Oct 13 21:18:20 2019 +0000
+++ b/lib/libpam/libpam/Makefile        Sun Oct 13 21:24:37 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2019/10/10 02:37:40 kre Exp $
+# $NetBSD: Makefile,v 1.22 2019/10/13 21:24:37 mrg Exp $
 #-
 # Copyright (c) 1998 Juniper Networks, Inc.
 # All rights reserved.
@@ -204,9 +204,7 @@
            openpam_static.o ${STATIC_MODULE_LIBS}
 
 CWARNFLAGS.clang+=     -Wno-error=tautological-pointer-compare
-.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc"
-COPTS.openpam_dynamic.c += -Wno-error=cast-function-type
-.endif
+COPTS.openpam_dynamic.c+=      ${GCC_NO_CAST_FUNCTION_TYPE}
 
 .include <bsd.lib.mk>
 .PATH.h: ${DIST}/include



Home | Main Index | Thread Index | Old Index