kallisti5 / huexpress

A PCEngine emulator forked from Hu-Go!
Other
28 stars 4 forks source link

incompatible integer to pointer conversion build errors #19

Open chenrui333 opened 2 months ago

chenrui333 commented 2 months ago

👋 seeing some incompatible integer to pointer conversion build errors while regression building 3.0.4 rel.

  /usr/bin/clang -o src/engine/h6280.o -c -g -DVERSION_MAJOR=3 -DVERSION_MINOR=0 -DVERSION_UPDATE=4 -D_DARWIN_C_SOURCE -D_THREAD_SAFE -Isrc/includes -Isrc/engine -I/opt/homebrew/include/SDL2 -I/opt/homebrew/Cellar/readline/8.2.13/include -I/opt/homebrew/Cellar/libxmp/4.6.0/include -I/opt/homebrew/Cellar/fluid-synth/2.3.6/include -I/opt/homebrew/Cellar/glib/2.82.0/include -I/opt/homebrew/Cellar/glib/2.82.0/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.82.0/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/pcre2/10.44/include -I/opt/homebrew/Cellar/libsndfile/1.2.2/include -I/opt/homebrew/Cellar/libvorbis/1.3.7/include -I/opt/homebrew/Cellar/portaudio/19.7.0/include -I/opt/homebrew/Cellar/game-music-emu/0.6.3_2/include -I/opt/homebrew/Cellar/flac/1.4.3/include -I/opt/homebrew/Cellar/mpg123/1.32.7/include -I/opt/homebrew/Cellar/opusfile/0.12_1/include/opus -I/opt/homebrew/Cellar/libogg/1.3.5/include -I/opt/homebrew/Cellar/opus/1.5.2/include/opus -I/opt/homebrew/Cellar/wavpack/5.7.0/include -I/opt/homebrew/Cellar/libzip/1.10.1/include src/engine/h6280.c
  In file included from src/engine/h6280.c:8:
  src/engine/dis_runtime.h:544:3: error: incompatible function pointer types initializing 'int (*)(void)' with an expression of type 'void (void)' [-Wincompatible-function-pointer-types]
    544 |         {handle_bios, AM_IMPL, "???"}
        |          ^~~~~~~~~~~
  1 error generated.

full build log in here, https://github.com/Homebrew/homebrew-core/actions/runs/10857376439/job/30133756786?pr=189595