sim/m32r: Initialize "list" variable
authorTsukasa OI <research_trasio@irq.a4lg.com>
Mon, 26 Sep 2022 07:03:00 +0000 (07:03 +0000)
committerTsukasa OI <research_trasio@irq.a4lg.com>
Sat, 29 Oct 2022 08:13:15 +0000 (08:13 +0000)
commit45f8296e6965ff4e2ca855e995149add6352645d
tree320e55a613d4e472983d91cd1b4a204efcd8cb27
parent57e3eee069a54ca09d89055bf6eccff710f87ed8
sim/m32r: Initialize "list" variable

The variable "list" is only initialized when arg1 > 0 and when arg1 == 0,
an uninitialized value is passed to translate_endian_h2t function.

Although this behavior is harmless, this commit adds initialization to avoid
a GCC warning ("-Wmaybe-uninitialized").
sim/m32r/traps.c