| commit | eab286a7c8d990cce4d01a5c30cfe1c06823217b | [log] [tgz] |
|---|---|---|
| author | Alan Modra <amodra@gmail.com> | Mon May 30 17:04:53 2022 +0930 |
| committer | Alan Modra <amodra@gmail.com> | Mon May 30 19:00:04 2022 +0930 |
| tree | 445ee04a14292b2c0f5f1b36a8c26dcf2d751c6b | |
| parent | 7273d78f3f7ae3701512f1ff423430f51b011ece [diff] |
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.