Re: [dev] Re: sbase

From: Rob <robpilling_AT_gmail.com>
Date: Fri, 10 Jun 2011 14:24:51 +0100

On 10 June 2011 06:55, pancake <pancake_AT_youterm.com> wrote:
> On 10/06/2011, at 4:26, Connor Lane Smith <cls_AT_lubutu.com> wrote:
>> No, there's no bug here; size is allocated and memset on the next line.
>
> Your gcc sucks. Mine reports the error here. Size is only allocated if the
> or condition applies which is not something to always happen opening the
> doors to use an uninitialized pointer.

It's because gcc doesn't understand that eprintf will never return.
Add something like __attribute__((noreturn)) to eprintf's prototype and
you'll see.
Received on Fri Jun 10 2011 - 15:24:51 CEST

This archive was generated by hypermail 2.2.0 : Fri Jun 10 2011 - 15:36:04 CEST