From 22a0ce0cef2cd73fb0c0ab18d9728afd30165eb2 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Tue, 8 Jul 2014 11:16:44 +0200
Subject: [PATCH] Fix warning on MinGW and MSVC12
---
library/ctr_drbg.c | 2 +-
library/net.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/library/ctr_drbg.c b/library/ctr_drbg.c
index 9194d75dd..aec29b9e6 100644
--- a/library/ctr_drbg.c
+++ b/library/ctr_drbg.c
@@ -448,7 +448,7 @@ unsigned char result_nopr[16] =
{ 0xa0, 0x54, 0x30, 0x3d, 0x8a, 0x7e, 0xa9, 0x88,
0x9d, 0x90, 0x3e, 0x07, 0x7c, 0x6f, 0x21, 0x8f };
-int test_offset;
+static size_t test_offset;
int ctr_drbg_self_test_entropy( void *data, unsigned char *buf, size_t len )
{
unsigned char *p = data;
diff --git a/library/net.c b/library/net.c
index 3e1446694..6333b0ff0 100644
--- a/library/net.c
+++ b/library/net.c
@@ -223,6 +223,7 @@ int net_bind( int *fd, const char *bind_ip, int port )
*/
static int net_would_block( int fd )
{
+ ((void) fd);
return( WSAGetLastError() == WSAEWOULDBLOCK );
}
#else