Re: [PATCH v2] libbpf: workaround -Wmaybe-uninitialized false positive

From: Sam James
Date: Mon Aug 12 2024 - 06:41:17 EST


Alan Maguire <alan.maguire@xxxxxxxxxx> writes:

> On 09/08/2024 18:26, Sam James wrote:
>> In `elf_close`, we get this with GCC 15 -O3 (at least):
> [...]
>
> Would just initializing struct elf_fd be enough to silence the error
> perhaps, i.e.

Yeah, that WFM. Thanks, sent v3.