lib.c: Remove redundant format attributes.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 6 Mar 2022 16:18:00 +0000 (16:18 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 6 Mar 2022 16:18:00 +0000 (16:18 +0000)
Should use `PRINTF_LIKE' nowadays anyway.

lib.c

diff --git a/lib.c b/lib.c
index 7fecbc4..08616a7 100644 (file)
--- 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;