summaryrefslogtreecommitdiff
path: root/usr.bin/make/make.h
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-09-14 13:32:11 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-09-14 13:32:11 +0000
commit28df6ffac43fe362569ebdb390fe1e7dd994c877 (patch)
tree306f06672ccb6c8ba9c67d1b19544e6b70551f16 /usr.bin/make/make.h
parent912ebd4a27f63943fb63420edfac122743be32ca (diff)
Some systematic clean-up.
- UNUSED macro that expands to __attribute__((unused)) for gcc - move rcsid around so that they can be tagged UNUSED. - activate -Wunused. - use UNUSED instead of kludgy junk for function arguments. - add extern to all extern prototypes. - update comments in lst.h. - clean up var.c a little bit, constifying arguments, updating comments...
Diffstat (limited to 'usr.bin/make/make.h')
-rw-r--r--usr.bin/make/make.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/make/make.h b/usr.bin/make/make.h
index ccac829a150..1e95e09ff21 100644
--- a/usr.bin/make/make.h
+++ b/usr.bin/make/make.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: make.h,v 1.24 2000/06/23 16:27:29 espie Exp $ */
+/* $OpenBSD: make.h,v 1.25 2000/09/14 13:32:07 espie Exp $ */
/* $NetBSD: make.h,v 1.15 1997/03/10 21:20:00 christos Exp $ */
/*
@@ -55,6 +55,12 @@
#include <string.h>
#include <ctype.h>
+#ifdef __GNUC__
+#define UNUSED __attribute__((unused))
+#else
+#define UNUSED
+#endif
+
#if !defined(MAKE_BOOTSTRAP) && defined(BSD4_4)
# include <sys/cdefs.h>
#else