[master] 36a303d Use uintptr_t to avoid a downgrade warning on 32 bit systems, which a smarter compiler than GCC could have seen through.
Poul-Henning Kamp
phk at varnish-cache.org
Fri Feb 11 12:08:55 CET 2011
commit 36a303daaa74e7a07cff2b4dccbd6d18dc367f58
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri Feb 11 11:08:10 2011 +0000
Use uintptr_t to avoid a downgrade warning on 32 bit systems, which
a smarter compiler than GCC could have seen through.
diff --git a/bin/varnishd/storage_persistent.h b/bin/varnishd/storage_persistent.h
index bf4e2b5..916272c 100644
--- a/bin/varnishd/storage_persistent.h
+++ b/bin/varnishd/storage_persistent.h
@@ -104,7 +104,7 @@ struct smp_sc {
int fd;
const char *filename;
off_t mediasize;
- uint64_t align; /* 64b to avoid casts */
+ uintptr_t align;
uint32_t granularity;
uint32_t unique;
More information about the varnish-commit
mailing list