Module Name: src Committed By: rillig Date: Tue Feb 21 19:30:51 UTC 2023
Modified Files: src/usr.bin/xlint/lint1: lint1.h src/usr.bin/xlint/lint2: read.c Log Message: lint: use __printflike To generate a diff of this commit: cvs rdiff -u -r1.162 -r1.163 src/usr.bin/xlint/lint1/lint1.h cvs rdiff -u -r1.78 -r1.79 src/usr.bin/xlint/lint2/read.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/xlint/lint1/lint1.h diff -u src/usr.bin/xlint/lint1/lint1.h:1.162 src/usr.bin/xlint/lint1/lint1.h:1.163 --- src/usr.bin/xlint/lint1/lint1.h:1.162 Sat Feb 18 15:14:11 2023 +++ src/usr.bin/xlint/lint1/lint1.h Tue Feb 21 19:30:51 2023 @@ -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 @@ typedef struct { # include "err-msgs.h" /* ARGSUSED */ -static inline void __attribute__((format(printf, 1, 2))) +static inline void __printflike(1, 2) check_printf(const char *fmt, ...) { } Index: src/usr.bin/xlint/lint2/read.c diff -u src/usr.bin/xlint/lint2/read.c:1.78 src/usr.bin/xlint/lint2/read.c:1.79 --- src/usr.bin/xlint/lint2/read.c:1.78 Sat Jan 14 09:30:07 2023 +++ src/usr.bin/xlint/lint2/read.c Tue Feb 21 19:30:51 2023 @@ -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 int csrcfile; 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 *);