Re: [PATCH 3/3] Simplify event-loop core, remove two-step event processing

Pedro Alves
2015-02-04T18:18:07Z

On 02/04/2015 06:34 PM, Alex Velenko wrote:
> On 03/02/15 22:48, Patrick Palka wrote:
>> This patch causes a build failure when compiling GDB with GCC 4.9:
>>
>> /home/patrick/code/binutils-gdb/gdb/event-loop.c: In function
>> Â‘gdb_do_one_eventÂ’:
>> /home/patrick/code/binutils-gdb/gdb/event-loop.c:296:10: error: Â‘resÂ’
>> may be used uninitialized in this function
>> [-Werror=maybe-uninitialized]
>> if (res > 0)
>> ^
>>
>
> Hi,
> Event-loop.c "gdb_do_one_event" function did not initialize variable "res".
> This caused gdb_binutils to fail building. This patch fixes it.

Thanks! However, this fixed it for me:

https://sourceware.org/ml/gdb-patches/2015-02/msg00075.html

Can you make sure you have that in your tree?

Thanks,
Pedro Alves