Module Name: src
Committed By: kre
Date: Thu Oct 10 02:39:07 UTC 2019
Modified Files:
src/lib/libpam/modules/pam_lastlog: Makefile
Log Message:
Only exclude gcc-8 warnings if the gcc we're using is gcc>=8
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libpam/modules/pam_lastlog/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/modules/pam_lastlog/Makefile
diff -u src/lib/libpam/modules/pam_lastlog/Makefile:1.9 src/lib/libpam/modules/pam_lastlog/Makefile:1.10
--- src/lib/libpam/modules/pam_lastlog/Makefile:1.9 Wed Oct 9 22:05:35 2019
+++ src/lib/libpam/modules/pam_lastlog/Makefile Thu Oct 10 02:39:07 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2019/10/09 22:05:35 christos Exp $
+# $NetBSD: Makefile,v 1.10 2019/10/10 02:39:07 kre Exp $
# Copyright 2001 Mark R V Murray
# All rights reserved.
#
@@ -35,6 +35,6 @@ LIBDPLIBS+= util ${.CURDIR}/../../../lib
.include "${.CURDIR}/../mod.mk"
-.if ${ACTIVE_CC} == "gcc"
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc"
COPTS.pam_lastlog.c += -Wno-stringop-truncation
.endif