diff options
author | Sergei Trofimovich <siarheit@google.com> | 2021-11-14 17:39:35 +0000 |
---|---|---|
committer | Sergei Trofimovich <siarheit@google.com> | 2021-11-16 23:32:00 +0000 |
commit | e97436b1b789dcdb6ffb502263f4c86f8bc22996 (patch) | |
tree | b9f1a2bdf5eab33e6d1fb34298b5d5383dac1c08 /sim/testsuite | |
parent | 7f74204ad972f6c0d0ff846af9f1f2f7e76fa5c5 (diff) | |
download | binutils-e97436b1b789dcdb6ffb502263f4c86f8bc22996.zip binutils-e97436b1b789dcdb6ffb502263f4c86f8bc22996.tar.gz binutils-e97436b1b789dcdb6ffb502263f4c86f8bc22996.tar.bz2 |
sim: cr16: fix build on gcc-12 (NULL comparison)
On gcc-12 build fails as:
sim/cr16/interp.c: In function 'lookup_hash':
sim/cr16/interp.c:89:25: error:
the comparison will always evaluate as 'true'
for the address of 'mnimonic' will never be NULL [-Werror=address]
89 | if ((h->ops->mnimonic != NULL) &&
| ^~
'mnimonic' is a sharr array within ops. It can never be NULL.
While at it renamed 'mnimonic' to 'mnemonic'.
Diffstat (limited to 'sim/testsuite')
0 files changed, 0 insertions, 0 deletions