https://sourceware.org/bugzilla/show_bug.cgi?id=22485
Bug ID: 22485
Summary: Bad initialization for Filedata struct in readelf.c
Product: binutils
Version: 2.30 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: kryukov at frtk dot ru
Target Milestone: ---
Hi
My project builds GNU Binutils with Clang as a part of CI. Clang warns that
fields of Filedata structure would not be initialized here:
readelf.c:18848:40: error: missing field 'handle' initializer
[-Werror,-Wmissing-field-initializers]
Filedata thin_filedata = { 0 };
Actually it is a known Clang bug, but they are not fixing it for 5 years
(https://bugs.llvm.org/show_bug.cgi?id=21689), so I prepared a patch where
initialization with { 0 } is replaced with memset.
Please pull it from master branch here:
https://github.com/pavelkryukov/binutils-gdb.git
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils