Mock Version: 5.6 Mock Version: 5.6 Mock Version: 5.6 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/clonekeen.spec'], chrootPath='/var/lib/mock/f40-build-51768369-6199158/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_CORE=infinity', '--bind=/tmp/mock-resolv.48ftajip:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_CORE=infinity', '--bind=/tmp/mock-resolv.48ftajip:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '3068db00f3e8433597c2432ff7cd1927', '-D', '/var/lib/mock/f40-build-51768369-6199158/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_CORE=infinity', '--bind=/tmp/mock-resolv.48ftajip:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/clonekeen.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1692144000 Wrote: /builddir/build/SRPMS/clonekeen-0.8.4-28.fc40.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/clonekeen.spec'], chrootPath='/var/lib/mock/f40-build-51768369-6199158/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_CORE=infinity', '--bind=/tmp/mock-resolv.48ftajip:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_CORE=infinity', '--bind=/tmp/mock-resolv.48ftajip:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '7b0d29a4bc0e4f61bb6a9c0ff6b920da', '-D', '/var/lib/mock/f40-build-51768369-6199158/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_CORE=infinity', '--bind=/tmp/mock-resolv.48ftajip:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/clonekeen.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1692144000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.qsqYsH + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf keen + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/clonekeen-src-84-clean.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd keen + rm -rf /builddir/build/BUILD/keen-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/keen-SPECPARTS + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/clonekeen-0.8.4-data.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/clonekeen-0.8.4-noSDLmain.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/clonekeen-0.8.4-fcommon-fix.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + find -name '*.o' -delete + cp -a /builddir/build/SOURCES/extract.c /builddir/build/SOURCES/clonekeen-extract-sounds.c . + sed -i 's/\r//g' README src/changelog.txt + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.SK8xus + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -fpermissive -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd keen + make -j32 -C src -f Makefile make: Entering directory '/builddir/build/BUILD/keen/src' gcc -O2 -c main.c -o main.o gcc -O2 -c sanity.c -o sanity.o gcc -O2 -c game.c -o game.o gcc -O2 -c gamedo.c -o gamedo.o gcc -O2 -c gamepdo.c -o gamepdo.o gcc -O2 -c gamepdo_wm.c -o gamepdo_wm.o gcc -O2 -c editor/editor.c -o editor/editor.o gcc -O2 -c editor/autolight.c -o editor/autolight.o gcc -O2 -c console.c -o console.o gcc -O2 -c fileio.c -o fileio.o gcc -O2 -c maploader.c -o maploader.o gcc -O2 -c map.c -o map.o gcc -O2 -c graphics.c -o graphics.o gcc -O2 -c palette.c -o palette.o gcc -O2 -c fonts.c -o fonts.o gcc -O2 -c misc.c -o misc.o gcc -O2 -c misc_ui.c -o misc_ui.o gcc -O2 -c graphicmaker.c -o graphicmaker.o gcc -O2 -c ini.c -o ini.o gcc -O2 -c intro.c -o intro.o gcc -O2 -c menumanager.c -o menumanager.o gcc -O2 -c menu_options.c -o menu_options.o gcc -O2 -c menu_keysetup.c -o menu_keysetup.o gcc -O2 -c menu_savegames.c -o menu_savegames.o gcc -O2 -c menu_custommap.c -o menu_custommap.o gcc -O2 -c editor/menu_editor.c -o editor/menu_editor.o gcc -O2 -c customepisode.c -o customepisode.o gcc -O2 -c savegame.c -o savegame.o gcc -O2 -c twirly.c -o twirly.o gcc -O2 -c sgrle.c -o sgrle.o gcc -O2 -c lprintf.c -o lprintf.o gcc -O2 -c vgatiles.c -o vgatiles.o gcc -O2 -c latch.c -o latch.o sanity.c: In function ‘run_sanity’: sanity.c:140:32: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 140 | wheretogetit = (char)(*list)[i+2]; | ^ sanity.c:155:50: warning: comparison between pointer and integer 155 | if (wheretogetit == COMESWITHKEEN || 1) | ^~ sanity.c:156:54: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 156 | getFromWhere = kFromOriginal; | ^ sanity.c:158:54: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 158 | getFromWhere = kFromCloneKeen; | ^ fileio.c: In function ‘fcaseopen’: fileio.c:73:33: error: implicit declaration of function ‘stat’ [-Wimplicit-function-declaration] 73 | stat("trying '%s'", fname); | ^~~~ menumanager.c:16:27: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 16 | uchar *main_menu[MAXM] = {88,79, 0, NULL, NULL, NULL, NULL, | ^~ menumanager.c:16:27: note: (near initialization for ‘main_menu[0]’) menumanager.c:16:30: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 16 | uchar *main_menu[MAXM] = {88,79, 0, NULL, NULL, NULL, NULL, | ^~ menumanager.c:16:30: note: (near initialization for ‘main_menu[1]’) In file included from menumanager.c:10: menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:17:58: note: in expansion of macro ‘MNU_CALLFP’ 17 | "1-Player Game", MNU_CALLFP, goto_epmenu, 1, | ^~~~~~~~~~ menu.h:61:41: note: (near initialization for ‘main_menu[8]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:17:58: note: in expansion of macro ‘MNU_CALLFP’ 17 | "1-Player Game", MNU_CALLFP, goto_epmenu, 1, | ^~~~~~~~~~ menumanager.c:17:70: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 17 | "1-Player Game", MNU_CALLFP, goto_epmenu, 1, | ^~~~~~~~~~~ menumanager.c:17:70: note: (near initialization for ‘main_menu[9]’) menumanager.c:17:83: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17 | "1-Player Game", MNU_CALLFP, goto_epmenu, 1, | ^ menumanager.c:17:83: note: (near initialization for ‘main_menu[10]’) menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:18:58: note: in expansion of macro ‘MNU_CALLFP’ 18 | "2-Player Game", MNU_CALLFP, goto_epmenu, 2, | ^~~~~~~~~~ menu.h:61:41: note: (near initialization for ‘main_menu[12]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:18:58: note: in expansion of macro ‘MNU_CALLFP’ 18 | "2-Player Game", MNU_CALLFP, goto_epmenu, 2, | ^~~~~~~~~~ menumanager.c:18:70: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 18 | "2-Player Game", MNU_CALLFP, goto_epmenu, 2, | ^~~~~~~~~~~ menumanager.c:18:70: note: (near initialization for ‘main_menu[13]’) menumanager.c:18:83: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 18 | "2-Player Game", MNU_CALLFP, goto_epmenu, 2, | ^ menumanager.c:18:83: note: (near initialization for ‘main_menu[14]’) menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:19:51: note: in expansion of macro ‘MNU_SWITCHMENU’ 19 | "Editor", MNU_SWITCHMENU, edloadmap_menu, 0, | ^~~~~~~~~~~~~~ menu.h:60:33: note: (near initialization for ‘main_menu[16]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:19:51: note: in expansion of macro ‘MNU_SWITCHMENU’ 19 | "Editor", MNU_SWITCHMENU, edloadmap_menu, 0, | ^~~~~~~~~~~~~~ misc_ui.c: In function ‘ShipEp3’: menumanager.c:19:67: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 19 | "Editor", MNU_SWITCHMENU, edloadmap_menu, 0, | ^~~~~~~~~~~~~~ menumanager.c:19:67: note: (near initialization for ‘main_menu[17]’) menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:20:54: note: in expansion of macro ‘MNU_SWITCHMENU’ 20 | "Load Game", MNU_SWITCHMENU, loadgame_menu, 0, | ^~~~~~~~~~~~~~ misc_ui.c:136:8: error: type defaults to ‘int’ in declaration of ‘lastpick’ [-Wimplicit-int] 136 | static lastpick = -1; | ^~~~~~~~ menu.h:60:33: note: (near initialization for ‘main_menu[20]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:20:54: note: in expansion of macro ‘MNU_SWITCHMENU’ 20 | "Load Game", MNU_SWITCHMENU, loadgame_menu, 0, | ^~~~~~~~~~~~~~ menumanager.c:20:70: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 20 | "Load Game", MNU_SWITCHMENU, loadgame_menu, 0, | ^~~~~~~~~~~~~ menumanager.c:20:70: note: (near initialization for ‘main_menu[21]’) menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:21:52: note: in expansion of macro ‘MNU_SWITCHMENU’ 21 | "Options", MNU_SWITCHMENU, option_menu, 0, | ^~~~~~~~~~~~~~ menu.h:60:33: note: (near initialization for ‘main_menu[24]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:21:52: note: in expansion of macro ‘MNU_SWITCHMENU’ 21 | "Options", MNU_SWITCHMENU, option_menu, 0, | ^~~~~~~~~~~~~~ menumanager.c:21:68: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 21 | "Options", MNU_SWITCHMENU, option_menu, 0, | ^~~~~~~~~~~ menumanager.c:21:68: note: (near initialization for ‘main_menu[25]’) menu_options.c:12:29: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 12 | uchar *option_menu[MAXM] = {(6*8)+2,2, 8, options_savestate, SaveOptions, NULL, NULL, | ^ menu_options.c:12:29: note: (near initialization for ‘option_menu[0]’) menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:22:50: note: in expansion of macro ‘MNU_SWITCHMENU’ 22 | "About", MNU_SWITCHMENU, about_menu, 0, | ^~~~~~~~~~~~~~ menu_options.c:12:37: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 12 | uchar *option_menu[MAXM] = {(6*8)+2,2, 8, options_savestate, SaveOptions, NULL, NULL, | ^ menu_options.c:12:37: note: (near initialization for ‘option_menu[1]’) menu.h:60:33: note: (near initialization for ‘main_menu[28]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:22:50: note: in expansion of macro ‘MNU_SWITCHMENU’ 22 | "About", MNU_SWITCHMENU, about_menu, 0, | ^~~~~~~~~~~~~~ menu_options.c:12:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 12 | uchar *option_menu[MAXM] = {(6*8)+2,2, 8, options_savestate, SaveOptions, NULL, NULL, | ^ menu_options.c:12:41: note: (near initialization for ‘option_menu[2]’) menumanager.c:22:66: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 22 | "About", MNU_SWITCHMENU, about_menu, 0, | ^~~~~~~~~~ menumanager.c:22:66: note: (near initialization for ‘main_menu[29]’) menu_options.c:12:44: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 12 | uchar *option_menu[MAXM] = {(6*8)+2,2, 8, options_savestate, SaveOptions, NULL, NULL, | ^~~~~~~~~~~~~~~~~ menu_options.c:12:44: note: (near initialization for ‘option_menu[3]’) menu_options.c:12:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 12 | uchar *option_menu[MAXM] = {(6*8)+2,2, 8, options_savestate, SaveOptions, NULL, NULL, | ^~~~~~~~~~~ menu_options.c:12:63: note: (near initialization for ‘option_menu[4]’) menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:24:49: note: in expansion of macro ‘MNU_CALLFP’ 24 | "Quit", MNU_CALLFP, mmhandler_quit, 0, | ^~~~~~~~~~ menu.h:61:41: note: (near initialization for ‘main_menu[36]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:24:49: note: in expansion of macro ‘MNU_CALLFP’ 24 | "Quit", MNU_CALLFP, mmhandler_quit, 0, | ^~~~~~~~~~ menumanager.c:24:61: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 24 | "Quit", MNU_CALLFP, mmhandler_quit, 0, | ^~~~~~~~~~~~~~ menumanager.c:24:61: note: (near initialization for ‘main_menu[37]’) In file included from menu_options.c:5: menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:13:56: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 13 | "Render Mode", MNU_DYNAMICTEXT, SetRenderMode, 0, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘option_menu[8]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:13:56: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 13 | "Render Mode", MNU_DYNAMICTEXT, SetRenderMode, 0, | ^~~~~~~~~~~~~~~ menumanager.c:28:29: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 28 | uchar *ingame_menu[MAXM] = {88,79, 0, NULL, NULL, NULL, NULL, | ^~ menu_options.c:13:73: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, char)’ [-Wincompatible-pointer-types] 13 | "Render Mode", MNU_DYNAMICTEXT, SetRenderMode, 0, | ^~~~~~~~~~~~~ menumanager.c:28:29: note: (near initialization for ‘ingame_menu[0]’) menu_options.c:13:73: note: (near initialization for ‘option_menu[9]’) menumanager.c:28:32: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 28 | uchar *ingame_menu[MAXM] = {88,79, 0, NULL, NULL, NULL, NULL, | ^~ menumanager.c:28:32: note: (near initialization for ‘ingame_menu[1]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:14:55: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 14 | "Render FPS", MNU_DYNAMICTEXT, SetRenderFPS, 0, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘option_menu[12]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:14:55: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 14 | "Render FPS", MNU_DYNAMICTEXT, SetRenderFPS, 0, | ^~~~~~~~~~~~~~~ menu_options.c:14:72: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, char)’ [-Wincompatible-pointer-types] 14 | "Render FPS", MNU_DYNAMICTEXT, SetRenderFPS, 0, | ^~~~~~~~~~~~ menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:29:53: note: in expansion of macro ‘MNU_SWITCHMENU’ 29 | "New Game", MNU_SWITCHMENU, selectep_menu, 0, | ^~~~~~~~~~~~~~ menu_options.c:14:72: note: (near initialization for ‘option_menu[13]’) menu.h:60:33: note: (near initialization for ‘ingame_menu[8]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:29:53: note: in expansion of macro ‘MNU_SWITCHMENU’ 29 | "New Game", MNU_SWITCHMENU, selectep_menu, 0, | ^~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:15:53: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 15 | "P1 Color", MNU_DYNAMICTEXT, SetPColor, OPT_P1COLOR, | ^~~~~~~~~~~~~~~ menumanager.c:29:69: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 29 | "New Game", MNU_SWITCHMENU, selectep_menu, 0, | ^~~~~~~~~~~~~ menumanager.c:29:69: note: (near initialization for ‘ingame_menu[9]’) menu.h:62:33: note: (near initialization for ‘option_menu[16]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:15:53: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 15 | "P1 Color", MNU_DYNAMICTEXT, SetPColor, OPT_P1COLOR, | ^~~~~~~~~~~~~~~ menu_options.c:15:70: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, char)’ [-Wincompatible-pointer-types] 15 | "P1 Color", MNU_DYNAMICTEXT, SetPColor, OPT_P1COLOR, | ^~~~~~~~~ menu_options.c:15:70: note: (near initialization for ‘option_menu[17]’) menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:30:54: note: in expansion of macro ‘MNU_SWITCHMENU’ 30 | "Save Game", MNU_SWITCHMENU, savegame_menu, 0, | ^~~~~~~~~~~~~~ menu.h:60:33: note: (near initialization for ‘ingame_menu[12]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:30:54: note: in expansion of macro ‘MNU_SWITCHMENU’ 30 | "Save Game", MNU_SWITCHMENU, savegame_menu, 0, | ^~~~~~~~~~~~~~ menumanager.c:30:70: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 30 | "Save Game", MNU_SWITCHMENU, savegame_menu, 0, | ^~~~~~~~~~~~~ menumanager.c:30:70: note: (near initialization for ‘ingame_menu[13]’) In file included from menu_options.c:3: keen.h:297:49: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 297 | #define OPT_P1COLOR 18 // player 1 color | ^~ menu_options.c:15:81: note: in expansion of macro ‘OPT_P1COLOR’ 15 | "P1 Color", MNU_DYNAMICTEXT, SetPColor, OPT_P1COLOR, | ^~~~~~~~~~~ keen.h:297:49: note: (near initialization for ‘option_menu[18]’) 297 | #define OPT_P1COLOR 18 // player 1 color | ^~ menu_options.c:15:81: note: in expansion of macro ‘OPT_P1COLOR’ 15 | "P1 Color", MNU_DYNAMICTEXT, SetPColor, OPT_P1COLOR, | ^~~~~~~~~~~ menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:31:54: note: in expansion of macro ‘MNU_SWITCHMENU’ 31 | "Load Game", MNU_SWITCHMENU, loadgame_menu, 0, | ^~~~~~~~~~~~~~ menu.h:60:33: note: (near initialization for ‘ingame_menu[16]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:31:54: note: in expansion of macro ‘MNU_SWITCHMENU’ 31 | "Load Game", MNU_SWITCHMENU, loadgame_menu, 0, | ^~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:16:53: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 16 | "P2 Color", MNU_DYNAMICTEXT, SetPColor, OPT_P2COLOR, | ^~~~~~~~~~~~~~~ menumanager.c:31:70: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 31 | "Load Game", MNU_SWITCHMENU, loadgame_menu, 0, | ^~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘option_menu[20]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:16:53: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 16 | "P2 Color", MNU_DYNAMICTEXT, SetPColor, OPT_P2COLOR, | ^~~~~~~~~~~~~~~ menumanager.c:31:70: note: (near initialization for ‘ingame_menu[17]’) menu_options.c:16:70: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, char)’ [-Wincompatible-pointer-types] 16 | "P2 Color", MNU_DYNAMICTEXT, SetPColor, OPT_P2COLOR, | ^~~~~~~~~ menu_options.c:16:70: note: (near initialization for ‘option_menu[21]’) menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:32:52: note: in expansion of macro ‘MNU_SWITCHMENU’ 32 | "Options", MNU_SWITCHMENU, option_menu, 0, | ^~~~~~~~~~~~~~ keen.h:298:49: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 298 | #define OPT_P2COLOR 19 // player 2 color | ^~ menu_options.c:16:81: note: in expansion of macro ‘OPT_P2COLOR’ 16 | "P2 Color", MNU_DYNAMICTEXT, SetPColor, OPT_P2COLOR, | ^~~~~~~~~~~ menu.h:60:33: note: (near initialization for ‘ingame_menu[20]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:32:52: note: in expansion of macro ‘MNU_SWITCHMENU’ 32 | "Options", MNU_SWITCHMENU, option_menu, 0, | ^~~~~~~~~~~~~~ keen.h:298:49: note: (near initialization for ‘option_menu[22]’) 298 | #define OPT_P2COLOR 19 // player 2 color | ^~ menu_options.c:16:81: note: in expansion of macro ‘OPT_P2COLOR’ 16 | "P2 Color", MNU_DYNAMICTEXT, SetPColor, OPT_P2COLOR, | ^~~~~~~~~~~ menumanager.c:32:68: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 32 | "Options", MNU_SWITCHMENU, option_menu, 0, | ^~~~~~~~~~~ menumanager.c:32:68: note: (near initialization for ‘ingame_menu[21]’) menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menu_options.c:17:56: note: in expansion of macro ‘MNU_SWITCHMENU’ 17 | "Input P2...", MNU_SWITCHMENU, keysetup_menu2, 0, | ^~~~~~~~~~~~~~ menu.h:60:33: note: (near initialization for ‘option_menu[24]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menu_options.c:17:56: note: in expansion of macro ‘MNU_SWITCHMENU’ 17 | "Input P2...", MNU_SWITCHMENU, keysetup_menu2, 0, | ^~~~~~~~~~~~~~ menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:34:54: note: in expansion of macro ‘MNU_CALLFP’ 34 | "End Level", MNU_CALLFP, mmhandler_restartlevel, 2, | ^~~~~~~~~~ menu_options.c:17:72: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 17 | "Input P2...", MNU_SWITCHMENU, keysetup_menu2, 0, | ^~~~~~~~~~~~~~ menu_options.c:17:72: note: (near initialization for ‘option_menu[25]’) menu.h:61:41: note: (near initialization for ‘ingame_menu[28]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:34:54: note: in expansion of macro ‘MNU_CALLFP’ 34 | "End Level", MNU_CALLFP, mmhandler_restartlevel, 2, | ^~~~~~~~~~ menu_keysetup.c:9:32: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 9 | uchar *keysetup_menu1[MAXM] = {32,(9*8), 2, keysetup_init, NULL, NULL, NULL, | ^~ menu_keysetup.c:9:32: note: (near initialization for ‘keysetup_menu1[0]’) menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menu_options.c:18:56: note: in expansion of macro ‘MNU_SWITCHMENU’ 18 | "Input P1...", MNU_SWITCHMENU, keysetup_menu1, 0, | ^~~~~~~~~~~~~~ menumanager.c:34:66: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 34 | "End Level", MNU_CALLFP, mmhandler_restartlevel, 2, | ^~~~~~~~~~~~~~~~~~~~~~ menu_keysetup.c:9:35: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 9 | uchar *keysetup_menu1[MAXM] = {32,(9*8), 2, keysetup_init, NULL, NULL, NULL, | ^ menumanager.c:34:66: note: (near initialization for ‘ingame_menu[29]’) menu_keysetup.c:9:35: note: (near initialization for ‘keysetup_menu1[1]’) menu.h:60:33: note: (near initialization for ‘option_menu[28]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menu_options.c:18:56: note: in expansion of macro ‘MNU_SWITCHMENU’ 18 | "Input P1...", MNU_SWITCHMENU, keysetup_menu1, 0, | ^~~~~~~~~~~~~~ menu_keysetup.c:9:43: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 9 | uchar *keysetup_menu1[MAXM] = {32,(9*8), 2, keysetup_init, NULL, NULL, NULL, | ^ menu_keysetup.c:9:43: note: (near initialization for ‘keysetup_menu1[2]’) menumanager.c:34:90: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 34 | "End Level", MNU_CALLFP, mmhandler_restartlevel, 2, | ^ menumanager.c:34:90: note: (near initialization for ‘ingame_menu[30]’) menu_options.c:18:72: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 18 | "Input P1...", MNU_SWITCHMENU, keysetup_menu1, 0, | ^~~~~~~~~~~~~~ menu_options.c:18:72: note: (near initialization for ‘option_menu[29]’) menu_keysetup.c:9:46: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 9 | uchar *keysetup_menu1[MAXM] = {32,(9*8), 2, keysetup_init, NULL, NULL, NULL, | ^~~~~~~~~~~~~ menu_keysetup.c:9:46: note: (near initialization for ‘keysetup_menu1[3]’) menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:35:53: note: in expansion of macro ‘MNU_SWITCHMENU’ 35 | "End Game", MNU_SWITCHMENU, endgame_menu, 0, | ^~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:19:57: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 19 | " Fullscreen", MNU_DYNAMICTEXT, OptionSetter, OPT_FULLSCREEN, | ^~~~~~~~~~~~~~~ menu.h:60:33: note: (near initialization for ‘ingame_menu[32]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:35:53: note: in expansion of macro ‘MNU_SWITCHMENU’ 35 | "End Game", MNU_SWITCHMENU, endgame_menu, 0, | ^~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘option_menu[32]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:19:57: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 19 | " Fullscreen", MNU_DYNAMICTEXT, OptionSetter, OPT_FULLSCREEN, | ^~~~~~~~~~~~~~~ menumanager.c:35:69: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 35 | "End Game", MNU_SWITCHMENU, endgame_menu, 0, | ^~~~~~~~~~~~ menu_options.c:19:74: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 19 | " Fullscreen", MNU_DYNAMICTEXT, OptionSetter, OPT_FULLSCREEN, | ^~~~~~~~~~~~ menumanager.c:35:69: note: (near initialization for ‘ingame_menu[33]’) menu_options.c:19:74: note: (near initialization for ‘option_menu[33]’) In file included from menu_keysetup.c:4: menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:12:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 12 | "LEFT ", MNU_DYNAMICTEXT, KeySetup, KLEFT, | ^~~~~~~~~~~~~~~ keen.h:286:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 286 | #define OPT_FULLSCREEN 7 // 1=full screen mode | ^ menu_options.c:19:88: note: in expansion of macro ‘OPT_FULLSCREEN’ 19 | " Fullscreen", MNU_DYNAMICTEXT, OptionSetter, OPT_FULLSCREEN, | ^~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘keysetup_menu1[16]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:12:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 12 | "LEFT ", MNU_DYNAMICTEXT, KeySetup, KLEFT, | ^~~~~~~~~~~~~~~ menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:36:49: note: in expansion of macro ‘MNU_CALLFP’ 36 | "Quit", MNU_CALLFP, mmhandler_quit, 0, | ^~~~~~~~~~ keen.h:286:33: note: (near initialization for ‘option_menu[34]’) 286 | #define OPT_FULLSCREEN 7 // 1=full screen mode | ^ menu_options.c:19:88: note: in expansion of macro ‘OPT_FULLSCREEN’ 19 | " Fullscreen", MNU_DYNAMICTEXT, OptionSetter, OPT_FULLSCREEN, | ^~~~~~~~~~~~~~ menu_keysetup.c:12:75: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 12 | "LEFT ", MNU_DYNAMICTEXT, KeySetup, KLEFT, | ^~~~~~~~ menu.h:61:41: note: (near initialization for ‘ingame_menu[36]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:36:49: note: in expansion of macro ‘MNU_CALLFP’ 36 | "Quit", MNU_CALLFP, mmhandler_quit, 0, | ^~~~~~~~~~ menu_keysetup.c:12:75: note: (near initialization for ‘keysetup_menu1[17]’) menumanager.c:36:61: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 36 | "Quit", MNU_CALLFP, mmhandler_quit, 0, | ^~~~~~~~~~~~~~ menumanager.c:36:61: note: (near initialization for ‘ingame_menu[37]’) In file included from keen.h:61, from menu_keysetup.c:2: keys.h:7:23: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 7 | #define KLEFT 2 | ^ menu_keysetup.c:12:85: note: in expansion of macro ‘KLEFT’ 12 | "LEFT ", MNU_DYNAMICTEXT, KeySetup, KLEFT, | ^~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:23:62: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 23 | " 2-Button Firing", MNU_DYNAMICTEXT, OptionSetter, OPT_2BUTTONFIRING, | ^~~~~~~~~~~~~~~ keys.h:7:23: note: (near initialization for ‘keysetup_menu1[18]’) 7 | #define KLEFT 2 | ^ menu_keysetup.c:12:85: note: in expansion of macro ‘KLEFT’ 12 | "LEFT ", MNU_DYNAMICTEXT, KeySetup, KLEFT, | ^~~~~ menu.h:62:33: note: (near initialization for ‘option_menu[40]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:23:62: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 23 | " 2-Button Firing", MNU_DYNAMICTEXT, OptionSetter, OPT_2BUTTONFIRING, | ^~~~~~~~~~~~~~~ menumanager.c:40:39: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 40 | uchar *ingame_menu_norestart[MAXM] = {88,79, 0, NULL, NULL, NULL, NULL, | ^~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:13:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 13 | "RIGHT ", MNU_DYNAMICTEXT, KeySetup, KRIGHT, | ^~~~~~~~~~~~~~~ menu_options.c:23:79: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 23 | " 2-Button Firing", MNU_DYNAMICTEXT, OptionSetter, OPT_2BUTTONFIRING, | ^~~~~~~~~~~~ menumanager.c:40:39: note: (near initialization for ‘ingame_menu_norestart[0]’) menu_options.c:23:79: note: (near initialization for ‘option_menu[41]’) menu.h:62:33: note: (near initialization for ‘keysetup_menu1[20]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:13:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 13 | "RIGHT ", MNU_DYNAMICTEXT, KeySetup, KRIGHT, | ^~~~~~~~~~~~~~~ menumanager.c:40:42: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 40 | uchar *ingame_menu_norestart[MAXM] = {88,79, 0, NULL, NULL, NULL, NULL, | ^~ menumanager.c:40:42: note: (near initialization for ‘ingame_menu_norestart[1]’) menu_keysetup.c:13:75: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 13 | "RIGHT ", MNU_DYNAMICTEXT, KeySetup, KRIGHT, | ^~~~~~~~ menu_keysetup.c:13:75: note: (near initialization for ‘keysetup_menu1[21]’) keen.h:280:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 280 | #define OPT_2BUTTONFIRING 1 // 1=standard ctrl+alt fire, 0=space fire | ^ menu_options.c:23:93: note: in expansion of macro ‘OPT_2BUTTONFIRING’ 23 | " 2-Button Firing", MNU_DYNAMICTEXT, OptionSetter, OPT_2BUTTONFIRING, | ^~~~~~~~~~~~~~~~~ keys.h:8:23: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 8 | #define KRIGHT 3 | ^ menu_keysetup.c:13:85: note: in expansion of macro ‘KRIGHT’ 13 | "RIGHT ", MNU_DYNAMICTEXT, KeySetup, KRIGHT, | ^~~~~~ keen.h:280:41: note: (near initialization for ‘option_menu[42]’) 280 | #define OPT_2BUTTONFIRING 1 // 1=standard ctrl+alt fire, 0=space fire | ^ menu_options.c:23:93: note: in expansion of macro ‘OPT_2BUTTONFIRING’ 23 | " 2-Button Firing", MNU_DYNAMICTEXT, OptionSetter, OPT_2BUTTONFIRING, | ^~~~~~~~~~~~~~~~~ keys.h:8:23: note: (near initialization for ‘keysetup_menu1[22]’) 8 | #define KRIGHT 3 | ^ menu_keysetup.c:13:85: note: in expansion of macro ‘KRIGHT’ 13 | "RIGHT ", MNU_DYNAMICTEXT, KeySetup, KRIGHT, | ^~~~~~ menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:41:53: note: in expansion of macro ‘MNU_SWITCHMENU’ 41 | "New Game", MNU_SWITCHMENU, selectep_menu, 0, | ^~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:14:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 14 | "UP ", MNU_DYNAMICTEXT, KeySetup, KUP, | ^~~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:24:69: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 24 | " Fully Automatic Raygun", MNU_DYNAMICTEXT, OptionSetter, OPT_FULLYAUTOMATIC, | ^~~~~~~~~~~~~~~ menu.h:60:33: note: (near initialization for ‘ingame_menu_norestart[8]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:41:53: note: in expansion of macro ‘MNU_SWITCHMENU’ 41 | "New Game", MNU_SWITCHMENU, selectep_menu, 0, | ^~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘keysetup_menu1[24]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:14:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 14 | "UP ", MNU_DYNAMICTEXT, KeySetup, KUP, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘option_menu[44]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:24:69: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 24 | " Fully Automatic Raygun", MNU_DYNAMICTEXT, OptionSetter, OPT_FULLYAUTOMATIC, | ^~~~~~~~~~~~~~~ menu_keysetup.c:14:75: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 14 | "UP ", MNU_DYNAMICTEXT, KeySetup, KUP, | ^~~~~~~~ menumanager.c:41:69: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 41 | "New Game", MNU_SWITCHMENU, selectep_menu, 0, | ^~~~~~~~~~~~~ menu_keysetup.c:14:75: note: (near initialization for ‘keysetup_menu1[25]’) menumanager.c:41:69: note: (near initialization for ‘ingame_menu_norestart[9]’) keys.h:9:23: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 9 | #define KUP 4 | ^ menu_keysetup.c:14:85: note: in expansion of macro ‘KUP’ 14 | "UP ", MNU_DYNAMICTEXT, KeySetup, KUP, | ^~~ menu_options.c:24:86: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 24 | " Fully Automatic Raygun", MNU_DYNAMICTEXT, OptionSetter, OPT_FULLYAUTOMATIC, | ^~~~~~~~~~~~ menu_options.c:24:86: note: (near initialization for ‘option_menu[45]’) keys.h:9:23: note: (near initialization for ‘keysetup_menu1[26]’) 9 | #define KUP 4 | ^ menu_keysetup.c:14:85: note: in expansion of macro ‘KUP’ 14 | "UP ", MNU_DYNAMICTEXT, KeySetup, KUP, | ^~~ menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:42:54: note: in expansion of macro ‘MNU_SWITCHMENU’ 42 | "Save Game", MNU_SWITCHMENU, savegame_menu, 0, | ^~~~~~~~~~~~~~ keen.h:281:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 281 | #define OPT_FULLYAUTOMATIC 2 // 1=fully automatic raygun | ^ menu_options.c:24:100: note: in expansion of macro ‘OPT_FULLYAUTOMATIC’ 24 | " Fully Automatic Raygun", MNU_DYNAMICTEXT, OptionSetter, OPT_FULLYAUTOMATIC, | ^~~~~~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:15:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 15 | "DOWN ", MNU_DYNAMICTEXT, KeySetup, KDOWN, | ^~~~~~~~~~~~~~~ menu.h:60:33: note: (near initialization for ‘ingame_menu_norestart[12]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:42:54: note: in expansion of macro ‘MNU_SWITCHMENU’ 42 | "Save Game", MNU_SWITCHMENU, savegame_menu, 0, | ^~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘keysetup_menu1[28]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:15:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 15 | "DOWN ", MNU_DYNAMICTEXT, KeySetup, KDOWN, | ^~~~~~~~~~~~~~~ keen.h:281:33: note: (near initialization for ‘option_menu[46]’) 281 | #define OPT_FULLYAUTOMATIC 2 // 1=fully automatic raygun | ^ menu_options.c:24:100: note: in expansion of macro ‘OPT_FULLYAUTOMATIC’ 24 | " Fully Automatic Raygun", MNU_DYNAMICTEXT, OptionSetter, OPT_FULLYAUTOMATIC, | ^~~~~~~~~~~~~~~~~~ menumanager.c:42:70: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 42 | "Save Game", MNU_SWITCHMENU, savegame_menu, 0, | ^~~~~~~~~~~~~ menu_keysetup.c:15:75: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 15 | "DOWN ", MNU_DYNAMICTEXT, KeySetup, KDOWN, | ^~~~~~~~ menumanager.c:42:70: note: (near initialization for ‘ingame_menu_norestart[13]’) menu_keysetup.c:15:75: note: (near initialization for ‘keysetup_menu1[29]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:25:57: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 25 | " Super Pogo", MNU_DYNAMICTEXT, OptionSetter, OPT_SUPERPOGO, | ^~~~~~~~~~~~~~~ keys.h:10:23: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 10 | #define KDOWN 5 | ^ menu_keysetup.c:15:85: note: in expansion of macro ‘KDOWN’ 15 | "DOWN ", MNU_DYNAMICTEXT, KeySetup, KDOWN, | ^~~~~ keys.h:10:23: note: (near initialization for ‘keysetup_menu1[30]’) 10 | #define KDOWN 5 | ^ menu_keysetup.c:15:85: note: in expansion of macro ‘KDOWN’ 15 | "DOWN ", MNU_DYNAMICTEXT, KeySetup, KDOWN, | ^~~~~ menu.h:62:33: note: (near initialization for ‘option_menu[48]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:25:57: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 25 | " Super Pogo", MNU_DYNAMICTEXT, OptionSetter, OPT_SUPERPOGO, | ^~~~~~~~~~~~~~~ menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:43:54: note: in expansion of macro ‘MNU_SWITCHMENU’ 43 | "Load Game", MNU_SWITCHMENU, loadgame_menu, 0, | ^~~~~~~~~~~~~~ menu_options.c:25:74: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 25 | " Super Pogo", MNU_DYNAMICTEXT, OptionSetter, OPT_SUPERPOGO, | ^~~~~~~~~~~~ menu.h:60:33: note: (near initialization for ‘ingame_menu_norestart[16]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:43:54: note: in expansion of macro ‘MNU_SWITCHMENU’ 43 | "Load Game", MNU_SWITCHMENU, loadgame_menu, 0, | ^~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:16:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 16 | "JUMP ", MNU_DYNAMICTEXT, KeySetup, KCTRL, | ^~~~~~~~~~~~~~~ menu_options.c:25:74: note: (near initialization for ‘option_menu[49]’) menu_savegames.c:8:31: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 8 | uchar *loadgame_menu[MAXM] = {(7*8)-3,70, 0, loadsavegamenames, NULL, NULL, NULL, | ^ menu.h:62:33: note: (near initialization for ‘keysetup_menu1[32]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:16:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 16 | "JUMP ", MNU_DYNAMICTEXT, KeySetup, KCTRL, | ^~~~~~~~~~~~~~~ menu_savegames.c:8:31: note: (near initialization for ‘loadgame_menu[0]’) menumanager.c:43:70: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 43 | "Load Game", MNU_SWITCHMENU, loadgame_menu, 0, | ^~~~~~~~~~~~~ menumanager.c:43:70: note: (near initialization for ‘ingame_menu_norestart[17]’) menu_keysetup.c:16:75: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 16 | "JUMP ", MNU_DYNAMICTEXT, KeySetup, KCTRL, | ^~~~~~~~ keen.h:282:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 282 | #define OPT_SUPERPOGO 3 // 1=pogo jumps really high | ^ menu_options.c:25:88: note: in expansion of macro ‘OPT_SUPERPOGO’ 25 | " Super Pogo", MNU_DYNAMICTEXT, OptionSetter, OPT_SUPERPOGO, | ^~~~~~~~~~~~~ menu_keysetup.c:16:75: note: (near initialization for ‘keysetup_menu1[33]’) menu_savegames.c:8:39: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 8 | uchar *loadgame_menu[MAXM] = {(7*8)-3,70, 0, loadsavegamenames, NULL, NULL, NULL, | ^~ menu_savegames.c:8:39: note: (near initialization for ‘loadgame_menu[1]’) keen.h:282:33: note: (near initialization for ‘option_menu[50]’) 282 | #define OPT_SUPERPOGO 3 // 1=pogo jumps really high | ^ menu_options.c:25:88: note: in expansion of macro ‘OPT_SUPERPOGO’ 25 | " Super Pogo", MNU_DYNAMICTEXT, OptionSetter, OPT_SUPERPOGO, | ^~~~~~~~~~~~~ keys.h:11:23: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 11 | #define KCTRL 6 | ^ menu_keysetup.c:16:85: note: in expansion of macro ‘KCTRL’ 16 | "JUMP ", MNU_DYNAMICTEXT, KeySetup, KCTRL, | ^~~~~ menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:44:52: note: in expansion of macro ‘MNU_SWITCHMENU’ 44 | "Options", MNU_SWITCHMENU, option_menu, 0, | ^~~~~~~~~~~~~~ keys.h:11:23: note: (near initialization for ‘keysetup_menu1[34]’) 11 | #define KCTRL 6 | ^ menu_keysetup.c:16:85: note: in expansion of macro ‘KCTRL’ 16 | "JUMP ", MNU_DYNAMICTEXT, KeySetup, KCTRL, | ^~~~~ menu_savegames.c:8:47: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 8 | uchar *loadgame_menu[MAXM] = {(7*8)-3,70, 0, loadsavegamenames, NULL, NULL, NULL, | ^~~~~~~~~~~~~~~~~ menu_savegames.c:8:47: note: (near initialization for ‘loadgame_menu[3]’) menu.h:60:33: note: (near initialization for ‘ingame_menu_norestart[20]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:44:52: note: in expansion of macro ‘MNU_SWITCHMENU’ 44 | "Options", MNU_SWITCHMENU, option_menu, 0, | ^~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:26:60: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 26 | " Enable Cheats", MNU_DYNAMICTEXT, OptionSetter, OPT_CHEATS, | ^~~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:17:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 17 | "POGO ", MNU_DYNAMICTEXT, KeySetup, KALT, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘option_menu[52]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:26:60: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 26 | " Enable Cheats", MNU_DYNAMICTEXT, OptionSetter, OPT_CHEATS, | ^~~~~~~~~~~~~~~ menumanager.c:44:68: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 44 | "Options", MNU_SWITCHMENU, option_menu, 0, | ^~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘keysetup_menu1[36]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:17:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 17 | "POGO ", MNU_DYNAMICTEXT, KeySetup, KALT, | ^~~~~~~~~~~~~~~ menumanager.c:44:68: note: (near initialization for ‘ingame_menu_norestart[21]’) menu_keysetup.c:17:75: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 17 | "POGO ", MNU_DYNAMICTEXT, KeySetup, KALT, | ^~~~~~~~ menu_options.c:26:77: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 26 | " Enable Cheats", MNU_DYNAMICTEXT, OptionSetter, OPT_CHEATS, | ^~~~~~~~~~~~ menu_keysetup.c:17:75: note: (near initialization for ‘keysetup_menu1[37]’) menu_options.c:26:77: note: (near initialization for ‘option_menu[53]’) In file included from menu_savegames.c:3: menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:9:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 9 | "1", MNU_DYNAMICTEXT, loadgame_getgamename, 1, | ^~~~~~~~~~~~~~~ menu_custommap.c:10:32: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 10 | uchar *custommap_menu[MAXM] = {(7*9)-3,72, 0, cmap_enter, cmap_exit, cmap_scroll, NULL, | ^ keys.h:12:23: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 12 | #define KALT 7 | ^ menu_keysetup.c:17:85: note: in expansion of macro ‘KALT’ 17 | "POGO ", MNU_DYNAMICTEXT, KeySetup, KALT, | ^~~~ menu_custommap.c:10:32: note: (near initialization for ‘custommap_menu[0]’) menu.h:62:33: note: (near initialization for ‘loadgame_menu[8]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:9:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 9 | "1", MNU_DYNAMICTEXT, loadgame_getgamename, 1, | ^~~~~~~~~~~~~~~ keen.h:285:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 285 | #define OPT_CHEATS 6 // 1=enable clonekeen-specific cheats | ^ menu_options.c:26:91: note: in expansion of macro ‘OPT_CHEATS’ 26 | " Enable Cheats", MNU_DYNAMICTEXT, OptionSetter, OPT_CHEATS, | ^~~~~~~~~~ keys.h:12:23: note: (near initialization for ‘keysetup_menu1[38]’) 12 | #define KALT 7 | ^ menu_keysetup.c:17:85: note: in expansion of macro ‘KALT’ 17 | "POGO ", MNU_DYNAMICTEXT, KeySetup, KALT, | ^~~~ menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:46:53: note: in expansion of macro ‘MNU_SWITCHMENU’ 46 | "End Game", MNU_SWITCHMENU, endgame_menu, 0, | ^~~~~~~~~~~~~~ menu_custommap.c:10:40: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 10 | uchar *custommap_menu[MAXM] = {(7*9)-3,72, 0, cmap_enter, cmap_exit, cmap_scroll, NULL, | ^~ menu_custommap.c:10:40: note: (near initialization for ‘custommap_menu[1]’) menu_savegames.c:9:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 9 | "1", MNU_DYNAMICTEXT, loadgame_getgamename, 1, | ^~~~~~~~~~~~~~~~~~~~ keen.h:285:33: note: (near initialization for ‘option_menu[54]’) 285 | #define OPT_CHEATS 6 // 1=enable clonekeen-specific cheats | ^ menu_options.c:26:91: note: in expansion of macro ‘OPT_CHEATS’ 26 | " Enable Cheats", MNU_DYNAMICTEXT, OptionSetter, OPT_CHEATS, | ^~~~~~~~~~ menu_savegames.c:9:63: note: (near initialization for ‘loadgame_menu[9]’) menu.h:60:33: note: (near initialization for ‘ingame_menu_norestart[28]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:46:53: note: in expansion of macro ‘MNU_SWITCHMENU’ 46 | "End Game", MNU_SWITCHMENU, endgame_menu, 0, | ^~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:18:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 18 | "FIRE/STATUS ", MNU_DYNAMICTEXT, KeySetup, KSPACE, | ^~~~~~~~~~~~~~~ menu_savegames.c:9:85: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 9 | "1", MNU_DYNAMICTEXT, loadgame_getgamename, 1, | ^ menu_custommap.c:10:48: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 10 | uchar *custommap_menu[MAXM] = {(7*9)-3,72, 0, cmap_enter, cmap_exit, cmap_scroll, NULL, | ^~~~~~~~~~ menu_savegames.c:9:85: note: (near initialization for ‘loadgame_menu[10]’) menu_custommap.c:10:48: note: (near initialization for ‘custommap_menu[3]’) make: *** [Makefile:100: fileio.o] Error 1 make: *** Waiting for unfinished jobs.... menu.h:62:33: note: (near initialization for ‘keysetup_menu1[40]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:18:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 18 | "FIRE/STATUS ", MNU_DYNAMICTEXT, KeySetup, KSPACE, | ^~~~~~~~~~~~~~~ menu_keysetup.c:18:75: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 18 | "FIRE/STATUS ", MNU_DYNAMICTEXT, KeySetup, KSPACE, | ^~~~~~~~ menu_keysetup.c:18:75: note: (near initialization for ‘keysetup_menu1[41]’) keys.h:14:23: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 14 | #define KSPACE 9 | ^ menu_keysetup.c:18:85: note: in expansion of macro ‘KSPACE’ 18 | "FIRE/STATUS ", MNU_DYNAMICTEXT, KeySetup, KSPACE, | ^~~~~~ keys.h:14:23: note: (near initialization for ‘keysetup_menu1[42]’) 14 | #define KSPACE 9 | ^ menu_keysetup.c:18:85: note: in expansion of macro ‘KSPACE’ 18 | "FIRE/STATUS ", MNU_DYNAMICTEXT, KeySetup, KSPACE, | ^~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:19:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 19 | "STATUS ", MNU_DYNAMICTEXT, KeySetup, KENTER, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘keysetup_menu1[44]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:19:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 19 | "STATUS ", MNU_DYNAMICTEXT, KeySetup, KENTER, | ^~~~~~~~~~~~~~~ menu_keysetup.c:19:75: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 19 | "STATUS ", MNU_DYNAMICTEXT, KeySetup, KENTER, | ^~~~~~~~ menu_keysetup.c:19:75: note: (near initialization for ‘keysetup_menu1[45]’) keys.h:13:23: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 13 | #define KENTER 8 | ^ menu_keysetup.c:19:85: note: in expansion of macro ‘KENTER’ 19 | "STATUS ", MNU_DYNAMICTEXT, KeySetup, KENTER, | ^~~~~~ keys.h:13:23: note: (near initialization for ‘keysetup_menu1[46]’) 13 | #define KENTER 8 | ^ menu_keysetup.c:19:85: note: in expansion of macro ‘KENTER’ 19 | "STATUS ", MNU_DYNAMICTEXT, KeySetup, KENTER, | ^~~~~~ menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_keysetup.c:21:49: note: in expansion of macro ‘MNU_CALLFP’ 21 | "Save", MNU_CALLFP, SaveKeys, 0, | ^~~~~~~~~~ menu.h:61:41: note: (near initialization for ‘keysetup_menu1[52]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_keysetup.c:21:49: note: in expansion of macro ‘MNU_CALLFP’ 21 | "Save", MNU_CALLFP, SaveKeys, 0, | ^~~~~~~~~~ menu_keysetup.c:21:61: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(void)’ [-Wincompatible-pointer-types] 21 | "Save", MNU_CALLFP, SaveKeys, 0, | ^~~~~~~~ menu_keysetup.c:21:61: note: (near initialization for ‘keysetup_menu1[53]’) menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_keysetup.c:22:51: note: in expansion of macro ‘MNU_CALLFP’ 22 | "Cancel", MNU_CALLFP, CancelKeys, 0, | ^~~~~~~~~~ menu.h:61:41: note: (near initialization for ‘keysetup_menu1[56]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_keysetup.c:22:51: note: in expansion of macro ‘MNU_CALLFP’ 22 | "Cancel", MNU_CALLFP, CancelKeys, 0, | ^~~~~~~~~~ menu_keysetup.c:22:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(void)’ [-Wincompatible-pointer-types] 22 | "Cancel", MNU_CALLFP, CancelKeys, 0, | ^~~~~~~~~~ menu_keysetup.c:22:63: note: (near initialization for ‘keysetup_menu1[57]’) menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_keysetup.c:23:53: note: in expansion of macro ‘MNU_CALLFP’ 23 | "Defaults", MNU_CALLFP, SetDefaults, 0, | ^~~~~~~~~~ menu.h:61:41: note: (near initialization for ‘keysetup_menu1[60]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_keysetup.c:23:53: note: in expansion of macro ‘MNU_CALLFP’ 23 | "Defaults", MNU_CALLFP, SetDefaults, 0, | ^~~~~~~~~~ menu_keysetup.c:23:65: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(void)’ [-Wincompatible-pointer-types] 23 | "Defaults", MNU_CALLFP, SetDefaults, 0, | ^~~~~~~~~~~ menu_keysetup.c:23:65: note: (near initialization for ‘keysetup_menu1[61]’) menu_keysetup.c:25:32: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 25 | uchar *keysetup_menu2[MAXM] = {32,(9*8), 2, keysetup_init, NULL, NULL, NULL, | ^~ menu_keysetup.c:25:32: note: (near initialization for ‘keysetup_menu2[0]’) menu_keysetup.c:25:35: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 25 | uchar *keysetup_menu2[MAXM] = {32,(9*8), 2, keysetup_init, NULL, NULL, NULL, | ^ menu_keysetup.c:25:35: note: (near initialization for ‘keysetup_menu2[1]’) menu_keysetup.c:25:43: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 25 | uchar *keysetup_menu2[MAXM] = {32,(9*8), 2, keysetup_init, NULL, NULL, NULL, | ^ menu_keysetup.c:25:43: note: (near initialization for ‘keysetup_menu2[2]’) menu_keysetup.c:25:46: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 25 | uchar *keysetup_menu2[MAXM] = {32,(9*8), 2, keysetup_init, NULL, NULL, NULL, | ^~~~~~~~~~~~~ menu_keysetup.c:25:46: note: (near initialization for ‘keysetup_menu2[3]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:28:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 28 | "LEFT ", MNU_DYNAMICTEXT, KeySetup, KLEFT2, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘keysetup_menu2[16]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:28:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 28 | "LEFT ", MNU_DYNAMICTEXT, KeySetup, KLEFT2, | ^~~~~~~~~~~~~~~ menu_keysetup.c:28:75: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 28 | "LEFT ", MNU_DYNAMICTEXT, KeySetup, KLEFT2, | ^~~~~~~~ menu_keysetup.c:28:75: note: (near initialization for ‘keysetup_menu2[17]’) keys.h:27:23: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 27 | #define KLEFT2 20 | ^~ menu_keysetup.c:28:85: note: in expansion of macro ‘KLEFT2’ 28 | "LEFT ", MNU_DYNAMICTEXT, KeySetup, KLEFT2, | ^~~~~~ keys.h:27:23: note: (near initialization for ‘keysetup_menu2[18]’) 27 | #define KLEFT2 20 | ^~ menu_keysetup.c:28:85: note: in expansion of macro ‘KLEFT2’ 28 | "LEFT ", MNU_DYNAMICTEXT, KeySetup, KLEFT2, | ^~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:29:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 29 | "RIGHT ", MNU_DYNAMICTEXT, KeySetup, KRIGHT2, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘keysetup_menu2[20]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:29:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 29 | "RIGHT ", MNU_DYNAMICTEXT, KeySetup, KRIGHT2, | ^~~~~~~~~~~~~~~ menu_keysetup.c:29:75: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 29 | "RIGHT ", MNU_DYNAMICTEXT, KeySetup, KRIGHT2, | ^~~~~~~~ menu_keysetup.c:29:75: note: (near initialization for ‘keysetup_menu2[21]’) keys.h:28:23: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 28 | #define KRIGHT2 21 | ^~ menu_keysetup.c:29:85: note: in expansion of macro ‘KRIGHT2’ 29 | "RIGHT ", MNU_DYNAMICTEXT, KeySetup, KRIGHT2, | ^~~~~~~ keys.h:28:23: note: (near initialization for ‘keysetup_menu2[22]’) 28 | #define KRIGHT2 21 | ^~ menu_keysetup.c:29:85: note: in expansion of macro ‘KRIGHT2’ 29 | "RIGHT ", MNU_DYNAMICTEXT, KeySetup, KRIGHT2, | ^~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:30:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 30 | "UP ", MNU_DYNAMICTEXT, KeySetup, KUP2, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘keysetup_menu2[24]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:30:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 30 | "UP ", MNU_DYNAMICTEXT, KeySetup, KUP2, | ^~~~~~~~~~~~~~~ menu_keysetup.c:30:75: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 30 | "UP ", MNU_DYNAMICTEXT, KeySetup, KUP2, | ^~~~~~~~ menu_keysetup.c:30:75: note: (near initialization for ‘keysetup_menu2[25]’) keys.h:29:23: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 29 | #define KUP2 22 | ^~ menu_keysetup.c:30:85: note: in expansion of macro ‘KUP2’ 30 | "UP ", MNU_DYNAMICTEXT, KeySetup, KUP2, | ^~~~ keys.h:29:23: note: (near initialization for ‘keysetup_menu2[26]’) 29 | #define KUP2 22 | ^~ menu_keysetup.c:30:85: note: in expansion of macro ‘KUP2’ 30 | "UP ", MNU_DYNAMICTEXT, KeySetup, KUP2, | ^~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:31:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 31 | "DOWN ", MNU_DYNAMICTEXT, KeySetup, KDOWN2, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘keysetup_menu2[28]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:31:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 31 | "DOWN ", MNU_DYNAMICTEXT, KeySetup, KDOWN2, | ^~~~~~~~~~~~~~~ menu_keysetup.c:31:75: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 31 | "DOWN ", MNU_DYNAMICTEXT, KeySetup, KDOWN2, | ^~~~~~~~ menu_keysetup.c:31:75: note: (near initialization for ‘keysetup_menu2[29]’) keys.h:30:23: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 30 | #define KDOWN2 23 | ^~ menu_keysetup.c:31:85: note: in expansion of macro ‘KDOWN2’ 31 | "DOWN ", MNU_DYNAMICTEXT, KeySetup, KDOWN2, | ^~~~~~ keys.h:30:23: note: (near initialization for ‘keysetup_menu2[30]’) 30 | #define KDOWN2 23 | ^~ menu_keysetup.c:31:85: note: in expansion of macro ‘KDOWN2’ 31 | "DOWN ", MNU_DYNAMICTEXT, KeySetup, KDOWN2, | ^~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:32:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 32 | "JUMP ", MNU_DYNAMICTEXT, KeySetup, KCTRL2, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘keysetup_menu2[32]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:32:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 32 | "JUMP ", MNU_DYNAMICTEXT, KeySetup, KCTRL2, | ^~~~~~~~~~~~~~~ menu_keysetup.c:32:75: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 32 | "JUMP ", MNU_DYNAMICTEXT, KeySetup, KCTRL2, | ^~~~~~~~ menu_keysetup.c:32:75: note: (near initialization for ‘keysetup_menu2[33]’) keys.h:31:23: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 31 | #define KCTRL2 24 | ^~ menu_keysetup.c:32:85: note: in expansion of macro ‘KCTRL2’ 32 | "JUMP ", MNU_DYNAMICTEXT, KeySetup, KCTRL2, | ^~~~~~ keys.h:31:23: note: (near initialization for ‘keysetup_menu2[34]’) 31 | #define KCTRL2 24 | ^~ menu_keysetup.c:32:85: note: in expansion of macro ‘KCTRL2’ 32 | "JUMP ", MNU_DYNAMICTEXT, KeySetup, KCTRL2, | ^~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:33:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 33 | "POGO ", MNU_DYNAMICTEXT, KeySetup, KALT2, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘keysetup_menu2[36]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:33:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 33 | "POGO ", MNU_DYNAMICTEXT, KeySetup, KALT2, | ^~~~~~~~~~~~~~~ menu_keysetup.c:33:75: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 33 | "POGO ", MNU_DYNAMICTEXT, KeySetup, KALT2, | ^~~~~~~~ menu_keysetup.c:33:75: note: (near initialization for ‘keysetup_menu2[37]’) keys.h:32:23: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 32 | #define KALT2 25 | ^~ menu_keysetup.c:33:85: note: in expansion of macro ‘KALT2’ 33 | "POGO ", MNU_DYNAMICTEXT, KeySetup, KALT2, | ^~~~~ keys.h:32:23: note: (near initialization for ‘keysetup_menu2[38]’) 32 | #define KALT2 25 | ^~ menu_keysetup.c:33:85: note: in expansion of macro ‘KALT2’ 33 | "POGO ", MNU_DYNAMICTEXT, KeySetup, KALT2, | ^~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:34:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 34 | "FIRE/STATUS ", MNU_DYNAMICTEXT, KeySetup, KSPACE2, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘keysetup_menu2[40]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:34:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 34 | "FIRE/STATUS ", MNU_DYNAMICTEXT, KeySetup, KSPACE2, | ^~~~~~~~~~~~~~~ menu_keysetup.c:34:75: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 34 | "FIRE/STATUS ", MNU_DYNAMICTEXT, KeySetup, KSPACE2, | ^~~~~~~~ menu_keysetup.c:34:75: note: (near initialization for ‘keysetup_menu2[41]’) keys.h:34:27: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 34 | #define KSPACE2 27 | ^~ menu_keysetup.c:34:85: note: in expansion of macro ‘KSPACE2’ 34 | "FIRE/STATUS ", MNU_DYNAMICTEXT, KeySetup, KSPACE2, | ^~~~~~~ keys.h:34:27: note: (near initialization for ‘keysetup_menu2[42]’) 34 | #define KSPACE2 27 | ^~ menu_keysetup.c:34:85: note: in expansion of macro ‘KSPACE2’ 34 | "FIRE/STATUS ", MNU_DYNAMICTEXT, KeySetup, KSPACE2, | ^~~~~~~ menumanager.c:46:69: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 46 | "End Game", MNU_SWITCHMENU, endgame_menu, 0, | ^~~~~~~~~~~~ menumanager.c:46:69: note: (near initialization for ‘ingame_menu_norestart[29]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:27:64: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 27 | " Show Bonus Points", MNU_DYNAMICTEXT, OptionSetter, OPT_RISEBONUS, | ^~~~~~~~~~~~~~~ menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:47:49: note: in expansion of macro ‘MNU_CALLFP’ 47 | "Quit", MNU_CALLFP, mmhandler_quit, 0, | ^~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘option_menu[56]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:27:64: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 27 | " Show Bonus Points", MNU_DYNAMICTEXT, OptionSetter, OPT_RISEBONUS, | ^~~~~~~~~~~~~~~ menu.h:61:41: note: (near initialization for ‘ingame_menu_norestart[32]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:47:49: note: in expansion of macro ‘MNU_CALLFP’ 47 | "Quit", MNU_CALLFP, mmhandler_quit, 0, | ^~~~~~~~~~ menu_options.c:27:81: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 27 | " Show Bonus Points", MNU_DYNAMICTEXT, OptionSetter, OPT_RISEBONUS, | ^~~~~~~~~~~~ menu_options.c:27:81: note: (near initialization for ‘option_menu[57]’) menumanager.c:47:61: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 47 | "Quit", MNU_CALLFP, mmhandler_quit, 0, | ^~~~~~~~~~~~~~ menumanager.c:47:61: note: (near initialization for ‘ingame_menu_norestart[33]’) keen.h:291:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 291 | #define OPT_RISEBONUS 12 // 1=show rising bonus points | ^~ menu_options.c:27:95: note: in expansion of macro ‘OPT_RISEBONUS’ 27 | " Show Bonus Points", MNU_DYNAMICTEXT, OptionSetter, OPT_RISEBONUS, | ^~~~~~~~~~~~~ keen.h:291:41: note: (near initialization for ‘option_menu[58]’) 291 | #define OPT_RISEBONUS 12 // 1=show rising bonus points | ^~ menu_options.c:27:95: note: in expansion of macro ‘OPT_RISEBONUS’ 27 | " Show Bonus Points", MNU_DYNAMICTEXT, OptionSetter, OPT_RISEBONUS, | ^~~~~~~~~~~~~ menumanager.c:51:30: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 51 | uchar *endgame_menu[MAXM] = {90,100, 0, NULL, NULL, NULL, NULL, | ^~ menumanager.c:51:30: note: (near initialization for ‘endgame_menu[0]’) menumanager.c:51:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 51 | uchar *endgame_menu[MAXM] = {90,100, 0, NULL, NULL, NULL, NULL, | ^~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:28:55: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 28 | " Show OSD", MNU_DYNAMICTEXT, OptionSetter, OPT_SHOWOSD, | ^~~~~~~~~~~~~~~ menumanager.c:51:33: note: (near initialization for ‘endgame_menu[1]’) menu.h:62:33: note: (near initialization for ‘option_menu[60]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:28:55: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 28 | " Show OSD", MNU_DYNAMICTEXT, OptionSetter, OPT_SHOWOSD, | ^~~~~~~~~~~~~~~ menu_options.c:28:72: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 28 | " Show OSD", MNU_DYNAMICTEXT, OptionSetter, OPT_SHOWOSD, | ^~~~~~~~~~~~ menu_options.c:28:72: note: (near initialization for ‘option_menu[61]’) menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:52:57: note: in expansion of macro ‘MNU_CALLFP’ 52 | "End the Game", MNU_CALLFP, mmhandler_endgame, 0, | ^~~~~~~~~~ keen.h:292:49: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 292 | #define OPT_SHOWOSD 13 // 1=show OSD | ^~ menu_options.c:28:86: note: in expansion of macro ‘OPT_SHOWOSD’ 28 | " Show OSD", MNU_DYNAMICTEXT, OptionSetter, OPT_SHOWOSD, | ^~~~~~~~~~~ menu.h:61:41: note: (near initialization for ‘endgame_menu[8]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:52:57: note: in expansion of macro ‘MNU_CALLFP’ 52 | "End the Game", MNU_CALLFP, mmhandler_endgame, 0, | ^~~~~~~~~~ keen.h:292:49: note: (near initialization for ‘option_menu[62]’) 292 | #define OPT_SHOWOSD 13 // 1=show OSD | ^~ menu_options.c:28:86: note: in expansion of macro ‘OPT_SHOWOSD’ 28 | " Show OSD", MNU_DYNAMICTEXT, OptionSetter, OPT_SHOWOSD, | ^~~~~~~~~~~ menumanager.c:52:69: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 52 | "End the Game", MNU_CALLFP, mmhandler_endgame, 0, | ^~~~~~~~~~~~~~~~~ menumanager.c:52:69: note: (near initialization for ‘endgame_menu[9]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:29:64: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 29 | " Show Score in OSD", MNU_DYNAMICTEXT, OptionSetter, OPT_SHOWSCORE, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘option_menu[64]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:29:64: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 29 | " Show Score in OSD", MNU_DYNAMICTEXT, OptionSetter, OPT_SHOWSCORE, | ^~~~~~~~~~~~~~~ menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:54:53: note: in expansion of macro ‘MNU_CALLFP’ 54 | "Play on!", MNU_CALLFP, dismiss_menu, 0, | ^~~~~~~~~~ menu_options.c:29:81: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 29 | " Show Score in OSD", MNU_DYNAMICTEXT, OptionSetter, OPT_SHOWSCORE, | ^~~~~~~~~~~~ menu.h:61:41: note: (near initialization for ‘endgame_menu[16]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:54:53: note: in expansion of macro ‘MNU_CALLFP’ 54 | "Play on!", MNU_CALLFP, dismiss_menu, 0, | ^~~~~~~~~~ menu_options.c:29:81: note: (near initialization for ‘option_menu[65]’) menumanager.c:54:65: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 54 | "Play on!", MNU_CALLFP, dismiss_menu, 0, | ^~~~~~~~~~~~ keen.h:293:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 293 | #define OPT_SHOWSCORE 14 // 1=show score in OSD | ^~ menu_options.c:29:95: note: in expansion of macro ‘OPT_SHOWSCORE’ 29 | " Show Score in OSD", MNU_DYNAMICTEXT, OptionSetter, OPT_SHOWSCORE, | ^~~~~~~~~~~~~ menumanager.c:54:65: note: (near initialization for ‘endgame_menu[17]’) keen.h:293:41: note: (near initialization for ‘option_menu[66]’) 293 | #define OPT_SHOWSCORE 14 // 1=show score in OSD | ^~ menu_options.c:29:95: note: in expansion of macro ‘OPT_SHOWSCORE’ 29 | " Show Score in OSD", MNU_DYNAMICTEXT, OptionSetter, OPT_SHOWSCORE, | ^~~~~~~~~~~~~ menumanager.c:58:27: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 58 | uchar *quit_menu[MAXM] = {90,100, 0, NULL, NULL, NULL, NULL, | ^~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:30:64: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 30 | " Show Cards in OSD", MNU_DYNAMICTEXT, OptionSetter, OPT_SHOWCARDS, | ^~~~~~~~~~~~~~~ menumanager.c:58:27: note: (near initialization for ‘quit_menu[0]’) menu.h:62:33: note: (near initialization for ‘option_menu[68]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:30:64: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 30 | " Show Cards in OSD", MNU_DYNAMICTEXT, OptionSetter, OPT_SHOWCARDS, | ^~~~~~~~~~~~~~~ menumanager.c:58:30: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 58 | uchar *quit_menu[MAXM] = {90,100, 0, NULL, NULL, NULL, NULL, | ^~~ menumanager.c:58:30: note: (near initialization for ‘quit_menu[1]’) menu_options.c:30:81: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 30 | " Show Cards in OSD", MNU_DYNAMICTEXT, OptionSetter, OPT_SHOWCARDS, | ^~~~~~~~~~~~ menu_options.c:30:81: note: (near initialization for ‘option_menu[69]’) menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:59:61: note: in expansion of macro ‘MNU_CALLFP’ 59 | "Quit the Program", MNU_CALLFP, mmhandler_quit2, 0, | ^~~~~~~~~~ keen.h:294:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 294 | #define OPT_SHOWCARDS 15 // 1=show cards in OSD | ^~ menu_options.c:30:95: note: in expansion of macro ‘OPT_SHOWCARDS’ 30 | " Show Cards in OSD", MNU_DYNAMICTEXT, OptionSetter, OPT_SHOWCARDS, | ^~~~~~~~~~~~~ menu.h:61:41: note: (near initialization for ‘quit_menu[8]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:59:61: note: in expansion of macro ‘MNU_CALLFP’ 59 | "Quit the Program", MNU_CALLFP, mmhandler_quit2, 0, | ^~~~~~~~~~ keen.h:294:41: note: (near initialization for ‘option_menu[70]’) 294 | #define OPT_SHOWCARDS 15 // 1=show cards in OSD | ^~ menu_options.c:30:95: note: in expansion of macro ‘OPT_SHOWCARDS’ 30 | " Show Cards in OSD", MNU_DYNAMICTEXT, OptionSetter, OPT_SHOWCARDS, | ^~~~~~~~~~~~~ menumanager.c:59:73: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 59 | "Quit the Program", MNU_CALLFP, mmhandler_quit2, 0, | ^~~~~~~~~~~~~~~ menumanager.c:59:73: note: (near initialization for ‘quit_menu[9]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:31:65: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 31 | " Doors Block Raygun", MNU_DYNAMICTEXT, OptionSetter, OPT_DOORSBLOCKRAY, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘option_menu[72]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:31:65: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 31 | " Doors Block Raygun", MNU_DYNAMICTEXT, OptionSetter, OPT_DOORSBLOCKRAY, | ^~~~~~~~~~~~~~~ menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:61:53: note: in expansion of macro ‘MNU_CALLFP’ 61 | "Play on!", MNU_CALLFP, dismiss_menu, 0, | ^~~~~~~~~~ menu_options.c:31:82: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 31 | " Doors Block Raygun", MNU_DYNAMICTEXT, OptionSetter, OPT_DOORSBLOCKRAY, | ^~~~~~~~~~~~ menu_options.c:31:82: note: (near initialization for ‘option_menu[73]’) menu.h:61:41: note: (near initialization for ‘quit_menu[16]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:61:53: note: in expansion of macro ‘MNU_CALLFP’ 61 | "Play on!", MNU_CALLFP, dismiss_menu, 0, | ^~~~~~~~~~ keen.h:295:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 295 | #define OPT_DOORSBLOCKRAY 16 // 1=can't shoot through locked doors | ^~ menu_options.c:31:96: note: in expansion of macro ‘OPT_DOORSBLOCKRAY’ 31 | " Doors Block Raygun", MNU_DYNAMICTEXT, OptionSetter, OPT_DOORSBLOCKRAY, | ^~~~~~~~~~~~~~~~~ menumanager.c:61:65: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 61 | "Play on!", MNU_CALLFP, dismiss_menu, 0, | ^~~~~~~~~~~~ menumanager.c:61:65: note: (near initialization for ‘quit_menu[17]’) keen.h:295:41: note: (near initialization for ‘option_menu[74]’) 295 | #define OPT_DOORSBLOCKRAY 16 // 1=can't shoot through locked doors | ^~ menu_options.c:31:96: note: in expansion of macro ‘OPT_DOORSBLOCKRAY’ 31 | " Doors Block Raygun", MNU_DYNAMICTEXT, OptionSetter, OPT_DOORSBLOCKRAY, | ^~~~~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:32:60: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 32 | " Quiet in Demo", MNU_DYNAMICTEXT, OptionSetter, OPT_SOUNDOFFINDEMO, | ^~~~~~~~~~~~~~~ menumanager.c:65:31: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 65 | uchar *selectep_menu[MAXM] = {5*8,90, 0, NULL, NULL, NULL, NULL, | ^ menumanager.c:65:31: note: (near initialization for ‘selectep_menu[0]’) menu.h:62:33: note: (near initialization for ‘option_menu[76]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:32:60: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 32 | " Quiet in Demo", MNU_DYNAMICTEXT, OptionSetter, OPT_SOUNDOFFINDEMO, | ^~~~~~~~~~~~~~~ menu_options.c:32:77: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 32 | " Quiet in Demo", MNU_DYNAMICTEXT, OptionSetter, OPT_SOUNDOFFINDEMO, | ^~~~~~~~~~~~ menumanager.c:65:35: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 65 | uchar *selectep_menu[MAXM] = {5*8,90, 0, NULL, NULL, NULL, NULL, | ^~ menu_options.c:32:77: note: (near initialization for ‘option_menu[77]’) menumanager.c:65:35: note: (near initialization for ‘selectep_menu[1]’) keen.h:296:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 296 | #define OPT_SOUNDOFFINDEMO 17 // no sound during demo | ^~ menu_options.c:32:91: note: in expansion of macro ‘OPT_SOUNDOFFINDEMO’ 32 | " Quiet in Demo", MNU_DYNAMICTEXT, OptionSetter, OPT_SOUNDOFFINDEMO, | ^~~~~~~~~~~~~~~~~~ keen.h:296:41: note: (near initialization for ‘option_menu[78]’) 296 | #define OPT_SOUNDOFFINDEMO 17 // no sound during demo | ^~ menu_options.c:32:91: note: in expansion of macro ‘OPT_SOUNDOFFINDEMO’ 32 | " Quiet in Demo", MNU_DYNAMICTEXT, OptionSetter, OPT_SOUNDOFFINDEMO, | ^~~~~~~~~~~~~~~~~~ menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:66:70: note: in expansion of macro ‘MNU_CALLFP’ 66 | "Invasion of the Vorticons", MNU_CALLFP, mmhandler_newgame, 1, | ^~~~~~~~~~ menu.h:61:41: note: (near initialization for ‘selectep_menu[8]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:66:70: note: in expansion of macro ‘MNU_CALLFP’ 66 | "Invasion of the Vorticons", MNU_CALLFP, mmhandler_newgame, 1, | ^~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:34:66: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 34 | " Increase Difficulty", MNU_DYNAMICTEXT, OptionSetter, OPT_HARD, | ^~~~~~~~~~~~~~~ menumanager.c:66:82: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 66 | "Invasion of the Vorticons", MNU_CALLFP, mmhandler_newgame, 1, | ^~~~~~~~~~~~~~~~~ menumanager.c:66:82: note: (near initialization for ‘selectep_menu[9]’) menu.h:62:33: note: (near initialization for ‘option_menu[84]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:34:66: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 34 | " Increase Difficulty", MNU_DYNAMICTEXT, OptionSetter, OPT_HARD, | ^~~~~~~~~~~~~~~ menu_options.c:34:83: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 34 | " Increase Difficulty", MNU_DYNAMICTEXT, OptionSetter, OPT_HARD, | ^~~~~~~~~~~~ menumanager.c:66:101: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 66 | "Invasion of the Vorticons", MNU_CALLFP, mmhandler_newgame, 1, | ^ menu_options.c:34:83: note: (near initialization for ‘option_menu[85]’) menumanager.c:66:101: note: (near initialization for ‘selectep_menu[10]’) keen.h:283:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 283 | #define OPT_HARD 4 // 1=increase difficulty | ^ menu_options.c:34:97: note: in expansion of macro ‘OPT_HARD’ 34 | " Increase Difficulty", MNU_DYNAMICTEXT, OptionSetter, OPT_HARD, | ^~~~~~~~ menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:67:63: note: in expansion of macro ‘MNU_CALLFP’ 67 | "The Earth Explodes", MNU_CALLFP, mmhandler_newgame, 2, | ^~~~~~~~~~ keen.h:283:33: note: (near initialization for ‘option_menu[86]’) 283 | #define OPT_HARD 4 // 1=increase difficulty | ^ menu_options.c:34:97: note: in expansion of macro ‘OPT_HARD’ 34 | " Increase Difficulty", MNU_DYNAMICTEXT, OptionSetter, OPT_HARD, | ^~~~~~~~ menu.h:61:41: note: (near initialization for ‘selectep_menu[12]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:67:63: note: in expansion of macro ‘MNU_CALLFP’ 67 | "The Earth Explodes", MNU_CALLFP, mmhandler_newgame, 2, | ^~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:35:66: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 35 | " Must Kill All Yorps", MNU_DYNAMICTEXT, OptionSetter, OPT_MUSTKILLYORPS, | ^~~~~~~~~~~~~~~ menumanager.c:67:75: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 67 | "The Earth Explodes", MNU_CALLFP, mmhandler_newgame, 2, | ^~~~~~~~~~~~~~~~~ menumanager.c:67:75: note: (near initialization for ‘selectep_menu[13]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:10:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 10 | "2", MNU_DYNAMICTEXT, loadgame_getgamename, 2, | ^~~~~~~~~~~~~~~ editor/menu_editor.c:23:34: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 23 | uchar *editor_misc_menu[MAXM] = {64,72, 0, NULL, NULL, NULL, NULL, | ^~ customepisode.c: In function ‘LoadFlagsIni’: editor/menu_editor.c:23:34: note: (near initialization for ‘editor_misc_menu[0]’) menu.h:62:33: note: (near initialization for ‘loadgame_menu[12]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:10:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 10 | "2", MNU_DYNAMICTEXT, loadgame_getgamename, 2, | ^~~~~~~~~~~~~~~ make: *** [Makefile:142: misc_ui.o] Error 1 editor/menu_editor.c:23:37: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 23 | uchar *editor_misc_menu[MAXM] = {64,72, 0, NULL, NULL, NULL, NULL, | ^~ editor/menu_editor.c:23:37: note: (near initialization for ‘editor_misc_menu[1]’) menu_savegames.c:10:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 10 | "2", MNU_DYNAMICTEXT, loadgame_getgamename, 2, | ^~~~~~~~~~~~~~~~~~~~ menu_savegames.c:10:63: note: (near initialization for ‘loadgame_menu[13]’) customepisode.c:32:59: error: implicit declaration of function ‘LoadVGASprites’ [-Wimplicit-function-declaration] 32 | if (Ini_GetNumericKeyDef(iname, "VGASprites", 0)) LoadVGASprites(); | ^~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘option_menu[88]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:35:66: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 35 | " Must Kill All Yorps", MNU_DYNAMICTEXT, OptionSetter, OPT_MUSTKILLYORPS, | ^~~~~~~~~~~~~~~ menu_savegames.c:10:85: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 10 | "2", MNU_DYNAMICTEXT, loadgame_getgamename, 2, | ^ menu_savegames.c:10:85: note: (near initialization for ‘loadgame_menu[14]’) menu_custommap.c:10:60: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 10 | uchar *custommap_menu[MAXM] = {(7*9)-3,72, 0, cmap_enter, cmap_exit, cmap_scroll, NULL, | ^~~~~~~~~ menu_custommap.c:10:60: note: (near initialization for ‘custommap_menu[4]’) menu_options.c:35:83: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 35 | " Must Kill All Yorps", MNU_DYNAMICTEXT, OptionSetter, OPT_MUSTKILLYORPS, | ^~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:11:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 11 | "3", MNU_DYNAMICTEXT, loadgame_getgamename, 3, | ^~~~~~~~~~~~~~~ menu_options.c:35:83: note: (near initialization for ‘option_menu[89]’) menu.h:62:33: note: (near initialization for ‘loadgame_menu[16]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:11:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 11 | "3", MNU_DYNAMICTEXT, loadgame_getgamename, 3, | ^~~~~~~~~~~~~~~ menumanager.c:67:94: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 67 | "The Earth Explodes", MNU_CALLFP, mmhandler_newgame, 2, | ^ menu_custommap.c:10:71: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘void (*)(char)’ [-Wincompatible-pointer-types] 10 | uchar *custommap_menu[MAXM] = {(7*9)-3,72, 0, cmap_enter, cmap_exit, cmap_scroll, NULL, | ^~~~~~~~~~~ menu_custommap.c:10:71: note: (near initialization for ‘custommap_menu[5]’) In file included from editor/menu_editor.c:3: editor/../menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:24:59: note: in expansion of macro ‘MNU_CALLFP’ 24 | "Set Time Limit", MNU_CALLFP, me_timelimit, 0, | ^~~~~~~~~~ menu_savegames.c:11:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 11 | "3", MNU_DYNAMICTEXT, loadgame_getgamename, 3, | ^~~~~~~~~~~~~~~~~~~~ menu_savegames.c:11:63: note: (near initialization for ‘loadgame_menu[17]’) menumanager.c:67:94: note: (near initialization for ‘selectep_menu[14]’) keen.h:289:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 289 | #define OPT_MUSTKILLYORPS 10 // 1=must kill yorps to leave level | ^~ menu_options.c:35:97: note: in expansion of macro ‘OPT_MUSTKILLYORPS’ 35 | " Must Kill All Yorps", MNU_DYNAMICTEXT, OptionSetter, OPT_MUSTKILLYORPS, | ^~~~~~~~~~~~~~~~~ editor/../menu.h:61:41: note: (near initialization for ‘editor_misc_menu[8]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:24:59: note: in expansion of macro ‘MNU_CALLFP’ 24 | "Set Time Limit", MNU_CALLFP, me_timelimit, 0, | ^~~~~~~~~~ menu_savegames.c:11:85: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 11 | "3", MNU_DYNAMICTEXT, loadgame_getgamename, 3, | ^ menu_savegames.c:11:85: note: (near initialization for ‘loadgame_menu[18]’) editor/menu_editor.c:24:71: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 24 | "Set Time Limit", MNU_CALLFP, me_timelimit, 0, | ^~~~~~~~~~~~ keen.h:289:41: note: (near initialization for ‘option_menu[90]’) 289 | #define OPT_MUSTKILLYORPS 10 // 1=must kill yorps to leave level | ^~ menu_options.c:35:97: note: in expansion of macro ‘OPT_MUSTKILLYORPS’ 35 | " Must Kill All Yorps", MNU_DYNAMICTEXT, OptionSetter, OPT_MUSTKILLYORPS, | ^~~~~~~~~~~~~~~~~ editor/menu_editor.c:24:71: note: (near initialization for ‘editor_misc_menu[9]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:12:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 12 | "4", MNU_DYNAMICTEXT, loadgame_getgamename, 4, | ^~~~~~~~~~~~~~~ In file included from menu_custommap.c:3: menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:11:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 11 | "0", MNU_DYNAMICTEXT, getcmapname, 0, | ^~~~~~~~~~~~~~~ menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:68:59: note: in expansion of macro ‘MNU_CALLFP’ 68 | "Keen Must Die!", MNU_CALLFP, mmhandler_newgame, 3, | ^~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘loadgame_menu[20]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:12:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 12 | "4", MNU_DYNAMICTEXT, loadgame_getgamename, 4, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘custommap_menu[8]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:11:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 11 | "0", MNU_DYNAMICTEXT, getcmapname, 0, | ^~~~~~~~~~~~~~~ editor/../menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:25:68: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 25 | " Game Over on Time Out", MNU_DYNAMICTEXT, SetGameOverOnTimeOut, 0, | ^~~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:36:65: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 36 | " Give Yorps Shields", MNU_DYNAMICTEXT, OptionSetter, OPT_YORPFORCEFIELDS, | ^~~~~~~~~~~~~~~ menu_savegames.c:12:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 12 | "4", MNU_DYNAMICTEXT, loadgame_getgamename, 4, | ^~~~~~~~~~~~~~~~~~~~ editor/../menu.h:62:33: note: (near initialization for ‘editor_misc_menu[12]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:25:68: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 25 | " Game Over on Time Out", MNU_DYNAMICTEXT, SetGameOverOnTimeOut, 0, | ^~~~~~~~~~~~~~~ menu.h:61:41: note: (near initialization for ‘selectep_menu[16]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menumanager.c:68:59: note: in expansion of macro ‘MNU_CALLFP’ 68 | "Keen Must Die!", MNU_CALLFP, mmhandler_newgame, 3, | ^~~~~~~~~~ menu_savegames.c:12:63: note: (near initialization for ‘loadgame_menu[21]’) menu_custommap.c:11:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 11 | "0", MNU_DYNAMICTEXT, getcmapname, 0, | ^~~~~~~~~~~ menu_custommap.c:11:63: note: (near initialization for ‘custommap_menu[9]’) menu.h:62:33: note: (near initialization for ‘option_menu[92]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_options.c:36:65: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 36 | " Give Yorps Shields", MNU_DYNAMICTEXT, OptionSetter, OPT_YORPFORCEFIELDS, | ^~~~~~~~~~~~~~~ menu_savegames.c:12:85: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 12 | "4", MNU_DYNAMICTEXT, loadgame_getgamename, 4, | ^ editor/menu_editor.c:25:85: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 25 | " Game Over on Time Out", MNU_DYNAMICTEXT, SetGameOverOnTimeOut, 0, | ^~~~~~~~~~~~~~~~~~~~ menu_savegames.c:12:85: note: (near initialization for ‘loadgame_menu[22]’) editor/menu_editor.c:25:85: note: (near initialization for ‘editor_misc_menu[13]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:12:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 12 | "1", MNU_DYNAMICTEXT, getcmapname, 1, | ^~~~~~~~~~~~~~~ menumanager.c:68:71: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 68 | "Keen Must Die!", MNU_CALLFP, mmhandler_newgame, 3, | ^~~~~~~~~~~~~~~~~ menu_options.c:36:82: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 36 | " Give Yorps Shields", MNU_DYNAMICTEXT, OptionSetter, OPT_YORPFORCEFIELDS, | ^~~~~~~~~~~~ menumanager.c:68:71: note: (near initialization for ‘selectep_menu[17]’) menu_options.c:36:82: note: (near initialization for ‘option_menu[93]’) menu.h:62:33: note: (near initialization for ‘custommap_menu[12]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:12:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 12 | "1", MNU_DYNAMICTEXT, getcmapname, 1, | ^~~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:13:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 13 | "5", MNU_DYNAMICTEXT, loadgame_getgamename, 5, | ^~~~~~~~~~~~~~~ editor/../menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:26:45: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 26 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_HARD, | ^~~~~~~~~~~~~~~ menu_custommap.c:12:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 12 | "1", MNU_DYNAMICTEXT, getcmapname, 1, | ^~~~~~~~~~~ menu_custommap.c:12:63: note: (near initialization for ‘custommap_menu[13]’) editor/../menu.h:62:33: note: (near initialization for ‘editor_misc_menu[16]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:26:45: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 26 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_HARD, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘loadgame_menu[24]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:13:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 13 | "5", MNU_DYNAMICTEXT, loadgame_getgamename, 5, | ^~~~~~~~~~~~~~~ menumanager.c:68:90: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 68 | "Keen Must Die!", MNU_CALLFP, mmhandler_newgame, 3, | ^ menumanager.c:68:90: note: (near initialization for ‘selectep_menu[18]’) menu_custommap.c:12:76: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 12 | "1", MNU_DYNAMICTEXT, getcmapname, 1, | ^ keen.h:290:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 290 | #define OPT_YORPFORCEFIELDS 11 // 1=must stun yorps to kill them | ^~ menu_options.c:36:96: note: in expansion of macro ‘OPT_YORPFORCEFIELDS’ 36 | " Give Yorps Shields", MNU_DYNAMICTEXT, OptionSetter, OPT_YORPFORCEFIELDS, | ^~~~~~~~~~~~~~~~~~~ menu_custommap.c:12:76: note: (near initialization for ‘custommap_menu[14]’) editor/menu_editor.c:26:62: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 26 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_HARD, | ^~~~~~~~~~~~~~~ menu_savegames.c:13:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 13 | "5", MNU_DYNAMICTEXT, loadgame_getgamename, 5, | ^~~~~~~~~~~~~~~~~~~~ editor/menu_editor.c:26:62: note: (near initialization for ‘editor_misc_menu[17]’) menu_savegames.c:13:63: note: (near initialization for ‘loadgame_menu[25]’) keen.h:290:41: note: (near initialization for ‘option_menu[94]’) 290 | #define OPT_YORPFORCEFIELDS 11 // 1=must stun yorps to kill them | ^~ menu_options.c:36:96: note: in expansion of macro ‘OPT_YORPFORCEFIELDS’ 36 | " Give Yorps Shields", MNU_DYNAMICTEXT, OptionSetter, OPT_YORPFORCEFIELDS, | ^~~~~~~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:13:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 13 | "2", MNU_DYNAMICTEXT, getcmapname, 2, | ^~~~~~~~~~~~~~~ menu_savegames.c:13:85: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 13 | "5", MNU_DYNAMICTEXT, loadgame_getgamename, 5, | ^ menu_savegames.c:13:85: note: (near initialization for ‘loadgame_menu[26]’) menu.h:62:33: note: (near initialization for ‘custommap_menu[16]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:13:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 13 | "2", MNU_DYNAMICTEXT, getcmapname, 2, | ^~~~~~~~~~~~~~~ menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:70:58: note: in expansion of macro ‘MNU_SWITCHMENU’ 70 | "Load User Map", MNU_SWITCHMENU, custommap_menu, 0, | ^~~~~~~~~~~~~~ menu_custommap.c:13:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 13 | "2", MNU_DYNAMICTEXT, getcmapname, 2, | ^~~~~~~~~~~ menu_custommap.c:13:63: note: (near initialization for ‘custommap_menu[17]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:14:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 14 | "6", MNU_DYNAMICTEXT, loadgame_getgamename, 6, | ^~~~~~~~~~~~~~~ In file included from editor/menu_editor.c:1: editor/../keen.h:283:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 283 | #define OPT_HARD 4 // 1=increase difficulty | ^ editor/menu_editor.c:26:79: note: in expansion of macro ‘OPT_HARD’ 26 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_HARD, | ^~~~~~~~ menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_options.c:38:51: note: in expansion of macro ‘MNU_CALLFP’ 38 | "Accept", MNU_CALLFP, opthandler_accept, 0, | ^~~~~~~~~~ menu.h:60:33: note: (near initialization for ‘selectep_menu[24]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:70:58: note: in expansion of macro ‘MNU_SWITCHMENU’ 70 | "Load User Map", MNU_SWITCHMENU, custommap_menu, 0, | ^~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘loadgame_menu[28]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:14:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 14 | "6", MNU_DYNAMICTEXT, loadgame_getgamename, 6, | ^~~~~~~~~~~~~~~ menu_custommap.c:13:76: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 13 | "2", MNU_DYNAMICTEXT, getcmapname, 2, | ^ menu_custommap.c:13:76: note: (near initialization for ‘custommap_menu[18]’) editor/../keen.h:283:33: note: (near initialization for ‘editor_misc_menu[18]’) 283 | #define OPT_HARD 4 // 1=increase difficulty | ^ editor/menu_editor.c:26:79: note: in expansion of macro ‘OPT_HARD’ 26 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_HARD, | ^~~~~~~~ menu.h:61:41: note: (near initialization for ‘option_menu[100]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_options.c:38:51: note: in expansion of macro ‘MNU_CALLFP’ 38 | "Accept", MNU_CALLFP, opthandler_accept, 0, | ^~~~~~~~~~ menu_savegames.c:14:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 14 | "6", MNU_DYNAMICTEXT, loadgame_getgamename, 6, | ^~~~~~~~~~~~~~~~~~~~ menu_savegames.c:14:63: note: (near initialization for ‘loadgame_menu[29]’) menumanager.c:70:74: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 70 | "Load User Map", MNU_SWITCHMENU, custommap_menu, 0, | ^~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:14:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 14 | "3", MNU_DYNAMICTEXT, getcmapname, 3, | ^~~~~~~~~~~~~~~ menumanager.c:70:74: note: (near initialization for ‘selectep_menu[25]’) menu_savegames.c:14:85: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 14 | "6", MNU_DYNAMICTEXT, loadgame_getgamename, 6, | ^ editor/../menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:27:45: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 27 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_MUSTKILLYORPS, | ^~~~~~~~~~~~~~~ menu_savegames.c:14:85: note: (near initialization for ‘loadgame_menu[30]’) menu_options.c:38:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 38 | "Accept", MNU_CALLFP, opthandler_accept, 0, | ^~~~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘custommap_menu[20]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:14:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 14 | "3", MNU_DYNAMICTEXT, getcmapname, 3, | ^~~~~~~~~~~~~~~ menu_options.c:38:63: note: (near initialization for ‘option_menu[101]’) editor/../menu.h:62:33: note: (near initialization for ‘editor_misc_menu[20]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:27:45: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 27 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_MUSTKILLYORPS, | ^~~~~~~~~~~~~~~ menu_custommap.c:14:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 14 | "3", MNU_DYNAMICTEXT, getcmapname, 3, | ^~~~~~~~~~~ menu_custommap.c:14:63: note: (near initialization for ‘custommap_menu[21]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:15:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 15 | "7", MNU_DYNAMICTEXT, loadgame_getgamename, 7, | ^~~~~~~~~~~~~~~ menu_custommap.c:14:76: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 14 | "3", MNU_DYNAMICTEXT, getcmapname, 3, | ^ editor/menu_editor.c:27:62: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 27 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_MUSTKILLYORPS, | ^~~~~~~~~~~~~~~ menu_custommap.c:14:76: note: (near initialization for ‘custommap_menu[22]’) menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:71:62: note: in expansion of macro ‘MNU_SWITCHMENU’ 71 | "Back to Main Menu", MNU_SWITCHMENU, main_menu, 1, | ^~~~~~~~~~~~~~ editor/menu_editor.c:27:62: note: (near initialization for ‘editor_misc_menu[21]’) menu.h:62:33: note: (near initialization for ‘loadgame_menu[32]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:15:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 15 | "7", MNU_DYNAMICTEXT, loadgame_getgamename, 7, | ^~~~~~~~~~~~~~~ menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_options.c:39:51: note: in expansion of macro ‘MNU_CALLFP’ 39 | "Cancel", MNU_CALLFP, opthandler_cancel, 0, | ^~~~~~~~~~ menu_savegames.c:15:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 15 | "7", MNU_DYNAMICTEXT, loadgame_getgamename, 7, | ^~~~~~~~~~~~~~~~~~~~ editor/../keen.h:289:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 289 | #define OPT_MUSTKILLYORPS 10 // 1=must kill yorps to leave level | ^~ editor/menu_editor.c:27:79: note: in expansion of macro ‘OPT_MUSTKILLYORPS’ 27 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_MUSTKILLYORPS, | ^~~~~~~~~~~~~~~~~ menu_savegames.c:15:63: note: (near initialization for ‘loadgame_menu[33]’) menu.h:60:33: note: (near initialization for ‘selectep_menu[28]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:71:62: note: in expansion of macro ‘MNU_SWITCHMENU’ 71 | "Back to Main Menu", MNU_SWITCHMENU, main_menu, 1, | ^~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:15:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 15 | "4", MNU_DYNAMICTEXT, getcmapname, 4, | ^~~~~~~~~~~~~~~ menu.h:61:41: note: (near initialization for ‘option_menu[104]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_options.c:39:51: note: in expansion of macro ‘MNU_CALLFP’ 39 | "Cancel", MNU_CALLFP, opthandler_cancel, 0, | ^~~~~~~~~~ menu_savegames.c:15:85: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 15 | "7", MNU_DYNAMICTEXT, loadgame_getgamename, 7, | ^ editor/../keen.h:289:41: note: (near initialization for ‘editor_misc_menu[22]’) 289 | #define OPT_MUSTKILLYORPS 10 // 1=must kill yorps to leave level | ^~ editor/menu_editor.c:27:79: note: in expansion of macro ‘OPT_MUSTKILLYORPS’ 27 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_MUSTKILLYORPS, | ^~~~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘custommap_menu[24]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:15:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 15 | "4", MNU_DYNAMICTEXT, getcmapname, 4, | ^~~~~~~~~~~~~~~ menu_savegames.c:15:85: note: (near initialization for ‘loadgame_menu[34]’) menu_options.c:39:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 39 | "Cancel", MNU_CALLFP, opthandler_cancel, 0, | ^~~~~~~~~~~~~~~~~ menu_custommap.c:15:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 15 | "4", MNU_DYNAMICTEXT, getcmapname, 4, | ^~~~~~~~~~~ menu_options.c:39:63: note: (near initialization for ‘option_menu[105]’) menumanager.c:71:78: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 71 | "Back to Main Menu", MNU_SWITCHMENU, main_menu, 1, | ^~~~~~~~~ menu_custommap.c:15:63: note: (near initialization for ‘custommap_menu[25]’) menumanager.c:71:78: note: (near initialization for ‘selectep_menu[29]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:16:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 16 | "8", MNU_DYNAMICTEXT, loadgame_getgamename, 8, | ^~~~~~~~~~~~~~~ editor/../menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:28:45: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 28 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_YORPFORCEFIELDS, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘loadgame_menu[36]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:16:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 16 | "8", MNU_DYNAMICTEXT, loadgame_getgamename, 8, | ^~~~~~~~~~~~~~~ customepisode.c:33:57: error: implicit declaration of function ‘LoadVGATiles’ [-Wimplicit-function-declaration] 33 | if (Ini_GetNumericKeyDef(iname, "VGATiles", 0)) LoadVGATiles(); | ^~~~~~~~~~~~ editor/../menu.h:62:33: note: (near initialization for ‘editor_misc_menu[24]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:28:45: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 28 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_YORPFORCEFIELDS, | ^~~~~~~~~~~~~~~ editor/menu_editor.c:28:62: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 28 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_YORPFORCEFIELDS, | ^~~~~~~~~~~~~~~ menu_custommap.c:15:76: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 15 | "4", MNU_DYNAMICTEXT, getcmapname, 4, | ^ editor/menu_editor.c:28:62: note: (near initialization for ‘editor_misc_menu[25]’) menu_custommap.c:15:76: note: (near initialization for ‘custommap_menu[26]’) editor/../keen.h:290:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 290 | #define OPT_YORPFORCEFIELDS 11 // 1=must stun yorps to kill them | ^~ editor/menu_editor.c:28:79: note: in expansion of macro ‘OPT_YORPFORCEFIELDS’ 28 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_YORPFORCEFIELDS, | ^~~~~~~~~~~~~~~~~~~ editor/../keen.h:290:41: note: (near initialization for ‘editor_misc_menu[26]’) 290 | #define OPT_YORPFORCEFIELDS 11 // 1=must stun yorps to kill them | ^~ editor/menu_editor.c:28:79: note: in expansion of macro ‘OPT_YORPFORCEFIELDS’ 28 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_YORPFORCEFIELDS, | ^~~~~~~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:16:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 16 | "5", MNU_DYNAMICTEXT, getcmapname, 5, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘custommap_menu[28]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:16:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 16 | "5", MNU_DYNAMICTEXT, getcmapname, 5, | ^~~~~~~~~~~~~~~ editor/../menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:29:45: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 29 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_FULLYAUTOMATIC, | ^~~~~~~~~~~~~~~ menu_custommap.c:16:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 16 | "5", MNU_DYNAMICTEXT, getcmapname, 5, | ^~~~~~~~~~~ menu_custommap.c:16:63: note: (near initialization for ‘custommap_menu[29]’) editor/../menu.h:62:33: note: (near initialization for ‘editor_misc_menu[28]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:29:45: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 29 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_FULLYAUTOMATIC, | ^~~~~~~~~~~~~~~ menu_custommap.c:16:76: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 16 | "5", MNU_DYNAMICTEXT, getcmapname, 5, | ^ menu_custommap.c:16:76: note: (near initialization for ‘custommap_menu[30]’) editor/menu_editor.c:29:62: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 29 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_FULLYAUTOMATIC, | ^~~~~~~~~~~~~~~ editor/menu_editor.c:29:62: note: (near initialization for ‘editor_misc_menu[29]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:17:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 17 | "6", MNU_DYNAMICTEXT, getcmapname, 6, | ^~~~~~~~~~~~~~~ editor/../keen.h:281:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 281 | #define OPT_FULLYAUTOMATIC 2 // 1=fully automatic raygun | ^ editor/menu_editor.c:29:79: note: in expansion of macro ‘OPT_FULLYAUTOMATIC’ 29 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_FULLYAUTOMATIC, | ^~~~~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘custommap_menu[32]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:17:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 17 | "6", MNU_DYNAMICTEXT, getcmapname, 6, | ^~~~~~~~~~~~~~~ editor/../keen.h:281:33: note: (near initialization for ‘editor_misc_menu[30]’) 281 | #define OPT_FULLYAUTOMATIC 2 // 1=fully automatic raygun | ^ editor/menu_editor.c:29:79: note: in expansion of macro ‘OPT_FULLYAUTOMATIC’ 29 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_FULLYAUTOMATIC, | ^~~~~~~~~~~~~~~~~~ menu_custommap.c:17:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 17 | "6", MNU_DYNAMICTEXT, getcmapname, 6, | ^~~~~~~~~~~ menu_custommap.c:17:63: note: (near initialization for ‘custommap_menu[33]’) editor/../menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:30:45: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 30 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_SUPERPOGO, | ^~~~~~~~~~~~~~~ menu_custommap.c:17:76: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17 | "6", MNU_DYNAMICTEXT, getcmapname, 6, | ^ menu_custommap.c:17:76: note: (near initialization for ‘custommap_menu[34]’) editor/../menu.h:62:33: note: (near initialization for ‘editor_misc_menu[32]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:30:45: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 30 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_SUPERPOGO, | ^~~~~~~~~~~~~~~ editor/menu_editor.c:30:62: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 30 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_SUPERPOGO, | ^~~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:18:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 18 | "7", MNU_DYNAMICTEXT, getcmapname, 7, | ^~~~~~~~~~~~~~~ editor/menu_editor.c:30:62: note: (near initialization for ‘editor_misc_menu[33]’) menu.h:62:33: note: (near initialization for ‘custommap_menu[36]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:18:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 18 | "7", MNU_DYNAMICTEXT, getcmapname, 7, | ^~~~~~~~~~~~~~~ editor/../keen.h:282:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 282 | #define OPT_SUPERPOGO 3 // 1=pogo jumps really high | ^ editor/menu_editor.c:30:79: note: in expansion of macro ‘OPT_SUPERPOGO’ 30 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_SUPERPOGO, | ^~~~~~~~~~~~~ menu_custommap.c:18:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 18 | "7", MNU_DYNAMICTEXT, getcmapname, 7, | ^~~~~~~~~~~ menu_custommap.c:18:63: note: (near initialization for ‘custommap_menu[37]’) editor/../keen.h:282:33: note: (near initialization for ‘editor_misc_menu[34]’) 282 | #define OPT_SUPERPOGO 3 // 1=pogo jumps really high | ^ editor/menu_editor.c:30:79: note: in expansion of macro ‘OPT_SUPERPOGO’ 30 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_SUPERPOGO, | ^~~~~~~~~~~~~ menu_custommap.c:18:76: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 18 | "7", MNU_DYNAMICTEXT, getcmapname, 7, | ^ menu_custommap.c:18:76: note: (near initialization for ‘custommap_menu[38]’) editor/../menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:31:45: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 31 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_DOORSBLOCKRAY, | ^~~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:19:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 19 | "8", MNU_DYNAMICTEXT, getcmapname, 8, | ^~~~~~~~~~~~~~~ editor/../menu.h:62:33: note: (near initialization for ‘editor_misc_menu[36]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:31:45: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 31 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_DOORSBLOCKRAY, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘custommap_menu[40]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:19:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 19 | "8", MNU_DYNAMICTEXT, getcmapname, 8, | ^~~~~~~~~~~~~~~ editor/menu_editor.c:31:62: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 31 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_DOORSBLOCKRAY, | ^~~~~~~~~~~~~~~ menu_custommap.c:19:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 19 | "8", MNU_DYNAMICTEXT, getcmapname, 8, | ^~~~~~~~~~~ editor/menu_editor.c:31:62: note: (near initialization for ‘editor_misc_menu[37]’) menu_custommap.c:19:63: note: (near initialization for ‘custommap_menu[41]’) menu_custommap.c:19:76: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 19 | "8", MNU_DYNAMICTEXT, getcmapname, 8, | ^ menu_custommap.c:19:76: note: (near initialization for ‘custommap_menu[42]’) editor/../keen.h:295:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 295 | #define OPT_DOORSBLOCKRAY 16 // 1=can't shoot through locked doors | ^~ editor/menu_editor.c:31:79: note: in expansion of macro ‘OPT_DOORSBLOCKRAY’ 31 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_DOORSBLOCKRAY, | ^~~~~~~~~~~~~~~~~ editor/../keen.h:295:41: note: (near initialization for ‘editor_misc_menu[38]’) 295 | #define OPT_DOORSBLOCKRAY 16 // 1=can't shoot through locked doors | ^~ editor/menu_editor.c:31:79: note: in expansion of macro ‘OPT_DOORSBLOCKRAY’ 31 | "", MNU_DYNAMICTEXT, SetForcedOption, OPT_DOORSBLOCKRAY, | ^~~~~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:20:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 20 | "9", MNU_DYNAMICTEXT, getcmapname, 9, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘custommap_menu[44]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:20:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 20 | "9", MNU_DYNAMICTEXT, getcmapname, 9, | ^~~~~~~~~~~~~~~ menu_custommap.c:20:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 20 | "9", MNU_DYNAMICTEXT, getcmapname, 9, | ^~~~~~~~~~~ menu_custommap.c:20:63: note: (near initialization for ‘custommap_menu[45]’) editor/../menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:33:55: note: in expansion of macro ‘MNU_CALLFP’ 33 | "Add Border", MNU_CALLFP, me_addborder, 0, | ^~~~~~~~~~ menumanager.c:71:89: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 71 | "Back to Main Menu", MNU_SWITCHMENU, main_menu, 1, | ^ editor/../menu.h:61:41: note: (near initialization for ‘editor_misc_menu[44]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:33:55: note: in expansion of macro ‘MNU_CALLFP’ 33 | "Add Border", MNU_CALLFP, me_addborder, 0, | ^~~~~~~~~~ menumanager.c:71:89: note: (near initialization for ‘selectep_menu[30]’) editor/menu_editor.c:33:67: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 33 | "Add Border", MNU_CALLFP, me_addborder, 0, | ^~~~~~~~~~~~ editor/menu_editor.c:33:67: note: (near initialization for ‘editor_misc_menu[45]’) editor/../menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:34:61: note: in expansion of macro ‘MNU_CALLFP’ 34 | "[M] Set Map Size", MNU_CALLFP, me_resizemap, 0, | ^~~~~~~~~~ editor/../menu.h:61:41: note: (near initialization for ‘editor_misc_menu[48]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:34:61: note: in expansion of macro ‘MNU_CALLFP’ 34 | "[M] Set Map Size", MNU_CALLFP, me_resizemap, 0, | ^~~~~~~~~~ menumanager.c:75:28: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 75 | uchar *about_menu[MAXM] = {-3,60, 0xff, NULL, NULL, NULL, NULL, | ^ menumanager.c:75:28: note: (near initialization for ‘about_menu[0]’) editor/menu_editor.c:34:73: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 34 | "[M] Set Map Size", MNU_CALLFP, me_resizemap, 0, | ^~~~~~~~~~~~ editor/menu_editor.c:34:73: note: (near initialization for ‘editor_misc_menu[49]’) menumanager.c:75:31: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 75 | uchar *about_menu[MAXM] = {-3,60, 0xff, NULL, NULL, NULL, NULL, | ^~ menumanager.c:75:31: note: (near initialization for ‘about_menu[1]’) editor/../menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:35:71: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 35 | " [G] Show Object Ghosting", MNU_DYNAMICTEXT, ToggleGhosting, 0, | ^~~~~~~~~~~~~~~ editor/../menu.h:62:33: note: (near initialization for ‘editor_misc_menu[52]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:35:71: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 35 | " [G] Show Object Ghosting", MNU_DYNAMICTEXT, ToggleGhosting, 0, | ^~~~~~~~~~~~~~~ menumanager.c:75:36: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 75 | uchar *about_menu[MAXM] = {-3,60, 0xff, NULL, NULL, NULL, NULL, | ^~~~ menumanager.c:75:36: note: (near initialization for ‘about_menu[2]’) editor/menu_editor.c:35:88: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 35 | " [G] Show Object Ghosting", MNU_DYNAMICTEXT, ToggleGhosting, 0, | ^~~~~~~~~~~~~~ editor/menu_editor.c:35:88: note: (near initialization for ‘editor_misc_menu[53]’) editor/../menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ editor/menu_editor.c:37:52: note: in expansion of macro ‘MNU_SWITCHMENU’ 37 | "<< Back", MNU_SWITCHMENU, editor_menu, 0, | ^~~~~~~~~~~~~~ menu_custommap.c:20:76: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 20 | "9", MNU_DYNAMICTEXT, getcmapname, 9, | ^ editor/../menu.h:60:33: note: (near initialization for ‘editor_misc_menu[60]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ editor/menu_editor.c:37:52: note: in expansion of macro ‘MNU_SWITCHMENU’ 37 | "<< Back", MNU_SWITCHMENU, editor_menu, 0, | ^~~~~~~~~~~~~~ menu_custommap.c:20:76: note: (near initialization for ‘custommap_menu[46]’) editor/menu_editor.c:37:68: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 37 | "<< Back", MNU_SWITCHMENU, editor_menu, 0, | ^~~~~~~~~~~ editor/menu_editor.c:37:68: note: (near initialization for ‘editor_misc_menu[61]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:21:47: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 21 | "10", MNU_DYNAMICTEXT, getcmapname, 10, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘custommap_menu[48]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_custommap.c:21:47: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 21 | "10", MNU_DYNAMICTEXT, getcmapname, 10, | ^~~~~~~~~~~~~~~ editor/menu_editor.c:41:29: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 41 | uchar *editor_menu[MAXM] = {75+8,61, 0, NULL, NULL, NULL, NULL, | ^~ menu_custommap.c:21:64: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 21 | "10", MNU_DYNAMICTEXT, getcmapname, 10, | ^~~~~~~~~~~ editor/menu_editor.c:41:29: note: (near initialization for ‘editor_menu[0]’) menu_custommap.c:21:64: note: (near initialization for ‘custommap_menu[49]’) editor/menu_editor.c:41:34: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 41 | uchar *editor_menu[MAXM] = {75+8,61, 0, NULL, NULL, NULL, NULL, | ^~ menu_custommap.c:21:77: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 21 | "10", MNU_DYNAMICTEXT, getcmapname, 10, | ^~ editor/menu_editor.c:41:34: note: (near initialization for ‘editor_menu[1]’) menu_custommap.c:21:77: note: (near initialization for ‘custommap_menu[50]’) menu_custommap.c:24:31: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 24 | uchar *badlevel_menu[MAXM] = {(4*8),90, 255, NULL, NULL, NULL, NULL, | ^ editor/../menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:42:58: note: in expansion of macro ‘MNU_CALLFP’ 42 | "[z] Run/Stop", MNU_CALLFP, me_togglerunstop, 0, | ^~~~~~~~~~ menu_custommap.c:24:31: note: (near initialization for ‘badlevel_menu[0]’) editor/../menu.h:61:41: note: (near initialization for ‘editor_menu[8]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:42:58: note: in expansion of macro ‘MNU_CALLFP’ 42 | "[z] Run/Stop", MNU_CALLFP, me_togglerunstop, 0, | ^~~~~~~~~~ menu_custommap.c:24:37: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 24 | uchar *badlevel_menu[MAXM] = {(4*8),90, 255, NULL, NULL, NULL, NULL, | ^~ menu_custommap.c:24:37: note: (near initialization for ‘badlevel_menu[1]’) menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:92:57: note: in expansion of macro ‘MNU_SWITCHMENU’ 92 | "GR00VY DUDE!", MNU_SWITCHMENU, main_menu, 0 | ^~~~~~~~~~~~~~ editor/menu_editor.c:42:70: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 42 | "[z] Run/Stop", MNU_CALLFP, me_togglerunstop, 0, | ^~~~~~~~~~~~~~~~ menu_custommap.c:24:42: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 24 | uchar *badlevel_menu[MAXM] = {(4*8),90, 255, NULL, NULL, NULL, NULL, | ^~~ editor/menu_editor.c:42:70: note: (near initialization for ‘editor_menu[9]’) menu_custommap.c:24:42: note: (near initialization for ‘badlevel_menu[2]’) menu.h:60:33: note: (near initialization for ‘about_menu[72]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:92:57: note: in expansion of macro ‘MNU_SWITCHMENU’ 92 | "GR00VY DUDE!", MNU_SWITCHMENU, main_menu, 0 | ^~~~~~~~~~~~~~ editor/../menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:43:55: note: in expansion of macro ‘MNU_CALLFP’ 43 | "[x] Reset", MNU_CALLFP, me_resetmap, 0, | ^~~~~~~~~~ editor/../menu.h:61:41: note: (near initialization for ‘editor_menu[12]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:43:55: note: in expansion of macro ‘MNU_CALLFP’ 43 | "[x] Reset", MNU_CALLFP, me_resetmap, 0, | ^~~~~~~~~~ menumanager.c:92:73: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 92 | "GR00VY DUDE!", MNU_SWITCHMENU, main_menu, 0 | ^~~~~~~~~ menumanager.c:92:73: note: (near initialization for ‘about_menu[73]’) editor/menu_editor.c:43:67: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 43 | "[x] Reset", MNU_CALLFP, me_resetmap, 0, | ^~~~~~~~~~~ editor/menu_editor.c:43:67: note: (near initialization for ‘editor_menu[13]’) editor/../menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ editor/menu_editor.c:44:59: note: in expansion of macro ‘MNU_SWITCHMENU’ 44 | " Clear Map", MNU_SWITCHMENU, edverifyclear_menu, 0, | ^~~~~~~~~~~~~~ menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menu_custommap.c:29:47: note: in expansion of macro ‘MNU_SWITCHMENU’ 29 | "Ok", MNU_SWITCHMENU, custommap_menu, 0, | ^~~~~~~~~~~~~~ menumanager.c:95:35: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 95 | uchar *cant_play_ep_menu[MAXM] = {23,74, 255, NULL, NULL, NULL, NULL, | ^~ menumanager.c:95:35: note: (near initialization for ‘cant_play_ep_menu[0]’) editor/../menu.h:60:33: note: (near initialization for ‘editor_menu[16]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ editor/menu_editor.c:44:59: note: in expansion of macro ‘MNU_SWITCHMENU’ 44 | " Clear Map", MNU_SWITCHMENU, edverifyclear_menu, 0, | ^~~~~~~~~~~~~~ menu.h:60:33: note: (near initialization for ‘badlevel_menu[24]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menu_custommap.c:29:47: note: in expansion of macro ‘MNU_SWITCHMENU’ 29 | "Ok", MNU_SWITCHMENU, custommap_menu, 0, | ^~~~~~~~~~~~~~ editor/menu_editor.c:44:75: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 44 | " Clear Map", MNU_SWITCHMENU, edverifyclear_menu, 0, | ^~~~~~~~~~~~~~~~~~ menumanager.c:95:38: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 95 | uchar *cant_play_ep_menu[MAXM] = {23,74, 255, NULL, NULL, NULL, NULL, | ^~ editor/menu_editor.c:44:75: note: (near initialization for ‘editor_menu[17]’) menumanager.c:95:38: note: (near initialization for ‘cant_play_ep_menu[1]’) menu_custommap.c:29:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 29 | "Ok", MNU_SWITCHMENU, custommap_menu, 0, | ^~~~~~~~~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:35:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 35 | "STATUS ", MNU_DYNAMICTEXT, KeySetup, KENTER2, | ^~~~~~~~~~~~~~~ menu_custommap.c:29:63: note: (near initialization for ‘badlevel_menu[25]’) editor/../menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:45:64: note: in expansion of macro ‘MNU_CALLFP’ 45 | "[e] Change Episode", MNU_CALLFP, me_nextep, 0, | ^~~~~~~~~~ menumanager.c:95:43: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 95 | uchar *cant_play_ep_menu[MAXM] = {23,74, 255, NULL, NULL, NULL, NULL, | ^~~ menumanager.c:95:43: note: (near initialization for ‘cant_play_ep_menu[2]’) menu_savegames.c:16:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 16 | "8", MNU_DYNAMICTEXT, loadgame_getgamename, 8, | ^~~~~~~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘keysetup_menu2[44]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_keysetup.c:35:58: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 35 | "STATUS ", MNU_DYNAMICTEXT, KeySetup, KENTER2, | ^~~~~~~~~~~~~~~ editor/../menu.h:61:41: note: (near initialization for ‘editor_menu[20]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:45:64: note: in expansion of macro ‘MNU_CALLFP’ 45 | "[e] Change Episode", MNU_CALLFP, me_nextep, 0, | ^~~~~~~~~~ menu_savegames.c:16:63: note: (near initialization for ‘loadgame_menu[37]’) editor/menu_editor.c:45:76: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 45 | "[e] Change Episode", MNU_CALLFP, me_nextep, 0, | ^~~~~~~~~ customepisode.c: In function ‘GuessWhichEpisode’: editor/menu_editor.c:45:76: note: (near initialization for ‘editor_menu[21]’) menu_keysetup.c:35:75: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 35 | "STATUS ", MNU_DYNAMICTEXT, KeySetup, KENTER2, | ^~~~~~~~ menu_keysetup.c:35:75: note: (near initialization for ‘keysetup_menu2[45]’) menu_savegames.c:16:85: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 16 | "8", MNU_DYNAMICTEXT, loadgame_getgamename, 8, | ^ menu_savegames.c:16:85: note: (near initialization for ‘loadgame_menu[38]’) customepisode.c:68:23: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 68 | fname = GetFileAtIndex(i); | ^ menu_custommap.c: In function ‘cmap_exit’: editor/../menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:46:54: note: in expansion of macro ‘MNU_CALLFP’ 46 | "[F1] Save", MNU_CALLFP, me_save, 0, | ^~~~~~~~~~ keys.h:33:27: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 33 | #define KENTER2 26 | ^~ menu_keysetup.c:35:85: note: in expansion of macro ‘KENTER2’ 35 | "STATUS ", MNU_DYNAMICTEXT, KeySetup, KENTER2, | ^~~~~~~ menu_custommap.c:49:31: error: passing argument 1 of ‘Menu_InitMenu’ from incompatible pointer type [-Wincompatible-pointer-types] 49 | Menu_InitMenu(selectep_menu); | ^~~~~~~~~~~~~ | | | unsigned char ** editor/../menu.h:61:41: note: (near initialization for ‘editor_menu[24]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:46:54: note: in expansion of macro ‘MNU_CALLFP’ 46 | "[F1] Save", MNU_CALLFP, me_save, 0, | ^~~~~~~~~~ keys.h:33:27: note: (near initialization for ‘keysetup_menu2[46]’) 33 | #define KENTER2 26 | ^~ menu_keysetup.c:35:85: note: in expansion of macro ‘KENTER2’ 35 | "STATUS ", MNU_DYNAMICTEXT, KeySetup, KENTER2, | ^~~~~~~ menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:17:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 17 | "9", MNU_DYNAMICTEXT, loadgame_getgamename, 9, | ^~~~~~~~~~~~~~~ editor/menu_editor.c:46:66: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 46 | "[F1] Save", MNU_CALLFP, me_save, 0, | ^~~~~~~ menu.h:62:33: note: (near initialization for ‘loadgame_menu[40]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:17:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 17 | "9", MNU_DYNAMICTEXT, loadgame_getgamename, 9, | ^~~~~~~~~~~~~~~ editor/menu_editor.c:46:66: note: (near initialization for ‘editor_menu[25]’) In file included from menu_custommap.c:2: menu_custommap.fdh:19:27: note: expected ‘unsigned char *’ but argument is of type ‘unsigned char **’ 19 | void Menu_InitMenu(uchar *whichmenu); menu_savegames.c:17:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 17 | "9", MNU_DYNAMICTEXT, loadgame_getgamename, 9, | ^~~~~~~~~~~~~~~~~~~~ menu_savegames.c:17:63: note: (near initialization for ‘loadgame_menu[41]’) editor/../menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:47:60: note: in expansion of macro ‘MNU_CALLFP’ 47 | "[F2] Save As...", MNU_CALLFP, me_saveas, 0, | ^~~~~~~~~~ menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_keysetup.c:37:49: note: in expansion of macro ‘MNU_CALLFP’ 37 | "Save", MNU_CALLFP, SaveKeys, 0, | ^~~~~~~~~~ menu_custommap.c: In function ‘editor_loadmap_exit’: menu_savegames.c:17:85: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 17 | "9", MNU_DYNAMICTEXT, loadgame_getgamename, 9, | ^ menu_savegames.c:17:85: note: (near initialization for ‘loadgame_menu[42]’) editor/../menu.h:61:41: note: (near initialization for ‘editor_menu[28]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:47:60: note: in expansion of macro ‘MNU_CALLFP’ 47 | "[F2] Save As...", MNU_CALLFP, me_saveas, 0, | ^~~~~~~~~~ menu.h:61:41: note: (near initialization for ‘keysetup_menu2[52]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_keysetup.c:37:49: note: in expansion of macro ‘MNU_CALLFP’ 37 | "Save", MNU_CALLFP, SaveKeys, 0, | ^~~~~~~~~~ menu_custommap.c:59:31: error: passing argument 1 of ‘Menu_InitMenu’ from incompatible pointer type [-Wincompatible-pointer-types] 59 | Menu_InitMenu(main_menu); | ^~~~~~~~~ | | | unsigned char ** menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:107:60: note: in expansion of macro ‘MNU_SWITCHMENU’ 107 | "Aw, shucks, ok.", MNU_SWITCHMENU, selectep_menu, 0, | ^~~~~~~~~~~~~~ editor/menu_editor.c:47:72: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 47 | "[F2] Save As...", MNU_CALLFP, me_saveas, 0, | ^~~~~~~~~ menu_custommap.fdh:19:27: note: expected ‘unsigned char *’ but argument is of type ‘unsigned char **’ 19 | void Menu_InitMenu(uchar *whichmenu); editor/menu_editor.c:47:72: note: (near initialization for ‘editor_menu[29]’) menu_keysetup.c:37:61: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(void)’ [-Wincompatible-pointer-types] 37 | "Save", MNU_CALLFP, SaveKeys, 0, | ^~~~~~~~ menu_keysetup.c:37:61: note: (near initialization for ‘keysetup_menu2[53]’) menu.h:60:33: note: (near initialization for ‘cant_play_ep_menu[52]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:107:60: note: in expansion of macro ‘MNU_SWITCHMENU’ 107 | "Aw, shucks, ok.", MNU_SWITCHMENU, selectep_menu, 0, | ^~~~~~~~~~~~~~ editor/../menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ editor/menu_editor.c:48:49: note: in expansion of macro ‘MNU_SWITCHMENU’ 48 | "Misc", MNU_SWITCHMENU, editor_misc_menu, 0, | ^~~~~~~~~~~~~~ menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_savegames.c:19:51: note: in expansion of macro ‘MNU_CALLFP’ 19 | "Cancel", MNU_CALLFP, dismiss_menu, 0, | ^~~~~~~~~~ editor/../menu.h:60:33: note: (near initialization for ‘editor_menu[32]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ editor/menu_editor.c:48:49: note: in expansion of macro ‘MNU_SWITCHMENU’ 48 | "Misc", MNU_SWITCHMENU, editor_misc_menu, 0, | ^~~~~~~~~~~~~~ menu_custommap.c: In function ‘getcmapname’: menu_custommap.c:106:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 106 | fname = GetFileAtIndex(cm_scrolloffset + i); | ^ menu.h:61:41: note: (near initialization for ‘loadgame_menu[48]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_savegames.c:19:51: note: in expansion of macro ‘MNU_CALLFP’ 19 | "Cancel", MNU_CALLFP, dismiss_menu, 0, | ^~~~~~~~~~ menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_keysetup.c:38:51: note: in expansion of macro ‘MNU_CALLFP’ 38 | "Cancel", MNU_CALLFP, CancelKeys, 0, | ^~~~~~~~~~ menu_savegames.c:19:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 19 | "Cancel", MNU_CALLFP, dismiss_menu, 0, | ^~~~~~~~~~~~ menu_savegames.c:19:63: note: (near initialization for ‘loadgame_menu[49]’) menu.h:61:41: note: (near initialization for ‘keysetup_menu2[56]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_keysetup.c:38:51: note: in expansion of macro ‘MNU_CALLFP’ 38 | "Cancel", MNU_CALLFP, CancelKeys, 0, | ^~~~~~~~~~ menu_keysetup.c:38:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(void)’ [-Wincompatible-pointer-types] 38 | "Cancel", MNU_CALLFP, CancelKeys, 0, | ^~~~~~~~~~ menu_keysetup.c:38:63: note: (near initialization for ‘keysetup_menu2[57]’) menu_savegames.c:21:31: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 21 | uchar *savegame_menu[MAXM] = {(7*8)-3,70, 0, loadsavegamenames, NULL, NULL, NULL, | ^ menu_savegames.c:21:31: note: (near initialization for ‘savegame_menu[0]’) menu_savegames.c:21:39: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 21 | uchar *savegame_menu[MAXM] = {(7*8)-3,70, 0, loadsavegamenames, NULL, NULL, NULL, | ^~ menu_savegames.c:21:39: note: (near initialization for ‘savegame_menu[1]’) menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_keysetup.c:39:53: note: in expansion of macro ‘MNU_CALLFP’ 39 | "Defaults", MNU_CALLFP, SetDefaults, 0, | ^~~~~~~~~~ menu_savegames.c:21:47: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 21 | uchar *savegame_menu[MAXM] = {(7*8)-3,70, 0, loadsavegamenames, NULL, NULL, NULL, | ^~~~~~~~~~~~~~~~~ menu_savegames.c:21:47: note: (near initialization for ‘savegame_menu[3]’) menu.h:61:41: note: (near initialization for ‘keysetup_menu2[60]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_keysetup.c:39:53: note: in expansion of macro ‘MNU_CALLFP’ 39 | "Defaults", MNU_CALLFP, SetDefaults, 0, | ^~~~~~~~~~ menu_keysetup.c:39:65: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(void)’ [-Wincompatible-pointer-types] 39 | "Defaults", MNU_CALLFP, SetDefaults, 0, | ^~~~~~~~~~~ menu_keysetup.c:39:65: note: (near initialization for ‘keysetup_menu2[61]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:22:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 22 | "1", MNU_DYNAMICTEXT, savegame_getgamename, 1, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘savegame_menu[8]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:22:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 22 | "1", MNU_DYNAMICTEXT, savegame_getgamename, 1, | ^~~~~~~~~~~~~~~ menu_savegames.c:22:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 22 | "1", MNU_DYNAMICTEXT, savegame_getgamename, 1, | ^~~~~~~~~~~~~~~~~~~~ menu_savegames.c:22:63: note: (near initialization for ‘savegame_menu[9]’) menu_savegames.c:22:85: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 22 | "1", MNU_DYNAMICTEXT, savegame_getgamename, 1, | ^ menu_savegames.c:22:85: note: (near initialization for ‘savegame_menu[10]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:23:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 23 | "2", MNU_DYNAMICTEXT, savegame_getgamename, 2, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘savegame_menu[12]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:23:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 23 | "2", MNU_DYNAMICTEXT, savegame_getgamename, 2, | ^~~~~~~~~~~~~~~ menu_savegames.c:23:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 23 | "2", MNU_DYNAMICTEXT, savegame_getgamename, 2, | ^~~~~~~~~~~~~~~~~~~~ menu_savegames.c:23:63: note: (near initialization for ‘savegame_menu[13]’) menu_savegames.c:23:85: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 23 | "2", MNU_DYNAMICTEXT, savegame_getgamename, 2, | ^ menu_savegames.c:23:85: note: (near initialization for ‘savegame_menu[14]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:24:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 24 | "3", MNU_DYNAMICTEXT, savegame_getgamename, 3, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘savegame_menu[16]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:24:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 24 | "3", MNU_DYNAMICTEXT, savegame_getgamename, 3, | ^~~~~~~~~~~~~~~ menu_keysetup.c: In function ‘CancelKeys’: menu_savegames.c:24:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 24 | "3", MNU_DYNAMICTEXT, savegame_getgamename, 3, | ^~~~~~~~~~~~~~~~~~~~ menu_savegames.c:24:63: note: (near initialization for ‘savegame_menu[17]’) menu_savegames.c:24:85: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 24 | "3", MNU_DYNAMICTEXT, savegame_getgamename, 3, | ^ menu_savegames.c:24:85: note: (near initialization for ‘savegame_menu[18]’) menu_keysetup.c:88:23: error: passing argument 1 of ‘Menu_InitMenu’ from incompatible pointer type [-Wincompatible-pointer-types] 88 | Menu_InitMenu(&main_menu); | ^~~~~~~~~~ | | | unsigned char * (*)[150] In file included from menu_keysetup.c:3: menu_keysetup.fdh:7:27: note: expected ‘unsigned char *’ but argument is of type ‘unsigned char * (*)[150]’ 7 | void Menu_InitMenu(uchar *whichmenu); menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:25:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 25 | "4", MNU_DYNAMICTEXT, savegame_getgamename, 4, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘savegame_menu[20]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:25:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 25 | "4", MNU_DYNAMICTEXT, savegame_getgamename, 4, | ^~~~~~~~~~~~~~~ menu_savegames.c:25:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 25 | "4", MNU_DYNAMICTEXT, savegame_getgamename, 4, | ^~~~~~~~~~~~~~~~~~~~ menu_savegames.c:25:63: note: (near initialization for ‘savegame_menu[21]’) menu_savegames.c:25:85: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 25 | "4", MNU_DYNAMICTEXT, savegame_getgamename, 4, | ^ menu_savegames.c:25:85: note: (near initialization for ‘savegame_menu[22]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:26:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 26 | "5", MNU_DYNAMICTEXT, savegame_getgamename, 5, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘savegame_menu[24]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:26:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 26 | "5", MNU_DYNAMICTEXT, savegame_getgamename, 5, | ^~~~~~~~~~~~~~~ menu_savegames.c:26:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 26 | "5", MNU_DYNAMICTEXT, savegame_getgamename, 5, | ^~~~~~~~~~~~~~~~~~~~ menu_savegames.c:26:63: note: (near initialization for ‘savegame_menu[25]’) menu_savegames.c:26:85: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 26 | "5", MNU_DYNAMICTEXT, savegame_getgamename, 5, | ^ menu_savegames.c:26:85: note: (near initialization for ‘savegame_menu[26]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:27:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 27 | "6", MNU_DYNAMICTEXT, savegame_getgamename, 6, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘savegame_menu[28]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:27:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 27 | "6", MNU_DYNAMICTEXT, savegame_getgamename, 6, | ^~~~~~~~~~~~~~~ menu_savegames.c:27:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 27 | "6", MNU_DYNAMICTEXT, savegame_getgamename, 6, | ^~~~~~~~~~~~~~~~~~~~ menu_savegames.c:27:63: note: (near initialization for ‘savegame_menu[29]’) menu_savegames.c:27:85: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 27 | "6", MNU_DYNAMICTEXT, savegame_getgamename, 6, | ^ menu_savegames.c:27:85: note: (near initialization for ‘savegame_menu[30]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:28:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 28 | "7", MNU_DYNAMICTEXT, savegame_getgamename, 7, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘savegame_menu[32]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:28:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 28 | "7", MNU_DYNAMICTEXT, savegame_getgamename, 7, | ^~~~~~~~~~~~~~~ menu_savegames.c:28:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 28 | "7", MNU_DYNAMICTEXT, savegame_getgamename, 7, | ^~~~~~~~~~~~~~~~~~~~ menu_savegames.c:28:63: note: (near initialization for ‘savegame_menu[33]’) menu_savegames.c:28:85: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 28 | "7", MNU_DYNAMICTEXT, savegame_getgamename, 7, | ^ menu_savegames.c:28:85: note: (near initialization for ‘savegame_menu[34]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:29:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 29 | "8", MNU_DYNAMICTEXT, savegame_getgamename, 8, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘savegame_menu[36]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:29:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 29 | "8", MNU_DYNAMICTEXT, savegame_getgamename, 8, | ^~~~~~~~~~~~~~~ menu_savegames.c:29:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 29 | "8", MNU_DYNAMICTEXT, savegame_getgamename, 8, | ^~~~~~~~~~~~~~~~~~~~ menu_savegames.c:29:63: note: (near initialization for ‘savegame_menu[37]’) menu_savegames.c:29:85: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 29 | "8", MNU_DYNAMICTEXT, savegame_getgamename, 8, | ^ menu_savegames.c:29:85: note: (near initialization for ‘savegame_menu[38]’) menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:30:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 30 | "9", MNU_DYNAMICTEXT, savegame_getgamename, 9, | ^~~~~~~~~~~~~~~ menu.h:62:33: note: (near initialization for ‘savegame_menu[40]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ menu_savegames.c:30:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 30 | "9", MNU_DYNAMICTEXT, savegame_getgamename, 9, | ^~~~~~~~~~~~~~~ menu_savegames.c:30:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 30 | "9", MNU_DYNAMICTEXT, savegame_getgamename, 9, | ^~~~~~~~~~~~~~~~~~~~ menu_savegames.c:30:63: note: (near initialization for ‘savegame_menu[41]’) menu_savegames.c:30:85: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 30 | "9", MNU_DYNAMICTEXT, savegame_getgamename, 9, | ^ menu_savegames.c:30:85: note: (near initialization for ‘savegame_menu[42]’) menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_savegames.c:32:51: note: in expansion of macro ‘MNU_CALLFP’ 32 | "Cancel", MNU_CALLFP, dismiss_menu, 0, | ^~~~~~~~~~ menu.h:61:41: note: (near initialization for ‘savegame_menu[48]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_savegames.c:32:51: note: in expansion of macro ‘MNU_CALLFP’ 32 | "Cancel", MNU_CALLFP, dismiss_menu, 0, | ^~~~~~~~~~ menu_savegames.c:32:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 32 | "Cancel", MNU_CALLFP, dismiss_menu, 0, | ^~~~~~~~~~~~ menu_savegames.c:32:63: note: (near initialization for ‘savegame_menu[49]’) menu_savegames.c:35:34: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 35 | uchar *savegame_failure[MAXM] = {4,94, 255, NULL, | ^ menu_savegames.c:35:34: note: (near initialization for ‘savegame_failure[0]’) menu_savegames.c:35:36: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 35 | uchar *savegame_failure[MAXM] = {4,94, 255, NULL, | ^~ menu_savegames.c:35:36: note: (near initialization for ‘savegame_failure[1]’) menu_savegames.c:35:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 35 | uchar *savegame_failure[MAXM] = {4,94, 255, NULL, | ^~~ menu_savegames.c:35:41: note: (near initialization for ‘savegame_failure[2]’) menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_savegames.c:38:47: note: in expansion of macro ‘MNU_CALLFP’ 38 | "Ok", MNU_CALLFP, dismiss_menu, 0, | ^~~~~~~~~~ menu.h:61:41: note: (near initialization for ‘savegame_failure[13]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ menu_savegames.c:38:47: note: in expansion of macro ‘MNU_CALLFP’ 38 | "Ok", MNU_CALLFP, dismiss_menu, 0, | ^~~~~~~~~~ menu_savegames.c:38:59: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 38 | "Ok", MNU_CALLFP, dismiss_menu, 0, | ^~~~~~~~~~~~ menu_savegames.c:38:59: note: (near initialization for ‘savegame_failure[14]’) menumanager.c:107:76: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 107 | "Aw, shucks, ok.", MNU_SWITCHMENU, selectep_menu, 0, | ^~~~~~~~~~~~~ editor/menu_editor.c:48:65: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 48 | "Misc", MNU_SWITCHMENU, editor_misc_menu, 0, | ^~~~~~~~~~~~~~~~ menumanager.c:107:76: note: (near initialization for ‘cant_play_ep_menu[53]’) editor/menu_editor.c:48:65: note: (near initialization for ‘editor_menu[33]’) editor/../menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ editor/menu_editor.c:49:64: note: in expansion of macro ‘MNU_SWITCHMENU’ 49 | "Forced Game Options", MNU_SWITCHMENU, option_menu, 0, | ^~~~~~~~~~~~~~ make: *** [Makefile:172: menu_options.o] Error 1 menumanager.c:110:40: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 110 | uchar *cant_play_usermap_menu[MAXM] = {23,74, 255, NULL, NULL, NULL, NULL, | ^~ editor/../menu.h:60:33: note: (near initialization for ‘editor_menu[36]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ editor/menu_editor.c:49:64: note: in expansion of macro ‘MNU_SWITCHMENU’ 49 | "Forced Game Options", MNU_SWITCHMENU, option_menu, 0, | ^~~~~~~~~~~~~~ menumanager.c:110:40: note: (near initialization for ‘cant_play_usermap_menu[0]’) editor/menu_editor.c:49:80: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 49 | "Forced Game Options", MNU_SWITCHMENU, option_menu, 0, | ^~~~~~~~~~~ editor/menu_editor.c:49:80: note: (near initialization for ‘editor_menu[37]’) menumanager.c:110:43: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 110 | uchar *cant_play_usermap_menu[MAXM] = {23,74, 255, NULL, NULL, NULL, NULL, | ^~ make: *** [Makefile:202: customepisode.o] Error 1 menumanager.c:110:43: note: (near initialization for ‘cant_play_usermap_menu[1]’) editor/../menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ editor/menu_editor.c:50:53: note: in expansion of macro ‘MNU_SWITCHMENU’ 50 | "Load Map", MNU_SWITCHMENU, edloadmap_menu, 0, | ^~~~~~~~~~~~~~ menu_custommap.c:142:71: error: passing argument 1 of ‘Menu_InitMenu’ from incompatible pointer type [-Wincompatible-pointer-types] 142 | Menu_InitMenu(cant_play_usermap_menu); | ^~~~~~~~~~~~~~~~~~~~~~ | | | unsigned char ** editor/../menu.h:60:33: note: (near initialization for ‘editor_menu[40]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ editor/menu_editor.c:50:53: note: in expansion of macro ‘MNU_SWITCHMENU’ 50 | "Load Map", MNU_SWITCHMENU, edloadmap_menu, 0, | ^~~~~~~~~~~~~~ menumanager.c:110:48: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 110 | uchar *cant_play_usermap_menu[MAXM] = {23,74, 255, NULL, NULL, NULL, NULL, | ^~~ menu_custommap.fdh:19:27: note: expected ‘unsigned char *’ but argument is of type ‘unsigned char **’ 19 | void Menu_InitMenu(uchar *whichmenu); menumanager.c:110:48: note: (near initialization for ‘cant_play_usermap_menu[2]’) editor/menu_editor.c:50:69: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 50 | "Load Map", MNU_SWITCHMENU, edloadmap_menu, 0, | ^~~~~~~~~~~~~~ editor/menu_editor.c:50:69: note: (near initialization for ‘editor_menu[41]’) editor/../menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:52:56: note: in expansion of macro ‘MNU_CALLFP’ 52 | "Exit Editor", MNU_CALLFP, me_exit_ed, 0, | ^~~~~~~~~~ editor/../menu.h:61:41: note: (near initialization for ‘editor_menu[48]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:52:56: note: in expansion of macro ‘MNU_CALLFP’ 52 | "Exit Editor", MNU_CALLFP, me_exit_ed, 0, | ^~~~~~~~~~ editor/menu_editor.c:52:68: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 52 | "Exit Editor", MNU_CALLFP, me_exit_ed, 0, | ^~~~~~~~~~ editor/menu_editor.c:52:68: note: (near initialization for ‘editor_menu[49]’) editor/../menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ editor/menu_editor.c:53:57: note: in expansion of macro ‘MNU_SWITCHMENU’ 53 | "Exit Program", MNU_SWITCHMENU, quit_menu, 0, | ^~~~~~~~~~~~~~ editor/../menu.h:60:33: note: (near initialization for ‘editor_menu[52]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ editor/menu_editor.c:53:57: note: in expansion of macro ‘MNU_SWITCHMENU’ 53 | "Exit Program", MNU_SWITCHMENU, quit_menu, 0, | ^~~~~~~~~~~~~~ menu_custommap.c:174:55: error: passing argument 1 of ‘Menu_InitMenu’ from incompatible pointer type [-Wincompatible-pointer-types] 174 | Menu_InitMenu(&badlevel_menu); | ^~~~~~~~~~~~~~ | | | unsigned char * (*)[150] menu_custommap.fdh:19:27: note: expected ‘unsigned char *’ but argument is of type ‘unsigned char * (*)[150]’ 19 | void Menu_InitMenu(uchar *whichmenu); editor/menu_editor.c:53:73: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 53 | "Exit Program", MNU_SWITCHMENU, quit_menu, 0, | ^~~~~~~~~ menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:121:60: note: in expansion of macro ‘MNU_SWITCHMENU’ 121 | "Aw, shucks, ok.", MNU_SWITCHMENU, main_menu, 0, | ^~~~~~~~~~~~~~ editor/menu_editor.c:53:73: note: (near initialization for ‘editor_menu[53]’) menu_custommap.c:176:55: error: passing argument 1 of ‘Menu_InitMenu’ from incompatible pointer type [-Wincompatible-pointer-types] 176 | Menu_InitMenu(&edbadlevel_menu); | ^~~~~~~~~~~~~~~~ | | | unsigned char * (*)[150] menu_custommap.fdh:19:27: note: expected ‘unsigned char *’ but argument is of type ‘unsigned char * (*)[150]’ 19 | void Menu_InitMenu(uchar *whichmenu); menu.h:60:33: note: (near initialization for ‘cant_play_usermap_menu[48]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ menumanager.c:121:60: note: in expansion of macro ‘MNU_SWITCHMENU’ 121 | "Aw, shucks, ok.", MNU_SWITCHMENU, main_menu, 0, | ^~~~~~~~~~~~~~ menumanager.c:121:76: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 121 | "Aw, shucks, ok.", MNU_SWITCHMENU, main_menu, 0, | ^~~~~~~~~ menumanager.c:121:76: note: (near initialization for ‘cant_play_usermap_menu[49]’) editor/menu_editor.c:63:36: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 63 | uchar *edverifyclear_menu[MAXM] = {92,100,0,NULL,NULL,NULL,NULL, | ^~ editor/menu_editor.c:63:36: note: (near initialization for ‘edverifyclear_menu[0]’) editor/menu_editor.c:63:39: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 63 | uchar *edverifyclear_menu[MAXM] = {92,100,0,NULL,NULL,NULL,NULL, | ^~~ editor/menu_editor.c:63:39: note: (near initialization for ‘edverifyclear_menu[1]’) menu_savegames.c: In function ‘savegame_getgamename’: menumanager.c: In function ‘SelectCorrectMM’: editor/../menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:64:55: note: in expansion of macro ‘MNU_CALLFP’ 64 | "Erase Map!", MNU_CALLFP, me_newmap, 0, | ^~~~~~~~~~ menumanager.c:149:34: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 149 | if (menu.curmenu != editor_menu) | ^~ menu_savegames.c:197:39: error: passing argument 1 of ‘Menu_InitMenu’ from incompatible pointer type [-Wincompatible-pointer-types] 197 | Menu_InitMenu(&savegame_failure); | ^~~~~~~~~~~~~~~~~ | | | unsigned char * (*)[150] editor/../menu.h:61:41: note: (near initialization for ‘edverifyclear_menu[8]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:64:55: note: in expansion of macro ‘MNU_CALLFP’ 64 | "Erase Map!", MNU_CALLFP, me_newmap, 0, | ^~~~~~~~~~ In file included from menu_savegames.c:2: menu_savegames.fdh:26:27: note: expected ‘unsigned char *’ but argument is of type ‘unsigned char * (*)[150]’ 26 | void Menu_InitMenu(uchar *whichmenu); editor/menu_editor.c:64:67: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 64 | "Erase Map!", MNU_CALLFP, me_newmap, 0, | ^~~~~~~~~ editor/menu_editor.c:64:67: note: (near initialization for ‘edverifyclear_menu[9]’) menumanager.c:150:39: error: passing argument 1 of ‘Menu_InitMenu’ from incompatible pointer type [-Wincompatible-pointer-types] 150 | Menu_InitMenu(editor_menu); | ^~~~~~~~~~~ | | | unsigned char ** In file included from menumanager.c:9: menumanager.fdh:39:27: note: expected ‘unsigned char *’ but argument is of type ‘unsigned char **’ 39 | void Menu_InitMenu(uchar *whichmenu); editor/../menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ editor/menu_editor.c:66:56: note: in expansion of macro ‘MNU_SWITCHMENU’ 66 | "Do nothing.", MNU_SWITCHMENU, editor_menu, 0, | ^~~~~~~~~~~~~~ editor/../menu.h:60:33: note: (near initialization for ‘edverifyclear_menu[16]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ editor/menu_editor.c:66:56: note: in expansion of macro ‘MNU_SWITCHMENU’ 66 | "Do nothing.", MNU_SWITCHMENU, editor_menu, 0, | ^~~~~~~~~~~~~~ editor/menu_editor.c:66:72: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 66 | "Do nothing.", MNU_SWITCHMENU, editor_menu, 0, | ^~~~~~~~~~~ editor/menu_editor.c:66:72: note: (near initialization for ‘edverifyclear_menu[17]’) menumanager.c:160:42: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 160 | if (menu.curmenu != ingame_menu_norestart) | ^~ editor/menu_editor.c:71:32: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 71 | uchar *edloadmap_menu[MAXM] = {(7*9)-3,72, 0, cmap_enter, editor_loadmap_exit, cmap_scroll, NULL, | ^ editor/menu_editor.c:71:32: note: (near initialization for ‘edloadmap_menu[0]’) menumanager.c:162:47: error: passing argument 1 of ‘Menu_InitMenu’ from incompatible pointer type [-Wincompatible-pointer-types] 162 | Menu_InitMenu(ingame_menu_norestart); | ^~~~~~~~~~~~~~~~~~~~~ | | | unsigned char ** menumanager.fdh:39:27: note: expected ‘unsigned char *’ but argument is of type ‘unsigned char **’ 39 | void Menu_InitMenu(uchar *whichmenu); editor/menu_editor.c:71:40: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 71 | uchar *edloadmap_menu[MAXM] = {(7*9)-3,72, 0, cmap_enter, editor_loadmap_exit, cmap_scroll, NULL, | ^~ editor/menu_editor.c:71:40: note: (near initialization for ‘edloadmap_menu[1]’) editor/menu_editor.c:71:48: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 71 | uchar *edloadmap_menu[MAXM] = {(7*9)-3,72, 0, cmap_enter, editor_loadmap_exit, cmap_scroll, NULL, | ^~~~~~~~~~ menumanager.c:167:42: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 167 | if (menu.curmenu != ingame_menu) | ^~ editor/menu_editor.c:71:48: note: (near initialization for ‘edloadmap_menu[3]’) editor/menu_editor.c:71:60: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types] 71 | uchar *edloadmap_menu[MAXM] = {(7*9)-3,72, 0, cmap_enter, editor_loadmap_exit, cmap_scroll, NULL, | ^~~~~~~~~~~~~~~~~~~ editor/menu_editor.c:71:60: note: (near initialization for ‘edloadmap_menu[4]’) menumanager.c:169:47: error: passing argument 1 of ‘Menu_InitMenu’ from incompatible pointer type [-Wincompatible-pointer-types] 169 | Menu_InitMenu(ingame_menu); | ^~~~~~~~~~~ | | | unsigned char ** menumanager.fdh:39:27: note: expected ‘unsigned char *’ but argument is of type ‘unsigned char **’ 39 | void Menu_InitMenu(uchar *whichmenu); editor/menu_editor.c:71:81: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘void (*)(char)’ [-Wincompatible-pointer-types] 71 | uchar *edloadmap_menu[MAXM] = {(7*9)-3,72, 0, cmap_enter, editor_loadmap_exit, cmap_scroll, NULL, | ^~~~~~~~~~~ editor/menu_editor.c:71:81: note: (near initialization for ‘edloadmap_menu[5]’) editor/../menu.h:61:41: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:72:54: note: in expansion of macro ‘MNU_CALLFP’ 72 | "", MNU_CALLFP, me_newmap, 0, | ^~~~~~~~~~ menumanager.c:173:31: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 173 | else if (menu.curmenu != main_menu) | ^~ editor/../menu.h:61:41: note: (near initialization for ‘edloadmap_menu[8]’) 61 | #define MNU_CALLFP 2 // 3rd arg is a funcpointer to call when selected | ^ editor/menu_editor.c:72:54: note: in expansion of macro ‘MNU_CALLFP’ 72 | "", MNU_CALLFP, me_newmap, 0, | ^~~~~~~~~~ editor/menu_editor.c:72:66: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char (*)(int)’ [-Wincompatible-pointer-types] 72 | "", MNU_CALLFP, me_newmap, 0, | ^~~~~~~~~ menumanager.c:174:31: error: passing argument 1 of ‘Menu_InitMenu’ from incompatible pointer type [-Wincompatible-pointer-types] 174 | Menu_InitMenu(main_menu); | ^~~~~~~~~ | | | unsigned char ** editor/menu_editor.c:72:66: note: (near initialization for ‘edloadmap_menu[9]’) menumanager.fdh:39:27: note: expected ‘unsigned char *’ but argument is of type ‘unsigned char **’ 39 | void Menu_InitMenu(uchar *whichmenu); editor/../menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:73:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 73 | "0", MNU_DYNAMICTEXT, getcmapname, 100, | ^~~~~~~~~~~~~~~ menumanager.c: In function ‘DrawMenuText’: editor/../menu.h:62:33: note: (near initialization for ‘edloadmap_menu[12]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:73:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 73 | "0", MNU_DYNAMICTEXT, getcmapname, 100, | ^~~~~~~~~~~~~~~ menumanager.c:181:18: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char * (*)[150]’ [-Wincompatible-pointer-types] 181 | uchar *curmenu = menu.curmenu; | ^~~~ make: *** [Makefile:178: menu_keysetup.o] Error 1 make: *** [Makefile:190: menu_custommap.o] Error 1 editor/menu_editor.c:73:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 73 | "0", MNU_DYNAMICTEXT, getcmapname, 100, | ^~~~~~~~~~~ menumanager.c:186:25: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 186 | if (menu.curmenu==main_menu || \ | ^~ make: *** [Makefile:184: menu_savegames.o] Error 1 menumanager.c:187:29: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 187 | menu.curmenu==ingame_menu || \ | ^~ menumanager.c:188:29: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 188 | menu.curmenu==ingame_menu_norestart) | ^~ editor/menu_editor.c:73:63: note: (near initialization for ‘edloadmap_menu[13]’) editor/menu_editor.c:73:76: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 73 | "0", MNU_DYNAMICTEXT, getcmapname, 100, | ^~~ editor/menu_editor.c:73:76: note: (near initialization for ‘edloadmap_menu[14]’) menumanager.c:193:11: error: assignment to ‘int’ from ‘unsigned char *’ makes integer from pointer without a cast [-Wint-conversion] 193 | x = (*menu.curmenu)[HD_X]; | ^ editor/../menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:74:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 74 | "1", MNU_DYNAMICTEXT, getcmapname, 101, | ^~~~~~~~~~~~~~~ menumanager.c:194:11: error: assignment to ‘int’ from ‘unsigned char *’ makes integer from pointer without a cast [-Wint-conversion] 194 | y = (*menu.curmenu)[HD_Y]; | ^ editor/../menu.h:62:33: note: (near initialization for ‘edloadmap_menu[16]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:74:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 74 | "1", MNU_DYNAMICTEXT, getcmapname, 101, | ^~~~~~~~~~~~~~~ editor/menu_editor.c:74:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 74 | "1", MNU_DYNAMICTEXT, getcmapname, 101, | ^~~~~~~~~~~ editor/menu_editor.c:74:63: note: (near initialization for ‘edloadmap_menu[17]’) editor/menu_editor.c:74:76: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 74 | "1", MNU_DYNAMICTEXT, getcmapname, 101, | ^~~ editor/menu_editor.c:74:76: note: (near initialization for ‘edloadmap_menu[18]’) menumanager.c:202:53: warning: comparison between pointer and integer 202 | if ((*menu.curmenu)[index+ITM_TYPE] == MNU_DYNAMICTEXT) | ^~ editor/../menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:75:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 75 | "2", MNU_DYNAMICTEXT, getcmapname, 102, | ^~~~~~~~~~~~~~~ editor/../menu.h:62:33: note: (near initialization for ‘edloadmap_menu[20]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:75:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 75 | "2", MNU_DYNAMICTEXT, getcmapname, 102, | ^~~~~~~~~~~~~~~ editor/menu_editor.c:75:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 75 | "2", MNU_DYNAMICTEXT, getcmapname, 102, | ^~~~~~~~~~~ editor/menu_editor.c:75:63: note: (near initialization for ‘edloadmap_menu[21]’) menumanager.c:204:33: error: assignment to ‘char * (*)(unsigned char *, char, unsigned char)’ from incompatible pointer type ‘unsigned char *’ [-Wincompatible-pointer-types] 204 | dyn_ptr = (*menu.curmenu)[index+ITM_PTR]; | ^ editor/menu_editor.c:75:76: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 75 | "2", MNU_DYNAMICTEXT, getcmapname, 102, | ^~~ editor/menu_editor.c:75:76: note: (near initialization for ‘edloadmap_menu[22]’) editor/../menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:76:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 76 | "3", MNU_DYNAMICTEXT, getcmapname, 103, | ^~~~~~~~~~~~~~~ menumanager.c:205:67: error: passing argument 3 of ‘dyn_ptr’ makes integer from pointer without a cast [-Wint-conversion] 205 | text = (*dyn_ptr)(text, 0, (*menu.curmenu)[index+ITM_FLAGS]); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ | | | unsigned char * menumanager.c:205:67: note: expected ‘unsigned char’ but argument is of type ‘unsigned char *’ editor/../menu.h:62:33: note: (near initialization for ‘edloadmap_menu[24]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:76:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 76 | "3", MNU_DYNAMICTEXT, getcmapname, 103, | ^~~~~~~~~~~~~~~ editor/menu_editor.c:76:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 76 | "3", MNU_DYNAMICTEXT, getcmapname, 103, | ^~~~~~~~~~~ editor/menu_editor.c:76:63: note: (near initialization for ‘edloadmap_menu[25]’) editor/menu_editor.c:76:76: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 76 | "3", MNU_DYNAMICTEXT, getcmapname, 103, | ^~~ editor/menu_editor.c:76:76: note: (near initialization for ‘edloadmap_menu[26]’) menumanager.c:211:58: error: passing argument 1 of ‘twirly_draw’ makes integer from pointer without a cast [-Wint-conversion] 211 | twirly_draw((*menu.curmenu)[HD_X]+8, y+menu.twirly_yoff, | ~~~~~~~~~~~~~~~~~~~~~^~ | | | unsigned char * editor/../menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:77:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 77 | "4", MNU_DYNAMICTEXT, getcmapname, 104, | ^~~~~~~~~~~~~~~ menumanager.fdh:61:22: note: expected ‘int’ but argument is of type ‘unsigned char *’ 61 | void twirly_draw(int x, int y, int *frame); | ~~~~^ editor/../menu.h:62:33: note: (near initialization for ‘edloadmap_menu[28]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:77:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 77 | "4", MNU_DYNAMICTEXT, getcmapname, 104, | ^~~~~~~~~~~~~~~ editor/menu_editor.c:77:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 77 | "4", MNU_DYNAMICTEXT, getcmapname, 104, | ^~~~~~~~~~~ editor/menu_editor.c:77:63: note: (near initialization for ‘edloadmap_menu[29]’) editor/menu_editor.c:77:76: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 77 | "4", MNU_DYNAMICTEXT, getcmapname, 104, | ^~~ editor/menu_editor.c:77:76: note: (near initialization for ‘edloadmap_menu[30]’) menumanager.c: In function ‘Menu_CallDismissalFunc’: editor/../menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:78:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 78 | "5", MNU_DYNAMICTEXT, getcmapname, 105, | ^~~~~~~~~~~~~~~ menumanager.c:227:25: error: assignment to ‘void (*)(void)’ from incompatible pointer type ‘unsigned char *’ [-Wincompatible-pointer-types] 227 | funcptr = (*menu.curmenu)[HD_DISMISSALFUNC]; | ^ editor/../menu.h:62:33: note: (near initialization for ‘edloadmap_menu[32]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:78:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 78 | "5", MNU_DYNAMICTEXT, getcmapname, 105, | ^~~~~~~~~~~~~~~ editor/menu_editor.c:78:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 78 | "5", MNU_DYNAMICTEXT, getcmapname, 105, | ^~~~~~~~~~~ editor/menu_editor.c:78:63: note: (near initialization for ‘edloadmap_menu[33]’) editor/menu_editor.c:78:76: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 78 | "5", MNU_DYNAMICTEXT, getcmapname, 105, | ^~~ editor/menu_editor.c:78:76: note: (near initialization for ‘edloadmap_menu[34]’) menumanager.c: In function ‘Menu_InitMenu’: editor/../menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:79:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 79 | "6", MNU_DYNAMICTEXT, getcmapname, 106, | ^~~~~~~~~~~~~~~ editor/../menu.h:62:33: note: (near initialization for ‘edloadmap_menu[36]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:79:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 79 | "6", MNU_DYNAMICTEXT, getcmapname, 106, | ^~~~~~~~~~~~~~~ menumanager.c:242:22: error: assignment to ‘unsigned char * (*)[150]’ from incompatible pointer type ‘unsigned char *’ [-Wincompatible-pointer-types] 242 | menu.curmenu = whichmenu; | ^ editor/menu_editor.c:79:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 79 | "6", MNU_DYNAMICTEXT, getcmapname, 106, | ^~~~~~~~~~~ editor/menu_editor.c:79:63: note: (near initialization for ‘edloadmap_menu[37]’) editor/menu_editor.c:79:76: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 79 | "6", MNU_DYNAMICTEXT, getcmapname, 106, | ^~~ editor/menu_editor.c:79:76: note: (near initialization for ‘edloadmap_menu[38]’) menumanager.c:243:24: error: assignment to ‘int’ from ‘unsigned char *’ makes integer from pointer without a cast [-Wint-conversion] 243 | menu.curoption = (*menu.curmenu)[HD_STARTINGOPT]; | ^ editor/../menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:80:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 80 | "7", MNU_DYNAMICTEXT, getcmapname, 107, | ^~~~~~~~~~~~~~~ editor/../menu.h:62:33: note: (near initialization for ‘edloadmap_menu[40]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:80:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 80 | "7", MNU_DYNAMICTEXT, getcmapname, 107, | ^~~~~~~~~~~~~~~ editor/menu_editor.c:80:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 80 | "7", MNU_DYNAMICTEXT, getcmapname, 107, | ^~~~~~~~~~~ editor/menu_editor.c:80:63: note: (near initialization for ‘edloadmap_menu[41]’) editor/menu_editor.c:80:76: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 80 | "7", MNU_DYNAMICTEXT, getcmapname, 107, | ^~~ editor/menu_editor.c:80:76: note: (near initialization for ‘edloadmap_menu[42]’) menumanager.c:265:17: error: assignment to ‘void (*)(void)’ from incompatible pointer type ‘unsigned char *’ [-Wincompatible-pointer-types] 265 | funcptr = (*menu.curmenu)[HD_ENTERFUNC]; | ^ editor/../menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:81:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 81 | "8", MNU_DYNAMICTEXT, getcmapname, 108, | ^~~~~~~~~~~~~~~ editor/../menu.h:62:33: note: (near initialization for ‘edloadmap_menu[44]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:81:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 81 | "8", MNU_DYNAMICTEXT, getcmapname, 108, | ^~~~~~~~~~~~~~~ menumanager.c: In function ‘Menu_ToMain’: editor/menu_editor.c:81:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 81 | "8", MNU_DYNAMICTEXT, getcmapname, 108, | ^~~~~~~~~~~ editor/menu_editor.c:81:63: note: (near initialization for ‘edloadmap_menu[45]’) editor/menu_editor.c:81:76: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 81 | "8", MNU_DYNAMICTEXT, getcmapname, 108, | ^~~ editor/menu_editor.c:81:76: note: (near initialization for ‘edloadmap_menu[46]’) menumanager.c:271:23: error: passing argument 1 of ‘Menu_InitMenu’ from incompatible pointer type [-Wincompatible-pointer-types] 271 | Menu_InitMenu(main_menu); | ^~~~~~~~~ | | | unsigned char ** editor/../menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:82:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 82 | "9", MNU_DYNAMICTEXT, getcmapname, 109, | ^~~~~~~~~~~~~~~ menumanager.c:235:27: note: expected ‘unsigned char *’ but argument is of type ‘unsigned char **’ 235 | void Menu_InitMenu(uchar *whichmenu) editor/../menu.h:62:33: note: (near initialization for ‘edloadmap_menu[48]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:82:46: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 82 | "9", MNU_DYNAMICTEXT, getcmapname, 109, | ^~~~~~~~~~~~~~~ editor/menu_editor.c:82:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 82 | "9", MNU_DYNAMICTEXT, getcmapname, 109, | ^~~~~~~~~~~ editor/menu_editor.c:82:63: note: (near initialization for ‘edloadmap_menu[49]’) menumanager.c: In function ‘Menu_SelectOption’: editor/menu_editor.c:82:76: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 82 | "9", MNU_DYNAMICTEXT, getcmapname, 109, | ^~~ editor/menu_editor.c:82:76: note: (near initialization for ‘edloadmap_menu[50]’) editor/../menu.h:62:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:83:47: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 83 | "10", MNU_DYNAMICTEXT, getcmapname, 110, | ^~~~~~~~~~~~~~~ menumanager.c:278:16: error: initialization of ‘unsigned char’ from ‘unsigned char *’ makes integer from pointer without a cast [-Wint-conversion] 278 | uchar action = (*menu.curmenu)[index+ITM_TYPE]; | ^ editor/../menu.h:62:33: note: (near initialization for ‘edloadmap_menu[52]’) 62 | #define MNU_DYNAMICTEXT 3 // 3rd arg is a funcpointer to get text | ^ editor/menu_editor.c:83:47: note: in expansion of macro ‘MNU_DYNAMICTEXT’ 83 | "10", MNU_DYNAMICTEXT, getcmapname, 110, | ^~~~~~~~~~~~~~~ editor/menu_editor.c:83:64: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘char * (*)(char *, char, unsigned char)’ [-Wincompatible-pointer-types] 83 | "10", MNU_DYNAMICTEXT, getcmapname, 110, | ^~~~~~~~~~~ editor/menu_editor.c:83:64: note: (near initialization for ‘edloadmap_menu[53]’) menumanager.c:279:13: error: initialization of ‘unsigned char’ from ‘unsigned char *’ makes integer from pointer without a cast [-Wint-conversion] 279 | uchar arg = (*menu.curmenu)[index+ITM_FLAGS]; | ^ editor/menu_editor.c:83:77: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 83 | "10", MNU_DYNAMICTEXT, getcmapname, 110, | ^~~ editor/menu_editor.c:83:77: note: (near initialization for ‘edloadmap_menu[54]’) editor/menu_editor.c:85:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 85 | uchar *edbadlevel_menu[MAXM] = {(4*8),90, 255, NULL, NULL, NULL, NULL, | ^ editor/menu_editor.c:85:33: note: (near initialization for ‘edbadlevel_menu[0]’) editor/menu_editor.c:85:39: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 85 | uchar *edbadlevel_menu[MAXM] = {(4*8),90, 255, NULL, NULL, NULL, NULL, | ^~ editor/menu_editor.c:85:39: note: (near initialization for ‘edbadlevel_menu[1]’) menumanager.c:294:33: error: assignment to ‘char (*)(int)’ from incompatible pointer type ‘unsigned char *’ [-Wincompatible-pointer-types] 294 | funcptr = (*menu.curmenu)[index+ITM_PTR]; | ^ editor/menu_editor.c:85:44: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 85 | uchar *edbadlevel_menu[MAXM] = {(4*8),90, 255, NULL, NULL, NULL, NULL, | ^~~ editor/menu_editor.c:85:44: note: (near initialization for ‘edbadlevel_menu[2]’) editor/../menu.h:60:33: error: initialization of ‘unsigned char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ editor/menu_editor.c:90:47: note: in expansion of macro ‘MNU_SWITCHMENU’ 90 | "Ok", MNU_SWITCHMENU, edloadmap_menu, 0, | ^~~~~~~~~~~~~~ menumanager.c:303:33: error: assignment to ‘char (*)(char *, char, unsigned char)’ from incompatible pointer type ‘unsigned char *’ [-Wincompatible-pointer-types] 303 | dyn_ptr = (*menu.curmenu)[index+ITM_PTR]; | ^ editor/../menu.h:60:33: note: (near initialization for ‘edbadlevel_menu[24]’) 60 | #define MNU_SWITCHMENU 1 // 3rd arg is address of a submenu | ^ editor/menu_editor.c:90:47: note: in expansion of macro ‘MNU_SWITCHMENU’ 90 | "Ok", MNU_SWITCHMENU, edloadmap_menu, 0, | ^~~~~~~~~~~~~~ editor/menu_editor.c:90:63: error: initialization of ‘unsigned char *’ from incompatible pointer type ‘unsigned char **’ [-Wincompatible-pointer-types] 90 | "Ok", MNU_SWITCHMENU, edloadmap_menu, 0, | ^~~~~~~~~~~~~~ editor/menu_editor.c:90:63: note: (near initialization for ‘edbadlevel_menu[25]’) menumanager.c:304:78: error: passing argument 3 of ‘dyn_ptr’ makes integer from pointer without a cast [-Wint-conversion] 304 | (*dyn_ptr)((*menu.curmenu)[index], 1, (*menu.curmenu)[index+ITM_FLAGS]); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ | | | unsigned char * menumanager.c:304:78: note: expected ‘unsigned char’ but argument is of type ‘unsigned char *’ menumanager.c: In function ‘Menu_DrawMenu’: menumanager.c:334:26: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 334 | if (menu.curmenu != option_menu) | ^~ menumanager.c: In function ‘menu_gettype’: menumanager.c:346:31: error: returning ‘unsigned char *’ from a function with return type ‘int’ makes integer from pointer without a cast [-Wint-conversion] 346 | return (*menu.curmenu)[index+ITM_TYPE]; | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ menumanager.c: In function ‘move_down’: menumanager.c:370:28: error: assignment to ‘char (*)(char)’ from incompatible pointer type ‘unsigned char *’ [-Wincompatible-pointer-types] 370 | scrollfunc = (*menu.curmenu)[HD_SCROLLFUNC]; | ^ menumanager.c: In function ‘move_up’: menumanager.c:400:28: error: assignment to ‘char (*)(char)’ from incompatible pointer type ‘unsigned char *’ [-Wincompatible-pointer-types] 400 | scrollfunc = (*menu.curmenu)[HD_SCROLLFUNC]; | ^ menumanager.c: In function ‘goto_epmenu’: menumanager.c:516:23: error: passing argument 1 of ‘Menu_InitMenu’ from incompatible pointer type [-Wincompatible-pointer-types] 516 | Menu_InitMenu(&selectep_menu); | ^~~~~~~~~~~~~~ | | | unsigned char * (*)[150] menumanager.c:235:27: note: expected ‘unsigned char *’ but argument is of type ‘unsigned char * (*)[150]’ 235 | void Menu_InitMenu(uchar *whichmenu) menumanager.c: In function ‘mmhandler_newgame’: menumanager.c:530:31: error: passing argument 1 of ‘Menu_InitMenu’ from incompatible pointer type [-Wincompatible-pointer-types] 530 | Menu_InitMenu(&cant_play_ep_menu); | ^~~~~~~~~~~~~~~~~~ | | | unsigned char * (*)[150] menumanager.c:235:27: note: expected ‘unsigned char *’ but argument is of type ‘unsigned char * (*)[150]’ 235 | void Menu_InitMenu(uchar *whichmenu) editor/menu_editor.c: In function ‘me_resetmap’: editor/menu_editor.c:103:36: error: implicit declaration of function ‘editor_resetmap’ [-Wimplicit-function-declaration] 103 | char static me_resetmap(int arg) { editor_resetmap(); return 1; } | ^~~~~~~~~~~~~~~ menumanager.c: In function ‘mmhandler_restartlevel’: menumanager.c:543:31: error: passing argument 1 of ‘Menu_InitMenu’ from incompatible pointer type [-Wincompatible-pointer-types] 543 | Menu_InitMenu(&endgame_menu); | ^~~~~~~~~~~~~ | | | unsigned char * (*)[150] menumanager.c:235:27: note: expected ‘unsigned char *’ but argument is of type ‘unsigned char * (*)[150]’ 235 | void Menu_InitMenu(uchar *whichmenu) menumanager.c: In function ‘mmhandler_quit’: menumanager.c:563:31: error: passing argument 1 of ‘Menu_InitMenu’ from incompatible pointer type [-Wincompatible-pointer-types] 563 | Menu_InitMenu(quit_menu); | ^~~~~~~~~ | | | unsigned char ** menumanager.c:235:27: note: expected ‘unsigned char *’ but argument is of type ‘unsigned char **’ 235 | void Menu_InitMenu(uchar *whichmenu) editor/menu_editor.c: In function ‘me_addborder’: editor/menu_editor.c:110:37: error: implicit declaration of function ‘editor_addborder’; did you mean ‘me_addborder’? [-Wimplicit-function-declaration] 110 | char static me_addborder(int arg) { editor_addborder(); return 1; } | ^~~~~~~~~~~~~~~~ | me_addborder editor/menu_editor.c: In function ‘me_nextep’: editor/menu_editor.c:111:34: error: implicit declaration of function ‘editor_nextep’; did you mean ‘editor_enter’? [-Wimplicit-function-declaration] 111 | char static me_nextep(int arg) { editor_nextep(); return 1; } | ^~~~~~~~~~~~~ | editor_enter make: *** [Makefile:166: menumanager.o] Error 1 editor/menu_editor.c: In function ‘me_save’: editor/menu_editor.c:112:32: error: implicit declaration of function ‘editor_save’; did you mean ‘editor_enter’? [-Wimplicit-function-declaration] 112 | char static me_save(int arg) { editor_save(); return 1; } | ^~~~~~~~~~~ | editor_enter editor/menu_editor.c: In function ‘me_saveas’: editor/menu_editor.c:113:34: error: implicit declaration of function ‘editor_saveas’ [-Wimplicit-function-declaration] 113 | char static me_saveas(int arg) { editor_saveas(); return 1; } | ^~~~~~~~~~~~~ editor/menu_editor.c: In function ‘me_exit_ed’: editor/menu_editor.c:114:35: error: implicit declaration of function ‘editor_exit’; did you mean ‘editor_enter’? [-Wimplicit-function-declaration] 114 | char static me_exit_ed(int arg) { editor_exit(); return 1; } | ^~~~~~~~~~~ | editor_enter editor/menu_editor.c: In function ‘me_resizemap’: editor/menu_editor.c:115:37: error: implicit declaration of function ‘editor_resizemap’; did you mean ‘me_resizemap’? [-Wimplicit-function-declaration] 115 | char static me_resizemap(int arg) { editor_resizemap(); return 1; } | ^~~~~~~~~~~~~~~~ | me_resizemap editor/menu_editor.c: In function ‘me_timelimit’: editor/menu_editor.c:116:37: error: implicit declaration of function ‘editor_settimelimit’ [-Wimplicit-function-declaration] 116 | char static me_timelimit(int arg) { editor_settimelimit(); return 1; } | ^~~~~~~~~~~~~~~~~~~ make: *** [Makefile:196: editor/menu_editor.o] Error 1 make: Leaving directory '/builddir/build/BUILD/keen/src' error: Bad exit status from /var/tmp/rpm-tmp.SK8xus (%build) Bad exit status from /var/tmp/rpm-tmp.SK8xus (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 7b0d29a4bc0e4f61bb6a9c0ff6b920da -D /var/lib/mock/f40-build-51768369-6199158/root -a -u mockbuild --capability=cap_ipc_lock --rlimit=RLIMIT_CORE=infinity --bind=/tmp/mock-resolv.48ftajip:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin \'--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"\' \'--setenv=PS1= \\s-\\v\\$ \' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c \'/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/clonekeen.spec\'\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/mockbuild/util.py", line 612, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M 7b0d29a4bc0e4f61bb6a9c0ff6b920da -D /var/lib/mock/f40-build-51768369-6199158/root -a -u mockbuild --capability=cap_ipc_lock --rlimit=RLIMIT_CORE=infinity --bind=/tmp/mock-resolv.48ftajip:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/clonekeen.spec'