mamedev / mame

MAME
https://www.mamedev.org/
Other
8.43k stars 2.04k forks source link

Runtime error incorrect function type void #3049

Closed katananja closed 6 years ago

katananja commented 6 years ago

mame0193-468-g8952fb046f-dirty Debian 9 x64 Build command: make clean && make VERBOSE=1 OVERRIDE_CC=/usr/bin/clang-3.9 OVERRIDE_CXX=/usr/bin/clang++-3.9 SANITIZE=function REGENIE=1 DEBUG=1 SYMBOLS=1 SYMLEVEL=1 SUBTARGET=tiny -j7

mame start ./mametiny64d

[MAME]> /mame/build/projects/sdl/mametiny/gmake-linux-clang/../../../../../src/lib/util/delegate.h:544:11: runtime error: call to function input_class_keyboard::frame_callback() through pointer to incorrect function type 'void (*)(delegate_generic_class *)'
/mame/build/projects/sdl/mametiny/gmake-linux-clang/../../../../../src/emu/inputdev.cpp:599: note: input_class_keyboard::frame_callback() defined here
Region ':user1' created
Starting No Driver Loaded ':'
  (missing dependencies; rescheduling)
Starting Video Screen ':screen'
Starting No Driver Loaded ':'
/mame/build/projects/sdl/mametiny/gmake-linux-clang/../../../../../src/lib/util/delegate.h:544:11: runtime error: call to function render_manager::config_load(config_type, util::xml::data_node const*) through pointer to incorrect function type 'void (*)(delegate_generic_class *, config_type, const util::xml::data_node *)'
/mame/build/projects/sdl/mametiny/gmake-linux-clang/../../../../../src/emu/render.cpp:3061: note: render_manager::config_load(config_type, util::xml::data_node const*) defined here

After mame quit (ESQ)

[MAME]> /mame/build/projects/sdl/mametiny/gmake-linux-clang/../../../../../src/lib/util/delegate.h:544:11: runtime error: call to function render_manager::config_save(config_type, util::xml::data_node*) through pointer to incorrect function type 'void (*)(delegate_generic_class *, config_type, util::xml::data_node *)'
/mame/build/projects/sdl/mametiny/gmake-linux-clang/../../../../../src/emu/render.cpp:3120: note: render_manager::config_save(config_type, util::xml::data_node*) defined here
firewave commented 6 years ago

"function" has been explicitly disabled as a check since it gives a lot of errors with our delegates by design. There's also several other errors which are given which we are not interested in (yet). Most of the interesting things are already being tracked.