Source-Changes-HG archive

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

[src/trunk]: src/lib/libpam/modules/pam_lastlog Only exclude gcc-8 warnings i...



details:   https://anonhg.NetBSD.org/src/rev/4c159aa9a707
branches:  trunk
changeset: 966016:4c159aa9a707
user:      kre <kre%NetBSD.org@localhost>
date:      Thu Oct 10 02:39:07 2019 +0000

description:
Only exclude gcc-8 warnings if the gcc we're using is gcc>=8

diffstat:

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

diffs (17 lines):

diff -r 42134b759f91 -r 4c159aa9a707 lib/libpam/modules/pam_lastlog/Makefile
--- a/lib/libpam/modules/pam_lastlog/Makefile   Thu Oct 10 02:35:45 2019 +0000
+++ b/lib/libpam/modules/pam_lastlog/Makefile   Thu Oct 10 02:39:07 2019 +0000
@@ -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 @@
 
 .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



Home | Main Index | Thread Index | Old Index