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).
This commit is contained in:
rillig 2020-09-13 06:05:56 +00:00
parent edc4e8445d
commit f9ee8c199a
2 changed files with 6 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.334 2020/09/13 05:56:32 rillig Exp $ */
/* $NetBSD: main.c,v 1.335 2020/09/13 06:05:56 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@ -69,7 +69,7 @@
*/
#ifndef MAKE_NATIVE
static char rcsid[] = "$NetBSD: main.c,v 1.334 2020/09/13 05:56:32 rillig Exp $";
static char rcsid[] = "$NetBSD: main.c,v 1.335 2020/09/13 06:05:56 rillig 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.334 2020/09/13 05:56:32 rillig Exp $");
__RCSID("$NetBSD: main.c,v 1.335 2020/09/13 06:05:56 rillig Exp $");
#endif
#endif /* not lint */
#endif
@ -1703,7 +1703,6 @@ bad:
* Side Effects:
* The message is printed.
*/
/* VARARGS */
void
Error(const char *fmt, ...)
{
@ -1730,7 +1729,6 @@ Error(const char *fmt, ...)
/* Produce a Fatal error message, then exit immediately.
*
* If jobs are running, waits for them to finish. */
/* VARARGS */
void
Fatal(const char *fmt, ...)
{
@ -1765,7 +1763,6 @@ Fatal(const char *fmt, ...)
* Side Effects:
* All children are killed indiscriminately and the program Lib_Exits
*/
/* VARARGS */
void
Punt(const char *fmt, ...)
{

View File

@ -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, ...)
{