------------------------------------------------------------------------------- -- Phase: setup ------------------------------------------------------------------------------- Installing /packages/All/indexinfo-0.3.1.txz Installing /packages/All/gettext-runtime-0.20.2.txz Installing /packages/All/gmake-4.3.txz Installing /packages/All/ncurses-6.1.20190525.txz Installing /packages/All/aalib-1.4.r5_13.txz ===== Message from aalib-1.4.r5_13: -- ===> NOTICE: The aalib port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port Installing /packages/All/expat-2.2.8.txz Installing /packages/All/libffi-3.2.1_3.txz Installing /packages/All/libxml2-2.9.10.txz Installing /packages/All/wayland-1.16.0.txz Installing /packages/All/pciids-20200421.txz Installing /packages/All/libpciaccess-0.16.txz Installing /packages/All/libdrm-2.4.101.txz Installing /packages/All/libelf-0.8.13_3.txz Installing /packages/All/libXau-1.0.9.txz Installing /packages/All/libpthread-stubs-0.4.txz Installing /packages/All/xorgproto-2020.1.txz Installing /packages/All/libXdmcp-1.1.3.txz Installing /packages/All/libxcb-1.13.1.txz Installing /packages/All/libX11-1.6.9_1,1.txz Installing /packages/All/libXfixes-5.0.3_2.txz Installing /packages/All/libXdamage-1.1.5.txz Installing /packages/All/libXext-1.3.4,1.txz Installing /packages/All/libXrender-0.9.10_2.txz Installing /packages/All/libXrandr-1.5.2.txz Installing /packages/All/libxshmfence-1.3.txz Installing /packages/All/libXxf86vm-1.1.4_3.txz Installing /packages/All/mesa-libs-19.0.8.txz ===== Message from mesa-libs-19.0.8: -- ===> NOTICE: This port is deprecated; you may wish to reconsider installing it: Uses Python 2.7 which is EOLed upstream. It is scheduled to be removed on or after 2020-12-31. Installing /packages/All/libGLU-9.0.1.txz Installing /packages/All/sdl-1.2.15_14,2.txz ===== Message from sdl-1.2.15_14,2: -- Your SDL library has been built with libvgl support, which means that you can run almost any SDL application straight on your console (VESA 2.0 compatible videocard is required). To do this you have to load the vesa kernel module or enable it in your kernel, and set environment variable "SDL_VIDEODRIVER=vgl". Installing /packages/All/png-1.6.37.txz Installing /packages/All/jbigkit-2.1_1.txz Installing /packages/All/jpeg-turbo-2.0.4.txz Installing /packages/All/tiff-4.1.0.txz Installing /packages/All/giflib-5.2.1.txz Installing /packages/All/webp-1.1.0.txz Installing /packages/All/sdl_image-1.2.12_12.txz Installing /packages/All/libogg-1.3.4,4.txz Installing /packages/All/flac-1.3.3.txz Installing /packages/All/libmikmod-3.3.11.1_1.txz Installing /packages/All/smpeg-0.4.4_15.txz Installing /packages/All/libvorbis-1.3.6,3.txz Installing /packages/All/timidity-0.2i_1.txz ===== Message from timidity-0.2i_1: -- ===> NOTICE: The timidity port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port Installing /packages/All/sdl_mixer-1.2.12_12.txz SUCCEEDED 00:00:08 ------------------------------------------------------------------------------- -- Phase: check-sanity ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: pkg-depends ------------------------------------------------------------------------------- ===> formido-1.0.1_2 depends on file: /usr/local/sbin/pkg - found SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: fetch-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: fetch ------------------------------------------------------------------------------- ===> formido-1.0.1_2 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by formido-1.0.1_2 for building SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: checksum ------------------------------------------------------------------------------- ===> formido-1.0.1_2 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by formido-1.0.1_2 for building => SHA256 Checksum OK for formido-1.0.1.tar.gz. SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: extract-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: extract ------------------------------------------------------------------------------- ===> formido-1.0.1_2 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by formido-1.0.1_2 for building ===> Extracting for formido-1.0.1_2 => SHA256 Checksum OK for formido-1.0.1.tar.gz. Extracted Memory Use: 10.73M SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: patch-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: patch ------------------------------------------------------------------------------- ===> Patching for formido-1.0.1_2 ===> Applying ports patches for formido-1.0.1_2 ===> Cleanly applied ports patch(es) patch-Makefile SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: build-depends ------------------------------------------------------------------------------- ===> formido-1.0.1_2 depends on package: gmake>=4.3 - found ===> formido-1.0.1_2 depends on file: /usr/local/bin/sdl-config - found SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: lib-depends ------------------------------------------------------------------------------- ===> formido-1.0.1_2 depends on shared library: libSDL_image.so - found (/usr/local/lib/libSDL_image.so) ===> formido-1.0.1_2 depends on shared library: libSDL_mixer.so - found (/usr/local/lib/libSDL_mixer.so) ===> formido-1.0.1_2 depends on shared library: libSDL.so - found (/usr/local/lib/libSDL.so) SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: configure ------------------------------------------------------------------------------- ===> formido-1.0.1_2 depends on package: gmake>=4.3 - found ===> formido-1.0.1_2 depends on file: /usr/local/bin/sdl-config - found ===> formido-1.0.1_2 depends on shared library: libSDL_image.so - found (/usr/local/lib/libSDL_image.so) ===> formido-1.0.1_2 depends on shared library: libSDL_mixer.so - found (/usr/local/lib/libSDL_mixer.so) ===> formido-1.0.1_2 depends on shared library: libSDL.so - found (/usr/local/lib/libSDL.so) ===> Configuring for formido-1.0.1_2 SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: build ------------------------------------------------------------------------------- ===> Building for formido-1.0.1_2 gmake[1]: Entering directory '/construction/games/formido/formido-1.0.1' c++ -o obj/blend.o -pipe -O2 -fno-strict-aliasing `/usr/local/bin/sdl-config --cflags` -Wall -I./include -DDATA_DIR=\"/usr/local/share/formido\" -DHISCORE_DIR=\"/.formido\" -DCONFIG_DIR=\"/.formido\" -DDEFCONFIG_DIR=\"/usr/local/share/formido\" -c src/blend.cpp c++ -o obj/credits.o -pipe -O2 -fno-strict-aliasing `/usr/local/bin/sdl-config --cflags` -Wall -I./include -DDATA_DIR=\"/usr/local/share/formido\" -DHISCORE_DIR=\"/.formido\" -DCONFIG_DIR=\"/.formido\" -DDEFCONFIG_DIR=\"/usr/local/share/formido\" -c src/credits.cpp c++ -o obj/explo.o -pipe -O2 -fno-strict-aliasing `/usr/local/bin/sdl-config --cflags` -Wall -I./include -DDATA_DIR=\"/usr/local/share/formido\" -DHISCORE_DIR=\"/.formido\" -DCONFIG_DIR=\"/.formido\" -DDEFCONFIG_DIR=\"/usr/local/share/formido\" -c src/explo.cpp c++ -o obj/hof.o -pipe -O2 -fno-strict-aliasing `/usr/local/bin/sdl-config --cflags` -Wall -I./include -DDATA_DIR=\"/usr/local/share/formido\" -DHISCORE_DIR=\"/.formido\" -DCONFIG_DIR=\"/.formido\" -DDEFCONFIG_DIR=\"/usr/local/share/formido\" -c src/hof.cpp c++ -o obj/menu.o -pipe -O2 -fno-strict-aliasing `/usr/local/bin/sdl-config --cflags` -Wall -I./include -DDATA_DIR=\"/usr/local/share/formido\" -DHISCORE_DIR=\"/.formido\" -DCONFIG_DIR=\"/.formido\" -DDEFCONFIG_DIR=\"/usr/local/share/formido\" -c src/menu.cpp c++ -o obj/player.o -pipe -O2 -fno-strict-aliasing `/usr/local/bin/sdl-config --cflags` -Wall -I./include -DDATA_DIR=\"/usr/local/share/formido\" -DHISCORE_DIR=\"/.formido\" -DCONFIG_DIR=\"/.formido\" -DDEFCONFIG_DIR=\"/usr/local/share/formido\" -c src/player.cpp c++ -o obj/bomb.o -pipe -O2 -fno-strict-aliasing `/usr/local/bin/sdl-config --cflags` -Wall -I./include -DDATA_DIR=\"/usr/local/share/formido\" -DHISCORE_DIR=\"/.formido\" -DCONFIG_DIR=\"/.formido\" -DDEFCONFIG_DIR=\"/usr/local/share/formido\" -c src/bomb.cpp c++ -o obj/critter.o -pipe -O2 -fno-strict-aliasing `/usr/local/bin/sdl-config --cflags` -Wall -I./include -DDATA_DIR=\"/usr/local/share/formido\" -DHISCORE_DIR=\"/.formido\" -DCONFIG_DIR=\"/.formido\" -DDEFCONFIG_DIR=\"/usr/local/share/formido\" -c src/critter.cpp c++ -o obj/font.o -pipe -O2 -fno-strict-aliasing `/usr/local/bin/sdl-config --cflags` -Wall -I./include -DDATA_DIR=\"/usr/local/share/formido\" -DHISCORE_DIR=\"/.formido\" -DCONFIG_DIR=\"/.formido\" -DDEFCONFIG_DIR=\"/usr/local/share/formido\" -c src/font.cpp c++ -o obj/init.o -pipe -O2 -fno-strict-aliasing `/usr/local/bin/sdl-config --cflags` -Wall -I./include -DDATA_DIR=\"/usr/local/share/formido\" -DHISCORE_DIR=\"/.formido\" -DCONFIG_DIR=\"/.formido\" -DDEFCONFIG_DIR=\"/usr/local/share/formido\" -c src/init.cpp In file included from src/player.cpp:31: src/player.cpp: In function 'void load_player_gfx()': ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/player.cpp:92:19: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT(file)); ^~~ src/player.cpp:94:82: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load player graphics from %s!\n%s", file, IMG_GetError()); ^ src/player.cpp:97:78: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to set color key to player sprite!\n%s", SDL_GetError()); ^ src/player.cpp:101:82: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load player graphics from %s!\n%s", file, IMG_GetError()); ^ In file included from src/player.cpp:31: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/player.cpp:115:19: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT(file)); ^~~ src/player.cpp:117:82: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load player graphics from %s!\n%s", file, IMG_GetError()); ^ src/player.cpp:120:78: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to set color key to player sprite!\n%s", SDL_GetError()); ^ src/player.cpp:124:82: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load player graphics from %s!\n%s", file, IMG_GetError()); ^ src/credits.cpp: In function 'void show_credits()': src/credits.cpp:118:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to create distortion surface!\n"); ^ src/credits.cpp:121:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to create distortion surface!\n"); ^ In file included from src/credits.cpp:31: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/credits.cpp:134:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("credits.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/credits.cpp:134:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("credits.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/credits.cpp:136:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("credits_8bit.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/credits.cpp:136:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("credits_8bit.dat")); ^~~ In file included from src/critter.cpp:35: src/critter.cpp: In function 'void load_critters()': ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/critter.cppsrc/credits.cpp:138:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load background!\n%s", IMG_GetError()); ^ :74:19: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT(file)); ^~~ src/credits.cpp:143:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load credits background!\n%s", IMG_GetError()); ^ In file included from src/bomb.cpp:36: src/bomb.cpp: In function 'void load_bombs()': ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/bomb.cpp:167:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT(file)); ^~~ src/critter.cpp:76:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load critter graphics from %s!\n%s", file, IMG_GetError()); ^ src/bomb.cpp:169:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load bomb graphics!\n%s", IMG_GetError()); ^ src/credits.cpp:151:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to create credits font surface!\n"); src/critter.cpp:79:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to set color key to critter sprite!\n%s", SDL_GetError()); ^ ^ src/bomb.cpp:172:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to set color key to bomb sprite!\n%s", SDL_GetError()); ^ src/credits.cpp:154:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to create credits font surface!\n"); ^ src/bomb.cpp:176:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load bomb graphics!\n%s", IMG_GetError()); ^ src/critter.cpp:83:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load critter graphics from %s!\n%s", file, IMG_GetError()); ^ src/credits.cpp:161:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] add_credits("FORMIDO", "credits", pos); pos+=256; ^ In file included from src/bomb.cpp:36: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/bomb.cpp:182:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT(file)); ^~~ src/credits.cpp:161:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] src/bomb.cpp:184:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load bomb graphics!\n%s", IMG_GetError()); ^ src/credits.cpp:162:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] add_credits("GAME DESIGN", "mika halttunen", pos); pos+=128; ^ In file included from src/critter.cpp:35: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/critter.cpp:96:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT(file)); ^~~ src/hof.cpp: In member function 'void HISCORE_LIST::save(char*)': src/hof.cpp:359:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Oh crap! Can't ssrc/bomb.cpp:187:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strinave the highscores to %s!", file); ^ gs] error_msg("Unable to set color key to bomb sprite!\n%s", SDL_GetError()); ^ src/critter.cpp:98:82: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load critter graphics from %s!\n%s", file, IMG_GetError()); ^ src/bomb.cpp:191:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load bomb graphics!\n%s", IMG_GetError()); ^ src/credits.cpp:162:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] src/credits.cpp:163:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] add_credits("MUSIC", "josh schroeder", pos); pos+=128; ^ src/credits.cpp:163:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] In file included from src/bomb.cpp:36: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/bomb.cpp:197:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT(file)); ^~~ src/critter.cpp:101:78: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to set color key to critter sprite!\n%s", SDL_GetError()); ^ src/bomb.cpp:199:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load bomb graphics!\n%s", IMG_GetError()); ^ src/critter.cpp:105:82: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load critter graphics from %s!\n%s", file, IMG_GetError()); ^ src/credits.cpp:164:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] add_credits("PROGRAMMING", "mika halttunen", pos); pos+=128; ^ src/credits.cpp:164:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] src/bomb.cpp:202:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strinIn file included from src/critter.cpp:35: ./include/init.h:47:39: warning: ISO C++ forbids convertinIn file included from src/init.cpp:37: src/init.cpp: In function 'void init_sdl()': ./include/init.hg a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/critter.cpp:117:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT(file)); ^~~ gs] error_msg("Unable to set color key to bomb sprite!\n%s", SDL_GetError()); ^ :49:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define CONFIG(x) (add_home_prefix(x, CONFIG_DIR)) ^ src/init.cpp:84:14: note: in expansion of macro 'CONFIG' load_config(CONFIG("formido.cfg"), &config); ^~~~~~ src/credits.cpp:165:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] add_credits("ARTWORK", "mika halttunen", pos); pos+=256; ^ ./include/init.h:49:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define CONFIG(x) (add_home_prefix(x, CONFIG_DIR)) ^ src/init.cpp:84:14: note: in expansion of macro 'CONFIG' load_config(CONFIG("formido.cfgsrc/critter.cpp:119:82: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load critter graphics from %s!\n%s", file, IMG_GetError()); ^ src/credits.cpp:165:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] "), &config); ^~~~~~ src/bomb.cpp:206:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load bomb graphics!\n%s", IMG_GetError()); ^ src/credits.cpp:166:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] add_credits("world wide web", "mhgames.cjb.net", pos); pos+=128; ^ In file included from src/bomb.cpp:36: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/bomb.cpp:213:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT(file)); ^~~ src/critter.cpp:123:82: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load critter graphics from %s!\n%s", file, IMG_GetError()); ^ src/credits.cpp:166:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] src/bomb.cpp:215:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load bomb graphics!\n%s", IMG_GetError()); ^ src/credits.cpp:167:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] add_credits("(null)", "THANKS FOR PLAYING", pos); ^ src/bomb.cpp:219:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load bomb graphics!\n%s", IMG_GetError()); ^ src/credits.cpp:167:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] src/critter.cpp: In function 'CRITTER* add_critter(float, float, float)': src/critter.cpp:158:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("add_critter():\nUnable to add a new critter!\n"); ^ In file included from src/credits.cpp:31: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/credits.cpp:172:23: note: in expansion of macro 'DAT' music = Mix_LoadMUS(DAT("music_credits.ogg")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/credits.cpp:172:23: note: in expansion of macro 'DAT' music = Mix_LoadMUS(DAT("music_credits.ogg")); ^~~ src/credits.cpp: In function 'void add_credits(char*, char*, float)': src/credits.cpp:276:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("add_credits: Too many messages!\n"); ^ src/critter.cpp: In function 'GIB* add_gib(float, float, float, int)': src/critter.cpp:520:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("add_gib():\nUnable to add a new gib!\n"); ^ src/init.cpp:89:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to init SDL: %s", SDL_GetError()); ^ src/init.cpp:93:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to init SDL: %s", SDL_GetError()); ^ In file included from src/explo.cpp:31: src/explo.cpp: In function 'void load_explosions()': ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/explo.cpp:60:19: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT(file)); ^~~ src/explo.cpp:62:71: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load explosion graphics!\n%s", IMG_GetError()); ^ src/explo.cpp:66:71: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load explosion graphics!\n%s", IMG_GetError()); ^ src/init.cpp:119:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to open audio!\n%s", Mix_GetError()); ^ src/init.cpp:130:98: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to set video mode 640x480 %dbpp!\n%s", config.vid_color_depth, SDL_GetError()); ^ In file included from src/init.cpp:37: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/init.cpp:134:31: note: in expansion of macro 'DAT' SDL_Surface *pal = IMG_Load(DAT("palette.dat")); ^~~ In file included from src/menu.cpp:34: src/menu.cpp: In function 'void load_menus()': ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/menu.cpp:71:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("menu.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/init.cpp:134:31: note: in expansion of macro 'DAT' SDL_Surface *pal = IMG_Load(DAT("palette.dat")); ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/menu.cpp:71:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("menu.dat")); ^~~ ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/menu.cpp:73:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("menu_8bit.dat")); src/init.cpp:136:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load palette!\n%s", IMG_GetError()); ^ ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/menu.cpp:73:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("menu_8bit.dat")); ^~~ src/init.cpp: In function 'char* add_prefix(char*, char*)': src/init.cpp:154:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] return ("null"); // Not enough memory ^ src/menu.cpp:75:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load menus!\n%s", IMG_GetError()); ^ src/menu.cpp:78:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load menus!\n%s", IMG_GetError()); ^ src/init.cpp: In function 'char* add_home_prefix(char*, char*)': src/init.cpp:168:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] return ("null"); // Not enough memory ^ In file included from src/menu.cpp:34: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/menu.cpp:83:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("menu2.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/menu.cpp:83:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("menu2.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/menu.cpp:85:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("menu2_8bit.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/menu.cpp:85:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("menu2_8bit.dat")); ^~~ src/menu.cpp:87:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load menus!\n%s", IMG_GetError()); ^ src/menu.cpp:90:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load menus!\n%s", IMG_GetError()); ^ In file included from src/menu.cpp:34: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/menu.cpp:95:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("menu3.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/menu.cpp:95:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("menu3.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/menu.cpp:97:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("menu3_8bit.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/menu.cpp:97:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("menu3_8bit.dat")); ^~~ src/menu.cpp:99:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load menus!\n%s", IMG_GetError()); ^ src/menu.cpp:102:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load menus!\n%s", IMG_GetError()); ^ In file included from src/menu.cpp:34: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/menu.cpp:107:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("menu_arrow.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/menu.cpp:107:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("menu_arrow.dat")); ^~~ src/menu.cpp:109:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load menus!\n%s", IMG_GetError()); ^ src/menu.cpp:112:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load menus!\n%s", IMG_GetError()); ^ src/menu.cpp: In function 'char* key_name(int)': src/menu.cpp:153:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] return "PRESS A KEY"; // This is displayed when we're setting ^~~~~~~~~~~~~ In file included from src/menu.cpp:34: src/menu.cpp: In function 'int show_menu(int)': ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/menu.cpp:165:23: note: in expansion of macro 'DAT' music = Mix_LoadMUS(DAT("music_menu.ogg")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/menu.cpp:165:23: note: in expansion of macro 'DAT' music = Mix_LoadMUS(DAT("music_menu.ogg")); ^~~ ./include/init.h:48:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define HISCORE(x) (add_home_prefix(x, HISCORE_DIR)) ^ src/menu.cpp:172:12: note: in expansion of macro 'HISCORE' list.load(HISCORE("hiscore.dat")); ^~~~~~~ ./include/init.h:48:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define HISCORE(x) (add_home_prefix(x, HISCORE_DIR)) ^ src/menu.cpp:172:12: note: in expansion of macro 'HISCORE' list.load(HISCORE("hiscore.dat")); ^~~~~~~ ./include/init.h:49:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define CONFIG(x) (add_home_prefix(x, CONFIG_DIR)) ^ src/menu.cpp:265:18: note: in expansion of macro 'CONFIG' load_config(CONFIG("formido.cfg"), &config); ^~~~~~ ./include/init.h:49:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define CONFIG(x) (add_home_prefix(x, CONFIG_DIR)) ^ src/menu.cpp:265:18: note: in expansion of macro 'CONFIG' load_config(CONFIG("formido.cfg"), &config); ^~~~~~ ./include/init.h:49:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define CONFIG(x) (add_home_prefix(x, CONFIG_DIR)) ^ src/menu.cpp:308:19: note: in expansion of macro 'CONFIG' save_config(CONFIG("formido.cfg"), &config); ^~~~~~ ./include/init.h:49:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define CONFIG(x) (add_home_prefix(x, CONFIG_DIR)) ^ src/menu.cpp:308:19: note: in expansion of macro 'CONFIG' save_config(CONFIG("formido.cfg"), &config); ^~~~~~ In file included from src/player.cpp:31: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/player.cpp:137:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT(file)); ^~~ src/player.cpp:139:81: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load player graphics from %s!\n%s", file, IMG_GetError()); ^ src/player.cpp:142:77: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to set color key to player sprite!\n%s", SDL_GetError()); ^ src/player.cpp:146:81: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load player graphics from %s!\n%s", file, IMG_GetError()); ^ In file included from src/player.cpp:31: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/player.cpp:153:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("gunflame1.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/player.cpp:153:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("gunflame1.dat")); ^~~ src/player.cpp:155:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load gun flame sprites!\n%s", IMG_GetError()); ^ src/player.cpp:158:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load gun flame sprites!\n%s", IMG_GetError()); ^ In file included from src/player.cpp:31: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/player.cpp:161:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("gunflame2.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/player.cpp:161:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("gunflame2.dat")); ^~~ src/player.cpp:163:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load gun flame sprites!\n%s", IMG_GetError()); ^ src/player.cpp:166:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load gun flame sprites!\n%s", IMG_GetError()); ^ In file included from src/player.cpp:31: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/player.cpp:170:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("energy_bar1.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/player.cpp:170:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("energy_bar1.dat")); ^~~ src/player.cpp:172:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load energy bar!\n%s", IMG_GetError()); ^ src/player.cpp:174:73: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to set color key to energy bar!\n%s", SDL_GetError()); ^ src/player.cpp:177:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load energy bar!\n%s", IMG_GetError()); ^ In file included from src/player.cpp:31: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/player.cpp:180:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("energy_bar2.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/player.cpp:180:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("energy_bar2.dat")); ^~~ src/player.cpp:182:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load energy bar!\n%s", IMG_GetError()); ^ src/player.cpp:184:73: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to set color key to energy bar!\n%s", SDL_GetError()); ^ src/player.cpp:187:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load energy bar!\n%s", IMG_GetError()); ^ In file included from src/player.cpp:31: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/player.cpp:191:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("wpn_bar1.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/player.cpp:191:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("wpn_bar1.dat")); ^~~ src/player.cpp:193:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load weapon bar!\n%s", IMG_GetError()); ^ src/player.cpp:195:73: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to set color key to weapon bar!\n%s", SDL_GetError()); ^ src/player.cpp:198:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load weapon bar!\n%s", IMG_GetError()); ^ src/font.cpp: In function 'void font_write(SDL_Surface*, int, int, int, char*)': src/font.cpp:53:40: warning: array subscript has type 'char' [-Wchar-subscripts] SDL_BlitSurface(fnt_char[font][str[c]], NULL, bmp, &r); ^ In file included from src/font.cpp:29: src/font.cpp: In function 'void load_fonts()': ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/font.cpp:80:19: note: in expansion of macro 'DAT' tmp2 = IMG_Load(DAT(file)); ^~~ src/font.cpp:82:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load fonts!\n%s", IMG_GetError()); ^ src/font.cpp:87:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load fonts!\n%s", IMG_GetError()); ^ src/font.cpp:99:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to create font surfaces!\n%s", SDL_GetError()); ^ In file included from src/player.cpp:31: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/player.cpp:201:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("wpn_bar2.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/player.cpp:201:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("wpn_bar2.dat")); ^~~ c++ -o obj/mymath.o -pipe -O2 -fno-strict-aliasing `/usr/local/bin/sdl-config --cflags` -Wall -I./include -DDATA_DIR=\"/usr/local/share/formido\" -DHISCORE_DIR=\"/.formido\" -DCONFIG_DIR=\"/.formido\" -DDEFCONFIG_DIR=\"/usr/local/share/formido\" -c src/mymath.cpp src/font.cpp:102:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strinsrc/player.cpp:203:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load weapon bar!\n%s", IMG_GetError()); ^ gs] error_msg("Unable to set font color keys!\n%s", SDL_GetError()); ^ src/player.cpp:205:73: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to set color key to weapon bar!\n%s", SDL_GetError()); ^ src/player.cpp:208:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load weapon bar!\n%s", IMG_GetError()); ^ In file included from src/player.cpp:31: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/player.cpp:218:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT(file)); ^~~ src/player.cpp:220:81: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load player graphics from %s!\n%s", file, IMG_GetError()); ^ src/player.cpp:224:81: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load player graphics from %s!\n%s", file, IMG_GetError()); ^ c++ -o obj/powerup.o -pipe -O2 -fno-strict-aliasing `/usr/local/bin/sdl-config --cflags` -Wall -I./include -DDATA_DIR=\"/usr/local/share/formido\" -DHISCORE_DIR=\"/.formido\" -DCONFIG_DIR=\"/.formido\" -DDEFCONFIG_DIR=\"/usr/local/share/formido\" -c src/powerup.cpp c++ -o obj/config.o -pipe -O2 -fno-strict-aliasing `/usr/local/bin/sdl-config --cflags` -Wall -I./include -DDATA_DIR=\"/usr/local/share/formido\" -DHISCORE_DIR=\"/.formido\" -DCONFIG_DIR=\"/.formido\" -DDEFCONFIG_DIR=\"/usr/local/share/formido\" -c src/config.cpp src/menu.cpp:400:13: warning: 'ay' may be used uninitialized in this function [-Wmaybe-uninitialized] add_blit(menu_arrow, screen, ax, ay, (0.5+SIN(arrow_anim)*0.3)*255); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/menu.cpp:400:13: warning: 'ax' may be used uninitialized in this function [-Wmaybe-uninitialized] c++ -o obj/effect.o -pipe -O2 -fno-strict-aliasing `/usr/local/bin/sdl-config --cflags` -Wall -I./include -DDATA_DIR=\"/usr/local/share/formido\" -DHISCORE_DIR=\"/.formido\" -DCONFIG_DIR=\"/.formido\" -DDEFCONFIG_DIR=\"/usr/local/share/formido\" -c src/effect.cpp In file included from src/config.cpp:28: src/config.cpp: In function 'void load_config(char*, CONFIG*)': ./include/init.h:50:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DEFCONFIG(x) (add_prefix(x, DEFCONFIG_DIR)) ^ src/config.cpp:37:13: note: in expansion of macro 'DEFCONFIG' f = fopen(DEFCONFIG("formido.cfg"), "rt"); ^~~~~~~~~ ./include/init.h:50:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DEFCONFIG(x) (add_prefix(x, DEFCONFIG_DIR)) ^ src/config.cpp:37:13: note: in expansion of macro 'DEFCONFIG' f = fopen(DEFCONFIG("formido.cfg"), "rt"); ^~~~~~~~~ src/config.cpp:40:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load config file: %s!", file); ^ src/config.cpp: In function 'void save_config(char*, CONFIG*)': src/config.cpp:71:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to save config file: %s!", file); ^ c++ -o obj/game.o -pipe -O2 -fno-strict-aliasing `/usr/local/bin/sdl-config --cflags` -Wall -I./include -DDATA_DIR=\"/usr/local/share/formido\" -DHISCORE_DIR=\"/.formido\" -DCONFIG_DIR=\"/.formido\" -DDEFCONFIG_DIR=\"/usr/local/share/formido\" -c src/game.cpp In file included from src/powerup.cpp:32: src/powerup.cpp: In function 'void load_power_ups()': ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/powerup.cpp:117:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT(file)); ^~~ src/powerup.cpp:119:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load power-up graphics!\n%s", IMG_GetError()); ^ src/powerup.cpp:122:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to set color key to power-up sprite!\n%s", SDL_GetError()); ^ src/powerup.cpp:126:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load power-up graphics!\n%s", SDL_GetError()); ^ In file included from src/powerup.cpp:32: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/powerup.cpp:138:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT(file)); ^~~ src/powerup.cpp:140:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load power-up graphics!\n%s", IMG_GetError()); ^ src/powerup.cpp:143:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to set color key to power-up sprite!\n%s", SDL_GetError()); ^ src/powerup.cpp:147:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load power-up graphics!\n%s", SDL_GetError()); ^ In file included from src/powerup.cpp:32: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/powerup.cpp:159:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT(file)); ^~~ c++ -o obj/main.o -pipe -O2 -fno-strict-aliasing `/usr/local/bin/sdl-config --cflags` -Wall -I./include -DDATA_DIR=\"/usr/local/share/formido\" -DHISCORE_DIR=\"/.formido\" -DCONFIG_DIR=\"/.formido\" -DDEFCONFIG_DIR=\"/usr/local/share/formido\" -c src/main.cpp src/powerup.cpp:161:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load power-up graphics!\n%s", IMG_GetError()); ^ src/powerup.cpp:164:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to set color key to power-up sprite!\n%s", SDL_GetError()); ^ src/powerup.cpp:168:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load power-up graphics!\n%s", SDL_GetError()); ^ In file included from src/powerup.cpp:32: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/powerup.cpp:180:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT(file)); ^~~ src/powerup.cpp:182:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load power-up graphics!\n%s", IMG_GetError()); ^ src/powerup.cpp:185:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to set color key to power-up sprite!\n%s", SDL_GetError()); ^ src/powerup.cpp:189:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load power-up graphics!\n%s", SDL_GetError()); ^ In file included from src/powerup.cpp:32: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/powerup.cpp:196:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("glow.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/powerup.cpp:196:17: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("glow.dat")); ^~~ src/powerup.cpp:198:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load power-up glow!\n%s", IMG_GetError()); ^ src/powerup.cpp:201:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load power-up glow!\n%s", SDL_GetError()); ^ c++ -o obj/particle.o -pipe -O2 -fno-strict-aliasing `/usr/local/bin/sdl-config --cflags` -Wall -I./include -DDATA_DIR=\"/usr/local/share/formido\" -DHISCORE_DIR=\"/.formido\" -DCONFIG_DIR=\"/.formido\" -DDEFCONFIG_DIR=\"/usr/local/share/formido\" -c src/particle.cpp c++ -o obj/timer.o -pipe -O2 -fno-strict-aliasing `/usr/local/bin/sdl-config --cflags` -Wall -I./include -DDATA_DIR=\"/usr/local/share/formido\" -DHISCORE_DIR=\"/.formido\" -DCONFIG_DIR=\"/.formido\" -DDEFCONFIG_DIR=\"/usr/local/share/formido\" -c src/timer.cpp In file included from src/game.cpp:33: src/game.cpp: In function 'void load_bgrounds()': ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/game.cpp:81:19: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("ground.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/game.cpp:81:19: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("ground.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/game.cpp:83:19: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("ground_8bit.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/game.cpp:83:19: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("ground_8bit.dat")); ^~~ src/game.cpp:85:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load background!\n%s", IMG_GetError()); ^ src/game.cpp:90:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load background!\n%s", IMG_GetError()); ^ src/game.cpp:98:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load background!\n%s", SDL_GetError()); ^ src/game.cpp:102:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load background!\n%s", SDL_GetError()); ^ In file included from src/game.cpp:33: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/game.cpp:111:22: note: in expansion of macro 'DAT' col_map = IMG_Load(DAT("collisionmap.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/game.cpp:111:22: note: in expansion of macro 'DAT' col_map = IMG_Load(DAT("collisionmap.dat")); ^~~ src/game.cpp:113:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load collision map!"); ^ In file included from src/game.cpp:33: src/game.cpp: In function 'void take_screenshot()': ./include/init.h:49:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define CONFIG(x) (add_home_prefix(x, CONFIG_DIR)) ^ src/game.cpp:181:18: note: in expansion of macro 'CONFIG' FILE *f = fopen(CONFIG(file), "r"); ^~~~~~ src/main.cpp: In member function 'void PROGRESS_BAR::update(float)': src/main.cpp:77:76: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] font_write(screen, FONT_BOLD, SCREEN_W/2-font_length(FONT_BOLD, "Loading")/2, SCREEN_H-60, "Loading"); ^ src/main.cpp:77:103: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] font_write(screen, FONT_BOLD, SCREEN_W/2-font_length(FONT_BOLD, "Loading")/2, SCREEN_H-60, "Loading"); ^ src/main.cpp:78:75: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] font_write(screen, FONT_NORMAL, SCREEN_W/2-20, SCREEN_H-35, GAME_VERSION); ^ In file included from /usr/local/include/SDL/SDL_mouse.h:32, from /usr/local/include/SDL/SDL_events.h:35, from /usr/local/include/SDL/SDL.h:37, from src/game.cpp:28: ./include/init.h:49:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define CONFIG(x) (add_home_prefix(x, CONFIG_DIR)) ^ /usr/local/include/SDL/SDL_video.h:604:42: note: in definition of macro 'SDL_SaveBMP' SDL_SaveBMP_RW(surface, SDL_RWFromFile(file, "wb"), 1) ^~~~ src/game.cpp:184:23: note: in expansion of macro 'CONFIG' SDL_SaveBMP(screen, CONFIG(file)); ^~~~~~ In file included from src/game.cpp:33: ./include/init.h:49:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define CONFIG(x) (add_home_prefix(x, CONFIG_DIR)) ^ src/game.cpp:196:14: note: in expansion of macro 'CONFIG' f = fopen(CONFIG(file), "r"); ^~~~~~ In file included from src/main.cpp:29: src/main.cpp: In member function 'void PROGRESS_BAR::load()': ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:101:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("progress1.dat")); ^~~ In file included from /usr/local/include/SDL/SDL_mouse.h:32, from /usr/local/include/SDL/SDL_events.h:35, from /usr/local/include/SDL/SDL.h:37, from src/game.cpp:28: ./include/init.h:49:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define CONFIG(x) (add_home_prefix(x, CONFIG_DIR)) ^ /usr/local/include/SDL/SDL_video.h:604:42: note: in definition of macro 'SDL_SaveBMP' SDL_SaveBMP_RW(surface, SDL_RWFromFile(file, "wb"), 1) ^~~~ src/game.cpp:199:25: note: in expansion of macro 'CONFIG' SDL_SaveBMP(screen,./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:101:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("progress1.dat")); ^~~ CONFIG(file)); ^~~~~~ src/timer.cpp: In function 'void start_timer(int)': src/timer.cpp:57:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Error setting timer!\n%s", SDL_GetError()); ^ src/main.cpp:103:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load progress bar!\n%s", IMG_GetError()); ^ src/main.cpp:106:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load progress bar!\n%s", IMG_GetError()); ^ In file included from src/game.cpp:33: src/game.cpp: In function 'void start_game()': ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/game.cpp:392:25: note: in expansion of macro 'DAT' strcpy(music_files[0], DAT("music1.ogg")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/game.cpp:392:25: note: in expansion of macro 'DAT' strcpy(music_files[0], DAT("music1.ogg")); ^~~ In file included from src/main.cpp:29: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:109:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("progress2.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/game.cpp:393:25: note: in expansion of macro 'DAT' strcpy(music_files[1], DAT("music2.ogg")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:109:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("progress2.dat")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/game.csrc/main.cpp:111:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load progress bar!\n%s", IMG_GetError()); ^ pp:393:25: note: in expansion of macro 'DAT' strcpy(music_files[1], DAT("music2.ogg")); ^~~ src/main.cpp:114:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load progress bar!\n%s", IMG_GetError()); ^ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/game.cpp:394:25: note: in expansion of macro 'DAT' strcpy(music_files[2], DAT("music3.ogg")); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/game.cpp:394:25: note: in expansion of macro 'DAT' strcpy(music_files[2], DAT("music3.ogg")); ^~~ In file included from src/main.cpp:29: src/main.cpp: In function 'void load_sounds()': ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:140:46: note: in expansion of macro 'DAT' snd_hit[f] = Mix_LoadWAV_RW(SDL_RWFromFile(DAT(file), "rb"),1); ^~~ src/main.cpp:142:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load sounds!\n%s", Mix_GetError()); ^ src/game.cpp:416:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to create distortion surface!\n"); ^ src/game.cpp:419:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to create distortion surface!\n"); ^ In file included from src/main.cpp:29: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:150:49: note: in expansion of macro 'DAT' snd_bullet[f] = Mix_LoadWAV_RW(SDL_RWFromFile(DAT(file), "rb"),1); ^~~ src/main.cpp:152:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load sounds!\n%s", Mix_GetError()); ^ src/game.cpp:451:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to create the pause surface!\n"); ^ In file included from src/main.cpp:29: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:160:46: note: in expansion of macro 'DAT' snd_die[f] = Mix_LoadWAV_RW(SDL_RWFromFile(DAT(file), "rb"),1); ^~~ src/game.cpp:456:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to create the pause surface!\n"); ^ src/main.cpp:162:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load sounds!\n%s", Mix_GetError()); ^ In file included from src/main.cpp:29: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:170:47: note: in expansion of macro 'DAT' snd_cdie[f] = Mix_LoadWAV_RW(SDL_RWFromFile(DAT(file), "rb"),1); ^~~ src/main.cpp:172:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load sounds!\n%s", Mix_GetError()); ^ In file included from src/main.cpp:29: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:180:48: note: in expansion of macro 'DAT' snd_explo[f] = Mix_LoadWAV_RW(SDL_RWFromFile(DAT(file), "rb"),1); ^~~ src/main.cpp:182:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load sounds!\n%s", Mix_GetError()); ^ In file included from src/main.cpp:29: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:186:44: note: in expansion of macro 'DAT' snd_shoot = Mix_LoadWAV_RW(SDL_RWFromFile(DAT("shooting.dat"), "rb"),1); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:186:44: note: in expansion of macro 'DAT' snd_shoot = Mix_LoadWAV_RW(SDL_RWFromFile(DAT("shooting.dat"), "rb"),1); ^~~ src/main.cpp:188:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load sounds!\n%s", Mix_GetError()); ^ src/game.cpp:499:78: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] font_write(screen, FONT_BOLD, SCREEN_W/2-font_length(FONT_BOLD, "PAUSED")/2, SCREEN_H/2+90, "PAUSED"); ^ src/game.cpp:499:106: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] font_write(screen, FONT_BOLD, SCREEN_W/2-font_length(FONT_BOLD, "PAUSED")/2, SCREEN_H/2+90, "PAUSED"); ^ In file included from src/main.cpp:29: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:190:44: note: in expansion of macro 'DAT' snd_throw = Mix_LoadWAV_RW(SDL_RWFromFile(DAT("throw.dat"), "rb"),1); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:190:44: note: in expansion of macro 'DAT' snd_throw = Mix_LoadWAV_RW(SDL_RWFromFile(DAT("throw.dat"), "rb"),1); ^~~ src/main.cpp:192:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load sounds!\n%s", Mix_GetError()); ^ In file included from src/main.cpp:29: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:195:50: note: in expansion of macro 'DAT' snd_glass_break = Mix_LoadWAV_RW(SDL_RWFromFile(DAT("glass_break.dat"), "rb"),1); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:195:50: note: in expansion of macro 'DAT' snd_glass_break = Mix_LoadWAV_RW(SDL_RWFromFile(DAT("glass_break.dat"), "rb"),1); ^~~ src/main.cpp:197:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load sounds!\n%s", Mix_GetError()); ^ In file included from src/main.cpp:29: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:200:47: note: in expansion of macro 'DAT' snd_power_up = Mix_LoadWAV_RW(SDL_RWFromFile(DAT("power_up.dat"), "rb"),1); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:200:47: note: in expansion of macro 'DAT' snd_power_up = Mix_LoadWAV_RW(SDL_RWFromFile(DAT("power_up.dat"), "rb"),1); ^~~ src/main.cpp:202:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load sounds!\n%s", Mix_GetError()); ^ In file included from src/main.cpp:29: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:205:47: note: in expansion of macro 'DAT' snd_mushroom = Mix_LoadWAV_RW(SDL_RWFromFile(DAT("mushroom.dat"), "rb"),1); ^~~ In file included from src/game.cpp:33: ./include/init.h:48:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define HISCORE(x) (add_home_prefix(x, HISCORE_DIR)) ^ src/game.cpp:630:12: note: in expansion of macro 'HISCORE' list.load(HISCORE("hiscore.dat")); ^~~~~~~ ./include/init.h:48:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define HISCORE(x) (add_home_prefix(x, HISCORE_DIR)) ^ src/game.cpp:630:12: note: in expansion of macro 'HISCORE' list.load(HISCORE("hiscore.dat")); ^~~~~~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:205:47: note: in expansion of macro 'DAT' snd_mushroom = Mix_LoadWAV_RW(SDL_RWFromFile(DAT("mushroom.dat"), "rb"),1); ^~~ src/game.cpp:631:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] int place = list.add("", kills); ^ In file included from src/game.cpp:33: ./include/init.h:48:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define HISCORE(x) (add_home_prefix(x, HISCORE_DIR)) ^ src/game.cpp:635:13: note: in expansion of macro 'HISCORE' list.save(HISCORE("hiscore.dat")); ^~~~~~~ src/main.cpp:207:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load sounds!\n%s", Mix_GetError()); ^ ./include/init.h:48:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define HISCORE(x) (add_home_prefix(x, HISCORE_DIR)) ^ src/game.cpp:635:13: note: in expansion of macro 'HISCORE' list.save(HISCORE("hiscore.dat")); ^~~~~~~ In file included from src/main.cpp:29: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:210:46: note: in expansion of macro 'DAT' snd_menu[0] = Mix_LoadWAV_RW(SDL_RWFromFile(DAT("menu1w.dat"), "rb"),1); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:210:46: note: in expansion of macro 'DAT' snd_menu[0] = Mix_LoadWAV_RW(SDL_RWFromFile(DAT("menu1w.dat"), "rb"),1); ^~~ src/main.cpp:212:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load sounds!\n%s", Mix_GetError()); ^ In file included from src/main.cpp:29: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:214:46: note: in expansion of macro 'DAT' snd_menu[1] = Mix_LoadWAV_RW(SDL_RWFromFile(DAT("menu2w.dat"), "rb"),1); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:214:46: note: in expansion of macro 'DAT' snd_menu[1] = Mix_LoadWAV_RW(SDL_RWFromFile(DAT("menu2w.dat"), "rb"),1); ^~~ src/main.cpp:216:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load sounds!\n%s", Mix_GetError()); ^ In file included from src/main.cpp:29: ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:218:46: note: in expansion of macro 'DAT' snd_menu[2] = Mix_LoadWAV_RW(SDL_RWFromFile(DAT("keypress.dat"), "rb"),1); ^~~ ./include/init.h:47:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define DAT(x) (add_prefix(x, DATA_DIR)) ^ src/main.cpp:218:46: note: in expansion of macro 'DAT' snd_menu[2] = Mix_LoadWAV_RW(SDL_RWFromFile(DAT("keypress.dat"), "rb"),1); ^~~ src/main.cpp:220:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to load sounds!\n%s", Mix_GetError()); ^ In file included from src/main.cpp:29: src/main.cpp: In function 'int main(int, char**)': ./include/init.h:49:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define CONFIG(x) (add_home_prefix(x, CONFIG_DIR)) ^ src/main.cpp:363:14: note: in expansion of macro 'CONFIG' save_config(CONFIG("formido.cfg"), &config); ^~~~~~ ./include/init.h:49:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define CONFIG(x) (add_home_prefix(x, CONFIG_DIR)) ^ src/main.cpp:363:14: note: in expansion of macro 'CONFIG' save_config(CONFIG("formido.cfg"), &config); ^~~~~~ src/powerup.cpp: In member function 'void POWER_UP::draw(SDL_Surface*)': src/powerup.cpp:307:17: warning: 'fram' may be used uninitialized in this function [-Wmaybe-uninitialized] SDL_BlitSurface(fram, NULL, bmp, &rect); c++ obj/blend.o obj/credits.o obj/explo.o obj/hof.o obj/menu.o obj/player.o obj/bomb.o obj/critter.o obj/font.o obj/init.o obj/mymath.o obj/powerup.o obj/config.o obj/effect.o obj/game.o obj/main.o obj/particle.o obj/timer.o -O2 -ffast-math -fomit-frame-pointer -o formido `/usr/local/bin/sdl-config --libs` -lm -lSDL_mixer -lSDL_image gmake[1]: Leaving directory '/construction/games/formido/formido-1.0.1' SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: run-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: stage ------------------------------------------------------------------------------- ===> Staging for formido-1.0.1_2 ===> Generating temporary packing list install -s -m 555 /construction/games/formido/formido-1.0.1/formido /construction/games/formido/stage/usr/local/bin/ cd /construction/games/formido/formido-1.0.1/data && /bin/sh -c '(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1) && /usr/bin/find -Ed $1 $3 \( -type d -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 755 "$@"'\'' . {} + -o -type f -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE . /construction/games/formido/stage/usr/local/share/formido/ install -m 0644 /construction/games/formido/formido-1.0.1/formido.cfg /construction/games/formido/stage/usr/local/share/formido/ /bin/mkdir -p /construction/games/formido/stage/usr/local/share/doc/formido install -m 0644 /construction/games/formido/formido-1.0.1/README /construction/games/formido/stage/usr/local/share/doc/formido/ ====> Compressing man pages (compress-man) ====> Running Q/A tests (stage-qa) Warning: You have disabled the licenses framework with DISABLE_LICENSES, unable to run checks SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: package ------------------------------------------------------------------------------- ===> Building package for formido-1.0.1_2 file sizes/checksums [516]: 0% file sizes/checksums [516]: 19% file sizes/checksums [516]: 38% file sizes/checksums [516]: 58% file sizes/checksums [516]: 77% file sizes/checksums [516]: 96% file sizes/checksums [516]: 100% packing files [516]: 0% packing files [516]: 19% packing files [516]: 38% packing files [516]: 58% packing files [516]: 77% packing files [516]: 96% packing files [516]: 100% packing directories [0]: 0% packing directories [0]: 100% SUCCEEDED 00:00:07 TOTAL TIME 00:00:19