[gnutls-dev] Re: Compiler warnings on 64bit archs
Andreas Metzler
ametzler at downhill.at.eu.org
Sun Aug 13 18:54:38 CEST 2006
On 2006-08-13 Simon Josefsson <jas at extundo.com> wrote:
> Andreas Metzler <ametzler at downhill.at.eu.org> writes:
>> After adding the missing AC_CHECK_SIZEOF(void *), this indeed works.
>>
>> So how would you like to have the 19 [1] occurences of this issue
>> fixed, is there a central header file GNUTLS_POINTER_TO_INT can be
>> thrown into (besides gnutls.h)?
>>
>> thanks, cu andreas
>> [1]
>> in gnutls-20060628.tar.gz:
>> gnutls_openssl.c:283: warning: cast to pointer from integer of different size
[...]
> I've moved the macros to gnutls_int, and fixed the above warnings.
Thanks. gnutls_openssl.c needs a
#include <gnutls_int.h>
>> serv.c:954: warning: cast to pointer from integer of different size
>> cli.c:831: warning: cast to pointer from integer of different size
[...]
> Those are not in the library, and from what I understand, the cast
> isn't actually invalid -- the behaviour is what we intend and well
> defined on all platforms we care about, isn't it?
[...]
I honestly do not know. GLIBS docs just says "The problem is that on
some systems you need to do this: [...]", with this being the cast to
(long).
cu andreas
--
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-dev
mailing list