diff options
author | Theodore Ts'o <tytso@mit.edu> | 2021-08-17 17:10:15 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2021-08-18 22:39:25 -0400 |
commit | 3c5b2007a5f2b2b9522babcedc68825d90cd43d4 (patch) | |
tree | e764c9d8fbf437cbf928a09b08de65d2322e62a5 | |
parent | 1b13d63293b9cdf8f2225808299069b414643cbf (diff) | |
download | e2fsprogs-3c5b2007a5f2b2b9522babcedc68825d90cd43d4.tar.gz |
libcom_err: fix suggest-attribute=format -Wall warnings
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | lib/et/com_err.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/et/com_err.c b/lib/et/com_err.c index d38998a2..7294c6d8 100644 --- 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; |