Module Name: src
Committed By: kre
Date: Thu Oct 10 02:37:40 UTC 2019
Modified Files:
src/lib/libpam/libpam: Makefile
Log Message:
Only exclude gcc-8 warnings when the gcc we're using is gcc>=8
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/lib/libpam/libpam/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libpam/libpam/Makefile
diff -u src/lib/libpam/libpam/Makefile:1.20 src/lib/libpam/libpam/Makefile:1.21
--- src/lib/libpam/libpam/Makefile:1.20 Wed Oct 9 22:05:09 2019
+++ src/lib/libpam/libpam/Makefile Thu Oct 10 02:37:40 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2019/10/09 22:05:09 christos Exp $
+# $NetBSD: Makefile,v 1.21 2019/10/10 02:37:40 kre Exp $
#-
# Copyright (c) 1998 Juniper Networks, Inc.
# All rights reserved.
@@ -204,7 +204,7 @@ openpam_static_modules.o: openpam_static
openpam_static.o ${STATIC_MODULE_LIBS}
CWARNFLAGS.clang+= -Wno-error=tautological-pointer-compare
-.if ${ACTIVE_CC} == "gcc"
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc"
COPTS.openpam_dynamic.c += -Wno-error=cast-function-type
.endif