commit | da8b81754bcd9eb2e45cec4997770a591cc61a8f | [log] [tgz] |
---|---|---|
author | Andrew Burgess <aburgess@redhat.com> | Wed Oct 19 15:19:18 2022 +0100 |
committer | Andrew Burgess <aburgess@redhat.com> | Mon Oct 24 17:23:47 2022 +0100 |
tree | 61842b934bd32831eb31038d62c061e873ff5301 | |
parent | 36edbb454fc9e720e723923d549b9f5356657a73 [diff] |
sim/h8300: avoid self assignment There are two places in the h8300 simulator where we assign a variable to itself. Clang gives a warning for this, which is converted into an error by -Werror. Silence the warning by removing the self assignments. As these assignments were in a complex if/then/else tree, rather than try to adjust all the conditions, I've just replaced the self assignments with a comment and an empty statement.