aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-11-27 19:38:47 +0000
committerWerner Koch <[email protected]>2019-11-27 19:40:39 +0000
commitd480a3c8f3a3fff867b84fd8feca9f111ae4adc7 (patch)
treefe743446c957ee4718a9e8e436d9ee1140e83242
parentdoc: Remove UI Server documentation (diff)
downloadgpgme-d480a3c8f3a3fff867b84fd8feca9f111ae4adc7.tar.gz
gpgme-d480a3c8f3a3fff867b84fd8feca9f111ae4adc7.zip
core,w32: Silence compiler warnings.
* src/w32-util.c (_gpgme_w32_cancel_synchronous_io): Add some casts. -- Signed-off-by: Werner Koch <[email protected]>
-rw-r--r--src/w32-util.c5
1 files 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