[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnutls-dev] Re: Compiler warnings on 64bit archs
From: |
Simon Josefsson |
Subject: |
[gnutls-dev] Re: Compiler warnings on 64bit archs |
Date: |
Fri, 16 Jun 2006 18:06:10 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
Andreas Metzler <address@hidden> writes:
> Hej,
>
> building gnutls 1.4.0 (or 1.2.11) on a 64bit arch (amd64, ia64, ...)
> triggers a couple of cast warnings:
Thanks! Patches to fix these problems are always appreciated.
> ------------------------
> 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
...
Storing integers within pointers is safe, isn't it? Compare:
http://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html
How large is 'int' on your platform? How large is 'void*'?
> auth_cert.c:1436: warning: passing argument 1 of '_gnutls_write_uint16' makes
> integer from pointer without a cast
This looks like a pure bug to me. Nikos?
I didn't go through all warnings. If we resolve these, we can move on
to the others. Chances are that fixing these may fix some of the
others too.
/Simon