aboutsummaryrefslogtreecommitdiff
path: root/sim/m32r/traps.c
diff options
context:
space:
mode:
authorTsukasa OI <research_trasio@irq.a4lg.com>2022-09-24 09:54:32 +0000
committerTsukasa OI <research_trasio@irq.a4lg.com>2022-10-29 08:13:15 +0000
commit57e3eee069a54ca09d89055bf6eccff710f87ed8 (patch)
tree7bcceac8c592c3158ebaebd0bb774ddfe5abfa4b /sim/m32r/traps.c
parente47530f72f587550b1ff2f2adcfa4f64ec702d82 (diff)
downloadbinutils-57e3eee069a54ca09d89055bf6eccff710f87ed8.zip
binutils-57e3eee069a54ca09d89055bf6eccff710f87ed8.tar.gz
binutils-57e3eee069a54ca09d89055bf6eccff710f87ed8.tar.bz2
sim/erc32: Use int32_t as IRQ callback argument
Clang generates a warning if an argument is passed to a function without prototype (zero arguments, even without (void)). Such calls are deprecated forms of indefinite arguments passing ("-Wdeprecated-non-prototype"). On the default configuration, it (somehow) doesn't cause a build failure but a warning is generated. But because the cause is the same as the issue the author fixed in "sim/erc32: Use int32_t as event callback argument", it would be better to fix it now to prevent problems in the future. To fix the issue, this commit makes struct irqcall to use int32_t as a callback (callback) argument of an IRQ.
Diffstat (limited to 'sim/m32r/traps.c')
0 files changed, 0 insertions, 0 deletions