Re: [Nautilus-list] eel gcc'isms patch
- From: Darin Adler <darin bentspoon com>
- To: Brett Kail <junkaddr hotmail com>, Nautilus <nautilus-list lists eazel com>
- Subject: Re: [Nautilus-list] eel gcc'isms patch
- Date: Fri, 07 Dec 2001 15:36:29 -0800
On 12/7/01 12:24 PM, "Brett Kail" <junkaddr hotmail com> wrote:
> - return art_irect_empty (&ab_union) ? eel_art_irect_empty : ab_union;
> + if (art_irect_empty (&ab_union)) {
> + return eel_art_irect_empty;
> + } else {
> + ab_union;
> + }
> }
>
> Perhaps it archived incorrectly, but it appears that there should be a
> 'return' before the 'ab_union' in the else. Doesn't this patch cause a 'not
> all control paths return a value' warning? I apologize if I am misreading
> this patch.
You're right. It's missing a return statement. I'll be fixing this now (I
was out for a while) because it prevents me from compiling eel.
-- Darin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]