diff options
author | Tom Tromey <tom@tromey.com> | 2021-04-08 15:15:59 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-04-08 15:15:59 -0600 |
commit | 06a88b3b3948db72b662345ac7abf90bd1c14a44 (patch) | |
tree | fc3f3e4e0f00a2c6c7b4ac88764399130bf625e2 /sim/h8300/ChangeLog | |
parent | 32a046ab0d7717256f16f59d87438474e825fcb8 (diff) | |
download | gdb-06a88b3b3948db72b662345ac7abf90bd1c14a44.zip gdb-06a88b3b3948db72b662345ac7abf90bd1c14a44.tar.gz gdb-06a88b3b3948db72b662345ac7abf90bd1c14a44.tar.bz2 |
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.
Diffstat (limited to 'sim/h8300/ChangeLog')
-rw-r--r-- | sim/h8300/ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/h8300/ChangeLog b/sim/h8300/ChangeLog index cd47d25..2b2c6a7 100644 --- a/sim/h8300/ChangeLog +++ b/sim/h8300/ChangeLog @@ -1,5 +1,9 @@ 2021-04-08 Tom Tromey <tom@tromey.com> + * compile.c (init_pointers): Fix sequence point warning. + +2021-04-08 Tom Tromey <tom@tromey.com> + * compile.c (cmdline_location): Use new-style declaration. 2021-04-02 Mike Frysinger <vapier@gentoo.org> |