=>> Building games/sdb build started at Sun Apr 7 07:49:34 BST 2024 port directory: /usr/ports/games/sdb package name: sdb-1.0.2_17 building for: FreeBSD pkg-builder.dan.net.uk 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 amd64 maintained by: amdmi3@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 1763 Jan 3 00:12 /usr/ports/games/sdb/Makefile Ports top last git commit: c2c35d895e Ports top unclean checkout: yes Port dir last git commit: bbab7f59e9 Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.99.20240122_1 Host OSVERSION: 1400097 Jail OSVERSION: 1302001 Job Id: 15 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1302001 UNAME_v=FreeBSD 13.2-RELEASE-p10 UNAME_r=13.2-RELEASE-p10 BLOCKSIZE=K MAIL=/var/mail/root MM_CHARSET=UTF-8 LANG=C.UTF-8 STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin MAKE_OBJDIR_CHECK_WRITABLE=0 LOCALBASE=/usr/local USER=root POUDRIERE_NAME=poudriere-git LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.4.99.20240122_1 MASTERMNT=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=screen OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/15/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=13-amd64-default-dan SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.99.20240122_1 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ===> The following configuration options are available for sdb-1.0.2_17: DOCS=on: Build and/or install documentation ===> Use 'make config' to modify these settings ---End OPTIONS List--- --MAINTAINER-- amdmi3@FreeBSD.org --End MAINTAINER-- --CONFIGURE_ARGS-- --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- MAKE=gmake SDL_CONFIG=/usr/local/bin/sdl-config XDG_DATA_HOME=/wrkdirs/usr/ports/games/sdb/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/sdb/work XDG_CACHE_HOME=/wrkdirs/usr/ports/games/sdb/work/.cache HOME=/wrkdirs/usr/ports/games/sdb/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/games/sdb/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/games/sdb/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCACHE_DIR="/root/.ccache" --End CONFIGURE_ENV-- --MAKE_ENV-- SDL_CONFIG=/usr/local/bin/sdl-config XDG_DATA_HOME=/wrkdirs/usr/ports/games/sdb/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/sdb/work XDG_CACHE_HOME=/wrkdirs/usr/ports/games/sdb/work/.cache HOME=/wrkdirs/usr/ports/games/sdb/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/games/sdb/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/games/sdb/work/.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 PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong " LIBS="`/usr/local/bin/sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing `/usr/local/bin/sdl-config --cflags` -std=c++14 " CCACHE_DIR="/root/.ccache" 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" --End MAKE_ENV-- --PLIST_SUB-- PORTDOCS="" MODEL_SUFFIX="md2" OSREL=13.2 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/sdb" EXAMPLESDIR="share/examples/sdb" DATADIR="share/sdb" WWWDIR="www/sdb" ETCDIR="etc/sdb" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/sdb DOCSDIR=/usr/local/share/doc/sdb EXAMPLESDIR=/usr/local/share/examples/sdb WWWDIR=/usr/local/www/sdb ETCDIR=/usr/local/etc/sdb --End SUB_LIST-- ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles FORCE_PACKAGE=yes PACKAGE_BUILDING=yes PACKAGE_BUILDING_FLAVORS=yes #### #### CCACHE_CPP2=1 WITH_SSP_PORTS=yes WITH_SSP=yes #WITH_LTO=yes DISABLE_LICENSES=yes LICENSES_ACCEPTED=AGPLv3 APACHE10 APACHE11 APACHE20 ART10 ARTPERL10 ART20 BSD BSD2CLAUSE BSD3CLAUSE BSD4CLAUSE BSL CC0-1.0 CDDL ClArtistic EPL GFDL GMGPL GPLv1 GPLv2 GPLv3 GPLv3RLE ISCL LGPL20 LGPL21 LGPL3 LPPL10 LPPL11 LPPL12 LPPL13 LPPL13a LPPL13b LPPL13c MIT MPL OpenSSL OFL10 OFL11 OWL PostgreSQL PHP202 PHP30 PHP301 PSFL RUBY ZLIB ZPL21 SVM-Light EULA ALASIR Microsoft-exFAT SIMIAN UDEVGAME unknown MTA COMMERCIAL teamspeak NO_LICENSES_DIALOGS=yes #### #### NO_IGNORE=yes DEFAULT_VERSIONS+=ssl=openssl mysql=8.0 imagemagick=7 samba=4.13 java=18 WITH_SETID_MODE=force PHP_ZTS=enabled OPTIONS_UNSET+=OPENJPEG OPTIONS_UNSET+=GSSAPI_BASE OPTIONS_SET+=ZTS OPTIONS_SET+=GSSAPI_NONE WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache NO_CCACHE_DEPEND=1 CCACHE_WRAPPER_PATH= /ccache/libexec/ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 DISABLE_MAKE_JOBS=poudriere ---End make.conf--- --Resource limits-- cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 33554432 stack size (kbytes, -s) 524288 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 89999 open files (-n) 8192 virtual mem size (kbytes, -v) unlimited swap limit (kbytes, -w) unlimited socket buffer size (bytes, -b) unlimited pseudo-terminals (-p) unlimited kqueues (-k) unlimited umtx shared locks (-o) unlimited --End resource limits-- =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> sdb-1.0.2_17 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.20.9_1.pkg [pkg-builder.dan.net.uk] Installing pkg-1.20.9_1... [pkg-builder.dan.net.uk] Extracting pkg-1.20.9_1: .......... done ===> sdb-1.0.2_17 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of sdb-1.0.2_17 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by sdb-1.0.2_17 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by sdb-1.0.2_17 for building => SHA256 Checksum OK for sdb-1.0.2.tar.gz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by sdb-1.0.2_17 for building ===> Extracting for sdb-1.0.2_17 => SHA256 Checksum OK for sdb-1.0.2.tar.gz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Patching for sdb-1.0.2_17 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> sdb-1.0.2_17 depends on package: gmake>=4.4.1 - not found ===> Installing existing package /packages/All/gmake-4.4.1.pkg [pkg-builder.dan.net.uk] Installing gmake-4.4.1... [pkg-builder.dan.net.uk] `-- Installing gettext-runtime-0.22.3_1... [pkg-builder.dan.net.uk] | `-- Installing indexinfo-0.3.1... [pkg-builder.dan.net.uk] | `-- Extracting indexinfo-0.3.1: . done [pkg-builder.dan.net.uk] `-- Extracting gettext-runtime-0.22.3_1: .......... done [pkg-builder.dan.net.uk] Extracting gmake-4.4.1: .......... done ===> sdb-1.0.2_17 depends on package: gmake>=4.4.1 - found ===> Returning to build of sdb-1.0.2_17 ===> sdb-1.0.2_17 depends on file: /usr/local/bin/sdl-config - not found ===> Installing existing package /packages/All/sdl-1.2.15_17,2.pkg [pkg-builder.dan.net.uk] Installing sdl-1.2.15_17,2... [pkg-builder.dan.net.uk] `-- Installing aalib-1.4.r5_14... [pkg-builder.dan.net.uk] `-- Extracting aalib-1.4.r5_14: .......... done [pkg-builder.dan.net.uk] `-- Installing libGLU-9.0.2_2... [pkg-builder.dan.net.uk] | `-- Installing libglvnd-1.7.0... [pkg-builder.dan.net.uk] | | `-- Installing libX11-1.8.7_1,1... [pkg-builder.dan.net.uk] | | `-- Installing libxcb-1.16.1... [pkg-builder.dan.net.uk] | | | `-- Installing libXau-1.0.9_1... [pkg-builder.dan.net.uk] | | | `-- Extracting libXau-1.0.9_1: .......... done [pkg-builder.dan.net.uk] | | | `-- Installing libXdmcp-1.1.5... [pkg-builder.dan.net.uk] | | | `-- Installing xorgproto-2023.2... [pkg-builder.dan.net.uk] | | | `-- Extracting xorgproto-2023.2: .......... done [pkg-builder.dan.net.uk] | | | `-- Extracting libXdmcp-1.1.5: ...... done [pkg-builder.dan.net.uk] | | `-- Extracting libxcb-1.16.1: .......... done [pkg-builder.dan.net.uk] | | `-- Extracting libX11-1.8.7_1,1: .......... done [pkg-builder.dan.net.uk] | | `-- Installing libXext-1.3.6,1... [pkg-builder.dan.net.uk] | | `-- Extracting libXext-1.3.6,1: .......... done [pkg-builder.dan.net.uk] | `-- Extracting libglvnd-1.7.0: .......... done [pkg-builder.dan.net.uk] `-- Extracting libGLU-9.0.2_2: ..... done [pkg-builder.dan.net.uk] `-- Installing libXrandr-1.5.2_1... [pkg-builder.dan.net.uk] | `-- Installing libXrender-0.9.10_2... [pkg-builder.dan.net.uk] | `-- Extracting libXrender-0.9.10_2: ....... done [pkg-builder.dan.net.uk] `-- Extracting libXrandr-1.5.2_1: .......... done [pkg-builder.dan.net.uk] Extracting sdl-1.2.15_17,2: .......... done ===== Message from aalib-1.4.r5_14: -- ===> 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 ===== Message from sdl-1.2.15_17,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". ===> sdb-1.0.2_17 depends on file: /usr/local/bin/sdl-config - found ===> Returning to build of sdb-1.0.2_17 ===> sdb-1.0.2_17 depends on package: xorgproto>=0 - found ===> sdb-1.0.2_17 depends on package: xorgproto>=0 - found =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> sdb-1.0.2_17 depends on shared library: libGL.so - found (/usr/local/lib/libGL.so) ===> sdb-1.0.2_17 depends on shared library: libGLU.so - found (/usr/local/lib/libGLU.so) ===> sdb-1.0.2_17 depends on shared library: libSDL_image.so - not found ===> Installing existing package /packages/All/sdl_image-1.2.12_13.pkg [pkg-builder.dan.net.uk] Installing sdl_image-1.2.12_13... [pkg-builder.dan.net.uk] `-- Installing jpeg-turbo-3.0.2... [pkg-builder.dan.net.uk] `-- Extracting jpeg-turbo-3.0.2: .......... done [pkg-builder.dan.net.uk] `-- Installing png-1.6.43... [pkg-builder.dan.net.uk] `-- Extracting png-1.6.43: .......... done [pkg-builder.dan.net.uk] `-- Installing tiff-4.4.0_3... [pkg-builder.dan.net.uk] | `-- Installing jbigkit-2.1_2... [pkg-builder.dan.net.uk] | `-- Extracting jbigkit-2.1_2: .......... done [pkg-builder.dan.net.uk] | `-- Installing libdeflate-1.19... [pkg-builder.dan.net.uk] | `-- Extracting libdeflate-1.19: .......... done [pkg-builder.dan.net.uk] | `-- Installing zstd-1.5.5_1... [pkg-builder.dan.net.uk] | | `-- Installing liblz4-1.9.4_1,1... [pkg-builder.dan.net.uk] | | `-- Extracting liblz4-1.9.4_1,1: .......... done [pkg-builder.dan.net.uk] | `-- Extracting zstd-1.5.5_1: .......... done [pkg-builder.dan.net.uk] `-- Extracting tiff-4.4.0_3: .......... done [pkg-builder.dan.net.uk] `-- Installing webp-1.3.2_1... [pkg-builder.dan.net.uk] | `-- Installing freeglut-3.2.1... [pkg-builder.dan.net.uk] | | `-- Installing libICE-1.1.0_2,1... [pkg-builder.dan.net.uk] | | `-- Extracting libICE-1.1.0_2,1: .......... done [pkg-builder.dan.net.uk] | | `-- Installing libXi-1.8_1,1... [pkg-builder.dan.net.uk] | | `-- Installing libXfixes-6.0.0_1... [pkg-builder.dan.net.uk] | | `-- Extracting libXfixes-6.0.0_1: ....... done [pkg-builder.dan.net.uk] | | `-- Extracting libXi-1.8_1,1: .......... done [pkg-builder.dan.net.uk] | | `-- Installing libXxf86vm-1.1.4_4... [pkg-builder.dan.net.uk] | | `-- Extracting libXxf86vm-1.1.4_4: .......... done [pkg-builder.dan.net.uk] | `-- Extracting freeglut-3.2.1: .......... done [pkg-builder.dan.net.uk] | `-- Installing giflib-5.2.1_1... [pkg-builder.dan.net.uk] | `-- Extracting giflib-5.2.1_1: .......... done [pkg-builder.dan.net.uk] `-- Extracting webp-1.3.2_1: .......... done [pkg-builder.dan.net.uk] Extracting sdl_image-1.2.12_13: ....... done ===== Message from freeglut-3.2.1: -- Joystick support is untested and it is unknown if it works. Do not hesitate to contact x11@FreeBSD.org if this causes issues. ===> sdb-1.0.2_17 depends on shared library: libSDL_image.so - found (/usr/local/lib/libSDL_image.so) ===> Returning to build of sdb-1.0.2_17 ===> sdb-1.0.2_17 depends on shared library: libSDL_mixer.so - not found ===> Installing existing package /packages/All/sdl_mixer-1.2.12_14.pkg [pkg-builder.dan.net.uk] Installing sdl_mixer-1.2.12_14... [pkg-builder.dan.net.uk] `-- Installing flac-1.4.3_1,1... [pkg-builder.dan.net.uk] | `-- Installing libogg-1.3.5,4... [pkg-builder.dan.net.uk] | `-- Extracting libogg-1.3.5,4: .......... done [pkg-builder.dan.net.uk] `-- Extracting flac-1.4.3_1,1: .......... done [pkg-builder.dan.net.uk] `-- Installing libmikmod-3.3.11.1_2... [pkg-builder.dan.net.uk] `-- Extracting libmikmod-3.3.11.1_2: .......... done [pkg-builder.dan.net.uk] `-- Installing libvorbis-1.3.7_2,3... [pkg-builder.dan.net.uk] `-- Extracting libvorbis-1.3.7_2,3: .......... done [pkg-builder.dan.net.uk] `-- Installing smpeg-0.4.4_18... [pkg-builder.dan.net.uk] `-- Extracting smpeg-0.4.4_18: .......... done [pkg-builder.dan.net.uk] `-- Installing timidity-0.2i_1... [pkg-builder.dan.net.uk] `-- Extracting timidity-0.2i_1: .......... done [pkg-builder.dan.net.uk] Extracting sdl_mixer-1.2.12_14: ...... done ===== 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 ===> sdb-1.0.2_17 depends on shared library: libSDL_mixer.so - found (/usr/local/lib/libSDL_mixer.so) ===> Returning to build of sdb-1.0.2_17 ===> sdb-1.0.2_17 depends on shared library: libSDL.so - found (/usr/local/lib/libSDL.so) =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for sdb-1.0.2_17 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for sdb-1.0.2_17 c++ -c bitmapfont.cpp -o bitmapfont.o -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -std=c++14 In file included from bitmapfont.cpp:26: In file included from ./bitmapfont.h:29: ./sdb.h:376:70: warning: non-void function does not return a value [-Wreturn-type] Vector2D operator = (Vector2D v) { c[X] = v.c[X]; c[Y] = v.c[Y]; } ^ In file included from bitmapfont.cpp:26: In file included from ./bitmapfont.h:29: In file included from ./sdb.h:560: ./objects.h:548:28: warning: non-void function does not return a value [-Wreturn-type] virtual Weapon* Wpn() {} ^ ./objects.h:549:31: warning: non-void function does not return a value [-Wreturn-type] virtual int CurrWeapon() {} ^ ./objects.h:551:39: warning: non-void function does not return a value [-Wreturn-type] virtual char weaponState(int wp) {} ^ ./objects.h:552:36: warning: non-void function does not return a value [-Wreturn-type] virtual char keyState(int wp) {} ^ ./objects.h:553:38: warning: non-void function does not return a value [-Wreturn-type] virtual Vector2D* WeaponPoint() {} ^ ./objects.h:555:45: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] void giveKey(int key) { keys |= 1 << key-1; } ~~ ~~~^~ ./objects.h:555:45: note: place parentheses around the '-' expression to silence this warning void giveKey(int key) { keys |= 1 << key-1; } ^ ( ) 7 warnings generated. c++ -c levelobjects.cpp -o levelobjects.o -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -std=c++14 In file included from levelobjects.cpp:26: ./sdb.h:376:70: warning: non-void function does not return a value [-Wreturn-type] Vector2D operator = (Vector2D v) { c[X] = v.c[X]; c[Y] = v.c[Y]; } ^ In file included from levelobjects.cpp:26: In file included from ./sdb.h:560: ./objects.h:548:28: warning: non-void function does not return a value [-Wreturn-type] virtual Weapon* Wpn() {} ^ ./objects.h:549:31: warning: non-void function does not return a value [-Wreturn-type] virtual int CurrWeapon() {} ^ ./objects.h:551:39: warning: non-void function does not return a value [-Wreturn-type] virtual char weaponState(int wp) {} ^ ./objects.h:552:36: warning: non-void function does not return a value [-Wreturn-type] virtual char keyState(int wp) {} ^ ./objects.h:553:38: warning: non-void function does not return a value [-Wreturn-type] virtual Vector2D* WeaponPoint() {} ^ ./objects.h:555:45: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] void giveKey(int key) { keys |= 1 << key-1; } ~~ ~~~^~ ./objects.h:555:45: note: place parentheses around the '-' expression to silence this warning void giveKey(int key) { keys |= 1 << key-1; } ^ ( ) levelobjects.cpp:509:11: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] if (HAS_KEY(keys,currentKey)) ^~~~~~~~~~~~~~~~~~~~~~~~ ./sdb.h:139:36: note: expanded from macro 'HAS_KEY' #define HAS_KEY(x,y) (x & 1 << y-1) ~~ ~^~ levelobjects.cpp:509:11: note: place parentheses around the '-' expression to silence this warning if (HAS_KEY(keys,currentKey)) ^~~~~~~~~~~~~~~~~~~~~~~~ ./sdb.h:139:36: note: expanded from macro 'HAS_KEY' #define HAS_KEY(x,y) (x & 1 << y-1) ~^~ 8 warnings generated. c++ -c level.cpp -o level.o -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -std=c++14 In file included from level.cpp:26: ./sdb.h:376:70: warning: non-void function does not return a value [-Wreturn-type] Vector2D operator = (Vector2D v) { c[X] = v.c[X]; c[Y] = v.c[Y]; } ^ In file included from level.cpp:26: In file included from ./sdb.h:560: ./objects.h:548:28: warning: non-void function does not return a value [-Wreturn-type] virtual Weapon* Wpn() {} ^ ./objects.h:549:31: warning: non-void function does not return a value [-Wreturn-type] virtual int CurrWeapon() {} ^ ./objects.h:551:39: warning: non-void function does not return a value [-Wreturn-type] virtual char weaponState(int wp) {} ^ ./objects.h:552:36: warning: non-void function does not return a value [-Wreturn-type] virtual char keyState(int wp) {} ^ ./objects.h:553:38: warning: non-void function does not return a value [-Wreturn-type] virtual Vector2D* WeaponPoint() {} ^ ./objects.h:555:45: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] void giveKey(int key) { keys |= 1 << key-1; } ~~ ~~~^~ ./objects.h:555:45: note: place parentheses around the '-' expression to silence this warning void giveKey(int key) { keys |= 1 << key-1; } ^ ( ) level.cpp:43:21: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(3, "FLAGRANT SYSTEM ERROR", "Could not open level file %s", filename.c_str()); ^ level.cpp:43:46: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(3, "FLAGRANT SYSTEM ERROR", "Could not open level file %s", filename.c_str()); ^ level.cpp:57:25: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(4, "FLAGRANT SYSTEM ERROR", "%s has an invalid header", filename.c_str()); ^ level.cpp:57:50: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(4, "FLAGRANT SYSTEM ERROR", "%s has an invalid header", filename.c_str()); ^ level.cpp:81:21: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(3, "FLAGRANT SYSTEM ERROR", "No level file specified"); ^ level.cpp:81:46: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(3, "FLAGRANT SYSTEM ERROR", "No level file specified"); ^ level.cpp:91:21: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(3, "FLAGRANT SYSTEM ERROR", "Could not load level file %s", filename.c_str()); ^ level.cpp:91:46: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(3, "FLAGRANT SYSTEM ERROR", "Could not load level file %s", filename.c_str()); ^ level.cpp:116:25: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(4, "FLAGRANT SYSTEM ERROR", "%s has an invalid header", filename.c_str()); ^ level.cpp:116:50: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(4, "FLAGRANT SYSTEM ERROR", "%s has an invalid header", filename.c_str()); ^ level.cpp:131:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'bg' needs 3 values (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:131:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'bg' needs 3 values (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:141:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'grid' needs 5 values (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:141:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'grid' needs 5 values (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:151:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'ambient' needs 5 values (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:151:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'ambient' needs 5 values (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:162:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'player' needs 3 values (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:162:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'player' needs 3 values (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:177:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'walls' needs >= 17 values (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:177:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'walls' needs >= 17 values (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:180:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Invalid particle type '%d' (%s:%d)", S2I(tC5), filename.c_str(), lineCount); ^ level.cpp:180:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Invalid particle type '%d' (%s:%d)", S2I(tC5), filename.c_str(), lineCount); ^ level.cpp:183:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Trigger < -4 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:183:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Trigger < -4 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:187:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Invalid trigger type (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:187:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Invalid trigger type (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:205:29: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(6, "FLAGRANT SYSTEM ERROR", "X without Y in 'walls' (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:205:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(6, "FLAGRANT SYSTEM ERROR", "X without Y in 'walls' (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:234:30: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'door' needs 23 values (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:234:55: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'door' needs 23 values (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:237:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Invalid particle type '%d' (%s:%d)", S2I(tC9), filename.c_str(), lineCount); ^ level.cpp:237:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Invalid particle type '%d' (%s:%d)", S2I(tC9), filename.c_str(), lineCount); ^ level.cpp:240:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Unlockwhen < 0 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:240:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Unlockwhen < 0 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:244:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Openwhen < 0 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:244:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Openwhen < 0 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:248:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Jamwhen < 0 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:248:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Jamwhen < 0 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:252:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Trigger < -4 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:252:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Trigger < -4 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:256:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Invalid trigger type (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:256:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Invalid trigger type (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:272:29: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'%s' needs >= 14 values (%s:%d)", token.c_str(), filename.c_str(), lineCount); ^ level.cpp:272:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'%s' needs >= 14 values (%s:%d)", token.c_str(), filename.c_str(), lineCount); ^ level.cpp:275:29: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Trigger < -4 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:275:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Trigger < -4 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:279:29: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Invalid trigger type (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:279:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Invalid trigger type (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:291:29: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'%s' needs >= 10 values (%s:%d)", token.c_str(), filename.c_str(), lineCount); ^ level.cpp:291:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'%s' needs >= 10 values (%s:%d)", token.c_str(), filename.c_str(), lineCount); ^ level.cpp:303:29: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'%s' needs >= 15 values (%s:%d)", token.c_str(), filename.c_str(), lineCount); ^ level.cpp:303:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'%s' needs >= 15 values (%s:%d)", token.c_str(), filename.c_str(), lineCount); ^ level.cpp:306:29: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Invalid particle type '%d' (%s:%d)", S2I(tC3), filename.c_str(), lineCount); ^ level.cpp:306:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Invalid particle type '%d' (%s:%d)", S2I(tC3), filename.c_str(), lineCount); ^ level.cpp:309:29: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Trigger < -4 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:309:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Trigger < -4 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:313:29: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Invalid trigger type (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:313:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Invalid trigger type (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:325:29: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'%s' needs >= 13 values (%s:%d)", token.c_str(), filename.c_str(), lineCount); ^ level.cpp:325:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'%s' needs >= 13 values (%s:%d)", token.c_str(), filename.c_str(), lineCount); ^ level.cpp:328:29: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Openwhen < -4 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:328:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Openwhen < -4 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:342:29: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(6, "FLAGRANT SYSTEM ERROR", "X without Y in '%s' (%s:%d)", token.c_str(), filename.c_str(), lineCount); ^ level.cpp:342:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(6, "FLAGRANT SYSTEM ERROR", "X without Y in '%s' (%s:%d)", token.c_str(), filename.c_str(), lineCount); ^ level.cpp:373:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'obj' needs 10 values (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:373:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'obj' needs 10 values (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:376:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Invalid object type '%d' (%s:%d)", S2I(tC1), filename.c_str(), lineCount); ^ level.cpp:376:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Invalid object type '%d' (%s:%d)", S2I(tC1), filename.c_str(), lineCount); ^ level.cpp:379:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Trigger < -4 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:379:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Trigger < -4 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:383:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Wakewhen < 0 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:383:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Wakewhen < 0 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:387:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Killwhen < 0 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:387:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Killwhen < 0 or > %d (%s:%d)", NUM_TRIGGERS-1, filename.c_str(), lineCount); ^ level.cpp:391:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Invalid trigger type (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:391:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "Invalid trigger type (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:402:27: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'light' needs 8 values (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:402:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(5, "FLAGRANT SYSTEM ERROR", "'light' needs 8 values (%s:%d)", filename.c_str(), lineCount); ^ level.cpp:747:21: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(7, "FLAGRANT SYSTEM ERROR", "Invalid grid bounds"); ^ level.cpp:747:46: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(7, "FLAGRANT SYSTEM ERROR", "Invalid grid bounds"); ^ level.cpp:754:30: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] if (!grid) errorMessage(7, "FLAGRANT SYSTEM ERROR", "Could not allocate grid space"); ^ level.cpp:754:55: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] if (!grid) errorMessage(7, "FLAGRANT SYSTEM ERROR", "Could not allocate grid space"); ^ 89 warnings generated. c++ -c md2.cpp -o md2.o -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -std=c++14 In file included from md2.cpp:29: ./sdb.h:376:70: warning: non-void function does not return a value [-Wreturn-type] Vector2D operator = (Vector2D v) { c[X] = v.c[X]; c[Y] = v.c[Y]; } ^ In file included from md2.cpp:29: In file included from ./sdb.h:560: ./objects.h:548:28: warning: non-void function does not return a value [-Wreturn-type] virtual Weapon* Wpn() {} ^ ./objects.h:549:31: warning: non-void function does not return a value [-Wreturn-type] virtual int CurrWeapon() {} ^ ./objects.h:551:39: warning: non-void function does not return a value [-Wreturn-type] virtual char weaponState(int wp) {} ^ ./objects.h:552:36: warning: non-void function does not return a value [-Wreturn-type] virtual char keyState(int wp) {} ^ ./objects.h:553:38: warning: non-void function does not return a value [-Wreturn-type] virtual Vector2D* WeaponPoint() {} ^ ./objects.h:555:45: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] void giveKey(int key) { keys |= 1 << key-1; } ~~ ~~~^~ ./objects.h:555:45: note: place parentheses around the '-' expression to silence this warning void giveKey(int key) { keys |= 1 << key-1; } ^ ( ) md2.cpp:145:21: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(8, "FLAGRANT SYSTEM ERROR", "Unable to load model %s", strFileName); ^ md2.cpp:145:46: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(8, "FLAGRANT SYSTEM ERROR", "Unable to load model %s", strFileName); ^ md2.cpp:150:21: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(8, "FLAGRANT SYSTEM ERROR", "Invalid file format (version not 8) %s", strFileName); ^ md2.cpp:150:46: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(8, "FLAGRANT SYSTEM ERROR", "Invalid file format (version not 8) %s", strFileName); ^ 11 warnings generated. c++ -c weapons.cpp -o weapons.o -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -std=c++14 In file included from weapons.cpp:29: ./sdb.h:376:70: warning: non-void function does not return a value [-Wreturn-type] Vector2D operator = (Vector2D v) { c[X] = v.c[X]; c[Y] = v.c[Y]; } ^ In file included from weapons.cpp:29: In file included from ./sdb.h:560: ./objects.h:548:28: warning: non-void function does not return a value [-Wreturn-type] virtual Weapon* Wpn() {} ^ ./objects.h:549:31: warning: non-void function does not return a value [-Wreturn-type] virtual int CurrWeapon() {} ^ ./objects.h:551:39: warning: non-void function does not return a value [-Wreturn-type] virtual char weaponState(int wp) {} ^ ./objects.h:552:36: warning: non-void function does not return a value [-Wreturn-type] virtual char keyState(int wp) {} ^ ./objects.h:553:38: warning: non-void function does not return a value [-Wreturn-type] virtual Vector2D* WeaponPoint() {} ^ ./objects.h:555:45: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] void giveKey(int key) { keys |= 1 << key-1; } ~~ ~~~^~ ./objects.h:555:45: note: place parentheses around the '-' expression to silence this warning void giveKey(int key) { keys |= 1 << key-1; } ^ ( ) weapons.cpp:138:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ weapons.cpp:298:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] wpnType[i].set("None", NO_BULLET, NO_SPRITE, NO_SPRITE, NO_SOUND, 0, 0, 0, 0, 1, 0, 0, 0,0 ); ^ weapons.cpp:301:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] wpnType[i].set("Rifle", BLT_RIFLE, TEX_WPN_RIFLE, PART_RIFLE_SHELL, SND_WPN_RIFLE, 2.0, 0.3, 40, 320, 1, 10, 1, torad(2), 160); ^ weapons.cpp:304:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] wpnType[i].set("Shotgun", BLT_SHOTGUN, TEX_WPN_SHOTGUN, PART_SHOTGUN_SHELL, SND_WPN_SHOTGUN, 2.0, 0.25, 6, 42, 10, 1*SEMI_AUTO, 2.5, torad(8), 4800); ^ weapons.cpp:307:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] wpnType[i].set("H.E.P.A.", BLT_HEPA, TEX_WPN_HEPA, NO_SPRITE, SND_WPN_HEPA, 2.0, 1.0, 4, 30, 1, 0.75*SEMI_AUTO, 2.5, 0, 6000); ^ weapons.cpp:310:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] wpnType[i].set("Grenade", BLT_GRENADE, NO_SPRITE, NO_SPRITE, NO_SOUND, 0.3, 0.3, 1, 9, 1, 0.5*SEMI_AUTO, 2.5, 0, 0); ^ weapons.cpp:313:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] wpnType[i].set("Laser", BLT_LASER, TEX_WPN_LASER, NO_SPRITE, SND_WPN_LASER, 2.0, 1.0, 6, 30, 1, 4*SEMI_AUTO, 2.0, 0, 6000); ^ weapons.cpp:316:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] wpnType[i].set("EM Shock Gen", ESG_EXPLODER, TEX_WPN_ESG, NO_SPRITE, SND_WPN_ESG, 2.0, 2.0, 1, 5, 1, 1.5*SEMI_AUTO, 3.5, 0, 0); ^ weapons.cpp:319:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] wpnType[i].set("Subdermal Blaster", BLT_BLASTER, NO_SPRITE, NO_SPRITE, SND_WPN_HEPA, 0, 0, 100, 1000, 1, 10*SEMI_AUTO, 0, 0, 0); ^ weapons.cpp:322:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] wpnType[i].set("Turret gun", BLT_RIFLE, TEX_WPN_RIFLE, PART_RIFLE_SHELL, SND_WPN_RIFLE, 2.0, 0, 10, 999999, 1, 10, 1, torad(5), 0); ^ 17 warnings generated. c++ -c objects.cpp -o objects.o -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -std=c++14 In file included from objects.cpp:27: ./sdb.h:376:70: warning: non-void function does not return a value [-Wreturn-type] Vector2D operator = (Vector2D v) { c[X] = v.c[X]; c[Y] = v.c[Y]; } ^ In file included from objects.cpp:27: In file included from ./sdb.h:560: ./objects.h:548:28: warning: non-void function does not return a value [-Wreturn-type] virtual Weapon* Wpn() {} ^ ./objects.h:549:31: warning: non-void function does not return a value [-Wreturn-type] virtual int CurrWeapon() {} ^ ./objects.h:551:39: warning: non-void function does not return a value [-Wreturn-type] virtual char weaponState(int wp) {} ^ ./objects.h:552:36: warning: non-void function does not return a value [-Wreturn-type] virtual char keyState(int wp) {} ^ ./objects.h:553:38: warning: non-void function does not return a value [-Wreturn-type] virtual Vector2D* WeaponPoint() {} ^ ./objects.h:555:45: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] void giveKey(int key) { keys |= 1 << key-1; } ~~ ~~~^~ ./objects.h:555:45: note: place parentheses around the '-' expression to silence this warning void giveKey(int key) { keys |= 1 << key-1; } ^ ( ) objects.cpp:1696:8: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] if (!HAS_KEY(keys, k)) ^~~~~~~~~~~~~~~~ ./sdb.h:139:36: note: expanded from macro 'HAS_KEY' #define HAS_KEY(x,y) (x & 1 << y-1) ~~ ~^~ objects.cpp:1696:8: note: place parentheses around the '-' expression to silence this warning if (!HAS_KEY(keys, k)) ^~~~~~~~~~~~~~~~ ./sdb.h:139:36: note: expanded from macro 'HAS_KEY' #define HAS_KEY(x,y) (x & 1 << y-1) ~^~ 8 warnings generated. c++ -c enemies.cpp -o enemies.o -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -std=c++14 In file included from enemies.cpp:26: ./sdb.h:376:70: warning: non-void function does not return a value [-Wreturn-type] Vector2D operator = (Vector2D v) { c[X] = v.c[X]; c[Y] = v.c[Y]; } ^ In file included from enemies.cpp:26: In file included from ./sdb.h:560: ./objects.h:548:28: warning: non-void function does not return a value [-Wreturn-type] virtual Weapon* Wpn() {} ^ ./objects.h:549:31: warning: non-void function does not return a value [-Wreturn-type] virtual int CurrWeapon() {} ^ ./objects.h:551:39: warning: non-void function does not return a value [-Wreturn-type] virtual char weaponState(int wp) {} ^ ./objects.h:552:36: warning: non-void function does not return a value [-Wreturn-type] virtual char keyState(int wp) {} ^ ./objects.h:553:38: warning: non-void function does not return a value [-Wreturn-type] virtual Vector2D* WeaponPoint() {} ^ ./objects.h:555:45: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] void giveKey(int key) { keys |= 1 << key-1; } ~~ ~~~^~ ./objects.h:555:45: note: place parentheses around the '-' expression to silence this warning void giveKey(int key) { keys |= 1 << key-1; } ^ ( ) 7 warnings generated. c++ -c input.cpp -o input.o -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -std=c++14 In file included from input.cpp:26: ./sdb.h:376:70: warning: non-void function does not return a value [-Wreturn-type] Vector2D operator = (Vector2D v) { c[X] = v.c[X]; c[Y] = v.c[Y]; } ^ In file included from input.cpp:26: In file included from ./sdb.h:560: ./objects.h:548:28: warning: non-void function does not return a value [-Wreturn-type] virtual Weapon* Wpn() {} ^ ./objects.h:549:31: warning: non-void function does not return a value [-Wreturn-type] virtual int CurrWeapon() {} ^ ./objects.h:551:39: warning: non-void function does not return a value [-Wreturn-type] virtual char weaponState(int wp) {} ^ ./objects.h:552:36: warning: non-void function does not return a value [-Wreturn-type] virtual char keyState(int wp) {} ^ ./objects.h:553:38: warning: non-void function does not return a value [-Wreturn-type] virtual Vector2D* WeaponPoint() {} ^ ./objects.h:555:45: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] void giveKey(int key) { keys |= 1 << key-1; } ~~ ~~~^~ ./objects.h:555:45: note: place parentheses around the '-' expression to silence this warning void giveKey(int key) { keys |= 1 << key-1; } ^ ( ) input.cpp:106:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ 8 warnings generated. c++ -c player.cpp -o player.o -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -std=c++14 In file included from player.cpp:29: ./sdb.h:376:70: warning: non-void function does not return a value [-Wreturn-type] Vector2D operator = (Vector2D v) { c[X] = v.c[X]; c[Y] = v.c[Y]; } ^ In file included from player.cpp:29: In file included from ./sdb.h:560: ./objects.h:548:28: warning: non-void function does not return a value [-Wreturn-type] virtual Weapon* Wpn() {} ^ ./objects.h:549:31: warning: non-void function does not return a value [-Wreturn-type] virtual int CurrWeapon() {} ^ ./objects.h:551:39: warning: non-void function does not return a value [-Wreturn-type] virtual char weaponState(int wp) {} ^ ./objects.h:552:36: warning: non-void function does not return a value [-Wreturn-type] virtual char keyState(int wp) {} ^ ./objects.h:553:38: warning: non-void function does not return a value [-Wreturn-type] virtual Vector2D* WeaponPoint() {} ^ ./objects.h:555:45: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] void giveKey(int key) { keys |= 1 << key-1; } ~~ ~~~^~ ./objects.h:555:45: note: place parentheses around the '-' expression to silence this warning void giveKey(int key) { keys |= 1 << key-1; } ^ ( ) player.cpp:141:21: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(7, "FLAGRANT SYSTEM ERROR", ^ player.cpp:142:5: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] "Player profile corrupt. Defaults restored."); ^ 9 warnings generated. c++ -c game.cpp -o game.o -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -std=c++14 In file included from game.cpp:26: ./sdb.h:376:70: warning: non-void function does not return a value [-Wreturn-type] Vector2D operator = (Vector2D v) { c[X] = v.c[X]; c[Y] = v.c[Y]; } ^ In file included from game.cpp:26: In file included from ./sdb.h:560: ./objects.h:548:28: warning: non-void function does not return a value [-Wreturn-type] virtual Weapon* Wpn() {} ^ ./objects.h:549:31: warning: non-void function does not return a value [-Wreturn-type] virtual int CurrWeapon() {} ^ ./objects.h:551:39: warning: non-void function does not return a value [-Wreturn-type] virtual char weaponState(int wp) {} ^ ./objects.h:552:36: warning: non-void function does not return a value [-Wreturn-type] virtual char keyState(int wp) {} ^ ./objects.h:553:38: warning: non-void function does not return a value [-Wreturn-type] virtual Vector2D* WeaponPoint() {} ^ ./objects.h:555:45: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] void giveKey(int key) { keys |= 1 << key-1; } ~~ ~~~^~ ./objects.h:555:45: note: place parentheses around the '-' expression to silence this warning void giveKey(int key) { keys |= 1 << key-1; } ^ ( ) game.cpp:464:21: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(1, "FLAGRANT SYSTEM ERROR", "Could not initialize SDL (%s)", SDL_GetError()); ^ game.cpp:464:46: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(1, "FLAGRANT SYSTEM ERROR", "Could not initialize SDL (%s)", SDL_GetError()); ^ game.cpp:516:21: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(2, "FLAGRANT SYSTEM ERROR", "Could not set video mode: %s\nChange your video settings in %s%s%s", SDL_GetError(), getenv("HOME"), DATA_DIRECTORY, CONFIG_FILE); ^ game.cpp:516:46: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(2, "FLAGRANT SYSTEM ERROR", "Could not set video mode: %s\nChange your video settings in %s%s%s", SDL_GetError(), getenv("HOME"), DATA_DIRECTORY, CONFIG_FILE); ^ game.cpp:651:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(3, "FLAGRANT SYSTEM ERROR", "Could not load texture %d", i); ^ game.cpp:651:48: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(3, "FLAGRANT SYSTEM ERROR", "Could not load texture %d", i); ^ game.cpp:688:65: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] case MDL_PLAYER_LEGS: modelLoader.ImportMD2(&models[i], "/usr/local/share/sdb/models/player_legs" MD2_SUFFIX, MTEX_PLAYER); ^ game.cpp:690:65: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] case MDL_PLAYER_TORSO: modelLoader.ImportMD2(&models[i], "/usr/local/share/sdb/models/player_torso" MD2_SUFFIX, MTEX_PLAYER); ^ game.cpp:692:65: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] case MDL_PLAYER_TORSO2: modelLoader.ImportMD2(&models[i], "/usr/local/share/sdb/models/player_torso" MD2_SUFFIX, MTEX_PLAYER2); ^ game.cpp:694:65: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] case MDL_BOX: modelLoader.ImportMD2(&models[i], "/usr/local/share/sdb/models/box" MD2_SUFFIX, TEX_BOX_NORMAL); ^ game.cpp:696:65: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] case MDL_BARREL: modelLoader.ImportMD2(&models[i], "/usr/local/share/sdb/models/barrel" MD2_SUFFIX, MTEX_BARREL); ^ game.cpp:698:65: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] case MDL_STEELBOX: modelLoader.ImportMD2(&models[i], "/usr/local/share/sdb/models/box" MD2_SUFFIX, TEX_STEELBOX_NORMAL); ^ game.cpp:700:65: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] case MDL_TURRET: modelLoader.ImportMD2(&models[i], "/usr/local/share/sdb/models/turret" MD2_SUFFIX, MTEX_TURRET); ^ game.cpp:702:65: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] case MDL_MIB: modelLoader.ImportMD2(&models[i], "/usr/local/share/sdb/models/mib" MD2_SUFFIX, MTEX_MIB); ^ game.cpp:704:65: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] case MDL_UNARMED_GUARD: modelLoader.ImportMD2(&models[i], "/usr/local/share/sdb/models/unarmedguard" MD2_SUFFIX, MTEX_UNARMED_GUARD); ^ game.cpp:706:65: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] case MDL_ARMED_DRONE: modelLoader.ImportMD2(&models[i], "/usr/local/share/sdb/models/armeddrone" MD2_SUFFIX, MTEX_ARMED_DRONE); ^ game.cpp:708:65: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] case MDL_HUNTER: modelLoader.ImportMD2(&models[i], "/usr/local/share/sdb/models/hunter" MD2_SUFFIX, MTEX_HUNTER); ^ game.cpp:710:65: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] case MDL_GLADIATOR: modelLoader.ImportMD2(&models[i], "/usr/local/share/sdb/models/gladiator" MD2_SUFFIX, MTEX_GLADIATOR); ^ game.cpp:712:65: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] case MDL_ZERO: modelLoader.ImportMD2(&models[i], "/usr/local/share/sdb/models/zero" MD2_SUFFIX, MTEX_FADE); ^ game.cpp:714:65: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] case MDL_ONE: modelLoader.ImportMD2(&models[i], "/usr/local/share/sdb/models/one" MD2_SUFFIX, MTEX_FADE); ^ game.cpp:777:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(3, "FLAGRANT SYSTEM ERROR", "Could not load sound %d", i); ^ game.cpp:777:48: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(3, "FLAGRANT SYSTEM ERROR", "Could not load sound %d", i); ^ game.cpp:797:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(3, "FLAGRANT SYSTEM ERROR", "Could not load song %d", i); ^ game.cpp:797:48: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(3, "FLAGRANT SYSTEM ERROR", "Could not load song %d", i); ^ game.cpp:1166:26: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] pauseMenu.addString(1, "Abort?"); pauseMenu.addString(0, ""); ^ game.cpp:1166:60: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] pauseMenu.addString(1, "Abort?"); pauseMenu.addString(0, ""); ^ game.cpp:1167:26: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] pauseMenu.addString(0, " yes"); pauseMenu.addString(0, " no"); ^ game.cpp:1167:60: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] pauseMenu.addString(0, " yes"); pauseMenu.addString(0, " no"); ^ game.cpp:1168:26: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] pauseMenu.addString(0, ""); pauseMenu.addString(0, "(sdb)"); ^ game.cpp:1168:60: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] pauseMenu.addString(0, ""); pauseMenu.addString(0, "(sdb)"); ^ game.cpp:1187:25: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { errorMessage(9, "FLAGRANT OPENGL ERROR", "CODE %d: %s", errnum, gluErrorString(errnum)); } ^ game.cpp:1187:50: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] { errorMessage(9, "FLAGRANT OPENGL ERROR", "CODE %d: %s", errnum, gluErrorString(errnum)); } ^ game.cpp:1420:33: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] deadMenu.addString(1, "Captured!"); ^ game.cpp:1422:33: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] deadMenu.addString(1, "You have died."); ^ game.cpp:1424:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] deadMenu.addString(0, ""); ^ game.cpp:1425:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] deadMenu.addString(0, " restart level"); deadMenu.addString(0, " return to menu"); ^ game.cpp:1425:73: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] deadMenu.addString(0, " restart level"); deadMenu.addString(0, " return to menu"); ^ game.cpp:1426:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] deadMenu.addString(0, ""); deadMenu.addString(0, "(sdb)"); ^ game.cpp:1426:73: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] deadMenu.addString(0, ""); deadMenu.addString(0, "(sdb)"); ^ game.cpp:1650:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, SCREEN_TOP-2.0, 2.0, 1.6, "%03d FPS", timer.FPS()); ^ game.cpp:1656:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-98.0, SCREEN_TOP-2.0, 3.0, 2.0, "* SYSTEM BACKDOOR ACTIVE *"); ^ game.cpp:1704:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(-95.0, -SCREEN_TOP+6, 6.0, 6.0, "==="); ^ game.cpp:1707:56: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(-95.0, -SCREEN_TOP+6, 6.0, 6.0, "%3.f", ceil(PLAYER_OBJECT->Health())); ^ game.cpp:1709:56: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(-95.0, -SCREEN_TOP+6, 6.0, 6.0, "<<<"); ^ game.cpp:1715:58: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(-95.0, -SCREEN_TOP+6, 6.0, 6.0, "%3.f", ceil(PLAYER_OBJECT->Health())); ^ game.cpp:1717:58: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(-95.0, -SCREEN_TOP+6, 6.0, 6.0, "<<<"); ^ game.cpp:1725:51: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(64, -SCREEN_TOP+6, 6.0, 6.0, "======"); ^ game.cpp:1728:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(64, -SCREEN_TOP+14.0, 2.8, 2.4, "%16s", wpnType[PLAYER_OBJECT->Wpn()->Type()].name); ^ game.cpp:1734:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(64, -SCREEN_TOP+6, 6.0, 6.0, "%2d%s%3d", ^ game.cpp:1740:59: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(64, -SCREEN_TOP+6, 6.0, 6.0, "%2d%s%3d", ^ game.cpp:1747:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(64, -SCREEN_TOP+6, 6.0, 6.0, "<< <<<"); ^ game.cpp:1757:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(50, -SCREEN_TOP+14.0, 2.0, 2.0, "======"); ^ game.cpp:1758:54: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(50, -SCREEN_TOP+14.0, 2.0, 2.0, "%c%c%c%c%c%c",PLAYER_OBJECT->weaponState(1), ^ game.cpp:1763:92: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(50+2.0*(PLAYER_OBJECT->CurrWeapon()-1), -SCREEN_TOP+14.0, 2.0, 2.0, "%d", PLAYER_OBJECT->CurrWeapon()+1); ^ game.cpp:1767:56: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(-77.1, -SCREEN_TOP+3.5, 4.5, 4.5, ">"); ^ game.cpp:1768:56: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(-77.1, -SCREEN_TOP+3.5, 4.5, 4.5, "%c", PLAYER_OBJECT->keyState(3)); ^ game.cpp:1770:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(-77, -SCREEN_TOP+6, 4.5, 4.5, ">"); ^ game.cpp:1771:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(-77, -SCREEN_TOP+6, 4.5, 4.5, "%c", PLAYER_OBJECT->keyState(2)); ^ game.cpp:1773:56: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(-76.9, -SCREEN_TOP+8.5, 4.5, 4.5, ">"); ^ game.cpp:1774:56: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(-76.9, -SCREEN_TOP+8.5, 4.5, 4.5, "%c", PLAYER_OBJECT->keyState(1)); ^ game.cpp:1779:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(CENTERED, -SCREEN_TOP+6, 3.0, 3.0, "==:==;=="); ^ game.cpp:1780:57: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(CENTERED, -SCREEN_TOP+6, 3.0, 3.0, "%2d:%02d;%02d", (int)(P.gameTime/60), ^ game.cpp:1785:19: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] if (message != "" && messageTime > 0) ^ ~~ game.cpp:1788:56: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-95.0, -SCREEN_TOP+14.0, 3.7, 3.2, "%s", message); ^ game.cpp:1851:43: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, 10, 5.4, 4.4, "NANO-ACTIVATION SEQUENCE COMMENCING IN"); ^ game.cpp:1854:44: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, 0, 7.4, 6.4, "%d", (int)(11-transitionTimer)); ^ game.cpp:2053:19: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(6, "TESSELLATION ERROR", "CODE %d: %s", errnum, gluErrorString(errnum)); ^ game.cpp:2053:41: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] errorMessage(6, "TESSELLATION ERROR", "CODE %d: %s", errnum, gluErrorString(errnum)); ^ 75 warnings generated. c++ -c interface.cpp -o interface.o -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -std=c++14 In file included from interface.cpp:26: ./sdb.h:376:70: warning: non-void function does not return a value [-Wreturn-type] Vector2D operator = (Vector2D v) { c[X] = v.c[X]; c[Y] = v.c[Y]; } ^ In file included from interface.cpp:26: In file included from ./sdb.h:560: ./objects.h:548:28: warning: non-void function does not return a value [-Wreturn-type] virtual Weapon* Wpn() {} ^ ./objects.h:549:31: warning: non-void function does not return a value [-Wreturn-type] virtual int CurrWeapon() {} ^ ./objects.h:551:39: warning: non-void function does not return a value [-Wreturn-type] virtual char weaponState(int wp) {} ^ ./objects.h:552:36: warning: non-void function does not return a value [-Wreturn-type] virtual char keyState(int wp) {} ^ ./objects.h:553:38: warning: non-void function does not return a value [-Wreturn-type] virtual Vector2D* WeaponPoint() {} ^ ./objects.h:555:45: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] void giveKey(int key) { keys |= 1 << key-1; } ~~ ~~~^~ ./objects.h:555:45: note: place parentheses around the '-' expression to silence this warning void giveKey(int key) { keys |= 1 << key-1; } ^ ( ) interface.cpp:142:44: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] charWidth/0.75, charHeight*0.75, "%s", lines[rowStart+i].c_str()); ^ interface.cpp:146:44: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] charWidth/0.75, charHeight*0.75, "%s", ^ interface.cpp:154:42: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] charWidth/0.75, charHeight*0.75, "%s", curString.c_str()); ^ interface.cpp:300:25: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " continue game"); ^ interface.cpp:302:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " new game"); ^ interface.cpp:303:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " options"); ^ interface.cpp:304:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " records"); ^ interface.cpp:305:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " help"); ^ interface.cpp:306:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " credits"); ^ interface.cpp:307:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " exit"); ^ interface.cpp:308:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:309:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "(sdb)"); ^ interface.cpp:320:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(1, "Continue game?"); ^ interface.cpp:321:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:322:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "%02d %s", P.level+((P.level != NUM_LEVELS)?1:0), levelName.c_str()); ^ interface.cpp:324:25: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "%3d:%02d.%02d", (int)(P.totalTime()/60), (int)fmod(P.totalTime(), 60), ^ interface.cpp:327:25: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:329:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:330:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " yes"); ^ interface.cpp:331:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " no"); ^ interface.cpp:332:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:333:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "(sdb)"); ^ interface.cpp:339:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(1, "Select starting level"); ^ interface.cpp:340:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:341:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " (cancel)"); ^ interface.cpp:356:25: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "%s", line.c_str()); ^ interface.cpp:359:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:360:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "(sdb)"); ^ interface.cpp:366:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " Level | Fastest time | Most kills | Fewest shots | Least times hit"); ^ interface.cpp:367:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "-------------------------------+--------------+------------+--------------+----------------"); ^ interface.cpp:374:46: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString((i < NUM_LEVELS)?0:1, "%30s | %2d:%02d.%02d | %5d | %5d | %5d", ^ interface.cpp:383:25: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:385:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:386:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " return to menu"); ^ interface.cpp:387:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " clear records"); ^ interface.cpp:394:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " CONTROLS "); ^ interface.cpp:395:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:396:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "move forward: %12s | turn left: %12s or mouse", ^ interface.cpp:398:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "move backward: %12s | turn right: %12s or mouse", ^ interface.cpp:400:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "sidestep left: %12s | jump: %12s", ^ interface.cpp:402:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "sidestep right: %12s |", SDL_GetKeyName(config.keys[KEY_STRAFE_R])); ^ interface.cpp:403:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "----------------------------------------------------------------"); ^ interface.cpp:404:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " fire weapon: %12s or left mouse button", ^ interface.cpp:406:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " throw grenade: %12s or right mouse button", ^ interface.cpp:408:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " reload weapon: %12s", SDL_GetKeyName(config.keys[KEY_RELOAD])); ^ interface.cpp:409:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " switch weapon: %12s", SDL_GetKeyName(config.keys[KEY_SWITCH_WPN])); ^ interface.cpp:410:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " select weapon: numbers 1-7"); ^ interface.cpp:411:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "----------------------------------------------------------------"); ^ interface.cpp:412:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " switch view: %12s", SDL_GetKeyName(config.keys[KEY_SWITCH_VIEW])); ^ interface.cpp:413:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " quick zoom out: %12s or middle mouse button", ^ interface.cpp:415:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " options: F2"); ^ interface.cpp:416:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " pause/abort: ESC"); ^ interface.cpp:417:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " press enter to return to menu"); ^ interface.cpp:423:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " SHOTGUN DEBUGGER"); ^ interface.cpp:424:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:425:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "project leader, programming, concepts, 2d art MATT SARNOFF"); ^ interface.cpp:426:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "lead level designer, design feedback CHRIS DELEON"); ^ interface.cpp:427:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "character models JOHN NESKY"); ^ interface.cpp:428:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "level designers GREGORY PENG"); ^ interface.cpp:429:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " JEFF THOENE"); ^ interface.cpp:430:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "sound effects CHRIS DELEON"); ^ interface.cpp:431:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " MATT SARNOFF"); ^ interface.cpp:432:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "music TUSCAN KNOX"); ^ interface.cpp:433:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "testing MICHAEL WEBER"); ^ interface.cpp:434:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:435:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "A project of the Game Creation Society at Carnegie Mellon University"); ^ interface.cpp:436:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " sdb.gamecreation.org"); ^ interface.cpp:437:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:438:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "Version %s; %s", GAME_VERSION, GAME_DATE); ^ interface.cpp:439:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "Copyright 2005 Game Creation Society; Released under the GNU GPL"); ^ interface.cpp:440:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:441:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " press enter to return to menu"); ^ interface.cpp:447:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(1, "Exit?"); ^ interface.cpp:448:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:449:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " yes"); ^ interface.cpp:450:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " no"); ^ interface.cpp:451:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:452:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "(sdb)"); ^ interface.cpp:459:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(1, "This will erase your"); ^ interface.cpp:460:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(1, "current saved game."); ^ interface.cpp:461:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(1, "Proceed?"); ^ interface.cpp:462:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:463:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " yes"); ^ interface.cpp:464:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " no"); ^ interface.cpp:465:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:466:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "(sdb)"); ^ interface.cpp:472:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(1, "Erase all records?"); ^ interface.cpp:473:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:474:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " yes"); ^ interface.cpp:475:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " no"); ^ interface.cpp:476:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:477:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "(sdb)"); ^ interface.cpp:483:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(1, "This will erase your"); ^ interface.cpp:484:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(1, "current saved game."); ^ interface.cpp:485:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(1, "Proceed?"); ^ interface.cpp:486:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:487:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " yes"); ^ interface.cpp:488:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " no"); ^ interface.cpp:489:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:490:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "(sdb)"); ^ interface.cpp:496:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(1, "This will erase ALL game progress"); ^ interface.cpp:497:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(1, "and your current saved game."); ^ interface.cpp:498:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(1, "Proceed?"); ^ interface.cpp:499:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:500:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " yes"); ^ interface.cpp:501:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " no"); ^ interface.cpp:502:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:503:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "(sdb)"); ^ interface.cpp:509:21: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " CUSTOMIZE KEYS"); ^ interface.cpp:512:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:514:21: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " Defaults"); ^ interface.cpp:515:21: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, " Save and return"); ^ interface.cpp:516:21: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, ""); ^ interface.cpp:517:21: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] m->addString(0, "(sdb)"); ^ interface.cpp:789:42: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-90.0, 10.0, 6.0, 4.8, "SHOTGUN DEBUGGER"); ^ interface.cpp:791:44: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-80.0, -40, 2.5, 2.5, "A project of the Game Creation Society - sdb.gamecreation.org"); ^ interface.cpp:792:44: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-80.0, LAST_Y, 2.5, 2.5, "Ver. %s", GAME_VERSION); ^ interface.cpp:796:47: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, LAST_Y, 2.5, 2.5, "Press Enter"); ^ interface.cpp:801:52: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-98.0, SCREEN_TOP-2.0, 3.0, 2.0, "* AUGMENTATIONS ACTIVE *"); ^ interface.cpp:845:43: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.LEDprintf(CENTERED, 0, 20.0, 20.0, ">>>>"); ^ interface.cpp:850:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] case 4: font.LEDprintf(CENTERED, 0, 20.0, 20.0, " ?"); ^ interface.cpp:851:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] case 3: font.LEDprintf(CENTERED, 0, 20.0, 20.0, " ? "); ^ interface.cpp:852:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] case 2: font.LEDprintf(CENTERED, 0, 20.0, 20.0, " ? "); ^ interface.cpp:853:53: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] case 1: font.LEDprintf(CENTERED, 0, 20.0, 20.0, "? "); ^ interface.cpp:929:35: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.addString(0, "%s", currLevel.introText[linesRead].c_str()); ^ interface.cpp:931:39: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.addString(style, "%s", (currLevel.introText[linesRead].substr(1, currLevel.introText[linesRead].length()-1)).c_str()); ^ interface.cpp:934:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.addString(0, ""); ^ interface.cpp:935:31: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.addString(1, "press enter"); ^ interface.cpp:990:33: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.addString(0, "%s", currLevel.introText[linesRead].c_str()); ^ interface.cpp:992:37: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.addString(style, "%s", (currLevel.introText[linesRead].substr(1, currLevel.introText[linesRead].length()-1)).c_str()); ^ interface.cpp:1002:29: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.addString(0, ""); ^ interface.cpp:1003:29: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.addString(1, "press enter"); ^ interface.cpp:1032:42: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, 0, 6.0, 4.8, "%s", currLevel.name.c_str()); ^ interface.cpp:1039:46: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-92, LAST_Y, 3.0, 2.6, "Fastest time: %2d:%02d.%02d", ^ interface.cpp:1042:46: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-92, LAST_Y, 3.0, 2.6, "Most kills: %5d", P.levelRecords[P.level].kills); ^ interface.cpp:1043:46: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-92, LAST_Y, 3.0, 2.6, "Fewest shots: %5d", P.levelRecords[P.level].shots); ^ interface.cpp:1044:46: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-92, LAST_Y, 3.0, 2.6, "Least times hit: %5d", P.levelRecords[P.level].hits); ^ interface.cpp:1086:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, "Completion time %2d:%02d.%02d", (int)(P.gameTime/60), ^ interface.cpp:1088:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, "Enemies killed %5d", P.kills); ^ interface.cpp:1089:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, "Shots fired %5d", P.shots); ^ interface.cpp:1090:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, "Times hit %5d", P.hits); ^ interface.cpp:1091:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, ""); ^ interface.cpp:1092:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, " press enter to continue"); ^ interface.cpp:1096:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, " | Prev. record"); ^ interface.cpp:1099:5: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] "Completion time %2d:%02d.%02d | %2d:%02d.%02d", (int)(P.gameTime/60), ^ interface.cpp:1104:5: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] "Enemies killed %5d | %5d", P.kills, P.levelRecords[l].kills); ^ interface.cpp:1107:5: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] "Shots fired %5d | %5d", P.shots, P.levelRecords[l].shots); ^ interface.cpp:1110:5: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] "Times hit %5d | %5d", P.hits, P.levelRecords[l].hits); ^ interface.cpp:1112:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, ""); ^ interface.cpp:1113:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, " press enter to continue"); ^ interface.cpp:1169:43: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, 37.0, 6.0, 4.8, "LEVEL COMPLETED"); ^ interface.cpp:1209:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, "Final statistics are not"); ^ interface.cpp:1210:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, "recorded if you cheat."); ^ interface.cpp:1211:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, ""); ^ interface.cpp:1212:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, ""); ^ interface.cpp:1213:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, ""); ^ interface.cpp:1214:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, " press enter to continue"); ^ interface.cpp:1218:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, "Final statistics are not"); ^ interface.cpp:1219:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, "recorded if you use"); ^ interface.cpp:1220:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, "augmentations on levels"); ^ interface.cpp:1221:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, "other than the last."); ^ interface.cpp:1222:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, ""); ^ interface.cpp:1223:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, " press enter to continue"); ^ interface.cpp:1227:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, "Final statistics are not"); ^ interface.cpp:1228:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, "recorded if you do not"); ^ interface.cpp:1229:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, "start at the first level."); ^ interface.cpp:1230:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, ""); ^ interface.cpp:1231:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, ""); ^ interface.cpp:1232:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, " press enter to continue"); ^ interface.cpp:1237:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, "Completion time %2d:%02d.%02d", (int)(P.currStats[NUM_LEVELS].time/60), ^ interface.cpp:1239:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, "Enemies killed %5d", P.currStats[NUM_LEVELS].kills); ^ interface.cpp:1240:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, "Shots fired %5d", P.currStats[NUM_LEVELS].shots); ^ interface.cpp:1241:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, "Times hit %5d", P.currStats[NUM_LEVELS].hits); ^ interface.cpp:1242:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, ""); ^ interface.cpp:1243:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, " press enter to continue"); ^ interface.cpp:1247:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, " | Prev. record"); ^ interface.cpp:1250:5: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] "Completion time %2d:%02d.%02d | %2d:%02d.%02d", (int)(P.gameTime/60), ^ interface.cpp:1255:5: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] "Enemies killed %5d | %5d", P.kills, P.levelRecords[NUM_LEVELS].kills); ^ interface.cpp:1258:5: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] "Shots fired %5d | %5d", P.shots, P.levelRecords[NUM_LEVELS].shots); ^ interface.cpp:1261:5: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] "Times hit %5d | %5d", P.hits, P.levelRecords[NUM_LEVELS].hits); ^ interface.cpp:1263:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, ""); ^ interface.cpp:1264:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] stats.addString(0, " press enter to continue"); ^ interface.cpp:1323:43: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, 37.0, 6.0, 4.8, "FINAL STATISTICS"); ^ interface.cpp:1329:44: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, -27, 4.0, 3.2, "Congratulations!"); ^ interface.cpp:1330:47: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, LAST_Y, 4.0, 3.2, "You've beaten the game amazingly quick."); ^ interface.cpp:1331:47: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, LAST_Y, 4.0, 3.2, "As a reward, you can now play ANY level with"); ^ interface.cpp:1332:47: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, LAST_Y, 4.0, 3.2, "your cyborg enhancements. Turn them on and off by"); ^ interface.cpp:1333:47: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, LAST_Y, 4.0, 3.2, "pressing X at the main menu. w00t!"); ^ interface.cpp:1347:48: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-98.0, SCREEN_TOP-3.0, 4.0, 3.2, "FPS %03d", timer.FPS()); ^ interface.cpp:1348:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-98.0, LAST_Y, 4.0, 3.2, "\x7FT %0.5f", timer.dT()); ^ interface.cpp:1349:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-98.0, LAST_Y, 4.0, 3.2, "POSITION %0.3f %0.3f", ^ interface.cpp:1351:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-98.0, LAST_Y, 4.0, 3.2, "VELOCITY %0.3f %0.3f", ^ interface.cpp:1353:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-98.0, LAST_Y, 4.0, 3.2, "SPEED %0.3f %0.3f", ^ interface.cpp:1355:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-98.0, LAST_Y, 4.0, 3.2, "HEADING %0.3f", ^ interface.cpp:1357:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-98.0, LAST_Y, 4.0, 3.2, "TURN VEL. %0.3f", ^ interface.cpp:1359:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-98.0, LAST_Y, 4.0, 3.2, "HEIGHT %0.3f", ^ interface.cpp:1361:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-98.0, LAST_Y, 4.0, 3.2, "VERT VEL. %0.3f", ^ interface.cpp:1363:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-98.0, LAST_Y, 4.0, 3.2, "EVENTS % .0f % .0f %d %d %d", ^ interface.cpp:1366:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-98.0, LAST_Y, 4.0, 3.2, "KEYS %d %d %d %d", currLevelObjs[obj]->Keys() & 1, ^ interface.cpp:1368:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-98.0, LAST_Y, 4.0, 3.2, "S.C. %lld", currLevelObjs[obj]->ShockCollisions()); ^ interface.cpp:1370:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-98.0, LAST_Y, 4.0, 3.2, "PARTICLES %d", liveParticles); ^ interface.cpp:1371:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-98.0, LAST_Y, 4.0, 3.2, "BULLETS %d", liveBullets); ^ interface.cpp:1372:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-98.0, LAST_Y, 4.0, 3.2, "FORCES %d", liveForces); ^ interface.cpp:1373:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(-98.0, LAST_Y, 4.0, 3.2, "CELL %d", currLevel.cellNumber(currLevelObjs[obj]->Pos())); ^ interface.cpp:1417:56: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.print(CENTERED, LAST_Y-2.0, 4.0, 3.2, 0.75, "PRESS ANY KEY TO EXIT"); ^ interface.cpp:1428:24: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] config.writeToFile(CONFIG_FILE); ^ ./sdb.h:81:21: note: expanded from macro 'CONFIG_FILE' #define CONFIG_FILE "preferences.txt" ^ interface.cpp:1440:83: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(currLevel.node[i].pos.c[X], currLevel.node[i].pos.c[Y], 1.0, 0.8, "%d", i); ^ interface.cpp:1516:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.addString(0, " OPTIONS"); ^ interface.cpp:1517:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.addString(0, ""); ^ interface.cpp:1518:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.addString(0, " %s %d x %d%s", options[0], ((currRes > -1) ? abs(resolutions[2*currRes]) : config.xres), ^ interface.cpp:1520:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.addString(0, " %s %d bits", options[1], (currDepth > -1) ? depths[currDepth] : config.depth); ^ interface.cpp:1521:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.addString(0, " %s %s", options[2], onOff[config.fullscreen]); ^ interface.cpp:1522:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.addString(0, " %s %s", options[3], onOff[config.blur]); ^ interface.cpp:1523:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.addString(0, " %s %s", options[4], onOff[config.sfx]); ^ interface.cpp:1524:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.addString(0, " %s %s", options[5], onOff[config.music]); ^ interface.cpp:1527:25: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.addString(0, " %s", options[i]); ^ interface.cpp:1529:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.addString(0, ""); ^ interface.cpp:1530:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.addString(0, "(sdb)"); ^ interface.cpp:1590:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.changeString(option, 0, " %s %d x %d%s", options[0], ((currRes > -1) ? abs(resolutions[2*currRes]) : config.xres), ^ interface.cpp:1596:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.changeString(option, 0, " %s %d bits", options[1], (currDepth > -1) ? depths[currDepth] : config.depth); ^ interface.cpp:1600:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.changeString(option, 0, " %s %s", options[2], onOff[config.fullscreen]); ^ interface.cpp:1604:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.changeString(option, 0, " %s %s", options[3], onOff[config.blur]); ^ interface.cpp:1608:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.changeString(option, 0, " %s %s", options[4], onOff[config.sfx]); ^ interface.cpp:1612:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window.changeString(option, 0, " %s %s", options[5], onOff[config.music]); ^ interface.cpp:1618:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window2.changeString(i+1, 0, " %s %12s", keyLabels[i], SDL_GetKeyName(config.keys[i])); ^ interface.cpp:1660:48: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window2.changeString(currKey+1, 0, " %s %12s", keyLabels[currKey], SDL_GetKeyName(config.keys[currKey])); ^ interface.cpp:1671:48: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window2.changeString(currKey+1, 0, " %s %12s", keyLabels[currKey], SDL_GetKeyName(config.keys[currKey])); ^ interface.cpp:1677:46: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window2.changeString(i+1, 0, " %s %12s", keyLabels[i], SDL_GetKeyName(config.keys[i])); ^ interface.cpp:1692:44: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window2.changeString(option2, 1, " %s new key?", keyLabels[currKey]); ^ interface.cpp:1698:42: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] window2.changeString(i+1, 0, " %s %12s", keyLabels[i], SDL_GetKeyName(config.keys[i])); ^ interface.cpp:1787:44: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, -42, 3.0, 2.6, "New display settings take effect on restart"); ^ interface.cpp:1793:44: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, -48, 3.0, 2.6, "You cannot erase progress while playing a game"); ^ interface.cpp:1798:44: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, -48, 3.0, 2.6, "That key is reserved"); ^ interface.cpp:2075:40: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, y, 6.0, 4.8, "%s", lines[0].c_str()); ^ interface.cpp:2078:47: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, LAST_Y, 4.0, 3.2, "%s", lines[i].c_str()); ^ interface.cpp:2081:55: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, -SCREEN_TOP+18.0, 4.0, 3.2, "THE END"); ^ interface.cpp:2082:45: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, LAST_Y, 4.0, 3.2, "COPYRIGHT 2005 GAME CREATION SOCIETY"); ^ interface.cpp:2083:45: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] font.printf(CENTERED, LAST_Y, 2.0, 1.6, "press enter"); ^ 245 warnings generated. c++ -c main.cpp -o main.o -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -std=c++14 In file included from main.cpp:26: ./sdb.h:376:70: warning: non-void function does not return a value [-Wreturn-type] Vector2D operator = (Vector2D v) { c[X] = v.c[X]; c[Y] = v.c[Y]; } ^ In file included from main.cpp:26: In file included from ./sdb.h:560: ./objects.h:548:28: warning: non-void function does not return a value [-Wreturn-type] virtual Weapon* Wpn() {} ^ ./objects.h:549:31: warning: non-void function does not return a value [-Wreturn-type] virtual int CurrWeapon() {} ^ ./objects.h:551:39: warning: non-void function does not return a value [-Wreturn-type] virtual char weaponState(int wp) {} ^ ./objects.h:552:36: warning: non-void function does not return a value [-Wreturn-type] virtual char keyState(int wp) {} ^ ./objects.h:553:38: warning: non-void function does not return a value [-Wreturn-type] virtual Vector2D* WeaponPoint() {} ^ ./objects.h:555:45: warning: operator '<<' has lower precedence than '-'; '-' will be evaluated first [-Wshift-op-parentheses] void giveKey(int key) { keys |= 1 << key-1; } ~~ ~~~^~ ./objects.h:555:45: note: place parentheses around the '-' expression to silence this warning void giveKey(int key) { keys |= 1 << key-1; } ^ ( ) main.cpp:50:23: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] config.loadFromFile(CONFIG_FILE); ^ ./sdb.h:81:21: note: expanded from macro 'CONFIG_FILE' #define CONFIG_FILE "preferences.txt" ^ main.cpp:118:22: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] config.writeToFile(CONFIG_FILE); ^ ./sdb.h:81:21: note: expanded from macro 'CONFIG_FILE' #define CONFIG_FILE "preferences.txt" ^ 9 warnings generated. c++ bitmapfont.o levelobjects.o level.o md2.o weapons.o objects.o enemies.o input.o player.o game.o interface.o main.o -o sdb -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -pthread -lSDL_image -lSDL_mixer -lGL -lGLU =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for sdb-1.0.2_17 ===> Generating temporary packing list install -s -m 555 /wrkdirs/usr/ports/games/sdb/work/sdb-1.0.2/src/sdb /wrkdirs/usr/ports/games/sdb/work/stage/usr/local/bin cd /wrkdirs/usr/ports/games/sdb/work/sdb-1.0.2 && /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 "levels models snd sprites" /wrkdirs/usr/ports/games/sdb/work/stage/usr/local/share/sdb install -m 0644 /wrkdirs/usr/ports/games/sdb/work/sdb-1.0.2/README /wrkdirs/usr/ports/games/sdb/work/stage/usr/local/share/doc/sdb ====> Compressing man pages (compress-man) =========================================================================== =================================================== ===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2024-04-07T06:49:34+0000' 'PKG_NOTE_ports_top_git_hash=c2c35d895e' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=bbab7f59e9' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.99.20240122_1' NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building packages for sdb-1.0.2_17 ===> Building sdb-1.0.2_17 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for sdb-1.0.2_17 build of games/sdb | sdb-1.0.2_17 ended at Sun Apr 7 07:51:45 BST 2024 build time: 00:02:13