From 7d1159c1e99bb1bae0ab698c85105dcdcb95b7ea Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 17 Apr 2023 15:05:22 +0200 Subject: [PATCH] core: Avoid printf format warnings due to gpgme_ssize_t. * src/debug.h (_trace_sysres_ssize_t): Cast arg. --- src/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.h b/src/debug.h index 7b823ee1..37d58e95 100644 --- a/src/debug.h +++ b/src/debug.h @@ -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",