[master] 70d14f0ff cache_gzip: Address SunCC complaint
Nils Goroll
nils.goroll at uplex.de
Fri Jul 4 17:46:04 UTC 2025
commit 70d14f0ff7fe3c4d9f0b27439a3a9df08419c148
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Fri Jul 4 19:42:17 2025 +0200
cache_gzip: Address SunCC complaint
"cache/cache_gzip.c", line 263: operands have incompatible pointer types: op "==" (E_OPERANDS_INCOMPAT_PTR_TYPES)
diff --git a/bin/varnishd/cache/cache_gzip.c b/bin/varnishd/cache/cache_gzip.c
index 0b2e948db..5d303b64c 100644
--- a/bin/varnishd/cache/cache_gzip.c
+++ b/bin/varnishd/cache/cache_gzip.c
@@ -260,7 +260,7 @@ static inline void
vgz_iovec_update(struct vgz *vg, const struct iovec *in, const struct iovec *buf)
{
/* in: either fully consumed or the same */
- assert(vg->vz.avail_in == 0 || vg->vz.next_in == in->iov_base);
+ assert(vg->vz.avail_in == 0 || vg->vz.next_in == TRUST_ME(in->iov_base));
vg->vz.next_in = in->iov_base;
vg->vz.avail_in = in->iov_len;
vg->vz.next_out = buf->iov_base;
More information about the varnish-commit
mailing list