[master] 5141161f8 Spend a void for GCC's -Werror=pointer-sign

Poul-Henning Kamp phk at FreeBSD.org
Wed Sep 5 07:46:07 UTC 2018


commit 5141161f86eaec111b5bb6e0d42c14f24e826d88
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Sep 5 07:45:27 2018 +0000

    Spend a void for GCC's -Werror=pointer-sign

diff --git a/bin/varnishd/http2/cache_http2_send.c b/bin/varnishd/http2/cache_http2_send.c
index 41ca146b6..638fea632 100644
--- a/bin/varnishd/http2/cache_http2_send.c
+++ b/bin/varnishd/http2/cache_http2_send.c
@@ -141,7 +141,7 @@ H2_Send_Frame(struct worker *wrk, struct h2_sess *h2,
 	Lck_Unlock(&h2->sess->mtx);
 
 	memset(iov, 0, sizeof iov);
-	iov[0].iov_base = hdr;
+	iov[0].iov_base = (void*)hdr;
 	iov[0].iov_len = sizeof hdr;
 	iov[1].iov_base = TRUST_ME(ptr);
 	iov[1].iov_len = len;


More information about the varnish-commit mailing list