This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [7/9] simplify pending breakpoints
Vladimir Prus <vladimir@codesourcery.com> writes:
> On Saturday 08 September 2007 15:26:36 Eli Zaretskii wrote:
>> > From: Vladimir Prus <vladimir@codesourcery.com>
>> > Date: Sat, 8 Sep 2007 01:50:04 +0400
>> >
>> > @@ -5422,12 +5355,9 @@ break_command_1 (char *arg, int flag, in
>> > }
>> > else
>> > {
>> > - struct symtab_and_line sal;
>> > + struct symtab_and_line sal = {};
>>
>> Is this a valid initializer in ISO C? I think it isn't; at least
>> under -pedantic, GCC says:
>>
>> ttt.c: In function `foo':
>> ttt.c:6: warning: ISO C forbids empty initializer braces
>
> Ehm. Then do I have to resort to 'memset' to initialize it?
{0} will do.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."