------------------------------------------------------------------------------- -- Phase: Environment ------------------------------------------------------------------------------- NO_DEPENDS=1 UNAME_r=6.5 UNAME_m=x86_64 UNAME_p=x86_64 UNAME_v=unknown UNAME_s=DragonFly PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SSL_NO_VERIFY_PEER=1 LANG=C HOME=/root USER=root TERM=dumb SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: showconfig ------------------------------------------------------------------------------- ===> The following configuration options are available for formido-1.0.1_2: DOCS=on: Build and/or install documentation ===> Use 'make config' to modify these settings SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: CONFIGURE_ENV ------------------------------------------------------------------------------- MAKE=gmake SDL_CONFIG=/usr/local/bin/sdl-config XDG_DATA_HOME=/construction/games/formido XDG_CONFIG_HOME=/construction/games/formido XDG_CACHE_HOME=/construction/games/formido/.cache HOME=/construction/games/formido TMPDIR="/tmp" PATH=/construction/games/formido/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin PKG_CONFIG_LIBDIR=/construction/games/formido/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc80 SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: CONFIGURE_ARGS ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: MAKE_ENV ------------------------------------------------------------------------------- SDL_CONFIG=/usr/local/bin/sdl-config XDG_DATA_HOME=/construction/games/formido XDG_CONFIG_HOME=/construction/games/formido XDG_CACHE_HOME=/construction/games/formido/.cache HOME=/construction/games/formido TMPDIR="/tmp" PATH=/construction/games/formido/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin PKG_CONFIG_LIBDIR=/construction/games/formido/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc80 PREFIX=/usr/local LOCALBASE=/usr/local NOPROFILE=1 CC="cc" CFLAGS="-pipe -O2 -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS=" -pipe -O2 -fno-strict-aliasing " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: MAKE_ARGS ------------------------------------------------------------------------------- CC="c++" DATDIR="/usr/local/share/formido" DEFCONFIGDIR="/usr/local/share/formido" DESTDIR=/construction/games/formido/stage SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: PLIST_SUB ------------------------------------------------------------------------------- PORTDOCS="" OSREL=6.5 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/formido" EXAMPLESDIR="share/examples/formido" DATADIR="share/formido" WWWDIR="www/formido" ETCDIR="etc/formido" SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: SUB_LIST ------------------------------------------------------------------------------- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/formido DOCSDIR=/usr/local/share/doc/formido EXAMPLESDIR=/usr/local/share/examples/formido WWWDIR=/usr/local/www/formido ETCDIR=/usr/local/etc/formido SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: /etc/make.conf ------------------------------------------------------------------------------- DPORTS_BUILDER=yes DISABLE_LICENSES=yes DEFAULT_VERSIONS=ssl=openssl FORCE_PACKAGE=yes DEVELOPER=yes DFLY_STING_XFAIL=yes USE_PACKAGE_DEPENDS_ONLY=yes PORTSDIR=/xports PORT_DBDIR=/options PKG_DBDIR=/var/db/pkg PKG_CACHEDIR=/var/cache/pkg PKG_COMPRESSION_FORMAT=.tgz DEVELOPER=1 WITH_CCACHE_BUILD=yes CCACHE_DIR=/ccache UID=0 ARCH=x86_64 OPSYS=DragonFly DFLYVERSION=600503 OSVERSION=9999999 OSREL=6.5 _OSRELEASE=6.5-SYNTH DISTDIR=/distfiles WRKDIRPREFIX=/construction BATCH=yes PACKAGE_BUILDING=yes PKG_CREATE_VERBOSE=yes MAKE_JOBS_NUMBER=13 SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: setup ------------------------------------------------------------------------------- Installing /packages/All/indexinfo-0.3.1.pkg Installing /packages/All/gettext-runtime-0.21.1.pkg Installing /packages/All/gmake-4.3_2.pkg Installing /packages/All/ncurses-6.4.pkg ===== Message from ncurses-6.4: -- To get the terminfo database please install the terminfo-db package: pkg install terminfo-db Installing /packages/All/aalib-1.4.r5_13.pkg ===== 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://docs.freebsd.org/en/articles/contributing/#ports-contributing Installing /packages/All/libXau-1.0.9.pkg Installing /packages/All/xorgproto-2022.1_1.pkg Installing /packages/All/libXdmcp-1.1.3.pkg Installing /packages/All/libxcb-1.15_1.pkg Installing /packages/All/libX11-1.8.6,1.pkg Installing /packages/All/libXext-1.3.4,1.pkg Installing /packages/All/libglvnd-1.6.0.pkg Installing /packages/All/libGLU-9.0.2_2.pkg Installing /packages/All/libXrender-0.9.10_2.pkg Installing /packages/All/libXrandr-1.5.2.pkg Installing /packages/All/sdl-1.2.15_15,2.pkg ===== Message from sdl-1.2.15_15,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/ccache-3.7.12_4.pkg Create compiler links... create symlink for cc create symlink for cc (world) create symlink for c++ create symlink for c++ (world) create symlink for CC create symlink for CC (world) create symlink for gcc create symlink for gcc (world) create symlink for g++ create symlink for g++ (world) ===== Message from ccache-3.7.12_4: -- NOTE: Please read /usr/local/share/doc/ccache/ccache-howto-freebsd.txt for information on using ccache with FreeBSD ports and src. Installing /packages/All/png-1.6.39.pkg Installing /packages/All/libdeflate-1.18.pkg Installing /packages/All/jbigkit-2.1_1.pkg Installing /packages/All/liblz4-1.9.4,1.pkg Installing /packages/All/zstd-1.5.5.pkg Installing /packages/All/jpeg-turbo-2.1.5.1.pkg Installing /packages/All/tiff-4.4.0_1.pkg Installing /packages/All/giflib-5.2.1.pkg Installing /packages/All/webp-1.3.0_1.pkg Installing /packages/All/sdl_image-1.2.12_12.pkg Installing /packages/All/libogg-1.3.5,4.pkg Installing /packages/All/flac-1.4.3,1.pkg Installing /packages/All/libmikmod-3.3.11.1_1.pkg Installing /packages/All/smpeg-0.4.4_17.pkg Installing /packages/All/libvorbis-1.3.7_2,3.pkg Installing /packages/All/timidity-0.2i_1.pkg ===== 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://docs.freebsd.org/en/articles/contributing/#ports-contributing Installing /packages/All/sdl_mixer-1.2.12_14.pkg SUCCEEDED 00:00:07 ------------------------------------------------------------------------------- -- 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:00 ------------------------------------------------------------------------------- -- 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 from /xports/games/formido/files 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 ===> formido-1.0.1_2 depends on file: /usr/local/bin/ccache - 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 file: /usr/local/bin/ccache - 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 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 save the highscores to %s!", file); ^ 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 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 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 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/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")); ^~~ ./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/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()); ^ 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"));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 ^~~ ./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: nc++ -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 ote: 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: warniIn 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/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/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/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()); ^ 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'ng: 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); ^~~~~~ 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+SI tmN(arrow_anim)*0.3)*255); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/menu.cpp:400:13: warning: 'ax' may be used uninitialized in this function [-Wmaybe-uninitialized] p = IMG_Load(DAT(file)); ^~~ 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/bomb.cpp:187: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/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()); ^ 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/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/bomb.cpp:202: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/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()); ^ 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/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/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()); ^ 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 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.cpp:74:19: 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/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/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()); ^ 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/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/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/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()); ^ 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:117:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT(file)); ^~~ src/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/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/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"); ^ 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"); ^ 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/init.cpp:37: src/init.cpp: In function 'void init_sdl()': ./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.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/init.cpp:84:14: note: in expansion of macro 'CONFIG' load_config(CONFIG("formido.cfg"), &config); ^~~~~~ 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()); ^ 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")); ^~~ ./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")); ^~~ 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()); ^ 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/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/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()); ^ 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()); ^ 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")); ^~~ src/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()); ^ 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()); ^ 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"); ^~~~~~ 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 /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, CONFIG(file)); ^~~~~~ 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")); ^~~ ./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/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/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")); ^~~ 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"); ^ 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"); ^ 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/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/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")); ^~~~~~~ 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")); ^~~~~~~ ./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/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()); ^ src/font.cpp:102:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to set font color keys!\n%s", SDL_GetError()); ^ 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); ^ 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")); ^~~ src/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()); ^ 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()); ^ 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/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/credits.cpp:161:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] add_credits("FORMIDO", "credits", pos); pos+=256; ^ src/credits.cpp:161:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 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; ^ 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] 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/credits.cpp:165:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] add_credits("ARTWORK", "mika halttunen", pos); pos+=256; ^ src/credits.cpp:165:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 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; ^ src/credits.cpp:166:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 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/credits.cpp:167:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 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/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 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")); ^~~ ./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")); ^~~ 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/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/main.cpp:109:18: note: in expansion of macro 'DAT' tmp = IMG_Load(DAT("progress2.dat")); ^~~ src/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()); ^ 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()); ^ 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()); ^ 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()); ^ 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/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:39src/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()); ^ : 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()); ^ 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); ^~~ ./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/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()); ^ 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); ^~~~~~ 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()); ^ 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)); ^~~ 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()); ^ 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:00 ------------------------------------------------------------------------------- -- Phase: check-plist ------------------------------------------------------------------------------- ====> Checking for pkg-plist issues (check-plist) ===> Parsing plist ===> Checking for items in STAGEDIR missing from pkg-plist ===> Checking for items in pkg-plist which are not in STAGEDIR ===> No pkg-plist issues found (check-plist) 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% Service unavailablepacking 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:01 TOTAL TIME 00:00:13