Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make make: add missing printflike annotations to par...
details: https://anonhg.NetBSD.org/src/rev/c7630f11bcec
branches: trunk
changeset: 359564:c7630f11bcec
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Jan 09 19:57:14 2022 +0000
description:
make: add missing printflike annotations to parse.c
Clang is stricter than GCC in checking format string inconsistencies.
Reported by Tobias Nygren.
diffstat:
usr.bin/make/parse.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r df92d0df7d53 -r c7630f11bcec usr.bin/make/parse.c
--- a/usr.bin/make/parse.c Sun Jan 09 18:59:27 2022 +0000
+++ b/usr.bin/make/parse.c Sun Jan 09 19:57:14 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.648 2022/01/09 18:49:28 rillig Exp $ */
+/* $NetBSD: parse.c,v 1.649 2022/01/09 19:57:14 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -106,7 +106,7 @@
#include "pathnames.h"
/* "@(#)parse.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: parse.c,v 1.648 2022/01/09 18:49:28 rillig Exp $");
+MAKE_RCSID("$NetBSD: parse.c,v 1.649 2022/01/09 19:57:14 rillig Exp $");
/*
* A file being read.
@@ -439,7 +439,7 @@
FStr_Done(&dir);
}
-static void
+static void MAKE_ATTR_PRINTFLIKE(5, 0)
ParseVErrorInternal(FILE *f, const char *fname, size_t lineno,
ParseErrorLevel type, const char *fmt, va_list ap)
{
@@ -469,7 +469,7 @@
PrintStackTrace();
}
-static void
+static void MAKE_ATTR_PRINTFLIKE(4, 5)
ParseErrorInternal(const char *fname, size_t lineno,
ParseErrorLevel type, const char *fmt, ...)
{
Home |
Main Index |
Thread Index |
Old Index