Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b13d63
)
libcom_err: fix suggest-attribute=format -Wall warnings
author
Theodore Ts'o
<tytso@mit.edu>
Tue, 17 Aug 2021 21:10:15 +0000
(17:10 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Thu, 19 Aug 2021 02:39:25 +0000
(22:39 -0400)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/et/com_err.c
patch
|
blob
|
history
diff --git
a/lib/et/com_err.c
b/lib/et/com_err.c
index
d38998a
..
7294c6d
100644
(file)
--- a/
lib/et/com_err.c
+++ b/
lib/et/com_err.c
@@
-62,7
+62,8
@@
default_com_err_proc (const char *whoami, errcode_t code, const
fflush(stderr);
}
-typedef void (*errf) (const char *, errcode_t, const char *, va_list);
+typedef void (*errf) (const char *, errcode_t, const char *, va_list)
+ COM_ERR_ATTR((format(printf, 3, 0)));
errf com_err_hook = default_com_err_proc;