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 We always need -Wno-format-nonl...



details:   https://anonhg.NetBSD.org/src/rev/f68b561521d8
branches:  trunk
changeset: 827967:f68b561521d8
user:      rin <rin%NetBSD.org@localhost>
date:      Tue Nov 21 02:44:13 2017 +0000

description:
We always need -Wno-format-nonliteral for v_increment.c whether compiler is
gcc or clang.

diffstat:

 external/bsd/nvi/usr.bin/nvi/Makefile |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r a0254de4d258 -r f68b561521d8 external/bsd/nvi/usr.bin/nvi/Makefile
--- a/external/bsd/nvi/usr.bin/nvi/Makefile     Tue Nov 21 02:42:08 2017 +0000
+++ b/external/bsd/nvi/usr.bin/nvi/Makefile     Tue Nov 21 02:44:13 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.13 2017/11/21 02:42:08 rin Exp $
+#      $NetBSD: Makefile,v 1.14 2017/11/21 02:44:13 rin Exp $
 
 .include <bsd.own.mk>
 
@@ -10,11 +10,9 @@
 COPTS.msg.c+=          -Wno-format-nonliteral
 CWARNFLAGS.clang+=     -Wno-uninitialized -Wno-format-security
 .if ${USE_WIDECHAR} != "yes"
+COPTS.v_increment.c+=  -Wno-format-nonliteral
 CWARNFLAGS.gcc+=       -Wno-unused
 CWARNFLAGS.clang+=     -Wno-unsequenced
-.ifdef HAVE_GCC
-COPTS.v_increment.c+=  -Wno-format-nonliteral
-.endif
 .endif
 
 CPPFLAGS+=-I${DIST}/include -I${.CURDIR} -I. -DGTAGS



Home | Main Index | Thread Index | Old Index