core: Avoid printf format warnings due to gpgme_ssize_t.
* src/debug.h (_trace_sysres_ssize_t): Cast arg.
This commit is contained in:
parent
0c29119e06
commit
7d1159c1e9
@ -180,7 +180,7 @@ static inline gpgme_ssize_t
|
||||
_trace_sysres_ssize_t (gpgme_ssize_t res, int lvl, const char *func, int line)
|
||||
{
|
||||
if (res >= 0)
|
||||
_gpgme_debug (NULL, lvl, 3, func, NULL, NULL, "result=%zd", res);
|
||||
_gpgme_debug (NULL, lvl, 3, func, NULL, NULL, "result=%zd", (ssize_t)res);
|
||||
else
|
||||
_gpgme_debug (NULL, lvl, -1, NULL, NULL, NULL,
|
||||
"%s:%d: error: %s (%d)\n",
|
||||
|
Loading…
Reference in New Issue
Block a user