From d480a3c8f3a3fff867b84fd8feca9f111ae4adc7 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 27 Nov 2019 20:38:47 +0100 Subject: [PATCH] core,w32: Silence compiler warnings. * src/w32-util.c (_gpgme_w32_cancel_synchronous_io): Add some casts. -- Signed-off-by: Werner Koch --- src/w32-util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/w32-util.c b/src/w32-util.c index 82076762..2631ae7c 100644 --- a/src/w32-util.c +++ b/src/w32-util.c @@ -308,10 +308,11 @@ _gpgme_w32_cancel_synchronous_io (HANDLE thread) if (func) { - if (!func (thread) && GetLastError() != ERROR_NOT_FOUND) + if (!func ((DWORD)thread) && GetLastError() != ERROR_NOT_FOUND) { TRACE (DEBUG_ENGINE, "gpgme:CancelSynchronousIo", NULL, - "called for thread %p: ec=%d", thread, GetLastError ()); + "called for thread %p: ec=%u", + thread, (unsigned int)GetLastError ()); } } else