summaryrefslogtreecommitdiff
path: root/usr.bin/make/parse.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2006-12-18 15:06:16 +0000
committerchristos <christos@NetBSD.org>2006-12-18 15:06:16 +0000
commit83508cedc298f3e5b4cb45adb69c4cf781df8bd3 (patch)
tree000c24d0c1e7470e13ab833a77fabeaf8e70704a /usr.bin/make/parse.c
parent019209fdbccae047c8022a86e147be5413371cd2 (diff)
From Anon Ymous:
Removed two "(void)&" constructs as there is no setjmp() or vfork() insight. Flagged a few parameters __unused so this will compile with -Wextra now.
Diffstat (limited to 'usr.bin/make/parse.c')
-rw-r--r--usr.bin/make/parse.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c
index 225667fc016..dece0f8aee1 100644
--- a/usr.bin/make/parse.c
+++ b/usr.bin/make/parse.c
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.125 2006/12/16 08:59:29 dsl Exp $ */
+/* $NetBSD: parse.c,v 1.126 2006/12/18 15:06:16 christos Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.125 2006/12/16 08:59:29 dsl Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.126 2006/12/18 15:06:16 christos Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: parse.c,v 1.125 2006/12/16 08:59:29 dsl Exp $");
+__RCSID("$NetBSD: parse.c,v 1.126 2006/12/18 15:06:16 christos Exp $");
#endif
#endif /* not lint */
#endif
@@ -1466,14 +1466,6 @@ Parse_DoVar(char *line, GNode *ctxt)
Boolean freeCp = FALSE; /* TRUE if cp needs to be freed,
* i.e. if any variable expansion was
* performed */
- /*
- * Avoid clobbered variable warnings by forcing the compiler
- * to ``unregister'' variables
- */
-#if __GNUC__
- (void) &cp;
- (void) &line;
-#endif
/*
* Skip to variable name