core: Avoid printf format warnings due to gpgme_ssize_t.

* src/debug.h (_trace_sysres_ssize_t): Cast arg.
This commit is contained in:
Werner Koch 2023-04-17 15:05:22 +02:00
parent 0c29119e06
commit 7d1159c1e9
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -180,7 +180,7 @@ static inline gpgme_ssize_t
_trace_sysres_ssize_t (gpgme_ssize_t res, int lvl, const char *func, int line) _trace_sysres_ssize_t (gpgme_ssize_t res, int lvl, const char *func, int line)
{ {
if (res >= 0) 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 else
_gpgme_debug (NULL, lvl, -1, NULL, NULL, NULL, _gpgme_debug (NULL, lvl, -1, NULL, NULL, NULL,
"%s:%d: error: %s (%d)\n", "%s:%d: error: %s (%d)\n",