]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/doc/chew.c
Use a union to avoid casts in bfd/doc/chew.c
authorAlan Modra <amodra@gmail.com>
Mon, 30 May 2022 07:34:53 +0000 (17:04 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 30 May 2022 09:30:04 +0000 (19:00 +0930)
commiteab286a7c8d990cce4d01a5c30cfe1c06823217b
tree445ee04a14292b2c0f5f1b36a8c26dcf2d751c6b
parent7273d78f3f7ae3701512f1ff423430f51b011ece
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.
bfd/doc/chew.c