[Varnish] #932: varnishreplay.c: compile fails on Solaris for 64 bit with -Werror
Varnish
varnish-bugs at varnish-cache.org
Mon Jun 6 13:33:28 CEST 2011
#932: varnishreplay.c: compile fails on Solaris for 64 bit with -Werror
-----------------------------+----------------------------------------------
Reporter: geoff | Type: defect
Status: new | Priority: normal
Milestone: Varnish 3.0 dev | Component: build
Version: trunk | Severity: normal
Keywords: |
-----------------------------+----------------------------------------------
Building from current trunk:
{{{
commit 25ef24962e12d57b12c3daa29623be60cc77b738
Date: Mon Jun 6 09:04:48 2011 +0000
}}}
Compile on Solaris for 64 bit (CFLAGS=-m64) results in these warnings for
varnishreplay.c (and failure with -Werror):
{{{
varnishreplay.c: In function `thread_log':
varnishreplay.c:178: warning: cast to pointer from integer of different
size
varnishreplay.c: In function `thread_get':
varnishreplay.c:272: warning: cast to pointer from integer of different
size
varnishreplay.c: In function `thread_close':
varnishreplay.c:297: warning: cast to pointer from integer of different
size
}}}
All of these involve a cast of pthread_t to (void *). pthread_t is defined
in <sys/types.h> as uint_t, unsigned 32 bit integer, but a pointer is 64
bit for the 64 bit build.
The warnings do not appear for a 32 bit build (CFLAGS=-m32).
--
Ticket URL: <http://www.varnish-cache.org/trac/ticket/932>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list