summaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>2023-06-03 09:09:01 +0000
committerlukem <lukem@NetBSD.org>2023-06-03 09:09:01 +0000
commitff6601a6cc5f10bccaf009e4e2b72c75774d7a4d (patch)
tree87fe4eb9bda81296a5ed95f9cf55e1a2bf1ecd9a /usr.bin/make
parentabaa8cb87058c08ad0688c849a28f4e007c07bbb (diff)
bsd.own.mk: rename GCC_NO_* to CC_WNO_*
Rename compiler-warning-disable variables from GCC_NO_warning to CC_WNO_warning where warning is the full warning name as used by the compiler. GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/make/Makefile b/usr.bin/make/Makefile
index 671426924b9..8c6e13a99b1 100644
--- a/usr.bin/make/Makefile
+++ b/usr.bin/make/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.123 2022/09/27 17:46:58 rillig Exp $
+# $NetBSD: Makefile,v 1.124 2023/06/03 09:09:17 lukem Exp $
# @(#)Makefile 5.2 (Berkeley) 12/28/90
PROG= make
@@ -88,11 +88,11 @@ LINTFLAGS+= -T # strict bool mode, available since 2021-01-11
LINTFLAGS+= -w # treat warnings as errors
CLEANFILES+= *.o # for filemon objects
-COPTS.arch.c+= ${GCC_NO_FORMAT_TRUNCATION}
-COPTS.dir.c+= ${GCC_NO_FORMAT_TRUNCATION}
+COPTS.arch.c+= ${CC_WNO_FORMAT_TRUNCATION}
+COPTS.dir.c+= ${CC_WNO_FORMAT_TRUNCATION}
COPTS.job.c+= -Wno-format-nonliteral # custom shell templates
-COPTS.main.c+= ${GCC_NO_FORMAT_TRUNCATION} ${GCC_NO_STRINGOP_TRUNCATION}
-COPTS.meta.c+= ${GCC_NO_FORMAT_TRUNCATION}
+COPTS.main.c+= ${CC_WNO_FORMAT_TRUNCATION} ${CC_WNO_STRINGOP_TRUNCATION}
+COPTS.meta.c+= ${CC_WNO_FORMAT_TRUNCATION}
COPTS.var.c+= -Wno-format-nonliteral # strftime
CPPFLAGS+= -DMAKE_NATIVE