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.
This commit is contained in:
parent
872a77026d
commit
5a58c0c483
@ -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 @@ ${SRCS:M*.c:.c=.o}: ${HDRS}
|
||||
.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
|
||||
|
Loading…
Reference in New Issue
Block a user