Wireshark-dev: Re: [Wireshark-dev] [PATCH] Fix compilation failures on x86_64-unknown-linux-gnu
From: Sebastien Tandel <sebastien@xxxxxxxxx>
Date: Mon, 28 May 2007 23:44:39 -0300
checked in rev 21975. Thanks!

Regards,
Sebastien Tandel

On 24 May 2007, at 09:47, David Howells wrote:

Fix compilation failures when building wireshark-0.99.6-SVN-21916 on an

x86_64-unknown-linux-gnu target with gcc version 4.1.2 20070403 (Red Hat

4.1.2-8).


The failures fall into two categories:


 (1) Casts between pointers and 32-bit integers without an intermediary cast

     via 'long' or 'unsigned long'.  This results in a compiler warning

     complaining about casts between a pointer and an integer of a different

     size.


 (2) Passing values to "%lld" or similar printf-style format options that the

     compiler thinks are a different size.  Such values need to be cast to

     'long long' or 'unsigned long long'.


Regards,
Sebastien Tandel