Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make make(1): enable -Wcast-qual for var.c again



details:   https://anonhg.NetBSD.org/src/rev/68e94f1b7759
branches:  trunk
changeset: 937236:68e94f1b7759
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Aug 12 19:21:05 2020 +0000

description:
make(1): enable -Wcast-qual for var.c again

When it became disabled 9 years ago, there were 15 instances of UNCONST
in the code.  These have been removed in the latest cleanup sessions.

Tested with GCC 5 from NetBSD 8 and GCC 10 from pkgsrc.

diffstat:

 usr.bin/make/Makefile |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 7b1c5936ab5b -r 68e94f1b7759 usr.bin/make/Makefile
--- a/usr.bin/make/Makefile     Wed Aug 12 19:14:38 2020 +0000
+++ b/usr.bin/make/Makefile     Wed Aug 12 19:21:05 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.87 2020/08/12 18:48:36 rillig Exp $
+#      $NetBSD: Makefile,v 1.88 2020/08/12 19:21:05 rillig Exp $
 #      @(#)Makefile    5.2 (Berkeley) 12/28/90
 
 PROG=  make
@@ -127,7 +127,6 @@
 .include <bsd.subdir.mk>
 
 CPPFLAGS+=     -DMAKE_NATIVE
-COPTS.var.c+=  -Wno-cast-qual
 COPTS.job.c+=  -Wno-format-nonliteral
 COPTS.parse.c+=        -Wno-format-nonliteral
 COPTS.var.c+=  -Wno-format-nonliteral



Home | Main Index | Thread Index | Old Index