summaryrefslogtreecommitdiff
path: root/usr.bin/make/make_malloc.h
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2020-08-25 17:37:09 +0000
committerrillig <rillig@NetBSD.org>2020-08-25 17:37:09 +0000
commit2b36c1b462a173a2b68e47f549ae8193e3710117 (patch)
tree4b415fcc860d90e9ef3524298d22722e882003b0 /usr.bin/make/make_malloc.h
parent6bc4d9cec5334b1c74b1809ad5df88b11a8461b0 (diff)
make(1): allow make to be compiled in C90 mode
Since the inline functions are the only C99 feature used by now, setting USER_CFLAGS='-std=c90 -ansi -Dinline=' is enough for compiling make with a C90 compiler.
Diffstat (limited to 'usr.bin/make/make_malloc.h')
-rw-r--r--usr.bin/make/make_malloc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/make_malloc.h b/usr.bin/make/make_malloc.h
index fa35cca8c08..310bbabc8a4 100644
--- a/usr.bin/make/make_malloc.h
+++ b/usr.bin/make/make_malloc.h
@@ -1,4 +1,4 @@
-/* $NetBSD: make_malloc.h,v 1.7 2020/08/20 06:35:14 rillig Exp $ */
+/* $NetBSD: make_malloc.h,v 1.8 2020/08/25 17:37:09 rillig Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -45,7 +45,7 @@ char *bmake_strldup(const char *, size_t);
*
* The case of a NULL pointer happens especially often after Var_Value,
* since only environment variables need to be freed, but not others. */
-static inline void
+static inline void MAKE_ATTR_UNUSED
bmake_free(void *p)
{
if (p != NULL)