From: Mark Wooding Date: Sun, 6 Mar 2022 16:18:00 +0000 (+0000) Subject: lib.c: Remove redundant format attributes. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/dvdrip/commitdiff_plain/53a3ad57a06b5709b3bd356ccdcb2a97d4acee81 lib.c: Remove redundant format attributes. Should use `PRINTF_LIKE' nowadays anyway. --- diff --git a/lib.c b/lib.c index 7fecbc4..08616a7 100644 --- a/lib.c +++ b/lib.c @@ -8,7 +8,6 @@ void set_prog(const char *p) void vmoan(const char *fmt, va_list ap) { fprintf(stderr, "%s: ", prog); vfprintf(stderr, fmt, ap); } -__attribute__((format(printf, 1, 2))) void moan(const char *fmt, ...) { va_list ap; @@ -17,7 +16,6 @@ void moan(const char *fmt, ...) fputc('\n', stderr); } -__attribute__((noreturn, format(printf, 1, 2))) void bail(const char *fmt, ...) { va_list ap; @@ -27,7 +25,6 @@ void bail(const char *fmt, ...) exit(2); } -__attribute__((noreturn, format(printf, 2, 3))) void bail_syserr(int err, const char *fmt, ...) { va_list ap;