chiark
/
gitweb
/
~mdw
/
dvdrip
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9384977
)
lib.c: Remove redundant format attributes.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 6 Mar 2022 16:18:00 +0000
(16:18 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 6 Mar 2022 16:18:00 +0000
(16:18 +0000)
Should use `PRINTF_LIKE' nowadays anyway.
lib.c
patch
|
blob
|
blame
|
history
diff --git
a/lib.c
b/lib.c
index 7fecbc4aa3e402f1d941ec2cd86c3416583240c9..08616a79fc99aed2e991e093a7d0a2afaf7995f9 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;