[Bug libelf/23884] error: ‘__elf32_msize’ specifies less restrictive attribute than its target ‘elf32_fsize’: ‘const’ [-Werror=missing-attributes]

mark at klomp dot org sourceware-bugzilla@sourceware.org
Fri Nov 16 08:31:00 GMT 2018


Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Mark Wielaard <mark at klomp dot org> ---
commit a01938d584b91e747167bb4b3f30ec300c4d6e43
Author: Mark Wielaard <mark@klomp.org>
Date:   Fri Nov 16 09:27:00 2018 +0100

    libelf: Mark both fsize and msize with const attribute.

    GCC9 -Wmissing-attributes pointed out that although we alias the fsize
    and msize functions only fsize was marked as const. Fix by also marking
    the msize definition as const.


    Signed-off-by: Mark Wielaard <mark@klomp.org>

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Elfutils-devel mailing list