sim: sh: fix unused-value warnings
authorMike Frysinger <vapier@gentoo.org>
Sat, 6 Nov 2021 16:52:00 +0000 (12:52 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sun, 7 Nov 2021 00:32:31 +0000 (20:32 -0400)
commit7256320b9531e8af14ef75a42c09c47161be1480
treed9efca793b454e67087dfcb6bb9c350da63b10c8
parent74bbe64132d675b9a5c459f4140c6c566c7ca1bf
sim: sh: fix unused-value warnings

These macro expansions are deliberate in not using the computed value
so that they trigger side-effects (possible invalid memory accesses)
but while otherwise being noops.  Add a (void) cast so the compiler
knows these are intentional.
sim/sh/gencode.c