Source-Changes-HG archive

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

[src/trunk]: src/lib/libutil -Wstringop-truncation is only gcc.



details:   https://anonhg.NetBSD.org/src/rev/a194300cb6ba
branches:  trunk
changeset: 455128:a194300cb6ba
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 08 18:50:34 2019 +0000

description:
-Wstringop-truncation is only gcc.

diffstat:

 lib/libutil/Makefile |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 6a7e9eebfeab -r a194300cb6ba lib/libutil/Makefile
--- a/lib/libutil/Makefile      Tue Oct 08 18:47:10 2019 +0000
+++ b/lib/libutil/Makefile      Tue Oct 08 18:50:34 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.83 2019/10/04 00:03:56 christos Exp $
+#      $NetBSD: Makefile,v 1.84 2019/10/08 18:50:34 christos Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/4/93
 
 USE_SHLIBDIR=  yes
@@ -39,10 +39,10 @@
 CPPFLAGS.sockaddr_snprintf.c+=-DHAVE_NETATALK_AT_H
 CPPFLAGS.sockaddr_snprintf.c+=-DHAVE_NET_IF_DL_H
 
-#.if ${HAVE_GCC:U0} > 7
+.if ${ACTIVE_CC} == "gcc"
 COPTS.logwtmp.c += -Wno-stringop-truncation
 COPTS.logwtmpx.c += -Wno-stringop-truncation
-#.endif
+.endif
 
 YPREFIX=__pd
 .PATH: ${NETBSDSRCDIR}/lib/libc/gen



Home | Main Index | Thread Index | Old Index