On Thu, Oct 24, 2024 at 5:08 AM Mark Wielaard wrote:
>
> When building with LTO gcc believes elf_fd can be used uninitialized:
>
> In function ‘sysprof_init_dwfl’,
> inlined from ‘sysprof_unwind_cb’ at stacktrace.c:1235:16:
> stacktrace.c:1087:7: error: ‘elf_fd’ may be used uninitialized
> [-
When building with LTO gcc believes elf_fd can be used uninitialized:
In function ‘sysprof_init_dwfl’,
inlined from ‘sysprof_unwind_cb’ at stacktrace.c:1235:16:
stacktrace.c:1087:7: error: ‘elf_fd’ may be used uninitialized
[-Werror=maybe-uninitialized]
1087 | close (elf_fd);
|
Hi Aaron,
On Thu, 2024-10-24 at 10:22 -0400, Aaron Merey wrote:
> On Thu, Oct 24, 2024 at 5:08 AM Mark Wielaard wrote:
> >
> > When building with LTO gcc believes elf_fd can be used uninitialized:
>
> LGTM
Thanks, pushed.
Cheers,
Mark