]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sim/erc32: Use int32_t as event callback argument
authorTsukasa OI <research_trasio@irq.a4lg.com>
Sat, 24 Sep 2022 09:49:42 +0000 (09:49 +0000)
committerTsukasa OI <research_trasio@irq.a4lg.com>
Sat, 29 Oct 2022 08:13:15 +0000 (08:13 +0000)
commite47530f72f587550b1ff2f2adcfa4f64ec702d82
tree44d9c2d25efee2b407f1f64f9cc7aa9acbf2611a
parentdc4e697f2fec232cecfd1d162365ce836c785369
sim/erc32: Use int32_t as event 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 causes a build failure (unless
"--disable-werror" is specified).

To fix that, this commit makes struct evcell to use int32_t as a callback
(cfunc) argument of an event.  int32_t is chosen because "event" function
accepts "int32_t arg".
sim/erc32/README.sis
sim/erc32/erc32.c
sim/erc32/func.c
sim/erc32/sis.h