Avoid sequence point warning in h8300 sim
authorTom Tromey <tom@tromey.com>
Thu, 8 Apr 2021 21:15:59 +0000 (15:15 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 8 Apr 2021 21:15:59 +0000 (15:15 -0600)
commit06a88b3b3948db72b662345ac7abf90bd1c14a44
treefc3f3e4e0f00a2c6c7b4ac88764399130bf625e2
parent32a046ab0d7717256f16f59d87438474e825fcb8
Avoid sequence point warning in h8300 sim

GCC gives a -Wsequence-point warning for this code in the h8300 sim.
The bug is that memory_size is both assigned and used in the same
expression.  The fix is to assign after the print.

sim/h8300/ChangeLog
2021-04-08  Tom Tromey  <tom@tromey.com>

* compile.c (init_pointers): Fix sequence point warning.
sim/h8300/ChangeLog
sim/h8300/compile.c
This page took 0.034545 seconds and 4 git commands to generate.