This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[Bug libelf/23884] error: ‘__elf32_msize’ specifies less restrictive attribute than its target ‘elf32_fsize’: ‘const’ [-Werror=missing-attributes]
- From: "mark at klomp dot org" <sourceware-bugzilla at sourceware dot org>
- To: elfutils-devel at sourceware dot org
- Date: Thu, 15 Nov 2018 10:33:51 +0000
- Subject: [Bug libelf/23884] error: ‘__elf32_msize’ specifies less restrictive attribute than its target ‘elf32_fsize’: ‘const’ [-Werror=missing-attributes]
- Auto-submitted: auto-generated
- References: <bug-23884-10460@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=23884
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at klomp dot org
--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
This is weird. Where does the const come from?
Neither the declaration of fsize nor msize have a const.
It is as if gcc has determined that fsize could be const (maybe because it
looks up the return value in a static table?) and then because we use
__typeof__ to specify the type think the __typeof__ should include the const?
--
You are receiving this mail because:
You are on the CC list for the bug.