aboutsummaryrefslogtreecommitdiff
path: root/sim/sh
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-10-19 15:19:18 +0100
committerAndrew Burgess <aburgess@redhat.com>2022-10-24 17:23:47 +0100
commitda8b81754bcd9eb2e45cec4997770a591cc61a8f (patch)
tree61842b934bd32831eb31038d62c061e873ff5301 /sim/sh
parent36edbb454fc9e720e723923d549b9f5356657a73 (diff)
downloadgdb-da8b81754bcd9eb2e45cec4997770a591cc61a8f.zip
gdb-da8b81754bcd9eb2e45cec4997770a591cc61a8f.tar.gz
gdb-da8b81754bcd9eb2e45cec4997770a591cc61a8f.tar.bz2
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.
Diffstat (limited to 'sim/sh')
0 files changed, 0 insertions, 0 deletions