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/02c0ef9913d8
branches:  trunk
changeset: 1004051:02c0ef9913d8
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 05fcb8e0e42b -r 02c0ef9913d8 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