summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mmap/win32/mmap.c1
-rw-r--r--network_io/win32/sendrecv.c1
-rw-r--r--network_io/win32/sockets.c2
3 files changed, 2 insertions, 2 deletions
diff --git a/mmap/win32/mmap.c b/mmap/win32/mmap.c
index 134417707..d5d88aebd 100644
--- a/mmap/win32/mmap.c
+++ b/mmap/win32/mmap.c
@@ -29,7 +29,6 @@ static apr_status_t mmap_cleanup(void *themmap)
{
apr_mmap_t *mm = themmap;
apr_mmap_t *next = APR_RING_NEXT(mm,link);
- apr_status_t rv = 0;
/* we no longer refer to the mmaped region */
APR_RING_REMOVE(mm,link);
diff --git a/network_io/win32/sendrecv.c b/network_io/win32/sendrecv.c
index 80adccdd1..a01f0329a 100644
--- a/network_io/win32/sendrecv.c
+++ b/network_io/win32/sendrecv.c
@@ -266,7 +266,6 @@ APR_DECLARE(apr_status_t) apr_socket_sendfile(apr_socket_t *sock,
DWORD dwFlags = 0;
apr_size_t nbytes;
TRANSMIT_FILE_BUFFERS tfb, *ptfb = NULL;
- int ptr = 0;
apr_size_t bytes_to_send; /* Bytes to send out of the file (not including headers) */
int disconnected = 0;
int sendv_trailers = 0;
diff --git a/network_io/win32/sockets.c b/network_io/win32/sockets.c
index 88a362f71..62f61fe4a 100644
--- a/network_io/win32/sockets.c
+++ b/network_io/win32/sockets.c
@@ -81,7 +81,9 @@ APR_DECLARE(apr_status_t) apr_socket_create(apr_socket_t **new, int family,
int type, int protocol,
apr_pool_t *cont)
{
+#if APR_HAVE_IPV6
int downgrade = (family == AF_UNSPEC);
+#endif
if (family == AF_UNSPEC) {
#if APR_HAVE_IPV6