Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Ubuntu buildbot error

From: Jakub Zawadzki <darkjames@xxxxxxxxxxxxxxxx>
Date: Mon, 1 Jun 2009 22:46:40 +0200
On Mon, Jun 01, 2009 at 09:05:29PM +0200, Stig Bj?rlykke wrote:
> Hi.
> 
> I don't get the same warnings on my Ubuntu 8.04 or 9.04 as the  
> buildbot get.
> Anyone able to find a fix for this?

Sample code:

#include <stdio.h>

int main() {
        int *ptr = NULL;

        int bad = (int) ptr;	/* this generates warning for 64bit systems
				   cast from pointer to integer
				   of different size */
        int good = (int) (long) ptr; /* this doesn't */

        return 0;
}

Btw. my AMD64 gcc-4.1.2 compiles wiretap/ without errors.