From 59bb9ab1363c98b202ba87319542a26eaf44a246 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 18 Jun 2021 16:56:52 +0200 Subject: [PATCH] wall: add __format__ attribute Reported-by: Jan Pazdziora Signed-off-by: Karel Zak --- term-utils/wall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/term-utils/wall.c b/term-utils/wall.c index 97d9a56b5c..fb283d3bfd 100644 --- a/term-utils/wall.c +++ b/term-utils/wall.c @@ -296,7 +296,8 @@ static void buf_puts(struct buffer *bs, const char *s) bs->used += len; } -static void buf_printf(struct buffer *bs, const char *fmt, ...) +static void __attribute__((__format__ (__printf__, 2, 3))) + buf_printf(struct buffer *bs, const char *fmt, ...) { int rc; va_list ap; -- 2.47.2