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] Compilation errors

From: Anders Broman <anders.broman@xxxxxxxxxxxx>
Date: Thu, 21 Apr 2011 14:02:00 +0200
 

-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Stig Bjørlykke
Sent: den 21 april 2011 13:52
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] Compilation errors

On Thu, Apr 21, 2011 at 1:30 PM, Anders Broman <anders.broman@xxxxxxxxxxxx> wrote:
>> Ok, but both case 1 and the default branch (with GEOIP) ends in g_assert unless I'm misstaken and that's hardly the intention is it?

>case 1 has a CMP_INT which does return.  The default branch is only used for GEOIP because we only use 
>hostlist_sort_column with values 0 and 1 without GEOIP.  But I'm not sure if we will get a warning about unused code if >we always return before g_assert, and g_assert is intended here, so maybe the "return 0" will be wrong.

Ok, unfortunately I can't try myself as I'm trying to assist a co-worker at a remote location. He is using
gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4) which is quite old.
Regards
Anders


__________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe