[6.0] f224903c8 Spend a void for GCC's -Werror=pointer-sign
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Wed Oct 31 13:08:14 UTC 2018
commit f224903c8b5bf456bbcd9323d04ec8d11b8d1680
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