Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/nvi/usr.bin/nvi Bump WARNS to 5. Add -Wno-old-s...
details: https://anonhg.NetBSD.org/src/rev/747ce2593ef8
branches: trunk
changeset: 357668:747ce2593ef8
user: rin <rin%NetBSD.org@localhost>
date: Tue Nov 21 02:47:14 2017 +0000
description:
Bump WARNS to 5. Add -Wno-old-style-definition to regex.c for gcc.
diffstat:
external/bsd/nvi/usr.bin/nvi/Makefile | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r c61490bd4f58 -r 747ce2593ef8 external/bsd/nvi/usr.bin/nvi/Makefile
--- a/external/bsd/nvi/usr.bin/nvi/Makefile Tue Nov 21 02:45:03 2017 +0000
+++ b/external/bsd/nvi/usr.bin/nvi/Makefile Tue Nov 21 02:47:14 2017 +0000
@@ -1,14 +1,18 @@
-# $NetBSD: Makefile,v 1.15 2017/11/21 02:45:03 rin Exp $
+# $NetBSD: Makefile,v 1.16 2017/11/21 02:47:14 rin Exp $
.include <bsd.own.mk>
USE_WIDECHAR?=yes
-WARNS= 4
+WARNS= 5
COPTS.exf.c+= -Wno-format-nonliteral
COPTS.msg.c+= -Wno-format-nonliteral
-.if ${USE_WIDECHAR} != "yes"
+.if ${USE_WIDECHAR} == "yes"
+.if ${ACTIVE_CC} == "gcc"
+COPTS.regexec.c+= -Wno-old-style-definition
+.endif
+.else
COPTS.v_increment.c+= -Wno-format-nonliteral
CWARNFLAGS.gcc+= -Wno-unused
CWARNFLAGS.clang+= -Wno-unsequenced
Home |
Main Index |
Thread Index |
Old Index