On 06/10/11 14:25, Connor Lane Smith wrote:
> Hey,
>
> On 10 June 2011 06:55, pancake<pancake_AT_youterm.com> wrote:
>> 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.
> I wasn't talking about GCC. Step through the logic in your head. What
> happens if the if statement is false? The program exits. If GCC whines
> about it it just means it's not very smart. (It doesn't on my machine,
> but does on my server using an older version.) I'll add the assignment
> just to silence it, I suppose.
>
> cls
>
you are right. you can also silent gcc by specifying an __noreturn__
attribute to the eprintf function.
Received on Fri Jun 10 2011 - 14:38:21 CEST
This archive was generated by hypermail 2.2.0 : Fri Jun 10 2011 - 14:36:04 CEST