[gnutls-dev] Compiler warnings on 64bit archs
Andreas Metzler
ametzler at downhill.at.eu.org
Fri Jun 16 13:19:50 CEST 2006
Hej,
building gnutls 1.4.0 (or 1.2.11) on a 64bit arch (amd64, ia64, ...)
triggers a couple of cast warnings:
------------------------
gnutls_buffers.c:268: warning: cast from pointer to integer of different size
gnutls_buffers.c:704: warning: cast from pointer to integer of different size
auth_cert.c:1436: warning: passing argument 1 of '_gnutls_write_uint16' makes integer from pointer without a cast
gnutls_openssl.c:283: warning: cast to pointer from integer of different size
gnutls_openssl.c:290: warning: cast to pointer from integer of different size
gnutls_openssl.c:301: warning: cast to pointer from integer of different size
gnutls_openssl.c:880: warning: cast from pointer to integer of different size
gnutls_openssl.c:892: warning: cast to pointer from integer of different size
serv.c:954: warning: cast to pointer from integer of different size
cli.c:831: warning: cast to pointer from integer of different size
psk.gaa:28: warning: assignment makes integer from pointer without a cast
tls_test.c:270: warning: cast to pointer from integer of different size
ex-cert-select.c:154: warning: cast to pointer from integer of different size
ex-client1.c:52: warning: cast to pointer from integer of different size
ex-client2.c:60: warning: cast to pointer from integer of different size
ex-client-resume.c:57: warning: cast to pointer from integer of different size
ex-serv1.c:132: warning: cast to pointer from integer of different size
ex-serv-anon.c:117: warning: cast to pointer from integer of different size
ex-serv-export.c:177: warning: cast to pointer from integer of different size
ex-serv-pgp.c:136: warning: cast to pointer from integer of different size
ex-client-srp.c:68: warning: cast to pointer from integer of different size
ex-serv-srp.c:121: warning: cast to pointer from integer of different size
anonself.c:113: warning: cast to pointer from integer of different size
anonself.c:290: warning: cast to pointer from integer of different size
pskself.c:116: warning: cast to pointer from integer of different size
pskself.c:284: warning: cast to pointer from integer of different size
dhepskself.c:125: warning: cast to pointer from integer of different size
dhepskself.c:316: warning: cast to pointer from integer of different size
tlsia.c:170: warning: cast to pointer from integer of different size
tlsia.c:459: warning: cast to pointer from integer of different size
resume.c:137: warning: cast to pointer from integer of different size
resume.c:363: warning: cast to pointer from integer of different size
------------------------
The stuff is caused by casting pointers [1] to and from int.
cu andreas
[1] either
gnutls_transport_ptr_t (i.e. void *)
or
pointers to opaque (i.e unsigned char)
--
The 'Galactic Cleaning' policy undertaken by Emperor Zhark is a personal
vision of the emperor's, and its inclusion in this work does not constitute
tacit approval by the author or the publisher for any such projects,
howsoever undertaken. (c) Jasper Ffforde
More information about the Gnutls-devel
mailing list