=> Bootstrap dependency digest>=20211023: found digest-20220214 ===> Skipping vulnerability checks. WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for raine-0.96.7nb3 Building Raine, Fully optimized version with gcc for linux-gnu CPU= dependencies : if you get an error here, install the required dev package libpng:1.6.44 SDL:Compiling source/neocd/pd4990a.c... 2.30.7 lua: lua cflags -I/usr/pkg/include/lua-5.4 libs -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -llua5.4 -lm Compiling source/neocd/cdrom.c... Compiling source/neocd/cache.c... Compiling source/neocd/cdda.c... Compiling source/neocd/iso.c... Compiling source/neocd/neocd.c... Compiling source/games/ainferno.c... Compiling source/games/aquajack.c... Compiling source/games/arabianm.c... Compiling source/games/arkanoid.c... Compiling source/games/arkretrn.c... Compiling source/games/armedf.c... Compiling source/games/ashura.c... Compiling source/games/asuka.c... Compiling source/games/biomtoy.c... Compiling source/games/bloodbro.c... Compiling source/games/bonzeadv.c... Compiling source/games/bshark.c... Compiling source/games/bsystem.c... Compiling source/games/bubblem.c... Compiling source/games/bublbobl.c... Compiling source/games/bubl_mcu.c... Compiling source/games/bubsymph.c... Compiling source/games/cabal.c... Compiling source/games/cadash.c... Compiling source/games/cave.c... Compiling source/games/chaknpop.c... Compiling source/games/chasehq2.c... Compiling source/games/chasehq.c... Compiling source/games/cleofort.c... Compiling source/games/contcirc.c... Compiling source/games/cookbib.c... Compiling source/games/cps1drv.c... Compiling source/games/cps2drv.c... Compiling source/games/crimec.c... Compiling source/games/crospang.c... Compiling source/games/ctribebl.c... Compiling source/games/cupfinal.c... Compiling source/games/dangarb.c... Compiling source/games/darius2d.c... Compiling source/games/darius.c... Compiling source/games/dariusg.c... Compiling source/games/deadconx.c... Compiling source/games/diverboy.c... Compiling source/games/dkong.c... Compiling source/games/dleague.c... Compiling source/games/doubled3.c... Compiling source/games/eaction2.c... Compiling source/games/earthjkr.c... Compiling source/games/esd16.c... Compiling source/games/exzisus.c... Compiling source/games/f3demo.c... Compiling source/games/fchamp.c... Compiling source/games/flstory.c... Compiling source/games/frogger.c... Compiling source/games/galaga.c... Compiling source/games/galpanic.c... Compiling source/games/gauntlet.c... Compiling source/games/gcpball.c... Compiling source/games/gekridan.c... Compiling source/games/gridseek.c... Compiling source/games/gunbird.c... Compiling source/games/gunlock.c... Compiling source/games/hitice.c... Compiling source/games/hthero95.c... Compiling source/games/hvyunit.c... Compiling source/games/hyperpcb.c... Compiling source/games/intcup94.c... Compiling source/games/kaiserkn.c... Compiling source/games/koshien.c... Compiling source/games/ksystem.c... Compiling source/games/ktiger2.c... Compiling source/games/landmakr.c... Compiling source/games/lightbr.c... Compiling source/games/lsystem.c... Compiling source/games/macrossp.c... Compiling source/games/masterw.c... Compiling source/games/matmania.c... Compiling source/games/mcatadv.c... Compiling source/games/megasys1.c... Compiling source/games/metalb.c... Compiling source/games/mitchell.c... Compiling source/games/mugsmash.c... Compiling source/games/neogeo.c... Compiling source/games/ninjak.c... Compiling source/games/ninjaw.c... Compiling source/games/nmk.c... Compiling source/games/nmk004.c... Compiling source/games/opwolf3.c... Compiling source/games/opwolf.c... Compiling source/games/othunder.c... Compiling source/games/pbobble2.c... Compiling source/games/pbobble3.c... Compiling source/games/pbobble4.c... Compiling source/games/pengo.c... Compiling source/games/pirates.c... Compiling source/games/popnpop.c... Compiling source/games/psyforce.c... Compiling source/games/puchicar.c... Compiling source/games/quizgame.c... Compiling source/games/rainbow.c... Compiling source/games/rambo3.c... Compiling source/games/rastan2.c... Compiling source/games/rastan.c... Compiling source/games/recordbr.c... Compiling source/games/ridefght.c... Compiling source/games/ringrage.c... Compiling source/games/robokid.c... Compiling source/games/seta.c... Compiling source/games/silentd.c... Compiling source/games/silkworm.c... Compiling source/games/spacegun.c... Compiling source/games/spcinv95.c... Compiling source/games/superchs.c... Compiling source/games/syvalion.c... Compiling source/games/taito_f2.c... Compiling source/games/tecmosys.c... Compiling source/games/terrac.c... Compiling source/games/terraf.c... Compiling source/games/tetrisp2.c... Compiling source/games/tetrist.c... Compiling source/games/toaplan1.c... Compiling source/games/toaplan2.c... Compiling source/games/toki.c... Compiling source/games/topland.c... Compiling source/games/topspeed.c... Compiling source/games/trstars.c... Compiling source/games/twinqix.c... Compiling source/games/undrfire.c... Compiling source/games/upl.c... Compiling source/games/viofight.c... Compiling source/games/volfied.c... Compiling source/games/warriorb.c... Compiling source/games/wgp.c... Compiling source/games/wrestlef.c... Compiling source/games/wwfsstar.c... Compiling source/games/xsystem1.c... Compiling source/games/xsystem2.c... Compiling source/games/zerozone.c... Compiling source/games/f3system.c... Compiling source/games/nichisnd.c... Compiling source/games/taitosnd.c... Compiling source/games/tchnosnd.c... Compiling source/games/cps1.c... Compiling source/games/tc002obj.c... Compiling source/games/tc140syt.c... Compiling source/games/taito_z.c... Compiling source/games/tc005rot.c... Compiling source/games/fl_mcu.c... Compiling source/games/tc220ioc.c... Compiling source/games/setax1.c... Compiling source/games/tc200obj.c... Compiling source/games/tc180vcu.c... Compiling source/games/kiki_mcu.c... Compiling source/games/tc110pcr.c... Compiling source/games/tc150rod.c... Compiling source/games/tc100scn.c... Compiling source/games/tc003vcu.c... Compiling source/games/kick_mcu.c... Compiling source/games/tc006vcu.c... Compiling source/games/tc101scn.c... Compiling source/games/tc004vcu.c... Compiling source/games/gun.c... Compiling source/68000/starhelp.c... gcc -c -o linux-gnu-sdl2/object/Musashi/m68kmake.o source/Musashi/m68kmake.c Compiling source/68020/newcpu.c... Compiling source/z80/mz80help.c... Compiling source/mame/z80/z80.c... Compiling source/6502/m6502hlp.c... Compiling source/mame/6502/m6502.c... Compiling source/m68705/m68705.c... Compiling source/sound/assoc.c... Compiling c++ source/sdl/dialogs/sound_commands.cpp... Compiling c++ source/sdl/dialogs/neocd_options.cpp... Compiling c++ source/sdl/dialogs/neo_softdips.cpp... Compiling c++ source/sdl/dialogs/neo_debug_dips.cpp... Compiling source/sound/ym2151.c... Compiling source/sound/2151intf.c... Compiling source/sound/2203intf.c... In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/sound_commands.cpp:2: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl/dialogs/sound_commands.cpp: In function 'int associate(int)': source/sdl/dialogs/sound_commands.cpp:108:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 108 | char *exts[] = { ".mp3", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:109:2: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 109 | ".ogg", ".flac", ".wav", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:109:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 109 | ".ogg", ".flac", ".wav", | ^~~~~~~ source/sdl/dialogs/sound_commands.cpp:109:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 109 | ".ogg", ".flac", ".wav", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:111:2: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 111 | ".mod", ".s3m", ".xm", ".it", ".669", ".amf", ".ams", ".dbm", ".dmf", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:111:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 111 | ".mod", ".s3m", ".xm", ".it", ".669", ".amf", ".ams", ".dbm", ".dmf", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:111:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 111 | ".mod", ".s3m", ".xm", ".it", ".669", ".amf", ".ams", ".dbm", ".dmf", | ^~~~~ source/sdl/dialogs/sound_commands.cpp:111:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 111 | ".mod", ".s3m", ".xm", ".it", ".669", ".amf", ".ams", ".dbm", ".dmf", | ^~~~~ source/sdl/dialogs/sound_commands.cpp:111:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 111 | ".mod", ".s3m", ".xm", ".it", ".669", ".amf", ".ams", ".dbm", ".dmf", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:111:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 111 | ".mod", ".s3m", ".xm", ".it", ".669", ".amf", ".ams", ".dbm", ".dmf", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:111:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 111 | ".mod", ".s3m", ".xm", ".it", ".669", ".amf", ".ams", ".dbm", ".dmf", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:111:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 111 | ".mod", ".s3m", ".xm", ".it", ".669", ".amf", ".ams", ".dbm", ".dmf", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:111:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 111 | ".mod", ".s3m", ".xm", ".it", ".669", ".amf", ".ams", ".dbm", ".dmf", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:112:2: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 112 | ".dsn", ".far", ".mdl", ".med", ".mtm", ".okt", ".ptm", ".stm", ".ult", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:112:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 112 | ".dsn", ".far", ".mdl", ".med", ".mtm", ".okt", ".ptm", ".stm", ".ult", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:112:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 112 | ".dsn", ".far", ".mdl", ".med", ".mtm", ".okt", ".ptm", ".stm", ".ult", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:112:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 112 | ".dsn", ".far", ".mdl", ".med", ".mtm", ".okt", ".ptm", ".stm", ".ult", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:112:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 112 | ".dsn", ".far", ".mdl", ".med", ".mtm", ".okt", ".ptm", ".stm", ".ult", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:112:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 112 | ".dsn", ".far", ".mdl", ".med", ".mtm", ".okt", ".ptm", ".stm", ".ult", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:112:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 112 | ".dsn", ".far", ".mdl", ".med", ".mtm", ".okt", ".ptm", ".stm", ".ult", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:112:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 112 | ".dsn", ".far", ".mdl", ".med", ".mtm", ".okt", ".ptm", ".stm", ".ult", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:112:66: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 112 | ".dsn", ".far", ".mdl", ".med", ".mtm", ".okt", ".ptm", ".stm", ".ult", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:113:2: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 113 | ".umx", ".mt2", ".psm", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:113:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 113 | ".umx", ".mt2", ".psm", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:113:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 113 | ".umx", ".mt2", ".psm", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:115:2: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 115 | ".mdz",".s3z", ".xmz",".itz", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:115:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 115 | ".mdz",".s3z", ".xmz",".itz", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:115:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 115 | ".mdz",".s3z", ".xmz",".itz", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:115:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 115 | ".mdz",".s3z", ".xmz",".itz", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:116:2: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 116 | ".mdr",".s3r", ".xmr",".itr", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:116:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 116 | ".mdr",".s3r", ".xmr",".itr", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:116:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 116 | ".mdr",".s3r", ".xmr",".itr", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:116:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 116 | ".mdr",".s3r", ".xmr",".itr", | ^~~~~~ source/sdl/dialogs/sound_commands.cpp:117:2: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 117 | ".mdgz",".s3gz", ".xmgz",".itgz", | ^~~~~~~ source/sdl/dialogs/sound_commands.cpp:117:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 117 | ".mdgz",".s3gz", ".xmgz",".itgz", | ^~~~~~~ source/sdl/dialogs/sound_commands.cpp:117:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 117 | ".mdgz",".s3gz", ".xmgz",".itgz", | ^~~~~~~ source/sdl/dialogs/sound_commands.cpp:117:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 117 | ".mdgz",".s3gz", ".xmgz",".itgz", | ^~~~~~~ In file included from source/sdl/dialogs/sound_commands.cpp:8: source/raine.h:73:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 73 | #define SLASH "/" | ^~~ source/sdl/dialogs/sound_commands.cpp:124:19: note: in expansion of macro 'SLASH' 124 | s = strrstr(path,SLASH); | ^~~~~ source/sdl/dialogs/sound_commands.cpp:128:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 128 | fsel(path,exts,res,"Choose audio track"); | ^~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/sound_commands.cpp:130:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 130 | assoc(command,""); | ^~ In file included from source/sdl/dialogs/sound_commands.cpp:8: source/raine.h:73:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 73 | #define SLASH "/" | ^~~ source/sdl/dialogs/sound_commands.cpp:134:19: note: in expansion of macro 'SLASH' 134 | s = strrstr(path,SLASH); | ^~~~~ source/sdl/dialogs/sound_commands.cpp: In function 'int menu_asso(int)': source/sdl/dialogs/sound_commands.cpp:171:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 171 | assoc(cmd,""); | ^~ In file included from source/sdl/dialogs/sound_commands.cpp:8: source/sdl/dialogs/sound_commands.cpp: In function 'int associations(int)': source/raine.h:73:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 73 | #define SLASH "/" | ^~~ source/sdl/dialogs/sound_commands.cpp:228:28: note: in expansion of macro 'SLASH' 228 | char *s2 = strrstr(s,SLASH); | ^~~~~ source/sdl/dialogs/sound_commands.cpp: At global scope: source/sdl/dialogs/sound_commands.cpp:269:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 269 | { "",(char*)&command,"0","0"} }, | ^~ source/sdl/dialogs/sound_commands.cpp:269:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 269 | { "",(char*)&command,"0","0"} }, | ^~~ source/sdl/dialogs/sound_commands.cpp:269:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 269 | { "",(char*)&command,"0","0"} }, | ^~~ source/sdl/dialogs/sound_commands.cpp: In function 'int do_sound_cmd(int)': source/sdl/dialogs/sound_commands.cpp:311:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 311 | if (is_current_game("pulstar")) | ^~~~~~~~~ In file included from source/compat_sdl.h:5, from source/sdl2/gui/menu.h:4, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/sound_commands.cpp:2: source/sdl/dialogs/sound_commands.cpp:359:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 359 | fatal_error("too many values : %d",sound_menu[0].values_list_size); | ^~~~~~~~~~~~~~~~~~~~~~ source/sdl2/compat.h:31:78: note: in definition of macro 'fatal_error' 31 | #define fatal_error(format, ...) sdl_fatal_error(__FILE__,__func__,__LINE__, format, ## __VA_ARGS__) | ^~~~~~ Compiling source/sound/2413intf.c... In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/neocd_options.cpp:1: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/neo_softdips.cpp:1: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:19:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 19 | "Europe MVS (Ver. 2)", | ^~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:20:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 20 | "Europe MVS (Ver. 1)", | ^~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:21:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 21 | "US MVS (Ver. 2?)", | ^~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:22:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 22 | "US MVS (Ver. 1)", | ^~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:23:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 23 | "Asia MVS (Ver. 3)", | ^~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:24:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 24 | "Japan MVS (Ver. 3)", | ^~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:25:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 25 | "Japan MVS (Ver. 2)", | ^~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:26:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 26 | "Japan MVS (Ver. 1)", | ^~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:27:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 27 | "NEO-MVH MV1C", | ^~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:28:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 28 | "Japan MVS (J3)", | ^~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:29:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 29 | "Custom Japanese Hotel", | ^~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:30:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 30 | "Universe Bios (Hack, Ver. 3.1)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:31:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 31 | "Universe Bios (Hack, Ver. 3.0)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:32:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 32 | "Universe Bios (Hack, Ver. 2.3)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:33:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 33 | "Universe Bios (Hack, Ver. 2.2)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:34:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 34 | "Universe Bios (Hack, Ver. 2.1)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:35:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | "Universe Bios (Hack, Ver. 2.0)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:36:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 36 | "Universe Bios (Hack, Ver. 1.3)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:37:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 37 | "Universe Bios (Hack, Ver. 1.2)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:38:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 38 | "Universe Bios (Hack, Ver. 1.1)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:39:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 39 | "Universe Bios (Hack, Ver. 1.0)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:41:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 41 | "Debug MVS (Hack?)", | ^~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:42:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 42 | "Asia AES", | ^~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:43:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 43 | "Japan AES", | ^~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:44:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 44 | "Irrmaze bios", | ^~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:45:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 45 | "Universe Bios (Hack, Ver. 3.2)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:46:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 46 | "Universe Bios (Hack, Ver. 3.3)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:47:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 47 | "Universe Bios (Hack, Ver. 4.0)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp: In function 'int choose_bios(int)': source/sdl/dialogs/neocd_options.cpp:72:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 72 | MessageBox("Error","Can't find any Neo-Geo BIOS in your ROMs.\nSetup your ROM directories so that neogeo.zip is loadable","OK"); | ^~~~~~~ source/sdl/dialogs/neocd_options.cpp:72:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 72 | MessageBox("Error","Can't find any Neo-Geo BIOS in your ROMs.\nSetup your ROM directories so that neogeo.zip is loadable","OK"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:72:124: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 72 | MessageBox("Error","Can't find any Neo-Geo BIOS in your ROMs.\nSetup your ROM directories so that neogeo.zip is loadable","OK"); | ^~~~ source/sdl/dialogs/neocd_options.cpp: In function 'int do_update_block(int)': source/sdl/dialogs/neocd_options.cpp:89:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 89 | char *exts[] = { "block*png", NULL }; | ^~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp:90:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 90 | fsel(fdir,exts,picture,"Update block"); | ^~~~~~~~~~~~~~ source/sdl/dialogs/neocd_options.cpp: In function 'int select_neocd_bios(int)': source/sdl/dialogs/neocd_options.cpp:161:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 161 | char *exts[] = { "bin", "zip", NULL }; | ^~~~~ source/sdl/dialogs/neocd_options.cpp:161:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 161 | char *exts[] = { "bin", "zip", NULL }; | ^~~~~ In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/dlg_dsw.h:1, from source/sdl/dialogs/neo_debug_dips.cpp:11: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl/dialogs/neo_debug_dips.cpp: In function 'void init_debug_dips()': source/sdl/dialogs/neo_debug_dips.cpp:65:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 65 | FILE *f = fopen(get_shared("debug_dips.txt"),"r"); | ^~~~~~~~~~~~~~~~ Compiling source/sound/ym2413.c... Compiling source/sound/2610intf.c... Compiling source/emudx.c... Compiling source/cat93c46.c... Compiling source/decode.c... Compiling source/cps2crpt.c... Compiling source/slapstic.c... Compiling source/sound/3812intf.c... Compiling less optimized source/sound/adpcm.c... Compiling source/sound/ay8910.c... Compiling source/sound/dac.c... Compiling source/sound/dxsmp.c... Compiling source/sound/es5506.c... Compiling source/sound/m6585.c... Compiling source/sound/msm5205.c... Compiling source/sound/msm5232.c... Compiling source/sound/namco.c... Compiling source/sound/qsound.c... Compiling source/sound/smp16bit.c... Compiling source/sound/ymz280b.c... Compiling source/sound/ymf278b.c... Compiling source/sound/x1_010.c... Compiling source/sound/toaplan2.c... Compiling source/sound/galaxian.c... Compiling source/sound/tms5220.c... Compiling source/sound/5220intf.c... Compiling source/sound/pokey.c... Compiling source/video/tilemod.c... Compiling source/video/palette.c... Compiling source/video/priorities.c... Compiling source/video/newspr.c... Compiling source/video/spr64.c... Compiling source/video/cache.c... Compiling source/video/c/str/6x8_8.c... Compiling source/video/c/str/6x8_16.c... Compiling source/video/c/str/6x8_32.c... Compiling source/video/c/16x8_8.c... Compiling source/video/c/16x8_16.c... Compiling source/video/c/16x8_32.c... Compiling source/video/zoom/16x16.c... Compiling source/video/zoom/16x16_16.c... Compiling source/video/zoom/16x16_32.c... Compiling source/video/zoom/16x8.c... Compiling source/video/c/lscroll.c... Compiling source/video/alpha.c... Compiling source/video/c/str_opaque.c... Compiling source/video/c/common.c... Compiling source/video/c/pdraw.c... Compiling source/video/c/mask.c... Compiling source/video/c/sprites.c... Compiling source/video/c/sprites32_a50.c... Compiling source/video/c/mapped_alpha.c... Compiling source/sound/ymdeltat.c... Compiling source/sound/fmopl.c... Compiling source/sound/fm.c... Compiling source/sound/emulator.c... Compiling source/raine.c... Compiling source/romdir.c... Compiling source/hiscore.c... Compiling source/history.c... Compiling source/ingame.c... Compiling source/savegame.c... Compiling source/arpro.c... Compiling source/bld.c... Compiling source/debug.c... Compiling source/config.c... Compiling source/confile.c... Compiling source/files.c... Compiling source/newmem.c... Compiling source/raine_cpuid.c... Compiling source/cpumain.c... Compiling source/emumain.c... Compiling source/demos.c... source/config.c: In function 'load_neo_from_name': source/config.c:301:7: warning: implicit declaration of function 'getcwd'; did you mean 'getwc'? [-Wimplicit-function-declaration] 301 | getcwd(neocd_dir,FILENAME_MAX); | ^~~~~~ | getwc Compiling source/timer.c... Compiling source/soundcfg.c... Compiling source/speed_hack.c... Compiling source/savepng.c... Compiling source/loadroms.c... Compiling source/ips.c... source/loadroms.c: In function 'load_rom': source/loadroms.c:1223:6: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] 1223 | unlink(path); | ^~~~~~ Compiling source/sdl/dsw.c... Compiling source/sdl/png.c... Compiling source/sdl/SDL_gfx/SDL_framerate.c... Compiling source/sdl2/SDL_gfx/SDL_gfxPrimitives.c... Compiling source/sdl2/SDL_gfx/SDL_rotozoom.c... Compiling source/mini-unzip/unzip.c... Compiling source/mini-unzip/ioapi.c... Compiling source/mame/memory.c... Compiling source/mame/eeprom.c... Compiling 7z source/7z/7zAlloc.c... Compiling 7z source/7z/7zBuf2.c... Compiling 7z source/7z/7zBuf.c... Compiling 7z source/7z/7zCrc.c... Compiling 7z source/7z/7zCrcOpt.c... Compiling 7z source/7z/7zDec.c... Compiling 7z source/7z/7zFile.c... Compiling 7z source/7z/7zArcIn.c... Compiling 7z source/7z/7zStream.c... Compiling 7z source/7z/Bcj2.c... Compiling 7z source/7z/Bra86.c... Compiling 7z source/7z/Bra.c... Compiling 7z source/7z/CpuArch.c... Compiling 7z source/7z/LzmaDec.c... Compiling 7z source/7z/Ppmd7.c... Compiling 7z source/7z/Ppmd7Dec.c... Compiling 7z source/7z/Lzma2Dec.c... Compiling 7z source/7z/Delta.c... Compiling 7z source/7z/BraIA64.c... Compiling 7z source/7z/7zMain.c... Compiling c++ source/sdl/gui.cpp... Compiling c++ source/sdl/dialogs/video_info.cpp... Compiling c++ source/sdl/dialogs/fsel.cpp... Compiling c++ source/sdl/dialogs/video_options.cpp... Compiling c++ source/sdl/dialogs/sound_options.cpp... Compiling c++ source/sdl/dialogs/gui_options.cpp... Compiling c++ source/sdl/dialogs/dirs.cpp... In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/fsel.cpp:5: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl/dialogs/fsel.cpp: In function 'int do_paths(int)': source/sdl/dialogs/fsel.cpp:149:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 149 | TMenu *menu = new TPathDlg("",paths->get_menu()); | ^~ source/sdl/dialogs/fsel.cpp: In member function 'virtual void TFileSel::compute_nb_items()': source/sdl/dialogs/fsel.cpp:237:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 237 | menu[0].label = ".."; | ^~~~ In file included from source/raine.h:35, from source/sdl/dialogs/fsel.cpp:4: source/sdl/dialogs/fsel.cpp: In member function 'virtual void TFileSel::add_files()': source/sdl/dialogs/fsel.cpp:382:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 382 | fatal_error("Failed to reallocate files buffer (%d entries)",nb_menu); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl2/compat.h:31:78: note: in definition of macro 'fatal_error' 31 | #define fatal_error(format, ...) sdl_fatal_error(__FILE__,__func__,__LINE__, format, ## __VA_ARGS__) | ^~~~~~ source/sdl/dialogs/fsel.cpp:408:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 408 | char *myexts[] = { ".iso", "iso.gz", "zip", "7z", NULL }; | ^~~~~~ source/sdl/dialogs/fsel.cpp:408:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 408 | char *myexts[] = { ".iso", "iso.gz", "zip", "7z", NULL }; | ^~~~~~~~ source/sdl/dialogs/fsel.cpp:408:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 408 | char *myexts[] = { ".iso", "iso.gz", "zip", "7z", NULL }; | ^~~~~ source/sdl/dialogs/fsel.cpp:408:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 408 | char *myexts[] = { ".iso", "iso.gz", "zip", "7z", NULL }; | ^~~~ source/sdl/dialogs/fsel.cpp: In member function 'virtual int TMultiFileSel::myexec_file(int)': source/sdl/dialogs/fsel.cpp:567:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 567 | MessageBox("Error","Already have max selections","ok"); | ^~~~~~~ source/sdl/dialogs/fsel.cpp:567:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 567 | MessageBox("Error","Already have max selections","ok"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/fsel.cpp:567:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 567 | MessageBox("Error","Already have max selections","ok"); | ^~~~ In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/video_options.cpp:9: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/video_info.cpp:1: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ In file included from source/compat_sdl.h:5, from source/sdl2/gui/menu.h:4, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/video_info.cpp:1: source/sdl/dialogs/video_info.cpp: In function 'void print_tf_state(int, char*, int)': source/sdl/dialogs/video_info.cpp:19:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 19 | fatal_error("Received test %d for %s",test,label); | ^~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl2/compat.h:31:78: note: in definition of macro 'fatal_error' 31 | #define fatal_error(format, ...) sdl_fatal_error(__FILE__,__func__,__LINE__, format, ## __VA_ARGS__) | ^~~~~~ source/sdl/dialogs/video_info.cpp: In constructor 'TVideo_menu::TVideo_menu(char*)': source/sdl/dialogs/video_info.cpp:63:77: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 63 | print_menu_string(1,_("No OpenGL information yet, run something first."),""); | ^~ source/sdl/dialogs/video_options.cpp: In function 'int my_toggle_border(int)': source/sdl/dialogs/video_options.cpp:76:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 76 | if (!s) s = ""; | ^~ source/sdl/dialogs/video_options.cpp:79:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 79 | putenv("SDL_VIDEO_WINDOW_POS=0,0"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/video_options.cpp: In function 'int choose_shader(int)': source/sdl/dialogs/video_options.cpp:136:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 136 | char *exts[] = { "*.shader","*.glsl", NULL }; | ^~~~~~~~~~ source/sdl/dialogs/video_options.cpp:136:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 136 | char *exts[] = { "*.shader","*.glsl", NULL }; | ^~~~~~~~ source/sdl/dialogs/video_info.cpp: In function 'int do_video(int)': source/sdl/dialogs/video_info.cpp:110:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 110 | TVideo_menu *video_menu = new TVideo_menu(""); | ^~ source/sdl/dialogs/video_options.cpp:138:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 138 | dir = get_shared("shaders"); | ^~~~~~~~~ source/sdl/dialogs/video_options.cpp:150:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 150 | fsel(dir,exts,ogl.shader,"Select shader"); | ^~~~~~~~~~~~~~~ source/sdl/dialogs/video_options.cpp: At global scope: source/sdl/dialogs/video_options.cpp:233:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 233 | { 3, 0, 50, 0, 100},{""} }, | ^~ source/sdl/dialogs/video_options.cpp:236:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 236 | { 3, 0, 50, 0, 100},{""} }, | ^~ source/sdl/dialogs/video_options.cpp:288:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 288 | {_("Auto"), "1", "2", "3", "4", "5", "6", "7", "8", "9" } }, | ^~~ source/sdl/dialogs/video_options.cpp:288:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 288 | {_("Auto"), "1", "2", "3", "4", "5", "6", "7", "8", "9" } }, | ^~~ source/sdl/dialogs/video_options.cpp:288:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 288 | {_("Auto"), "1", "2", "3", "4", "5", "6", "7", "8", "9" } }, | ^~~ source/sdl/dialogs/video_options.cpp:288:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 288 | {_("Auto"), "1", "2", "3", "4", "5", "6", "7", "8", "9" } }, | ^~~ source/sdl/dialogs/video_options.cpp:288:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 288 | {_("Auto"), "1", "2", "3", "4", "5", "6", "7", "8", "9" } }, | ^~~ source/sdl/dialogs/video_options.cpp:288:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 288 | {_("Auto"), "1", "2", "3", "4", "5", "6", "7", "8", "9" } }, | ^~~ source/sdl/dialogs/video_options.cpp:288:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 288 | {_("Auto"), "1", "2", "3", "4", "5", "6", "7", "8", "9" } }, | ^~~ source/sdl/dialogs/video_options.cpp:288:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 288 | {_("Auto"), "1", "2", "3", "4", "5", "6", "7", "8", "9" } }, | ^~~ source/sdl/dialogs/video_options.cpp:288:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 288 | {_("Auto"), "1", "2", "3", "4", "5", "6", "7", "8", "9" } }, | ^~~ source/sdl/dialogs/video_options.cpp:290:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 290 | { _("None"), "90°", "180°", "270°" } }, | ^~~~~ source/sdl/dialogs/video_options.cpp:290:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 290 | { _("None"), "90°", "180°", "270°" } }, | ^~~~~~ source/sdl/dialogs/video_options.cpp:290:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 290 | { _("None"), "90°", "180°", "270°" } }, | ^~~~~~ source/sdl/dialogs/video_options.cpp:294:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 294 | { _("Max FPS for drivers"), NULL, &ifps, ITEM_FLOATEDIT, { 10,0,180 }, { "", (char*)&max_fps, "1", "200" } }, | ^~ source/sdl/dialogs/video_options.cpp:294:95: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 294 | { _("Max FPS for drivers"), NULL, &ifps, ITEM_FLOATEDIT, { 10,0,180 }, { "", (char*)&max_fps, "1", "200" } }, | ^~~ source/sdl/dialogs/video_options.cpp:294:100: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 294 | { _("Max FPS for drivers"), NULL, &ifps, ITEM_FLOATEDIT, { 10,0,180 }, { "", (char*)&max_fps, "1", "200" } }, | ^~~~~ source/sdl/dialogs/video_options.cpp: In function 'int do_video_options(int)': source/sdl/dialogs/video_options.cpp:309:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 309 | video_options = new TVideo("", video_items); | ^~ In file included from source/sdl2/gui/menu.h:9, from source/sdl/gui/menu.h:2, from source/sdl/gui.h:5, from source/sdl/gui.cpp:21: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ Compiling c++ source/sdl/dialogs/about.cpp... In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/gui_options.cpp:1: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/sound_options.cpp:1: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl/dialogs/gui_options.cpp: In function 'int set_lang(int)': source/sdl/dialogs/gui_options.cpp:22:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 22 | case 1: locale = "fr"; break; | ^~~~ source/sdl/dialogs/gui_options.cpp:23:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 23 | case 2: locale = "es"; break; | ^~~~ source/sdl/dialogs/gui_options.cpp:24:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 24 | case 3: locale = "it"; break; | ^~~~ source/sdl/dialogs/gui_options.cpp:25:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 25 | case 4: locale = "pt"; break; | ^~~~ source/sdl/dialogs/gui_options.cpp:26:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 26 | default: locale = "C"; break; | ^~~ In file included from source/compat_sdl.h:5, from source/sdl2/gui/menu.h:4, from source/sdl/dialogs/gui_options.cpp:1: source/sdl/dialogs/gui_options.cpp: In function 'int do_led_paths(int)': source/sdl/dialogs/gui_options.cpp:88:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 88 | fatal_error("Failed to reallocate files buffer (%d entries)",nb_menu); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl2/compat.h:31:78: note: in definition of macro 'fatal_error' 31 | #define fatal_error(format, ...) sdl_fatal_error(__FILE__,__func__,__LINE__, format, ## __VA_ARGS__) | ^~~~~~ source/sdl/dialogs/gui_options.cpp:93:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 93 | MessageBox("Error","No write permission to any brightness file\nin /sys/class/leds","ok"); | ^~~~~~~ source/sdl/dialogs/gui_options.cpp:93:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 93 | MessageBox("Error","No write permission to any brightness file\nin /sys/class/leds","ok"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/gui_options.cpp:93:86: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 93 | MessageBox("Error","No write permission to any brightness file\nin /sys/class/leds","ok"); | ^~~~ source/sdl/dialogs/sound_options.cpp: In function 'int choose_driver(int)': source/sdl/dialogs/sound_options.cpp:38:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 38 | int ret = MessageBox("Sound driver",_("Choose one of the available drivers:"),buf); | ^~~~~~~~~~~~~~ source/sdl/dialogs/gui_options.cpp:98:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 98 | TMenu *dlg = new TMenu("LEDs",menu); | ^~~~~~ source/sdl/dialogs/sound_options.cpp:48:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 48 | MessageBox("Error",_("Could not even initialize the audio subsystem with this driver\nForget it"),"Ok"); | ^~~~~~~ source/sdl/dialogs/sound_options.cpp:48:104: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 48 | MessageBox("Error",_("Could not even initialize the audio subsystem with this driver\nForget it"),"Ok"); | ^~~~ In file included from source/compat_sdl.h:5, from source/sdl2/gui/menu.h:4, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/sound_options.cpp:1: source/sdl/dialogs/sound_options.cpp:53:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 53 | fatal_error("We lost the audio subsystem, bye!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl2/compat.h:31:78: note: in definition of macro 'fatal_error' 31 | #define fatal_error(format, ...) sdl_fatal_error(__FILE__,__func__,__LINE__, format, ## __VA_ARGS__) | ^~~~~~ In file included from source/compat_sdl.h:5, from source/sdl2/gui/menu.h:4, from source/sdl/dialogs/gui_options.cpp:1: source/sdl/dialogs/gui_options.cpp: In function 'int do_gui_options(int)': source/sdl/dialogs/gui_options.cpp:168:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 168 | fatal_error("Too many GUI options!"); | ^~~~~~~~~~~~~~~~~~~~~~~ source/sdl2/compat.h:31:78: note: in definition of macro 'fatal_error' 31 | #define fatal_error(format, ...) sdl_fatal_error(__FILE__,__func__,__LINE__, format, ## __VA_ARGS__) | ^~~~~~ source/sdl/dialogs/sound_options.cpp: In function 'void init_sound_driver(int)': source/sdl/dialogs/sound_options.cpp:111:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 111 | sound_menu[1].values_list_label[0] = "None"; | ^~~~~~ source/sdl/dialogs/gui_options.cpp:170:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 170 | gui_options = new TMenu("", gui_menu); | ^~ source/sdl/dialogs/sound_options.cpp: In function 'int do_sound_options(int)': source/sdl/dialogs/sound_options.cpp:155:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 155 | menu = new TSoundDlg("", sound_menu); | ^~ Compiling c++ source/sdl/dialogs/messagebox.cpp... Compiling c++ source/sdl/dialogs/controls.cpp... In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/dirs.cpp:2: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl/dialogs/dirs.cpp: In function 'int do_m68kdis(int)': source/sdl/dialogs/dirs.cpp:17:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 17 | char *exts[] = { "m68kdis", NULL }; | ^~~~~~~~~ source/sdl/dialogs/dirs.cpp:18:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 18 | fsel(dir_cfg.share_path,exts,dir_cfg.m68kdis,"Find m68kdis command"); | ^~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/dirs.cpp: In function 'int do_sh2d(int)': source/sdl/dialogs/dirs.cpp:24:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 24 | char *exts[] = { "sh2d", NULL }; | ^~~~~~ source/sdl/dialogs/dirs.cpp:25:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 25 | fsel(dir_cfg.share_path,exts,dir_cfg.sh2d,"Find sh2d command"); | ^~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/dirs.cpp: In function 'int do_dz80(int)': source/sdl/dialogs/dirs.cpp:31:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 31 | char *exts[] = { "dz80", NULL }; | ^~~~~~ source/sdl/dialogs/dirs.cpp:32:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 32 | fsel(dir_cfg.share_path,exts,dir_cfg.dz80,"Find dz80 command"); | ^~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/dirs.cpp: In function 'int do_d6502(int)': source/sdl/dialogs/dirs.cpp:38:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 38 | char *exts[] = { "disa_6502.pl", NULL }; | ^~~~~~~~~~~~~~ source/sdl/dialogs/dirs.cpp:39:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 39 | fsel(dir_cfg.share_path,exts,dir_cfg.d6502,"Find 6502 disasm command"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/dirs.cpp: In function 'int do_dirs(int)': source/sdl/dialogs/dirs.cpp:82:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 82 | TMenu *mbox = new TMenu("",menu); | ^~ source/sdl/gui.cpp: In function 'void save_menu_config()': source/sdl/gui.cpp:192:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 192 | raine_set_config_32bit_hex("GUI", "fg_color", fg_color); | ^~~~~ source/sdl/gui.cpp:192:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 192 | raine_set_config_32bit_hex("GUI", "fg_color", fg_color); | ^~~~~~~~~~ source/sdl/gui.cpp:193:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 193 | raine_set_config_32bit_hex("GUI", "bg_color", bg_color); | ^~~~~ source/sdl/gui.cpp:193:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 193 | raine_set_config_32bit_hex("GUI", "bg_color", bg_color); | ^~~~~~~~~~ source/sdl/gui.cpp:194:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 194 | raine_set_config_32bit_hex("GUI", "fgframe_color", fgframe_color); | ^~~~~ source/sdl/gui.cpp:194:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 194 | raine_set_config_32bit_hex("GUI", "fgframe_color", fgframe_color); | ^~~~~~~~~~~~~~~ source/sdl/gui.cpp:195:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 195 | raine_set_config_32bit_hex("GUI", "bgframe_color", bgframe_color); | ^~~~~ source/sdl/gui.cpp:195:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 195 | raine_set_config_32bit_hex("GUI", "bgframe_color", bgframe_color); | ^~~~~~~~~~~~~~~ source/sdl/gui.cpp:197:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 197 | raine_set_config_32bit_hex("GUI", "slider_border", cslider_border); | ^~~~~ source/sdl/gui.cpp:197:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 197 | raine_set_config_32bit_hex("GUI", "slider_border", cslider_border); | ^~~~~~~~~~~~~~~ source/sdl/gui.cpp:198:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 198 | raine_set_config_32bit_hex("GUI", "slider_bar", cslider_bar); | ^~~~~ source/sdl/gui.cpp:198:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 198 | raine_set_config_32bit_hex("GUI", "slider_bar", cslider_bar); | ^~~~~~~~~~~~ source/sdl/gui.cpp:199:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 199 | raine_set_config_32bit_hex("GUI", "slider_lift", cslider_lift); | ^~~~~ source/sdl/gui.cpp:199:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 199 | raine_set_config_32bit_hex("GUI", "slider_lift", cslider_lift); | ^~~~~~~~~~~~~ source/sdl/gui.cpp:201:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 201 | raine_set_config_32bit_hex("GUI", "bg_dialog_bar", bg_dialog_bar); | ^~~~~ source/sdl/gui.cpp:201:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 201 | raine_set_config_32bit_hex("GUI", "bg_dialog_bar", bg_dialog_bar); | ^~~~~~~~~~~~~~~ source/sdl/gui.cpp: In function 'void read_menu_config()': source/sdl/gui.cpp:211:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 211 | fg_color = raine_get_config_hex("GUI", "fg_color", mymakecol(255,255,255)); | ^~~~~ source/sdl/gui.cpp:211:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 211 | fg_color = raine_get_config_hex("GUI", "fg_color", mymakecol(255,255,255)); | ^~~~~~~~~~ source/sdl/gui.cpp:212:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 212 | bg_color = raine_get_config_hex("GUI", "bg_color", makecol_alpha(0x11,0x07,0x78,0xc0)); | ^~~~~ source/sdl/gui.cpp:212:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 212 | bg_color = raine_get_config_hex("GUI", "bg_color", makecol_alpha(0x11,0x07,0x78,0xc0)); | ^~~~~~~~~~ source/sdl/gui.cpp:213:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 213 | fgframe_color = raine_get_config_hex("GUI", "fgframe_color", mymakecol(255,255,255)); | ^~~~~ source/sdl/gui.cpp:213:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 213 | fgframe_color = raine_get_config_hex("GUI", "fgframe_color", mymakecol(255,255,255)); | ^~~~~~~~~~~~~~~ source/sdl/gui.cpp:214:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 214 | bgframe_color = raine_get_config_hex("GUI", "bgframe_color", mymakecol(0,0,128)); | ^~~~~ source/sdl/gui.cpp:214:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 214 | bgframe_color = raine_get_config_hex("GUI", "bgframe_color", mymakecol(0,0,128)); | ^~~~~~~~~~~~~~~ source/sdl/gui.cpp:215:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 215 | cslider_border = raine_get_config_hex("GUI", "slider_border", mymakecol(0,0,0)); | ^~~~~ source/sdl/gui.cpp:215:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 215 | cslider_border = raine_get_config_hex("GUI", "slider_border", mymakecol(0,0,0)); | ^~~~~~~~~~~~~~~ source/sdl/gui.cpp:216:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 216 | cslider_bar = raine_get_config_hex("GUI", "slider_bar", mymakecol(0xc0,0xc0,0xc0)); | ^~~~~ source/sdl/gui.cpp:216:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 216 | cslider_bar = raine_get_config_hex("GUI", "slider_bar", mymakecol(0xc0,0xc0,0xc0)); | ^~~~~~~~~~~~ source/sdl/gui.cpp:217:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 217 | cslider_lift = raine_get_config_hex("GUI", "slider_lift", mymakecol(0xff,0xff,0xff)); | ^~~~~ source/sdl/gui.cpp:217:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 217 | cslider_lift = raine_get_config_hex("GUI", "slider_lift", mymakecol(0xff,0xff,0xff)); | ^~~~~~~~~~~~~ source/sdl/gui.cpp:218:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 218 | bg_dialog_bar = raine_get_config_hex("GUI", "bg_dialog_bar", mymakecol(0,0,0)); | ^~~~~ source/sdl/gui.cpp:218:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 218 | bg_dialog_bar = raine_get_config_hex("GUI", "bg_dialog_bar", mymakecol(0,0,0)); | ^~~~~~~~~~~~~~~ source/sdl/gui.cpp: At global scope: source/sdl/gui.cpp:287:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 287 | { _("Autostart drivers"), NULL, &autostart_drivers, 2, { 0, 1 }, { "No", "Yes" } } | ^~~~ source/sdl/gui.cpp:287:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 287 | { _("Autostart drivers"), NULL, &autostart_drivers, 2, { 0, 1 }, { "No", "Yes" } } | ^~~~~ source/sdl/gui.cpp:303:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 303 | { "", }, | ^~ source/sdl/gui.cpp:305:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 305 | { "...", }, | ^~~~~ source/sdl/gui.cpp: In function 'void load_message(char*)': source/sdl/gui.cpp:347:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 347 | load_items[2].label = " "; | ^~~ source/sdl/gui.cpp:350:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 350 | loading_dialog->update_label(2," "); | ^~~ source/sdl/gui.cpp: In function 'void do_load_game()': source/sdl/gui.cpp:515:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 515 | MessageBox(_("IPS error"),error,"OK"); | ^~~~ source/sdl/gui.cpp: In function 'int load_neo_game(int)': source/sdl/gui.cpp:539:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 539 | char *exts[] = { ".zip", | ^~~~~~ source/sdl/gui.cpp:543:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 543 | ".cue", "ipl.txt", "7z", NULL }; | ^~~~~~ source/sdl/gui.cpp:543:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 543 | ".cue", "ipl.txt", "7z", NULL }; | ^~~~~~~~~ source/sdl/gui.cpp:543:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 543 | ".cue", "ipl.txt", "7z", NULL }; | ^~~~ source/sdl/gui.cpp: In destructor 'virtual TMyMultiFileSel::~TMyMultiFileSel()': source/sdl/gui.cpp:601:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 601 | char *shared = get_shared("ips"); | ^~~~~ source/sdl/gui.cpp: In function 'void save_ips_ini(char**)': source/sdl/gui.cpp:640:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 640 | MessageBox("Error","Can't create ini file","ok"); | ^~~~~~~ source/sdl/gui.cpp:640:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 640 | MessageBox("Error","Can't create ini file","ok"); | ^~~~~~~~~~~~~~~~~~~~~~~ source/sdl/gui.cpp:640:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 640 | MessageBox("Error","Can't create ini file","ok"); | ^~~~ source/sdl/gui.cpp: In member function 'virtual void TMyMultiFileSel::compute_nb_items()': source/sdl/gui.cpp:726:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 726 | if (!strcmp(path,get_shared("ips")) && !strcmp(menu[0].label,"..")) { | ^~~~~ source/sdl/gui.cpp: At global scope: source/sdl/gui.cpp:847:7: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 847 | { "IPS files", NULL, &ips_enabled, 2, {0, 1}, {"Disabled", "Enabled"} }, | ^~~~~~~~~~~ source/sdl/gui.cpp:847:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 847 | { "IPS files", NULL, &ips_enabled, 2, {0, 1}, {"Disabled", "Enabled"} }, | ^~~~~~~~~~ source/sdl/gui.cpp:847:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 847 | { "IPS files", NULL, &ips_enabled, 2, {0, 1}, {"Disabled", "Enabled"} }, | ^~~~~~~~~ source/sdl/gui.cpp: In function 'void my_multi_fsel(char*, char**, char**, int, char*)': source/sdl/gui.cpp:858:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 858 | MessageBox(_("Error"),(char*)msg,"Ok"); | ^~~~ source/sdl/gui.cpp: In function 'int do_preload_ips(int)': source/sdl/gui.cpp:866:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 866 | char *exts[] = { ".dat", NULL }; | ^~~~~~ source/sdl/gui.cpp: In function 'int do_ips(int)': source/sdl/gui.cpp:882:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 882 | char *exts[] = { ".ips", NULL }; | ^~~~~~ source/sdl/gui.cpp:883:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 883 | fsel(get_shared("ips"),exts,res,_("Select IPS file")); | ^~~~~ source/sdl/gui.cpp:890:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 890 | load_ips(res,ROM,get_region_size(REGION_CPU1),0,""); | ^~ In file included from source/sdl/gui.cpp:55: source/sdl/gui.cpp: In member function 'virtual char* TMain_menu::get_top_string()': source/version.h:1:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1 | #define VERSION "0.96.7" | ^~~~~~~~ source/sdl/gui.cpp:947:24: note: in expansion of macro 'VERSION' 947 | return EMUNAME " " VERSION; | ^~~~~~~ source/sdl/gui.cpp: In function 'void setup_font()': source/sdl/gui.cpp:974:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 974 | FILE *f = fopen (get_shared("font6x8.bin"), "rb"); | ^~~~~~~~~~~~~ source/sdl/gui.cpp:976:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 976 | f = fopen(get_shared("fonts" SLASH "font6x8.bin"),"rb"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from source/raine.h:35, from source/sdl/gui.cpp:1: source/sdl/gui.cpp:981:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 981 | fatal_error("No font, byebye!"); | ^~~~~~~~~~~~~~~~~~ source/sdl2/compat.h:31:78: note: in definition of macro 'fatal_error' 31 | #define fatal_error(format, ...) sdl_fatal_error(__FILE__,__func__,__LINE__, format, ## __VA_ARGS__) | ^~~~~~ Compiling c++ source/sdl/dialogs/cheats.cpp... Compiling c++ source/sdl/dialogs/game_options.cpp... Compiling c++ source/sdl/dialogs/colors.cpp... Compiling c++ source/sdl/gui/tfont.cpp... In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/about.cpp:3: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/messagebox.cpp:1: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ In file included from source/compat_sdl.h:5, from source/sdl2/gui/menu.h:4, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/about.cpp:3: source/sdl/dialogs/about.cpp: In member function 'void TSketcher::poly(int, ...)': source/sdl/dialogs/about.cpp:112:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 112 | fatal_error("poly overflow !"); | ^~~~~~~~~~~~~~~~~ source/sdl2/compat.h:31:78: note: in definition of macro 'fatal_error' 31 | #define fatal_error(format, ...) sdl_fatal_error(__FILE__,__func__,__LINE__, format, ## __VA_ARGS__) | ^~~~~~ source/sdl/dialogs/about.cpp: In member function 'virtual void TMoveStatic::disp(SDL_Surface*, TFont*, int, int, int, int, int, int, int)': source/sdl/dialogs/about.cpp:239:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 239 | if (has_input(KB_DEF_P1_B6) && !is_current_game("daioh")) { | ^~~~~~~ source/sdl/dialogs/about.cpp:241:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 241 | char *keys[] = { "lp","mp","sp","lk","mk","sk" }; | ^~~~ source/sdl/dialogs/about.cpp:241:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 241 | char *keys[] = { "lp","mp","sp","lk","mk","sk" }; | ^~~~ source/sdl/dialogs/about.cpp:241:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 241 | char *keys[] = { "lp","mp","sp","lk","mk","sk" }; | ^~~~ source/sdl/dialogs/about.cpp:241:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 241 | char *keys[] = { "lp","mp","sp","lk","mk","sk" }; | ^~~~ source/sdl/dialogs/about.cpp:241:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 241 | char *keys[] = { "lp","mp","sp","lk","mk","sk" }; | ^~~~ source/sdl/dialogs/about.cpp:241:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 241 | char *keys[] = { "lp","mp","sp","lk","mk","sk" }; | ^~~~ source/sdl/dialogs/about.cpp:277:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 277 | font = new TFont_ttf(h,"VeraMono.ttf"); | ^~~~~~~~~~~~~~ source/sdl/dialogs/about.cpp: In constructor 'TMoves_menu::TMoves_menu(char*, menu_item_t*)': source/sdl/dialogs/about.cpp:534:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 534 | font_name = "VeraMono.ttf"; | ^~~~~~~~~~~~~~ In file included from source/compat_sdl.h:5, from source/sdl2/gui/menu.h:4, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/about.cpp:3: source/sdl/dialogs/about.cpp: In member function 'virtual void TAbout_menu::update_fg_layer(int)': source/sdl/dialogs/about.cpp:644:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 644 | fatal_error("SDL_SetRenderTarget %d : %s",ret,SDL_GetError()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl2/compat.h:31:78: note: in definition of macro 'fatal_error' 31 | #define fatal_error(format, ...) sdl_fatal_error(__FILE__,__func__,__LINE__, format, ## __VA_ARGS__) | ^~~~~~ source/sdl/dialogs/about.cpp: At global scope: source/sdl/dialogs/about.cpp:691:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 691 | { "", NULL, NULL }, | ^~ source/sdl/dialogs/about.cpp:692:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 692 | { "" , NULL, NULL }, | ^~ source/sdl/dialogs/about.cpp:693:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 693 | { "gcc", NULL, NULL }, | ^~~~~ source/sdl/dialogs/about.cpp:694:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 694 | { "cpu", NULL, NULL }, | ^~~~~ source/sdl/dialogs/about.cpp:695:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 695 | { "SDL", }, | ^~~~~ source/sdl/dialogs/about.cpp:696:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 696 | { "No SDL_sound" }, | ^~~~~~~~~~~~~~ source/sdl/dialogs/about.cpp:697:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 697 | { " ", NULL, NULL }, | ^~~ source/sdl/dialogs/about.cpp:698:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 698 | { "http://raine.1emulation.com/", NULL, NULL }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/about.cpp:699:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 699 | { " ", NULL, NULL, }, | ^~~ In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/about.cpp:3: source/sdl/gui/tfont.h: In function 'int about_game(int)': source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl/dialogs/about.cpp:856:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 856 | char *hist = get_shared("history.dat"); | ^~~~~~~~~~~~~ source/sdl/dialogs/about.cpp:862:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 862 | goto_url("http://www.arcade-history.com/index.php?page=download"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/about.cpp:871:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 871 | about_menu = new TAbout("",menu, NULL,-1, -1,-1,-1, /* to_translate */ 0); | ^~ source/sdl/dialogs/about.cpp: In function 'int show_moves(int)': source/sdl/dialogs/about.cpp:893:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 893 | TMenu *menu = new TMenu("",menu_commands, | ^~ source/sdl/dialogs/about.cpp: In function 'int do_about(int)': source/sdl/dialogs/about.cpp:936:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 936 | path = get_shared("bitmaps" SLASH "raine_logo.png"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/about.cpp:977:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 977 | about_menu = new TAbout_menu("",about_items, path); | ^~ In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/colors.cpp:1: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl/dialogs/colors.cpp: In function 'int do_colors(int)': source/sdl/dialogs/colors.cpp:159:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 159 | dlg2 = (TColorDlg*)new TMenu("",colors_menu); | ^~ Compiling c++ source/sdl/gui/widget.cpp... In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/controls.cpp:2: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl/dialogs/controls.cpp: In function 'char* my_get_joy_name(int)': source/sdl/dialogs/controls.cpp:83:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 83 | direction = "-"; | ^~~ source/sdl/dialogs/controls.cpp:85:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 85 | direction = "+"; | ^~~ source/sdl/dialogs/controls.cpp:88:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 88 | direction = "+"; | ^~~ source/sdl/dialogs/controls.cpp:90:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 90 | direction = "-"; | ^~~ In file included from source/compat_sdl.h:5, from source/sdl2/gui/menu.h:4, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/controls.cpp:2: source/sdl/dialogs/controls.cpp: In function 'int get_def_indice(const char*)': source/sdl/dialogs/controls.cpp:348:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 348 | fatal_error("Not found def_input_emu name : %s",name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl2/compat.h:31:78: note: in definition of macro 'fatal_error' 31 | #define fatal_error(format, ...) sdl_fatal_error(__FILE__,__func__,__LINE__, format, ## __VA_ARGS__) | ^~~~~~ source/sdl/dialogs/controls.cpp: In function 'int do_input(int)': source/sdl/dialogs/controls.cpp:355:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 355 | TInput *input = new TInput("",menu_input,0,1); | ^~ source/sdl/dialogs/controls.cpp: In function 'int do_kb_input(int)': source/sdl/dialogs/controls.cpp:399:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 399 | TInput *input = new TInput("",kb_only,0,1,0); | ^~ source/sdl/dialogs/controls.cpp: In function 'int do_input_ingame(int)': source/sdl/dialogs/controls.cpp:427:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 427 | TInput *input = new TInput("",menu_input,1,0); | ^~ source/sdl/dialogs/controls.cpp: In function 'int do_emu_controls(int)': source/sdl/dialogs/controls.cpp:514:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 514 | controls = new TMyMenuMultiCol("",menu,2,cols); | ^~ source/sdl/dialogs/controls.cpp: In function 'int do_layers_controls(int)': source/sdl/dialogs/controls.cpp:537:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 537 | controls = new TMyMenuMultiCol("",menu,1,cols); | ^~ source/sdl/dialogs/controls.cpp: In function 'int do_ingame_controls(int)': source/sdl/dialogs/controls.cpp:660:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 660 | controls = new TMyMenuMultiCol("",menu,3,cols); | ^~ source/sdl/dialogs/controls.cpp: In function 'int setup_autofire(int)': source/sdl/dialogs/controls.cpp:739:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 739 | TMenu *controls = new TMenu("",menu); | ^~ source/sdl/dialogs/controls.cpp: In constructor 'TCalibrate::TCalibrate(char*, menu_item_t*)': source/sdl/dialogs/controls.cpp:803:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 803 | TBitmap_menu(my_title,mymenu," ") { cx = cy = 0; } | ^~~ In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/controls.cpp:2: source/sdl/gui/tfont.h: In member function 'virtual void TCalibrate::setup_font(unsigned int)': source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl/dialogs/controls.cpp: In function 'int do_save(int)': source/sdl/dialogs/controls.cpp:967:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 967 | EditDlg("Save as ",dest,20); | ^~~~~~~~~~ source/sdl/dialogs/controls.cpp: In function 'int do_joy_index(int)': source/sdl/dialogs/controls.cpp:1070:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1070 | MessageBox("Info","You need at least 2 joysticks for that","OK"); | ^~~~~~ source/sdl/dialogs/controls.cpp:1070:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1070 | MessageBox("Info","You need at least 2 joysticks for that","OK"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/controls.cpp:1070:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1070 | MessageBox("Info","You need at least 2 joysticks for that","OK"); | ^~~~ source/sdl/dialogs/controls.cpp:1080:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1080 | TJoy *menu = new TJoy("Which index to change?",my_menu); | ^~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/controls.cpp:1087:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1087 | menu = new TJoy("With which one?",my_menu); | ^~~~~~~~~~~~~~~~~ source/sdl/dialogs/controls.cpp: In function 'int do_mapping(int)': source/sdl/dialogs/controls.cpp:1106:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1106 | MessageBox("Error", "This command is to map the controls of a\njoystick, and none is detected","Ok"); | ^~~~~~~ source/sdl/dialogs/controls.cpp:1106:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1106 | MessageBox("Error", "This command is to map the controls of a\njoystick, and none is detected","Ok"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/controls.cpp:1106:97: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1106 | MessageBox("Error", "This command is to map the controls of a\njoystick, and none is detected","Ok"); | ^~~~ source/sdl/dialogs/controls.cpp:1127:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1127 | MessageBox("Info",_("When you click OK, a new window will appear\nIf you don't see it, use Alt+Tab\n" | ^~~~~~ source/sdl/dialogs/controls.cpp:1132:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1132 | "To exit, press ESC"),"Ok"); | ^~~~ source/sdl/dialogs/controls.cpp:1142:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1142 | FILE *f = fopen(get_shared("config" SLASH "userdb.txt"),"r"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/controls.cpp:1150:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1150 | FILE *g = fopen(get_shared("config" SLASH "userdb2.txt"),"w"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/controls.cpp:1170:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1170 | strcpy(userdb,get_shared("config" SLASH "userdb.txt")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/controls.cpp:1174:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1174 | MessageBox("Error",err,"ok"); | ^~~~~~~ source/sdl/dialogs/controls.cpp:1174:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1174 | MessageBox("Error",err,"ok"); | ^~~~ source/sdl/dialogs/controls.cpp:1177:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1177 | if (rename(get_shared("config" SLASH "userdb2.txt"),get_shared("config" SLASH "userdb.txt"))) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/controls.cpp:1177:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1177 | if (rename(get_shared("config" SLASH "userdb2.txt"),get_shared("config" SLASH "userdb.txt"))) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/controls.cpp:1179:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1179 | snprintf(err,FILENAME_MAX,"could not rename mapping file to\n%s",get_shared("config" SLASH "userdb.txt")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/controls.cpp:1180:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1180 | MessageBox("Error",err,"ok"); | ^~~~~~~ source/sdl/dialogs/controls.cpp:1180:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1180 | MessageBox("Error",err,"ok"); | ^~~~ source/sdl/dialogs/controls.cpp:1184:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1184 | f = fopen(get_shared("config" SLASH "userdb.txt"),"w"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /pbulk/work/emulators/raine/work/.buildlink/include/SDL2/SDL_events.h:37, from /pbulk/work/emulators/raine/work/.buildlink/include/SDL2/SDL.h:41, from source/compat_sdl.h:4, from source/sdl2/gui/menu.h:4, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/controls.cpp:2: source/sdl/dialogs/controls.cpp:1188:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1188 | int ret = SDL_GameControllerAddMappingsFromFile(get_shared("config" SLASH "userdb.txt")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /pbulk/work/emulators/raine/work/.buildlink/include/SDL2/SDL_gamecontroller.h:173:106: note: in definition of macro 'SDL_GameControllerAddMappingsFromFile' 173 | #define SDL_GameControllerAddMappingsFromFile(file) SDL_GameControllerAddMappingsFromRW(SDL_RWFromFile(file, "rb"), 1) | ^~~~ source/sdl/dialogs/controls.cpp: At global scope: source/sdl/dialogs/controls.cpp:1197:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1197 | { "", &do_ingame_controls }, | ^~ source/sdl/dialogs/controls.cpp: In function 'int do_controls(int)': source/sdl/dialogs/controls.cpp:1252:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1252 | ctrl = new TControl("", controls_menu); | ^~ In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/cheats.cpp:1: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl/dialogs/cheats.cpp: In member function 'virtual void TCheatDlg::handle_mouse(SDL_Event*)': source/sdl/dialogs/cheats.cpp:46:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 46 | MessageBox("info",cheat_info,"OK"); | ^~~~~~ source/sdl/dialogs/cheats.cpp:46:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 46 | MessageBox("info",cheat_info,"OK"); | ^~~~ source/sdl/dialogs/cheats.cpp: In function 'int do_cheats(int)': source/sdl/dialogs/cheats.cpp:167:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 167 | TCheatDlg *cheats = new TCheatDlg("",menu); | ^~ Compiling c++ source/sdl/gui/tslider.cpp... Compiling c++ source/sdl/gui/tlift.cpp... In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/game_options.cpp:5: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ In file included from source/raine.h:35, from source/sdl/dialogs/game_options.cpp:1: source/sdl/dialogs/game_options.cpp: In function 'menu_item_t* get_savegames(int)': source/sdl/dialogs/game_options.cpp:103:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 103 | fatal_error("Couldn't store date"); | ^~~~~~~~~~~~~~~~~~~~~ source/sdl2/compat.h:31:78: note: in definition of macro 'fatal_error' 31 | #define fatal_error(format, ...) sdl_fatal_error(__FILE__,__func__,__LINE__, format, ## __VA_ARGS__) | ^~~~~~ source/sdl/dialogs/game_options.cpp: At global scope: source/sdl/dialogs/game_options.cpp:247:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 247 | { _("FPS"), NULL, &ifps, ITEM_FLOATEDIT, { 10,0,180 }, { "", (char*)&fps, "1", "200" } }, | ^~ source/sdl/dialogs/game_options.cpp:247:77: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 247 | { _("FPS"), NULL, &ifps, ITEM_FLOATEDIT, { 10,0,180 }, { "", (char*)&fps, "1", "200" } }, | ^~~ source/sdl/dialogs/game_options.cpp:247:82: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 247 | { _("FPS"), NULL, &ifps, ITEM_FLOATEDIT, { 10,0,180 }, { "", (char*)&fps, "1", "200" } }, | ^~~~~ source/sdl/dialogs/game_options.cpp: In member function 'virtual int TGame_options::can_be_displayed(int)': source/sdl/dialogs/game_options.cpp:264:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 264 | if (is_current_game("ssrpg")) { | ^~~~~~~ source/sdl/dialogs/game_options.cpp:268:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 268 | return find_spec("f_bg",name,&offset,&len); | ^~~~~~ source/sdl/dialogs/game_options.cpp:272:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 272 | return current_game && is_current_game("ssrpg"); | ^~~~~~~ source/sdl/dialogs/game_options.cpp: In function 'int do_game_options(int)': source/sdl/dialogs/game_options.cpp:282:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 282 | TGame_options *menu = new TGame_options("",game_options); | ^~ In file included from source/sdl/gui/tfont.cpp:12: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl/gui/tfont.cpp: In function 'int do_font(int)': source/sdl/gui/tfont.cpp:30:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 30 | char *exts[] = { "ttf", NULL }; | ^~~~~ source/sdl/gui/tfont.cpp: In member function 'void TFont::select_ideal_font(int, int)': source/sdl/gui/tfont.cpp:88:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 88 | char *fdir = (*get_shared_hook)("fonts"); | ^~~~~~~ source/sdl/gui/tfont.cpp: In member function 'virtual void TFont_ttf::load_font(char*)': source/sdl/gui/tfont.cpp:369:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 369 | myfont = "Vera.ttf"; | ^~~~~~~~~~ Compiling c++ source/sdl/console/console.cpp... Compiling c++ source/sdl/console/parser.cpp... Compiling c++ source/sdl/console/scripts.cpp... Compiling c++ source/sdl/console/if.cpp... In file included from source/sdl2/gui/menu.h:9, from source/sdl/gui/menu.h:2, from source/sdl/gui/tslider.cpp:1: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ Compiling c++ source/sdl/gui/tconsole.cpp... In file included from source/sdl/gui/widget.h:4, from source/sdl/gui/widget.cpp:1: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl/gui/widget.cpp: In member function 'virtual int TStatic::get_height(TFont*)': source/sdl/gui/widget.cpp:146:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 146 | ansi_font_dim(font," ",&w,&h); | ^~~ In file included from source/sdl2/gui/menu.h:9, from source/sdl/gui/tconsole.h:5, from source/sdl/console/console.h:6, from source/sdl/console/console.cpp:4: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ In file included from source/sdl2/gui/menu.h:9, from source/sdl/gui/menu.h:2, from source/sdl/gui/tlift.cpp:4: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ Compiling c++ source/sdl/console/exec.cpp... source/sdl/console/console.cpp: In member function 'virtual void TRaineConsole::unknown_command(int, char**)': source/sdl/console/console.cpp:511:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 511 | throw(ConsExcept("token unknown %s",err)); | ^~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp: In function 'void do_poke(int, char**)': source/sdl/console/console.cpp:739:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 739 | throw(ConsExcept("%s: %x not in ram (allowed only for poke)",argv[0],adr)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp: At global scope: source/sdl/console/console.cpp:1437:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1437 | { "break", &do_break, "\E[32mbreak\E[0m [adr]|break del nb : without parameter, lists breakpoints. With adr, set breakpoint at adr\nPass del and the breakpoint number to delete a breakpoint","Notice that the breakpoints are implemented using 2 bytes which are written at the address you give :\n" | ^~~~~~~ source/sdl/console/console.cpp:1437:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1437 | { "break", &do_break, "\E[32mbreak\E[0m [adr]|break del nb : without parameter, lists breakpoints. With adr, set breakpoint at adr\nPass del and the breakpoint number to delete a breakpoint","Notice that the breakpoints are implemented using 2 bytes which are written at the address you give :\n" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1437:194: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1437 | { "break", &do_break, "\E[32mbreak\E[0m [adr]|break del nb : without parameter, lists breakpoints. With adr, set breakpoint at adr\nPass del and the breakpoint number to delete a breakpoint","Notice that the breakpoints are implemented using 2 bytes which are written at the address you give :\n" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1438 | "illegal instruction for the 68000/68020 if using musashi (64 bits usually)\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1439 | "reset instruction for starscream (68000)\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1440 | "out 0xab,a for the z80\nSo you must be careful to place these where there is no risk to branch in the middle of the breakpoint, and for the z80 the ab port should not be used."}, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1441:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1441 | { "cond", &do_cond, "\E[32mcond\E[0m test","Execute up to 16M cycles until the condition passed in parameter becomes true. The condition can use registers like :\n" | ^~~~~~ source/sdl/console/console.cpp:1441:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1441 | { "cond", &do_cond, "\E[32mcond\E[0m test","Execute up to 16M cycles until the condition passed in parameter becomes true. The condition can use registers like :\n" | ^~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1441:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1441 | { "cond", &do_cond, "\E[32mcond\E[0m test","Execute up to 16M cycles until the condition passed in parameter becomes true. The condition can use registers like :\n" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1442 | "cond a2==$101f00\n" | ~~~~~~~~~~~~~~~~~~~~ 1443 | "Don't forget that the condition must be in 1 parameter, no spaces allowed."}, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1444:7: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1444 | { "cpu", &do_cpu, "\E[32mcpu\E[0m [cpu] : show/set active cpu(s)."}, | ^~~~~ source/sdl/console/console.cpp:1444:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1444 | { "cpu", &do_cpu, "\E[32mcpu\E[0m [cpu] : show/set active cpu(s)."}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1445:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1445 | { "dump", &do_dump,"\E[32mdump\E[0m adr : dump the contents of ram, starting at adr", | ^~~~~~ source/sdl/console/console.cpp:1445:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1445 | { "dump", &do_dump,"\E[32mdump\E[0m adr : dump the contents of ram, starting at adr", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1446:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1446 | "a click on a value of a dump gives you the corresponding adress in the command line. If some search results are in the dump, they appear in green. You can also use 'dump search' to dump the search results (in this mode, all the lines start with a search result). In a dump the numbers which have changed since the last time you called the console and which are not search results are displayed in cyan."}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1447:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1447 | { "for", &do_for, "\E[32mfor\E[0m init test increment instruction... : like the C for loop", | ^~~~~ source/sdl/console/console.cpp:1447:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1447 | { "for", &do_for, "\E[32mfor\E[0m init test increment instruction... : like the C for loop", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1448:7: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1448 | "init like i=0\ntest like i<=12\nincrement like i=i+4 (i+=4 notation not supported ! and don't call a function like poke here, only variable manipulation please)\nand rest of the line a normal instruction like dpoke adr+i value"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1449:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1449 | { "if", &do_if, "\E[32mif\E[0m cond ... [\E[32melse|elsif\E[0m]...\E[32mendif\E[0m", | ^~~~ source/sdl/console/console.cpp:1449:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1449 | { "if", &do_if, "\E[32mif\E[0m cond ... [\E[32melse|elsif\E[0m]...\E[32mendif\E[0m", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1450:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1450 | "it's a simple if, it takes only 1 argument which is the test, then the " | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1451 | "instructions to execute on the following lines if the test is true, " | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1452 | "until it finds either elsif followed by another test, else, or endif\n\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1453 | "Example :\n" | ~~~~~~~~~~~~~ 1454 | "if dpeek($100000)==$ffff\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1455 | " poke $100123,1\n" | ~~~~~~~~~~~~~~~~~~~~ 1456 | "elsif dpeek($100000)==$fffe\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1457 | " poke $100123,2\n" | ~~~~~~~~~~~~~~~~~~~~ 1458 | "endif"}, | ~~~~~~~ source/sdl/console/console.cpp:1459:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1459 | { "irq", &do_irq, "\E[32mirq\E[0m [nb] : execute instructions until we are out of the irq. Can be executed anywhere, even if some values have been put onto the stack. When passing an irq number trigers this irq (but don't execute any cycles)" }, | ^~~~~ source/sdl/console/console.cpp:1459:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1459 | { "irq", &do_irq, "\E[32mirq\E[0m [nb] : execute instructions until we are out of the irq. Can be executed anywhere, even if some values have been put onto the stack. When passing an irq number trigers this irq (but don't execute any cycles)" }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1460:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1460 | { "l", &do_list, }, | ^~~ source/sdl/console/console.cpp:1461:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1461 | { "list", &do_list, "\E[32mlist\E[0m [address] : disassemble at address or around current pc if asm listing is available (ram.bin.s for neocd, ROM.bin.s for normal roms)." }, | ^~~~~~ source/sdl/console/console.cpp:1461:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1461 | { "list", &do_list, "\E[32mlist\E[0m [address] : disassemble at address or around current pc if asm listing is available (ram.bin.s for neocd, ROM.bin.s for normal roms)." }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1462:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1462 | { "load_state", &cons_load_state, "\E[32mload_state\E[0m : load this save state, equivalent to F4 key, see set_save_slot" }, | ^~~~~~~~~~~~ source/sdl/console/console.cpp:1462:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1462 | { "load_state", &cons_load_state, "\E[32mload_state\E[0m : load this save state, equivalent to F4 key, see set_save_slot" }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1463:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1463 | { "loaded", &do_loaded, "\E[32mloaded\E[0m [type] offset : neocd only, returns what is loaded at this offset", "type is 0 (PRG) if ommited\n" | ^~~~~~~~ source/sdl/console/console.cpp:1463:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1463 | { "loaded", &do_loaded, "\E[32mloaded\E[0m [type] offset : neocd only, returns what is loaded at this offset", "type is 0 (PRG) if ommited\n" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1463:114: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1463 | { "loaded", &do_loaded, "\E[32mloaded\E[0m [type] offset : neocd only, returns what is loaded at this offset", "type is 0 (PRG) if ommited\n" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1464 | "Oterwise it can be :\n" | ~~~~~~~~~~~~~~~~~~~~~~~~ 1465 | "PRG 0\n" | ~~~~~~~~~ 1466 | "FIX 1\n" | ~~~~~~~~~ 1467 | "SPR 2\n" | ~~~~~~~~~ 1468 | "Z80 3\n" | ~~~~~~~~~ 1469 | "PCM 4\n" | ~~~~~~~~~ 1470 | "PAT 5\n"}, | ~~~~~~~~~ source/sdl/console/console.cpp:1471:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1471 | { "lua", &do_lua, "lua code... : execute lua code, highly experimental" }, | ^~~~~ source/sdl/console/console.cpp:1471:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1471 | { "lua", &do_lua, "lua code... : execute lua code, highly experimental" }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1472:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1472 | { "map", &do_map, "\E[32mmap\E[0m : show locations of ram in memory map"}, | ^~~~~ source/sdl/console/console.cpp:1472:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1472 | { "map", &do_map, "\E[32mmap\E[0m : show locations of ram in memory map"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1473:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1473 | { "next", &do_next, "\E[32m(n)ext\E[0m : like step, but don't step into subprograms or traps - can be interrupted by ESC or Ctrl-C" }, | ^~~~~~ source/sdl/console/console.cpp:1473:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1473 | { "next", &do_next, "\E[32m(n)ext\E[0m : like step, but don't step into subprograms or traps - can be interrupted by ESC or Ctrl-C" }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1474:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1474 | { "n", &do_next }, | ^~~ source/sdl/console/console.cpp:1475:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1475 | { "peek", NULL, "peek(adr) : returns a byte from memory"}, | ^~~~~~ source/sdl/console/console.cpp:1475:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1475 | { "peek", NULL, "peek(adr) : returns a byte from memory"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1476:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1476 | { "dpeek", NULL, "dpeek(adr) : returns a word from memory"}, | ^~~~~~~ source/sdl/console/console.cpp:1476:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1476 | { "dpeek", NULL, "dpeek(adr) : returns a word from memory"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1477:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1477 | { "lpeek", NULL, "lpeek(adr) : returns a long from memory"}, | ^~~~~~~ source/sdl/console/console.cpp:1477:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1477 | { "lpeek", NULL, "lpeek(adr) : returns a long from memory"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1478:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1478 | { "poke", &do_poke, "\E[32mpoke/dpoke/lpoke\E[0m adr value : put the byte/word/long in ram","poke can now also accept a char or a string parameter for its value, enclosed between ' like this :\npoke adr 'abc'\nIt can be used when you want to poke an ascii code to ram, 1 char only then, or if you get lucky enough to be able to send a whole string, very rare with some arcade hardware, unless you change the rom itself !"}, | ^~~~~~ source/sdl/console/console.cpp:1478:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1478 | { "poke", &do_poke, "\E[32mpoke/dpoke/lpoke\E[0m adr value : put the byte/word/long in ram","poke can now also accept a char or a string parameter for its value, enclosed between ' like this :\npoke adr 'abc'\nIt can be used when you want to poke an ascii code to ram, 1 char only then, or if you get lucky enough to be able to send a whole string, very rare with some arcade hardware, unless you change the rom itself !"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1478:95: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1478 | { "poke", &do_poke, "\E[32mpoke/dpoke/lpoke\E[0m adr value : put the byte/word/long in ram","poke can now also accept a char or a string parameter for its value, enclosed between ' like this :\npoke adr 'abc'\nIt can be used when you want to poke an ascii code to ram, 1 char only then, or if you get lucky enough to be able to send a whole string, very rare with some arcade hardware, unless you change the rom itself !"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1479:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1479 | { "dpoke", &do_poke }, | ^~~~~~~ source/sdl/console/console.cpp:1480:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1480 | { "lpoke", &do_poke }, | ^~~~~~~ source/sdl/console/console.cpp:1481:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1481 | { "print_ingame", &do_print_ingame, "\E[32mprint_ingame\E[0m nb_frames msg [arguments...]\nthis is a script command only, it useless from the console.\nDisplays a message at the bottom of the screen while the game is running\n(max 3 arguments)" }, | ^~~~~~~~~~~~~~ source/sdl/console/console.cpp:1481:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1481 | { "print_ingame", &do_print_ingame, "\E[32mprint_ingame\E[0m nb_frames msg [arguments...]\nthis is a script command only, it useless from the console.\nDisplays a message at the bottom of the screen while the game is running\n(max 3 arguments)" }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1482:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1482 | { "regs", &do_regs, "\E[32mregs\E[0m : show registers", "Notice that the registers are directly assigned to some variables. d0-d7 a0-a7 sp, pc for the 68000/68020, a,b,c,de,f,hl, pc and iff for the z80. You can use these variables in expressions, change them, etc..."}, | ^~~~~~ source/sdl/console/console.cpp:1482:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1482 | { "regs", &do_regs, "\E[32mregs\E[0m : show registers", "Notice that the registers are directly assigned to some variables. d0-d7 a0-a7 sp, pc for the 68000/68020, a,b,c,de,f,hl, pc and iff for the z80. You can use these variables in expressions, change them, etc..."}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1482:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1482 | { "regs", &do_regs, "\E[32mregs\E[0m : show registers", "Notice that the registers are directly assigned to some variables. d0-d7 a0-a7 sp, pc for the 68000/68020, a,b,c,de,f,hl, pc and iff for the z80. You can use these variables in expressions, change them, etc..."}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1483:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1483 | { "restore", &do_restore, "\E[32mrestore\E[0m name adr1 [adr2] : load file at adr1, until adr2 or end of file" }, | ^~~~~~~~~ source/sdl/console/console.cpp:1483:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1483 | { "restore", &do_restore, "\E[32mrestore\E[0m name adr1 [adr2] : load file at adr1, until adr2 or end of file" }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1484:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1484 | { "rnd", NULL, "rnd() : returns a random byte (between 0 & 255). It's a random number from openssl's RAND_bytes." }, | ^~~~~ source/sdl/console/console.cpp:1484:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1484 | { "rnd", NULL, "rnd() : returns a random byte (between 0 & 255). It's a random number from openssl's RAND_bytes." }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1485:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1485 | { "save", &do_save, "\E[32msave\E[0m name adr1 adr2 : saves the memory range between adr1 & adr2 to disk" }, | ^~~~~~ source/sdl/console/console.cpp:1485:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1485 | { "save", &do_save, "\E[32msave\E[0m name adr1 adr2 : saves the memory range between adr1 & adr2 to disk" }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1486:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1486 | { "save_state", &cons_save_state,"\E[32msave_state\E[0m : do a save state, equivalent to F2 key, see set_save_slot" }, | ^~~~~~~~~~~~ source/sdl/console/console.cpp:1486:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1486 | { "save_state", &cons_save_state,"\E[32msave_state\E[0m : do a save state, equivalent to F2 key, see set_save_slot" }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1487:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1487 | { "script", &do_script, "\E[32mscript\E[0m ['description' [always]]", | ^~~~~~~~ source/sdl/console/console.cpp:1487:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1487 | { "script", &do_script, "\E[32mscript\E[0m ['description' [always]]", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1488:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1488 | "Record a script, a list of instructions, to be called later, generally as a cheat. You can run this command without parameters, in this case it will just ask for the missing information. Usually you should first test your instructions, and once you are sure they are correct, run this command, and use the history feature of the command to record the right instructions.\n" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1489 | "Notice that you can edit scripts with a text editor, they are saved in scripts/neocd/gamename.txt or scripts/raine/gamename.txt where gamename is the short game name (given on the status line)" }, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1490:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1490 | { "searchw", &do_search, NULL }, | ^~~~~~~~~ source/sdl/console/console.cpp:1491:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1491 | { "searchl", &do_search, NULL }, | ^~~~~~~~~ source/sdl/console/console.cpp:1492:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1492 | { "search", &do_search, "\E[32msearch/searchw/searchl\E[0m what [where] : search the byte/word/long in ram", "if where is not specified, take 1st ram range\n" | ^~~~~~~~ source/sdl/console/console.cpp:1492:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1492 | { "search", &do_search, "\E[32msearch/searchw/searchl\E[0m what [where] : search the byte/word/long in ram", "if where is not specified, take 1st ram range\n" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1492:113: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1492 | { "search", &do_search, "\E[32msearch/searchw/searchl\E[0m what [where] : search the byte/word/long in ram", "if where is not specified, take 1st ram range\n" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1493 | "otherwise range can be $adr or $adr1-$adr2\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1494 | "\n" | ~~~~ 1495 | "what can be a number, the command adapts to its size\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1496 | "(byte/word/long), or a string (enclose it in quotes\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1497 | "to be able to search for spaces), or you can use\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1498 | "these to search for variations :\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1499 | "!=, ==, <, <=, >, >=, in this case search for this\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1500 | "difference compared to the last time the console was\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1501 | "called. You can also use search <=3 for example to look\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1502 | "for numbers <= 3.\n" | ~~~~~~~~~~~~~~~~~~~~~ 1503 | "\n" | ~~~~ 1504 | "The first time you call search, the search is done in ram\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1505 | "after this if there is more than 1 result, following\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1506 | "searches are made on the previous results. See rainemu\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1507 | "forum for some examples.\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1508 | "\n" | ~~~~ 1509 | "You can also use searchw or searchl instead of search to force searching " | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1510 | "for respectively a word and a long (usefull for the relative searches like " | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1511 | "< or >)\n" | ~~~~~~~~~~~ 1512 | "Use search clear to clear the last results and start a new search.\nSee also : dump search"}, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1513:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1513 | { "set_save_slot", &do_set_save_slot, "\E[32mset_save_slot\E[0m number : 0 <= number <= 9, set the save slot to use for load_state, save_state, or the keys F2 or F4" }, | ^~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1513:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1513 | { "set_save_slot", &do_set_save_slot, "\E[32mset_save_slot\E[0m number : 0 <= number <= 9, set the save slot to use for load_state, save_state, or the keys F2 or F4" }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1514:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1514 | { "start_script", &do_start_script, "\E[32mstart_script\E[0m \"name\" : enable a script when next frame is drawn", | ^~~~~~~~~~~~~~ source/sdl/console/console.cpp:1514:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1514 | { "start_script", &do_start_script, "\E[32mstart_script\E[0m \"name\" : enable a script when next frame is drawn", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1515:7: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1515 | "Equivalent to turn a script on using the cheats dialog (when it's not hidden)" }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1516:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1516 | { "step", &do_step, "(s)\E[32mtep\E[0m : execute next instruction" }, | ^~~~~~ source/sdl/console/console.cpp:1516:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1516 | { "step", &do_step, "(s)\E[32mtep\E[0m : execute next instruction" }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1517:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1517 | { "s", &do_step }, | ^~~ source/sdl/console/console.cpp:1518:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1518 | { "stop", &do_stop, "\E[32mstop\E[0m [\"name\"] : stop the script, without parameter : current script" }, | ^~~~~~ source/sdl/console/console.cpp:1518:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1518 | { "stop", &do_stop, "\E[32mstop\E[0m [\"name\"] : stop the script, without parameter : current script" }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1519:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1519 | { "until", &do_until, "\E[32m(u)ntil\E[0m pc : executes cycles until pc reaches value given in parameter. Can be interrupted with ESC or Ctrl-C" }, | ^~~~~~~ source/sdl/console/console.cpp:1519:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1519 | { "until", &do_until, "\E[32m(u)ntil\E[0m pc : executes cycles until pc reaches value given in parameter. Can be interrupted with ESC or Ctrl-C" }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1520:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1520 | { "u", &do_until }, | ^~~ source/sdl/console/console.cpp:1521:5: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1521 | { "watch", &do_watch, "\E[32mwatch\E[0m [read] [adr] [size] [value] : adds/lists watchpoints", "when passing adr, adds a watch point on adr (2 actually, 1 for the byte, and 1 for the word), which are trigered everytime something is writen to this adress.\n" | ^~~~~~~ source/sdl/console/console.cpp:1521:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1521 | { "watch", &do_watch, "\E[32mwatch\E[0m [read] [adr] [size] [value] : adds/lists watchpoints", "when passing adr, adds a watch point on adr (2 actually, 1 for the byte, and 1 for the word), which are trigered everytime something is writen to this adress.\n" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp:1521:98: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1521 | { "watch", &do_watch, "\E[32mwatch\E[0m [read] [adr] [size] [value] : adds/lists watchpoints", "when passing adr, adds a watch point on adr (2 actually, 1 for the byte, and 1 for the word), which are trigered everytime something is writen to this adress.\n" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1522 | "Without argument, list the watch points defined.\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1523 | "If read is passed, then watch for the reads (the default is to watch for the writes). If size is passed in the last argument, then watch for a zone of size bytes instead of just 1 adress. if size > 2, then only the word accesses are watched for now.\n" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1524 | "And finally if value is passed, the watch point is executed only if this value is read or written.\nPass watch del nb to delete a watch point" }, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/console.cpp: In function 'int do_console(int)': source/sdl/console/console.cpp:1558:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1558 | cons = new TRaineConsole(_("Console"),"", sdl_screen->w/min_font_size-4,1000, commands); | ^~ source/sdl/console/console.cpp: In function 'void run_console_command(char*)': source/sdl/console/console.cpp:1658:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1658 | cons = new TRaineConsole(_("Console"),"", sdl_screen->w/min_font_size-4,1000, commands,0); | ^~ source/sdl/console/console.cpp: In function 'void do_lua(int, char**)': source/sdl/console/console.cpp:1862:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1862 | throw ConsExcept("lua error: %s",lua_tostring(L,-1)); | ^~~~~~~~~~~~~~~ Compiling c++ source/sdl/console/muParser.cpp... In file included from source/sdl2/gui/menu.h:9, from source/sdl/gui/tconsole.h:5, from source/sdl/console/console.h:6, from source/sdl/console/if.cpp:2: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl/console/console.cpp: In function 'void do_cpu(int, char**)': source/sdl/console/console.cpp:1374:29: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations] 1374 | if (M6502_context[n].m6502Base) { | ~~~~~~~~~~~~~~~~~^~~~~~~~~ source/sdl/console/console.cpp:1373:19: note: within this loop 1373 | for (int n=0; n<4; n++) { | ~^~ Compiling c++ source/sdl/console/muParserBase.cpp... In file included from source/sdl2/gui/menu.h:9, from source/sdl/gui/tconsole.h:5, from source/sdl/console/console.h:6, from source/sdl/console/scripts.cpp:5: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl/console/scripts.cpp: In function 'char* get_script_comment(int)': source/sdl/console/scripts.cpp:77:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 77 | return ""; | ^~ In file included from source/raine.h:35, from source/sdl/console/scripts.cpp:1: source/sdl/console/scripts.cpp: In function 'void init_scripts()': source/sdl/console/scripts.cpp:229:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 229 | fatal_error("too many arguments for %s (%d)",buff,argc-2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl2/compat.h:31:78: note: in definition of macro 'fatal_error' 31 | #define fatal_error(format, ...) sdl_fatal_error(__FILE__,__func__,__LINE__, format, ## __VA_ARGS__) | ^~~~~~ source/sdl/console/scripts.cpp:363:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 363 | MessageBox("alert","cheats file in the wrong format, please update ! (luascript)","ok"); | ^~~~~~~ source/sdl/console/scripts.cpp:363:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 363 | MessageBox("alert","cheats file in the wrong format, please update ! (luascript)","ok"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/scripts.cpp:363:86: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 363 | MessageBox("alert","cheats file in the wrong format, please update ! (luascript)","ok"); | ^~~~ source/sdl/console/scripts.cpp:388:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 388 | MessageBox("alert","cheats file in the wrong format, please update !","ok"); | ^~~~~~~ source/sdl/console/scripts.cpp:388:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 388 | MessageBox("alert","cheats file in the wrong format, please update !","ok"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/scripts.cpp:388:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 388 | MessageBox("alert","cheats file in the wrong format, please update !","ok"); | ^~~~ source/sdl/console/scripts.cpp: In function 'void run_script(int)': source/sdl/console/scripts.cpp:423:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 423 | run_console_command(""); | ^~ source/sdl/console/scripts.cpp:426:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 426 | section = "change"; | ^~~~~~~~ source/sdl/console/scripts.cpp:433:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 433 | section = "change"; | ^~~~~~~~ source/sdl/console/scripts.cpp:435:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 435 | argv[0] = "luascript"; | ^~~~~~~~~~~ source/sdl/console/scripts.cpp:446:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 446 | section = "on"; | ^~~~ source/sdl/console/scripts.cpp:452:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 452 | section = "on"; | ^~~~ source/sdl/console/scripts.cpp:454:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 454 | argv[0] = "luascript"; | ^~~~~~~~~~~ source/sdl/console/scripts.cpp:463:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 463 | section = "off"; | ^~~~~ source/sdl/console/scripts.cpp:469:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 469 | section = "off"; | ^~~~~ source/sdl/console/scripts.cpp:470:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 470 | argv[0] = "luascript"; | ^~~~~~~~~~~ source/sdl/console/scripts.cpp:478:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 478 | section = "on"; | ^~~~ source/sdl/console/scripts.cpp:484:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 484 | section = "on"; | ^~~~ source/sdl/console/scripts.cpp:486:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 486 | argv[0] = "luascript"; | ^~~~~~~~~~~ source/sdl/console/scripts.cpp:512:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 512 | MessageBox("script error",msg,"ok"); | ^~~~~~~~~~~~~~ source/sdl/console/scripts.cpp:512:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 512 | MessageBox("script error",msg,"ok"); | ^~~~ source/sdl/console/scripts.cpp:514:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 514 | MessageBox("script error",e.what(),"ok"); | ^~~~~~~~~~~~~~ source/sdl/console/scripts.cpp:514:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 514 | MessageBox("script error",e.what(),"ok"); | ^~~~ source/sdl/console/scripts.cpp:522:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 522 | MessageBox("script error",(char *)msg,"ok"); | ^~~~~~~~~~~~~~ source/sdl/console/scripts.cpp:522:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 522 | MessageBox("script error",(char *)msg,"ok"); | ^~~~ source/sdl/console/scripts.cpp: In function 'int activate_cheat(int)': source/sdl/console/scripts.cpp:548:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 548 | TDialog *dlg = new TDialog("script parameter",menu); | ^~~~~~~~~~~~~~~~~~ source/sdl/console/scripts.cpp:561:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 561 | int ret = MessageBox("script parameter",script[n].title,btn); | ^~~~~~~~~~~~~~~~~~ source/sdl/console/scripts.cpp: In function 'void update_scripts()': source/sdl/console/scripts.cpp:624:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 624 | run_console_command(""); | ^~ source/sdl/console/scripts.cpp:633:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 633 | section = "run"; | ^~~~~ source/sdl/console/scripts.cpp:645:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 645 | argv[0] = "luascript"; | ^~~~~~~~~~~ source/sdl/console/scripts.cpp:707:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 707 | MessageBox("script error",msg,"ok"); | ^~~~~~~~~~~~~~ source/sdl/console/scripts.cpp:707:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 707 | MessageBox("script error",msg,"ok"); | ^~~~ source/sdl/console/scripts.cpp:709:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 709 | MessageBox("script error",e.what(),"ok"); | ^~~~~~~~~~~~~~ source/sdl/console/scripts.cpp:709:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 709 | MessageBox("script error",e.what(),"ok"); | ^~~~ source/sdl/console/scripts.cpp:716:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 716 | MessageBox("script error",(char *)msg,"ok"); | ^~~~~~~~~~~~~~ source/sdl/console/scripts.cpp:716:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 716 | MessageBox("script error",(char *)msg,"ok"); | ^~~~ source/sdl/console/scripts.cpp: In function 'void do_start_script(int, char**)': source/sdl/console/scripts.cpp:770:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 770 | throw ConsExcept("Didn't find script %s",argv[1]); | ^~~~~~~~~~~~~~~~~~~~~~~ source/sdl/console/scripts.cpp: In function 'void do_script(int, char**)': source/sdl/console/scripts.cpp:788:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 788 | get_script_mode(""); | ^~ source/sdl/console/scripts.cpp: In function 'char* get_script_title(int)': source/sdl/console/scripts.cpp:803:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 803 | return ""; | ^~ Compiling c++ source/sdl/console/muParserBytecode.cpp... In file included from source/sdl2/gui/menu.h:9, from source/sdl/gui/tconsole.h:5, from source/sdl/console/console.h:6, from source/sdl/console/parser.cpp:9: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl/console/parser.cpp: In function 'mu::value_type alert(const char_type*)': source/sdl/console/parser.cpp:239:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 239 | return MessageBox("alert",cmsg,btn); | ^~~~~~~ source/sdl/console/parser.cpp:242:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 242 | return MessageBox("alert",cmsg); | ^~~~~~~ In file included from source/sdl2/gui/menu.h:9, from source/sdl/gui/tconsole.h:5, from source/sdl/console/console.h:6, from source/sdl/console/exec.cpp:3: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ Compiling c++ source/sdl/console/muParserCallback.cpp... In file included from source/sdl/gui/tconsole.cpp:6: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ In file included from source/raine.h:35, from source/sdl/gui/tconsole.cpp:4: source/sdl/gui/tconsole.cpp: In function 'void split_command(char*, char**, int*, int, int)': source/sdl/gui/tconsole.cpp:72:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 72 | fatal_error("split_command: max arguments : %d for command %s !",max,copie); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl2/compat.h:31:78: note: in definition of macro 'fatal_error' 31 | #define fatal_error(format, ...) sdl_fatal_error(__FILE__,__func__,__LINE__, format, ## __VA_ARGS__) | ^~~~~~ source/sdl/gui/tconsole.cpp: In constructor 'TConsole::TConsole(char*, char*, int, int, commands_t*, int)': source/sdl/gui/tconsole.cpp:95:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 95 | font_name = "VeraMono.ttf"; | ^~~~~~~~~~~~~~ In file included from source/raine.h:35, from source/sdl/gui/tconsole.cpp:4: source/sdl/gui/tconsole.cpp: In member function 'virtual void TConsole::fglayer_footer_update()': source/sdl/gui/tconsole.cpp:322:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 322 | fatal_error("rendertarget error"); | ^~~~~~~~~~~~~~~~~~~~ source/sdl2/compat.h:31:78: note: in definition of macro 'fatal_error' 31 | #define fatal_error(format, ...) sdl_fatal_error(__FILE__,__func__,__LINE__, format, ## __VA_ARGS__) | ^~~~~~ source/sdl/gui/tconsole.cpp: In member function 'virtual int TConsole::run_cmd(char*, int)': source/sdl/gui/tconsole.cpp:514:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 514 | MessageBox("script error",msg,"ok"); | ^~~~~~~~~~~~~~ source/sdl/gui/tconsole.cpp:514:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 514 | MessageBox("script error",msg,"ok"); | ^~~~ source/sdl/gui/tconsole.cpp:516:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 516 | MessageBox("script error",e.what(),"ok"); | ^~~~~~~~~~~~~~ source/sdl/gui/tconsole.cpp:516:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 516 | MessageBox("script error",e.what(),"ok"); | ^~~~ source/sdl/gui/tconsole.cpp:522:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 522 | MessageBox("script error",(char *)msg,"ok"); | ^~~~~~~~~~~~~~ source/sdl/gui/tconsole.cpp:522:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 522 | MessageBox("script error",(char *)msg,"ok"); | ^~~~ Compiling c++ source/sdl/console/muParserError.cpp... Compiling c++ source/sdl/console/muParserTokenReader.cpp... Compiling c++ source/sdl/dialogs/game_selection.cpp... source/sdl/console/exec.cpp: In function 'void get_asm_file(char*, unsigned int)': source/sdl/console/exec.cpp:553:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 553 | sprintf(str,"%s/prg_%02x.s",get_shared("debug"),target/0x10000); | ^~~~~~~ source/sdl/console/exec.cpp:556:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 556 | sprintf(str,"%s/prg.z80",get_shared("debug")); | ^~~~~~~ source/sdl/console/exec.cpp:559:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 559 | sprintf(str,"%s/prg.6502",get_shared("debug")); | ^~~~~~~ source/sdl/console/exec.cpp:562:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 562 | sprintf(str,"%s/prg020_%02x.s",get_shared("debug"),target/0x10000); | ^~~~~~~ source/sdl/console/exec.cpp:565:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 565 | sprintf(str,"%s/prgsh2_%02x.s",get_shared("debug"),target/0x10000); | ^~~~~~~ Compiling c++ source/sdl/dialogs/romdirs.cpp... Compiling c++ source/sdl/dialogs/dlg_dsw.cpp... Compiling c++ source/sdl2/gui/menu.cpp... Compiling c++ source/sdl2/gui/tedit.cpp... In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/game_selection.cpp:1: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl/dialogs/game_selection.cpp:36:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 36 | { "cave.c", "cps1drv.c", "cps2drv.c","neogeo.c", "nmk.c", "gunbird.c", "seta.c", | ^~~~~~~~ source/sdl/dialogs/game_selection.cpp:36:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 36 | { "cave.c", "cps1drv.c", "cps2drv.c","neogeo.c", "nmk.c", "gunbird.c", "seta.c", | ^~~~~~~~~~~ source/sdl/dialogs/game_selection.cpp:36:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 36 | { "cave.c", "cps1drv.c", "cps2drv.c","neogeo.c", "nmk.c", "gunbird.c", "seta.c", | ^~~~~~~~~~~ source/sdl/dialogs/game_selection.cpp:36:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 36 | { "cave.c", "cps1drv.c", "cps2drv.c","neogeo.c", "nmk.c", "gunbird.c", "seta.c", | ^~~~~~~~~~ source/sdl/dialogs/game_selection.cpp:36:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 36 | { "cave.c", "cps1drv.c", "cps2drv.c","neogeo.c", "nmk.c", "gunbird.c", "seta.c", | ^~~~~~~ source/sdl/dialogs/game_selection.cpp:36:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 36 | { "cave.c", "cps1drv.c", "cps2drv.c","neogeo.c", "nmk.c", "gunbird.c", "seta.c", | ^~~~~~~~~~~ source/sdl/dialogs/game_selection.cpp:36:72: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 36 | { "cave.c", "cps1drv.c", "cps2drv.c","neogeo.c", "nmk.c", "gunbird.c", "seta.c", | ^~~~~~~~ source/sdl/dialogs/game_selection.cpp:37:3: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 37 | "taito_f2.c", "lsystem.c", "xsystem2.c", "toaplan1.c", "toaplan2.c" }; | ^~~~~~~~~~~~ source/sdl/dialogs/game_selection.cpp:37:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 37 | "taito_f2.c", "lsystem.c", "xsystem2.c", "toaplan1.c", "toaplan2.c" }; | ^~~~~~~~~~~ source/sdl/dialogs/game_selection.cpp:37:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 37 | "taito_f2.c", "lsystem.c", "xsystem2.c", "toaplan1.c", "toaplan2.c" }; | ^~~~~~~~~~~~ source/sdl/dialogs/game_selection.cpp:37:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 37 | "taito_f2.c", "lsystem.c", "xsystem2.c", "toaplan1.c", "toaplan2.c" }; | ^~~~~~~~~~~~ source/sdl/dialogs/game_selection.cpp:37:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 37 | "taito_f2.c", "lsystem.c", "xsystem2.c", "toaplan1.c", "toaplan2.c" }; | ^~~~~~~~~~~~ source/sdl/dialogs/game_selection.cpp: In function 'int do_options(int)': source/sdl/dialogs/game_selection.cpp:70:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 70 | TMenu *mymenu = new TMenu("",options); | ^~ source/sdl/dialogs/game_selection.cpp: In function 'int do_recent(int)': source/sdl/dialogs/game_selection.cpp:109:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 109 | MessageBox("Error","No most played games yet","OK"); | ^~~~~~~ source/sdl/dialogs/game_selection.cpp:109:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 109 | MessageBox("Error","No most played games yet","OK"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/game_selection.cpp:109:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 109 | MessageBox("Error","No most played games yet","OK"); | ^~~~ source/sdl/dialogs/game_selection.cpp:116:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 116 | MessageBox("Error","No recent games yet","OK"); | ^~~~~~~ source/sdl/dialogs/game_selection.cpp:116:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 116 | MessageBox("Error","No recent games yet","OK"); | ^~~~~~~~~~~~~~~~~~~~~ source/sdl/dialogs/game_selection.cpp:116:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 116 | MessageBox("Error","No recent games yet","OK"); | ^~~~ Compiling source/games/games.c... In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/romdirs.cpp:2: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl/dialogs/romdirs.cpp: In function 'int do_dir(int)': source/sdl/dialogs/romdirs.cpp:16:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 16 | dsel(dir_cfg.rom_dir[sel],NULL,res,"ROM directories"); | ^~~~~~~~~~~~~~~~~ source/sdl/dialogs/romdirs.cpp: In function 'int add_dir(int)': source/sdl/dialogs/romdirs.cpp:32:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 32 | dsel(res,NULL,res,"ROM directories"); | ^~~~~~~~~~~~~~~~~ Compiling source/games/default.c... Compiling source/leds.c... In file included from source/sdl2/gui/menu.h:9, from source/sdl/dialogs/../gui/menu.h:2, from source/sdl/dialogs/dlg_dsw.cpp:1: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl/dialogs/dlg_dsw.cpp: In function 'int do_dlg_dsw(int)': source/sdl/dialogs/dlg_dsw.cpp:41:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 41 | Tdlg_dsw *dlg = new Tdlg_dsw("",dsw_items); | ^~ Compiling source/sdl/control.c... In file included from source/sdl2/gui/menu.h:9, from source/sdl2/gui/menu.cpp:90: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ source/sdl2/gui/menu.cpp:117:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 117 | char *jap_font = ""; | ^~ source/sdl2/gui/menu.cpp:136:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 136 | { _("Profiler mode"), NULL, &profiler_mode,2, {0, 1}, { "RDTSC", "SDL performance counter" } }, | ^~~~~~~ source/sdl2/gui/menu.cpp:136:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 136 | { _("Profiler mode"), NULL, &profiler_mode,2, {0, 1}, { "RDTSC", "SDL performance counter" } }, | ^~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl2/gui/menu.cpp: In constructor 'TMenu::TMenu(char*, menu_item_t*, char*, int, int, int, int, int)': source/sdl2/gui/menu.cpp:349:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 349 | font_name = "Vera.ttf"; | ^~~~~~~~~~ In file included from source/video/palette.h:20, from source/sdl2/gui/menu.cpp:87: source/sdl2/gui/menu.cpp: In member function 'virtual void TMenu::create_child(int)': source/sdl2/gui/menu.cpp:434:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 434 | fatal_error("unknown extension %d",menu[n].values_list_size); | ^~~~~~~~~~~~~~~~~~~~~~ source/sdl2/compat.h:31:78: note: in definition of macro 'fatal_error' 31 | #define fatal_error(format, ...) sdl_fatal_error(__FILE__,__func__,__LINE__, format, ## __VA_ARGS__) | ^~~~~~ source/sdl2/gui/menu.cpp: In member function 'virtual char* TMenu::get_bot_frame_text()': source/sdl2/gui/menu.cpp:512:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 512 | return ""; | ^~ In file included from source/video/palette.h:20, from source/sdl2/gui/menu.cpp:87: source/sdl2/gui/menu.cpp: In member function 'virtual void TMenu::setup_fg_layer()': source/sdl2/gui/menu.cpp:738:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 738 | fatal_error("fg_layer creation problem (%d,%d) : %s",w,h,SDL_GetError()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl2/compat.h:31:78: note: in definition of macro 'fatal_error' 31 | #define fatal_error(format, ...) sdl_fatal_error(__FILE__,__func__,__LINE__, format, ## __VA_ARGS__) | ^~~~~~ source/sdl2/gui/menu.cpp:746:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 746 | fatal_error("fg layer creation failed: %s",SDL_GetError()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl2/compat.h:31:78: note: in definition of macro 'fatal_error' 31 | #define fatal_error(format, ...) sdl_fatal_error(__FILE__,__func__,__LINE__, format, ## __VA_ARGS__) | ^~~~~~ source/sdl2/gui/menu.cpp: In member function 'virtual void TMenu::update_header_entry(int)': source/sdl2/gui/menu.cpp:822:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 822 | fatal_error("update_header_entry: RenderTarget failed ?"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl2/compat.h:31:78: note: in definition of macro 'fatal_error' 31 | #define fatal_error(format, ...) sdl_fatal_error(__FILE__,__func__,__LINE__, format, ## __VA_ARGS__) | ^~~~~~ source/sdl2/gui/menu.cpp: In member function 'virtual void TMenu::update_fg_layer(int)': source/sdl2/gui/menu.cpp:892:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 892 | fatal_error("SDL_SetRenderTarget %d : %s",ret,SDL_GetError()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source/sdl2/compat.h:31:78: note: in definition of macro 'fatal_error' 31 | #define fatal_error(format, ...) sdl_fatal_error(__FILE__,__func__,__LINE__, format, ## __VA_ARGS__) | ^~~~~~ In file included from source/sdl2/gui/menu.h:9, from source/sdl2/gui/menu.cpp:90: source/sdl/gui/tfont.h: In member function 'virtual void TBitmap_menu::setup_font(unsigned int)': source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ Compiling source/sdl/opengl.c... In file included from source/sdl/gui/widget.h:4, from source/sdl2/gui/tedit.h:4, from source/sdl2/gui/tedit.cpp:1: source/sdl/gui/tfont.h:35:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 35 | TFont_ttf(int size=12,char *font="Vera.ttf"); | ^~~~~~~~~~ Compiling source/math/matrix.c... In function 'void copy_hex(char*, char*, int)', inlined from 'virtual int THexEdit::handle_key(SDL_Event*)' at source/sdl2/gui/tedit.cpp:394:10, inlined from 'virtual int THexEdit::handle_key(SDL_Event*)' at source/sdl2/gui/tedit.cpp:388:5: source/sdl2/gui/tedit.cpp:361:12: warning: 'char* strncat(char*, const char*, size_t)' specified bound 20 equals destination size [-Wstringop-overflow=] 361 | strncat(dest,src,max); | ~~~~~~~^~~~~~~~~~~~~~ In function 'void copy_hex(char*, char*, int)', inlined from 'THexEdit::THexEdit(menu_item_t*)' at source/sdl2/gui/tedit.cpp:371:13: source/sdl2/gui/tedit.cpp:361:12: warning: 'char* strncat(char*, const char*, size_t)' specified bound 20 equals destination size [-Wstringop-overflow=] 361 | strncat(dest,src,max); | ~~~~~~~^~~~~~~~~~~~~~ In function 'void copy_hex(char*, char*, int)', inlined from 'THexEdit::THexEdit(menu_item_t*)' at source/sdl2/gui/tedit.cpp:373:13: source/sdl2/gui/tedit.cpp:361:12: warning: 'char* strncat(char*, const char*, size_t)' specified bound 20 equals destination size [-Wstringop-overflow=] 361 | strncat(dest,src,max); | ~~~~~~~^~~~~~~~~~~~~~ Compiling source/sdl/glsl.c... Compiling source/sdl2/blit.c... Compiling source/sdl2/display.c... Compiling source/sdl2/controllermap.c... Compiling source/sdl2/compat.c... Compiling source/sdl2/profile.c... Compiling source/sdl2/gui/IMG_png.c... Compiling source/curl.c... Compiling source/sdl/sasound.c... Compiling source/sdl2/sdl_sound/SDL_sound.c... Compiling source/sdl2/sdl_sound/SDL_sound_mp3.c... Compiling source/sdl2/sdl_sound/SDL_sound_wav.c... Compiling source/sdl2/sdl_sound/SDL_sound_vorbis.c... Compiling source/sdl2/sdl_sound/SDL_sound_raw.c... Compiling source/sdl2/sdl_sound/SDL_sound_flac.c... xgettext --omit-header -C -k_ -kgettext -d raine -s -o locale/tmp `find source -name '*.c*'|grep -v source/Musashi` msgfmt -c -v -o locale/fr/LC_MESSAGES/raine.mo locale/french.po msgfmt -c -v -o locale/es/LC_MESSAGES/raine.mo locale/es.po 947 translated messages, 20 fuzzy translations, 640 untranslated messages. msgfmt -c -v -o locale/pt_BR/LC_MESSAGES/raine.mo locale/pt_br.po locale/es.po:7: headerfield `Last-Translator' missing in header 1146 translated messages, 100 fuzzy translations, 352 untranslated messages. msgfmt -c -v -o locale/it/LC_MESSAGES/raine.mo locale/it.po 1622 translated messages. g++ -o linux-gnu-sdl2/object/Musashi/m68kmake linux-gnu-sdl2/object/Musashi/m68kmake.o 1210 translated messages, 103 fuzzy translations, 285 untranslated messages. cat locale/header locale/tmp > locale/raine.pot rm -f locale/tmp cd source/Musashi && ../../linux-gnu-sdl2/object/Musashi/m68kmake cd source/Musashi && ../../linux-gnu-sdl2/object/Musashi/m68kmake Musashi v3.32 68000, 68008, 68010, 68EC020, 68020, 68040 emulator Copyright Karl Stenerud (kstenerud@gmail.com) Generated 1966 opcode handlers from 517 primitives Musashi v3.32 68000, 68008, 68010, 68EC020, 68020, 68040 emulator Copyright Karl Stenerud (kstenerud@gmail.com) Generated 1966 opcode handlers from 517 primitives Compiling source/Musashi/m68kcpu.c... Compiling source/Musashi/m68kops.c... Linking Raine... ld: linux-gnu-sdl2/object/sdl/sasound.o: in function `my_callback': sasound.c:(.text+0xce8): undefined reference to `ProfileStop' ld: sasound.c:(.text+0xdee): undefined reference to `ProfileStart' gmake: *** [makefile:1466: raine] Error 1 *** Error code 2 Stop. make[1]: stopped in /usr/pkgsrc/emulators/raine *** Error code 1 Stop. make: stopped in /usr/pkgsrc/emulators/raine