summaryrefslogtreecommitdiff
path: root/random
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2015-09-04 12:39:56 +0200
committerWerner Koch <wk@gnupg.org>2015-09-04 12:44:09 +0200
commite97c62a4a687b56d00a2d0a63e072a977f8eb81c (patch)
tree556069864fa6b38e6097486ffbabf05a8afddff8 /random
parente2785a2268702312529521df3bd2f4e6b43cea3a (diff)
downloadlibgcrypt-e97c62a4a687b56d00a2d0a63e072a977f8eb81c.tar.gz
w32: Avoid a few compiler warnings.
* cipher/cipher-selftest.c (_gcry_selftest_helper_cbc) (_gcry_selftest_helper_cfb, _gcry_selftest_helper_ctr): Mark variable as unused. * random/rndw32.c (slow_gatherer): Avoid signed pointer mismatch warning. * src/secmem.c (init_pool): Avoid unused variable warning. * tests/random.c (writen, readn): Include on if needed. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'random')
-rw-r--r--random/rndw32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/random/rndw32.c b/random/rndw32.c
index 4ab1bca3..1325b18b 100644
--- a/random/rndw32.c
+++ b/random/rndw32.c
@@ -513,7 +513,7 @@ slow_gatherer ( void (*add)(const void*, size_t, enum random_origins),
status = RegQueryValueEx (hKey, "ProductType", 0, NULL,
szValue, &dwSize);
- if (status == ERROR_SUCCESS && stricmp (szValue, "WinNT"))
+ if (status == ERROR_SUCCESS && stricmp ((char*)szValue, "WinNT"))
{
/* Note: There are (at least) three cases for ProductType:
WinNT = NT Workstation, ServerNT = NT Server, LanmanNT =