summaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2011-09-16 15:38:03 +0000
committerjoerg <joerg@NetBSD.org>2011-09-16 15:38:03 +0000
commit0bf8553d3c69575f5a2c8288661d1c1feccc5fd8 (patch)
tree2627b320e3464d065dcdcbe5786a6c26e2463068 /usr.bin/make
parent6e78c32e77d41adb6477379ecc3d1900f6304435 (diff)
Use __dead consistently. If it doesn't exist, define it away.
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/compat.c8
-rw-r--r--usr.bin/make/job.c12
-rw-r--r--usr.bin/make/main.c8
-rw-r--r--usr.bin/make/make.c8
-rw-r--r--usr.bin/make/make.h6
-rw-r--r--usr.bin/make/nonints.h4
6 files changed, 25 insertions, 21 deletions
diff --git a/usr.bin/make/compat.c b/usr.bin/make/compat.c
index 4cc2586cd07..099ba39c8d3 100644
--- a/usr.bin/make/compat.c
+++ b/usr.bin/make/compat.c
@@ -1,4 +1,4 @@
-/* $NetBSD: compat.c,v 1.83 2011/08/14 13:06:09 christos Exp $ */
+/* $NetBSD: compat.c,v 1.84 2011/09/16 15:38:03 joerg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: compat.c,v 1.83 2011/08/14 13:06:09 christos Exp $";
+static char rcsid[] = "$NetBSD: compat.c,v 1.84 2011/09/16 15:38:03 joerg Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)compat.c 8.2 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: compat.c,v 1.83 2011/08/14 13:06:09 christos Exp $");
+__RCSID("$NetBSD: compat.c,v 1.84 2011/09/16 15:38:03 joerg Exp $");
#endif
#endif /* not lint */
#endif
@@ -121,7 +121,7 @@ static char meta[256];
static GNode *curTarg = NULL;
static GNode *ENDNode;
-static void CompatInterrupt(int);
+static void CompatInterrupt(int) __dead;
static void
Compat_Init(void)
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c
index 739f44f2620..d370887a5a4 100644
--- a/usr.bin/make/job.c
+++ b/usr.bin/make/job.c
@@ -1,4 +1,4 @@
-/* $NetBSD: job.c,v 1.159 2011/08/28 03:54:07 sjg Exp $ */
+/* $NetBSD: job.c,v 1.160 2011/09/16 15:38:03 joerg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: job.c,v 1.159 2011/08/28 03:54:07 sjg Exp $";
+static char rcsid[] = "$NetBSD: job.c,v 1.160 2011/09/16 15:38:03 joerg Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)job.c 8.2 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: job.c,v 1.159 2011/08/28 03:54:07 sjg Exp $");
+__RCSID("$NetBSD: job.c,v 1.160 2011/09/16 15:38:03 joerg Exp $");
#endif
#endif /* not lint */
#endif
@@ -352,7 +352,7 @@ static int JobStart(GNode *, int);
static char *JobOutput(Job *, char *, char *, int);
static void JobDoOutput(Job *, Boolean);
static Shell *JobMatchShell(const char *);
-static void JobInterrupt(int, int);
+static void JobInterrupt(int, int) __dead;
static void JobRestartJobs(void);
static void JobTokenAdd(void);
static void JobSigLock(sigset_t *);
@@ -523,14 +523,14 @@ JobContinueSig(int signo __unused)
*
*-----------------------------------------------------------------------
*/
-static void
+__dead static void
JobPassSig_int(int signo)
{
/* Run .INTERRUPT target then exit */
JobInterrupt(TRUE, signo);
}
-static void
+__dead static void
JobPassSig_term(int signo)
{
/* Dont run .INTERRUPT target then exit */
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c
index c54455326bc..7ad823e5319 100644
--- a/usr.bin/make/main.c
+++ b/usr.bin/make/main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.197 2011/05/04 20:38:31 sjg Exp $ */
+/* $NetBSD: main.c,v 1.198 2011/09/16 15:38:04 joerg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,7 +69,7 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: main.c,v 1.197 2011/05/04 20:38:31 sjg Exp $";
+static char rcsid[] = "$NetBSD: main.c,v 1.198 2011/09/16 15:38:04 joerg Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
@@ -81,7 +81,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993\
#if 0
static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: main.c,v 1.197 2011/05/04 20:38:31 sjg Exp $");
+__RCSID("$NetBSD: main.c,v 1.198 2011/09/16 15:38:04 joerg Exp $");
#endif
#endif /* not lint */
#endif
@@ -178,7 +178,7 @@ static const char * tracefile;
static char * Check_Cwd_av(int, char **, int);
static void MainParseArgs(int, char **);
static int ReadMakefile(const void *, const void *);
-static void usage(void);
+static void usage(void) __dead;
static Boolean ignorePWD; /* if we use -C, PWD is meaningless */
static char objdir[MAXPATHLEN + 1]; /* where we chdir'ed to */
diff --git a/usr.bin/make/make.c b/usr.bin/make/make.c
index 4e4d1c2f4b5..85f7d661c77 100644
--- a/usr.bin/make/make.c
+++ b/usr.bin/make/make.c
@@ -1,4 +1,4 @@
-/* $NetBSD: make.c,v 1.83 2010/11/25 21:31:09 christos Exp $ */
+/* $NetBSD: make.c,v 1.84 2011/09/16 15:38:04 joerg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: make.c,v 1.83 2010/11/25 21:31:09 christos Exp $";
+static char rcsid[] = "$NetBSD: make.c,v 1.84 2011/09/16 15:38:04 joerg Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)make.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: make.c,v 1.83 2010/11/25 21:31:09 christos Exp $");
+__RCSID("$NetBSD: make.c,v 1.84 2011/09/16 15:38:04 joerg Exp $");
#endif
#endif /* not lint */
#endif
@@ -139,7 +139,7 @@ static int MakeCheckOrder(void *, void *);
static int MakeBuildChild(void *, void *);
static int MakeBuildParent(void *, void *);
-static void
+__dead static void
make_abort(GNode *gn, int line)
{
static int two = 2;
diff --git a/usr.bin/make/make.h b/usr.bin/make/make.h
index 37e3d1e3fba..04b2ebc80d3 100644
--- a/usr.bin/make/make.h
+++ b/usr.bin/make/make.h
@@ -1,4 +1,4 @@
-/* $NetBSD: make.h,v 1.86 2011/05/04 20:38:32 sjg Exp $ */
+/* $NetBSD: make.h,v 1.87 2011/09/16 15:38:04 joerg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -111,6 +111,10 @@
#endif
#endif
+#if !defined(__dead)
+#define __dead
+#endif
+
#include "sprite.h"
#include "lst.h"
#include "hash.h"
diff --git a/usr.bin/make/nonints.h b/usr.bin/make/nonints.h
index 95b7978ca95..5050e2a9cff 100644
--- a/usr.bin/make/nonints.h
+++ b/usr.bin/make/nonints.h
@@ -1,4 +1,4 @@
-/* $NetBSD: nonints.h,v 1.62 2010/12/25 04:57:07 dholland Exp $ */
+/* $NetBSD: nonints.h,v 1.63 2011/09/16 15:38:04 joerg Exp $ */
/*-
* Copyright (c) 1988, 1989, 1990, 1993
@@ -121,7 +121,7 @@ void Punt(const char *, ...)
__attribute__((__format__(__printf__, 1, 2),__noreturn__));
void DieHorribly(void) __attribute__((__noreturn__));
int PrintAddr(void *, void *);
-void Finish(int);
+void Finish(int) __dead;
int eunlink(const char *);
void execError(const char *, const char *);
char *getTmpdir(void);