summaryrefslogtreecommitdiff
path: root/usr.bin/make/parse.c
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2020-09-13 06:05:56 +0000
committerrillig <rillig@NetBSD.org>2020-09-13 06:05:56 +0000
commit8626d50ca070a6ef3f85c3cbce9d2751732d565c (patch)
treee6d0957bf1ccc283b36b4407ff0d4eddd082332c /usr.bin/make/parse.c
parentb9670732fb352b696ba10f242a448aa5e1e95606 (diff)
make(1): remove redundant VARARGS comments
These had been necessary at a time when the functions were declared with "unknown parameter types". On 1994-03-05, conditional support for function prototypes was added, for those compilers that already supported this feature. On 2002-06-15, the prototypes were made mandatory, and since then the VARARGS comments had been completely redundant, or worse, simply wrong (for ParseVErrorInternal).
Diffstat (limited to 'usr.bin/make/parse.c')
-rw-r--r--usr.bin/make/parse.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c
index 184ba999ff8..2a56f4fb8e8 100644
--- a/usr.bin/make/parse.c
+++ b/usr.bin/make/parse.c
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.295 2020/09/12 19:41:20 rillig Exp $ */
+/* $NetBSD: parse.c,v 1.296 2020/09/13 06:05:56 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.295 2020/09/12 19:41:20 rillig Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.296 2020/09/13 06:05:56 rillig 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.295 2020/09/12 19:41:20 rillig Exp $");
+__RCSID("$NetBSD: parse.c,v 1.296 2020/09/13 06:05:56 rillig Exp $");
#endif
#endif /* not lint */
#endif
@@ -659,7 +659,6 @@ PrintLocation(FILE *f, const char *cfname, size_t clineno)
* Side Effects:
* "fatals" is incremented if the level is PARSE_FATAL.
*/
-/* VARARGS */
static void
ParseVErrorInternal(FILE *f, const char *cfname, size_t clineno, int type,
const char *fmt, va_list ap)
@@ -695,7 +694,6 @@ ParseVErrorInternal(FILE *f, const char *cfname, size_t clineno, int type,
* Side Effects:
* None
*/
-/* VARARGS */
static void
ParseErrorInternal(const char *cfname, size_t clineno, int type,
const char *fmt, ...)
@@ -718,7 +716,6 @@ ParseErrorInternal(const char *cfname, size_t clineno, int type,
* line number.
*
* Fmt is given without a trailing newline. */
-/* VARARGS */
void
Parse_Error(int type, const char *fmt, ...)
{