bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/29194] bfd/doc/chew.c error: ISO C forbids conversion of f


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/29194] bfd/doc/chew.c error: ISO C forbids conversion of function pointer to object pointer type
Date: Mon, 30 May 2022 09:35:58 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=29194

--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Alan Modra <amodra@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=eab286a7c8d990cce4d01a5c30cfe1c06823217b

commit eab286a7c8d990cce4d01a5c30cfe1c06823217b
Author: Alan Modra <amodra@gmail.com>
Date:   Mon May 30 17:04:53 2022 +0930

    Use a union to avoid casts in bfd/doc/chew.c

    This fixes -Wpedantic warnings in chew.c.  Conversion between function
    and object pointers is not guaranteed.  They can even be different
    sizes, not that we're likely to encounter build machines like that
    nowadays.

            PR 29194
            * doc/chew.c (pcu): New union typedef.
            (dict_type, pc): Use it here.  Adjust uses of pc.
            (add_to_definition): Make "word" param a pcu.  Adjust all uses
            of function.
            (stinst_type): Delete.

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]