Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint lint: use __printflike
details: https://anonhg.NetBSD.org/src/rev/f00902759ba3
branches: trunk
changeset: 373608:f00902759ba3
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Feb 21 19:30:51 2023 +0000
description:
lint: use __printflike
diffstat:
usr.bin/xlint/lint1/lint1.h | 4 ++--
usr.bin/xlint/lint2/read.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r a01c9e68d33e -r f00902759ba3 usr.bin/xlint/lint1/lint1.h
--- a/usr.bin/xlint/lint1/lint1.h Tue Feb 21 19:27:14 2023 +0000
+++ b/usr.bin/xlint/lint1/lint1.h Tue Feb 21 19:30:51 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lint1.h,v 1.162 2023/02/18 15:14:11 rillig Exp $ */
+/* $NetBSD: lint1.h,v 1.163 2023/02/21 19:30:51 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -468,7 +468,7 @@
# include "err-msgs.h"
/* ARGSUSED */
-static inline void __attribute__((format(printf, 1, 2)))
+static inline void __printflike(1, 2)
check_printf(const char *fmt, ...)
{
}
diff -r a01c9e68d33e -r f00902759ba3 usr.bin/xlint/lint2/read.c
--- a/usr.bin/xlint/lint2/read.c Tue Feb 21 19:27:14 2023 +0000
+++ b/usr.bin/xlint/lint2/read.c Tue Feb 21 19:30:51 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: read.c,v 1.78 2023/01/14 09:30:07 rillig Exp $ */
+/* $NetBSD: read.c,v 1.79 2023/02/21 19:30:51 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID)
-__RCSID("$NetBSD: read.c,v 1.78 2023/01/14 09:30:07 rillig Exp $");
+__RCSID("$NetBSD: read.c,v 1.79 2023/02/21 19:30:51 rillig Exp $");
#endif
#include <ctype.h>
@@ -93,7 +93,7 @@
static const char *readfile_line;
static void inperr(const char *, ...)
- __attribute__((format(printf, 1, 2), noreturn));
+ __printflike(1, 2) __attribute__((noreturn));
static void setsrc(const char *);
static void setfnid(int, const char *);
static void funccall(pos_t, const char *);
Home |
Main Index |
Thread Index |
Old Index