=>> Building games/cube build started at Thu Apr 4 10:24:39 BST 2024 port directory: /usr/ports/games/cube package name: cube-2005.08.29_19 building for: FreeBSD pkg-builder.dan.net.uk 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 amd64 maintained by: ports@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 1583 Mar 8 2023 /usr/ports/games/cube/Makefile Ports top last git commit: c2c35d895e Ports top unclean checkout: yes Port dir last git commit: c014f9c79a Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.99.20240122_1 Host OSVERSION: 1400097 Jail OSVERSION: 1302001 Job Id: 13 ---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/13/.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 cube-2005.08.29_19: DOCS=on: Build and/or install documentation OPTIMIZED_CFLAGS=off: Use extra compiler optimizations ====> Clients and servers: you have to choose at least one of them CLIENT=on: Build client SERVER=on: Build dedicated server ===> Use 'make config' to modify these settings ---End OPTIONS List--- --MAINTAINER-- ports@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/cube/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/cube/work XDG_CACHE_HOME=/wrkdirs/usr/ports/games/cube/work/.cache HOME=/wrkdirs/usr/ports/games/cube/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/games/cube/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/games/cube/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/cube/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/games/cube/work XDG_CACHE_HOME=/wrkdirs/usr/ports/games/cube/work/.cache HOME=/wrkdirs/usr/ports/games/cube/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/games/cube/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/games/cube/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 -fsigned-char -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -lX11 -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 " 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="" CLIENT="" NO_CLIENT="@comment " DOCS="" NO_DOCS="@comment " OPTIMIZED_CFLAGS="@comment " NO_OPTIMIZED_CFLAGS="" SERVER="" NO_SERVER="@comment " OSREL=13.2 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/cube" EXAMPLESDIR="share/examples/cube" DATADIR="share/cube" WWWDIR="www/cube" ETCDIR="etc/cube" --End PLIST_SUB-- --SUB_LIST-- CLIENT="" NO_CLIENT="@comment " DOCS="" NO_DOCS="@comment " OPTIMIZED_CFLAGS="@comment " NO_OPTIMIZED_CFLAGS="" SERVER="" NO_SERVER="@comment " PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/cube DOCSDIR=/usr/local/share/doc/cube EXAMPLESDIR=/usr/local/share/examples/cube WWWDIR=/usr/local/www/cube ETCDIR=/usr/local/etc/cube --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 ===> NOTICE: The cube 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 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> cube-2005.08.29_19 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 ===> cube-2005.08.29_19 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of cube-2005.08.29_19 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The cube 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 ===> Fetching all distfiles required by cube-2005.08.29_19 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The cube 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 ===> Fetching all distfiles required by cube-2005.08.29_19 for building => SHA256 Checksum OK for cube_2005_08_29_unix.tar.gz. => SHA256 Checksum OK for cube_2005_08_29_src.zip. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The cube 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 ===> Fetching all distfiles required by cube-2005.08.29_19 for building ===> Extracting for cube-2005.08.29_19 => SHA256 Checksum OK for cube_2005_08_29_unix.tar.gz. => SHA256 Checksum OK for cube_2005_08_29_src.zip. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Patching for cube-2005.08.29_19 ===> Converting DOS text files to UNIX text files ===> Applying FreeBSD patches for cube-2005.08.29_19 from /usr/ports/games/cube/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> cube-2005.08.29_19 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 ===> cube-2005.08.29_19 depends on package: gmake>=4.4.1 - found ===> Returning to build of cube-2005.08.29_19 ===> cube-2005.08.29_19 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". ===> cube-2005.08.29_19 depends on file: /usr/local/bin/sdl-config - found ===> Returning to build of cube-2005.08.29_19 ===> cube-2005.08.29_19 depends on package: xorgproto>=0 - found ===> cube-2005.08.29_19 depends on package: xorgproto>=0 - found ===> cube-2005.08.29_19 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> cube-2005.08.29_19 depends on shared library: libenet.so - not found ===> Installing existing package /packages/All/enet-1.3.17,1.pkg [pkg-builder.dan.net.uk] Installing enet-1.3.17,1... [pkg-builder.dan.net.uk] Extracting enet-1.3.17,1: .......... done ===== Message from enet-1.3.17,1: -- ===> NOTICE: The enet 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 ===> cube-2005.08.29_19 depends on shared library: libenet.so - found (/usr/local/lib/libenet.so) ===> Returning to build of cube-2005.08.29_19 ===> cube-2005.08.29_19 depends on shared library: libGL.so - found (/usr/local/lib/libGL.so) ===> cube-2005.08.29_19 depends on shared library: libGLU.so - found (/usr/local/lib/libGLU.so) ===> cube-2005.08.29_19 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. ===> cube-2005.08.29_19 depends on shared library: libSDL_image.so - found (/usr/local/lib/libSDL_image.so) ===> Returning to build of cube-2005.08.29_19 ===> cube-2005.08.29_19 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 ===> cube-2005.08.29_19 depends on shared library: libSDL_mixer.so - found (/usr/local/lib/libSDL_mixer.so) ===> Returning to build of cube-2005.08.29_19 ===> cube-2005.08.29_19 depends on shared library: libSDL.so - found (/usr/local/lib/libSDL.so) =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for cube-2005.08.29_19 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for cube-2005.08.29_19 c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o client.o client.cpp In file included from client.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from client.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ client.cpp:28:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARF(rate, 0, 0, 25000, if(clienthost && (!rate || rate>1000)) enet_host_bandwidth_limit (clienthost, rate, rate)); ^ ./cube.h:257:88: note: expanded from macro 'VARF' #define VARF(name, min, cur, max, body) void var_##name(); static int name = variable(#name, min, cur, max, &name, var_##name, false); void var_##name() { body; } ^ :271:1: note: expanded from here "rate" ^ client.cpp:32:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARF(throttle_interval, 0, 5, 30, throttle()); ^ ./cube.h:257:88: note: expanded from macro 'VARF' #define VARF(name, min, cur, max, body) void var_##name(); static int name = variable(#name, min, cur, max, &name, var_##name, false); void var_##name() { body; } ^ :275:1: note: expanded from here "throttle_interval" ^ client.cpp:33:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARF(throttle_accel, 0, 2, 32, throttle()); ^ ./cube.h:257:88: note: expanded from macro 'VARF' #define VARF(name, min, cur, max, body) void var_##name(); static int name = variable(#name, min, cur, max, &name, var_##name, false); void var_##name() { body; } ^ :279:1: note: expanded from here "throttle_accel" ^ client.cpp:34:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARF(throttle_decel, 0, 2, 32, throttle()); ^ ./cube.h:257:88: note: expanded from macro 'VARF' #define VARF(name, min, cur, max, body) void var_##name(); static int name = variable(#name, min, cur, max, &name, var_##name, false); void var_##name() { body; } ^ :283:1: note: expanded from here "throttle_decel" ^ client.cpp:46:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(team, newteam, ARG_1STR); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :290:1: note: expanded from here "team" ^ client.cpp:47:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(name, newname, ARG_1STR); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :292:1: note: expanded from here "name" ^ client.cpp:143:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(echo, ARG_VARI); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :294:1: note: expanded from here "echo" ^ client.cpp:144:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(say, toserver, ARG_VARI); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :296:1: note: expanded from here "say" ^ client.cpp:145:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(connect, connects, ARG_1STR); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :298:1: note: expanded from here "connect" ^ client.cpp:146:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(disconnect, trydisconnect, ARG_NONE); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :300:1: note: expanded from here "disconnect" ^ client.cpp:179:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(password, ARG_1STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :302:1: note: expanded from here "password" ^ client.cpp:188:13: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] newname("unnamed"); ^ client.cpp:189:13: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] newteam("red"); ^ 15 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o clientextras.o clientextras.cpp In file included from clientextras.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from clientextras.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ clientextras.cpp:47:128: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] loopv(players) if((d = players[i]) && (!demoplayback || i!=democlientnum)) renderclient(d, isteam(player1->team, d->team), "monster/ogro", false, 1.0f); ^ clientextras.cpp:104:44: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] menumanual(0, scorelines.length(), ""); ^ clientextras.cpp:155:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(sendmap, ARG_1STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :271:1: note: expanded from here "sendmap" ^ clientextras.cpp:156:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(getmap, ARG_NONE); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :273:1: note: expanded from here "getmap" ^ 6 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o clientgame.o clientgame.cpp In file included from clientgame.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from clientgame.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ clientgame.cpp:6:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VAR(gamemode, 1, 0, 0); ^ ./cube.h:256:55: note: expanded from macro 'VAR' #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ :271:1: note: expanded from here "gamemode" ^ clientgame.cpp:9:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(mode, ARG_1INT); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :272:1: note: expanded from here "mode" ^ clientgame.cpp:16:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARP(sensitivity, 0, 10, 10000); ^ ./cube.h:255:55: note: expanded from macro 'VARP' #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ :274:1: note: expanded from here "sensitivity" ^ clientgame.cpp:17:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARP(sensitivityscale, 1, 1, 10000); ^ ./cube.h:255:55: note: expanded from macro 'VARP' #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ :275:1: note: expanded from here "sensitivityscale" ^ clientgame.cpp:18:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARP(invmouse, 0, 0, 1); ^ ./cube.h:255:55: note: expanded from macro 'VARP' #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ :276:1: note: expanded from here "invmouse" ^ clientgame.cpp:215:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(sleep, sleepf, ARG_2STR); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :277:1: note: expanded from here "sleep" ^ clientgame.cpp:312:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if(player1->attacking = on) respawn(); ~~~~~~~~~~~~~~~~~~~^~~~ clientgame.cpp:312:32: note: place parentheses around the assignment to silence this warning else if(player1->attacking = on) respawn(); ^ ( ) clientgame.cpp:312:32: note: use '==' to turn this assignment into an equality comparison else if(player1->attacking = on) respawn(); ^ == clientgame.cpp:317:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(backward, ARG_DOWN); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :279:1: note: expanded from here "backward" ^ clientgame.cpp:318:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(forward, ARG_DOWN); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :281:1: note: expanded from here "forward" ^ clientgame.cpp:319:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(left, ARG_DOWN); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :283:1: note: expanded from here "left" ^ clientgame.cpp:320:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(right, ARG_DOWN); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :285:1: note: expanded from here "right" ^ clientgame.cpp:321:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(jump, jumpn, ARG_DOWN); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :287:1: note: expanded from here "jump" ^ clientgame.cpp:322:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(attack, ARG_DOWN); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :289:1: note: expanded from here "attack" ^ clientgame.cpp:323:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(showscores, ARG_DOWN); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :291:1: note: expanded from here "showscores" ^ clientgame.cpp:420:16: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] neterr("clientnum"); ^ clientgame.cpp:446:12: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] setvar("gamespeed", 100); ^ clientgame.cpp:447:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] setvar("fog", 180); ^ clientgame.cpp:448:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] setvar("fogcolour", 0x8099B3); ^ clientgame.cpp:455:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(map, changemap, ARG_1STR); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :293:1: note: expanded from here "map" ^ 21 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o clients2c.o clients2c.cpp In file included from clients2c.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from clients2c.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ clients2c.cpp:54:57: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(ENET_NET_TO_HOST_16(*(ushort *)buf)!=len) neterr("packet length"); ^ clients2c.cpp:352:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] neterr("type"); ^ 4 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o command.o command.cpp In file included from command.cpp:4: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from command.cpp:4: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ command.cpp:41:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(alias, ARG_2STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :271:1: note: expanded from here "alias" ^ command.cpp:136:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] w[i] = ""; ^ command.cpp:139:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(!s) { numargs = i; s = ""; }; ^ command.cpp:161:93: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] case ARG_1INT: if(isdown) ((void (__cdecl *)(int))id->fun)(ATOI(w[1])); break; ^ command.cpp:156:9: note: previous statement is here else switch(id->type) ^ command.cpp:303:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(writecfg, ARG_NONE); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :273:1: note: expanded from here "writecfg" ^ command.cpp:311:78: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] void loopa(char *times, char *body) { int t = atoi(times); loopi(t) { intset("i", i); execute(body); }; }; ^ command.cpp:315:30: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] void concat(char *s) { alias("s", s); }; ^ command.cpp:319:33: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(char *a = s, *b = s; *a = *b; b++) if(*a!=' ') a++; ~~~^~~~ command.cpp:319:33: note: place parentheses around the assignment to silence this warning for(char *a = s, *b = s; *a = *b; b++) if(*a!=' ') a++; ^ ( ) command.cpp:319:33: note: use '==' to turn this assignment into an equality comparison for(char *a = s, *b = s; *a = *b; b++) if(*a!=' ') a++; ^ == command.cpp:334:28: warning: unsequenced modification and access to 's' [-Wunsequenced] loopi(n) s += strspn(s += strcspn(s, " \0"), " "); ~~ ^ command.cpp:339:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(loop, loopa, ARG_2STR); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :275:1: note: expanded from here "loop" ^ command.cpp:340:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(while, whilea, ARG_2STR); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :277:1: note: expanded from here "while" ^ command.cpp:341:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(if, ifthen, ARG_3STR); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :279:1: note: expanded from here "if" ^ command.cpp:342:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(onrelease, ARG_DWN1); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :281:1: note: expanded from here "onrelease" ^ command.cpp:343:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(exec, ARG_1STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :283:1: note: expanded from here "exec" ^ command.cpp:344:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(concat, ARG_VARI); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :285:1: note: expanded from here "concat" ^ command.cpp:345:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(concatword, ARG_VARI); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :287:1: note: expanded from here "concatword" ^ command.cpp:346:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(at, ARG_2STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :289:1: note: expanded from here "at" ^ command.cpp:347:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(listlen, ARG_1EST); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :291:1: note: expanded from here "listlen" ^ command.cpp:349:50: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] int add(int a, int b) { return a+b; }; COMMANDN(+, add, ARG_2EXP); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :293:1: note: expanded from here "+" ^ command.cpp:350:50: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] int mul(int a, int b) { return a*b; }; COMMANDN(*, mul, ARG_2EXP); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :295:1: note: expanded from here "*" ^ command.cpp:351:50: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] int sub(int a, int b) { return a-b; }; COMMANDN(-, sub, ARG_2EXP); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :297:1: note: expanded from here "-" ^ command.cpp:352:50: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] int divi(int a, int b) { return b ? a/b : 0; }; COMMANDN(div, divi, ARG_2EXP); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :299:1: note: expanded from here "div" ^ command.cpp:353:50: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] int mod(int a, int b) { return b ? a%b : 0; }; COMMAND(mod, ARG_2EXP); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :301:1: note: expanded from here "mod" ^ command.cpp:354:50: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] int equal(int a, int b) { return (int)(a==b); }; COMMANDN(=, equal, ARG_2EXP); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :303:1: note: expanded from here "=" ^ command.cpp:355:50: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] int lt(int a, int b) { return (int)(a:305:1: note: expanded from here "<" ^ command.cpp:356:50: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] int gt(int a, int b) { return (int)(a>b); }; COMMANDN(>, gt, ARG_2EXP); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :307:1: note: expanded from here ">" ^ command.cpp:358:60: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] int strcmpa(char *a, char *b) { return strcmp(a,b)==0; }; COMMANDN(strcmp, strcmpa, ARG_2EST); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :309:1: note: expanded from here "strcmp" ^ command.cpp:360:51: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] int rndn(int a) { return a>0 ? rnd(a) : 0; }; COMMANDN(rnd, rndn, ARG_1EXP); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :311:1: note: expanded from here "rnd" ^ command.cpp:362:46: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] int explastmillis() { return lastmillis; }; COMMANDN(millis, explastmillis, ARG_1EXP); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :313:1: note: expanded from here "millis" ^ In file included from command.cpp:4: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ command.cpp:27:24: note: in instantiation of member function 'hashtable::access' requested here ident *b = idents->access(name); ^ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == 32 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o console.o console.cpp In file included from console.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from console.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ console.cpp:22:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(conskip, setconskip, ARG_1INT); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :271:1: note: expanded from here "conskip" ^ console.cpp:27:74: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] cl.cref = conlines.length()>100 ? conlines.pop().cref : newstringbuf(""); // constrain the buffer size ^ console.cpp:88:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(keymap, ARG_3STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :273:1: note: expanded from here "keymap" ^ console.cpp:101:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(bind, bindkey, ARG_2STR); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :275:1: note: expanded from here "bind" ^ console.cpp:107:22: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(!init) init = ""; ^ console.cpp:113:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(saycommand, ARG_VARI); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :277:1: note: expanded from here "saycommand" ^ console.cpp:114:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(mapmsg, ARG_1STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :279:1: note: expanded from here "mapmsg" ^ console.cpp:168:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(history, ARG_1INT); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :291:1: note: expanded from here "history" ^ 10 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o editing.o editing.cpp In file included from editing.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from editing.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ editing.cpp:12:14: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] variable("selx", 0, 0, 4096, &sel.x, NULL, false), ^ editing.cpp:13:14: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] variable("sely", 0, 0, 4096, &sel.y, NULL, false), ^ editing.cpp:14:14: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] variable("selxs", 0, 0, 4096, &sel.xs, NULL, false), ^ editing.cpp:15:14: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] variable("selys", 0, 0, 4096, &sel.ys, NULL, false), ^ editing.cpp:33:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VAR(editing,0,0,1); ^ ./cube.h:256:55: note: expanded from macro 'VAR' #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ :271:1: note: expanded from here "editing" ^ editing.cpp:56:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(edittoggle, toggleedit, ARG_NONE); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :272:1: note: expanded from here "edittoggle" ^ editing.cpp:101:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VAR(flrceil,0,0,2); ^ ./cube.h:256:55: note: expanded from macro 'VAR' #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ :274:1: note: expanded from here "flrceil" ^ editing.cpp:185:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARP(undomegs, 0, 1, 10); // bounded by n megs ^ ./cube.h:255:55: note: expanded from macro 'VARP' #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ :275:1: note: expanded from here "undomegs" ^ editing.cpp:253:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(dragging = isdown) ~~~~~~~~~^~~~~~~~ editing.cpp:253:17: note: place parentheses around the assignment to silence this warning if(dragging = isdown) ^ ( ) editing.cpp:253:17: note: use '==' to turn this assignment into an equality comparison if(dragging = isdown) ^ == editing.cpp:290:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(editheight, ARG_2INT); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :276:1: note: expanded from here "editheight" ^ editing.cpp:343:65: warning: '&&' within '||' [-Wlogical-op-parentheses] if(type==CORNER && (sel.xs!=sel.ys || sel.xs==3 || sel.xs>4 && sel.xs!=8 ~~ ~~~~~~~~~^~~~~~~~~~~~ editing.cpp:343:65: note: place parentheses around the '&&' expression to silence this warning if(type==CORNER && (sel.xs!=sel.ys || sel.xs==3 || sel.xs>4 && sel.xs!=8 ^ ( ) editing.cpp:354:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(heightfield, ARG_1INT); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :278:1: note: expanded from here "heightfield" ^ editing.cpp:355:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(solid, ARG_1INT); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :280:1: note: expanded from here "solid" ^ editing.cpp:356:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(corner, ARG_NONE); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :282:1: note: expanded from here "corner" ^ editing.cpp:381:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(equalize, ARG_1INT); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :284:1: note: expanded from here "equalize" ^ editing.cpp:453:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARF(fullbright, 0, 0, 1, ^ ./cube.h:257:88: note: expanded from macro 'VARF' #define VARF(name, min, cur, max, body) void var_##name(); static int name = variable(#name, min, cur, max, &name, var_##name, false); void var_##name() { body; } ^ :286:1: note: expanded from here "fullbright" ^ editing.cpp:473:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(select, selectpos, ARG_4INT); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :290:1: note: expanded from here "select" ^ editing.cpp:474:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(edittag, ARG_1INT); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :292:1: note: expanded from here "edittag" ^ editing.cpp:475:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(replace, ARG_NONE); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :294:1: note: expanded from here "replace" ^ editing.cpp:476:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(archvertex, ARG_3INT); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :296:1: note: expanded from here "archvertex" ^ editing.cpp:477:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(arch, ARG_2INT); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :298:1: note: expanded from here "arch" ^ editing.cpp:478:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(slope, ARG_2INT); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :300:1: note: expanded from here "slope" ^ editing.cpp:479:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(vdelta, setvdelta, ARG_1INT); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :302:1: note: expanded from here "vdelta" ^ editing.cpp:480:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(undo, editundo, ARG_NONE); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :304:1: note: expanded from here "undo" ^ editing.cpp:481:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(copy, ARG_NONE); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :306:1: note: expanded from here "copy" ^ editing.cpp:482:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(paste, ARG_NONE); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :308:1: note: expanded from here "paste" ^ editing.cpp:483:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(edittex, ARG_2INT); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :310:1: note: expanded from here "edittex" ^ editing.cpp:484:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(newent, ARG_5STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :312:1: note: expanded from here "newent" ^ editing.cpp:485:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(perlin, ARG_3INT); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :314:1: note: expanded from here "perlin" ^ 31 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o entities.o entities.cpp In file included from entities.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from entities.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ entities.cpp:9:2: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "shells", "bullets", "rockets", "rrounds", "health", "boost", ^ entities.cpp:9:12: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "shells", "bullets", "rockets", "rrounds", "health", "boost", ^ entities.cpp:9:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "shells", "bullets", "rockets", "rrounds", "health", "boost", ^ entities.cpp:9:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "shells", "bullets", "rockets", "rrounds", "health", "boost", ^ entities.cpp:9:45: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "shells", "bullets", "rockets", "rrounds", "health", "boost", ^ entities.cpp:9:55: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "shells", "bullets", "rockets", "rrounds", "health", "boost", ^ entities.cpp:10:2: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "g_armour", "y_armour", "quad", "teleporter", ^ entities.cpp:10:14: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "g_armour", "y_armour", "quad", "teleporter", ^ entities.cpp:10:26: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "g_armour", "y_armour", "quad", "teleporter", ^ entities.cpp:10:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "g_armour", "y_armour", "quad", "teleporter", ^ entities.cpp:50:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] renderent(e, "carrot", (float)(1+sin(lastmillis/100.0+e.x+e.y)/20), lastmillis/(e.attr2 ? 1.0f : 10.0f)); ^ entities.cpp:53:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] case 4: renderent(e, "switch2", 3, (float)e.attr3*90, (!e.spawned && !triggertime) ? 1 : 0, (e.spawned || !triggertime) ? 1 : 2, triggertime, 1050.0f); break; ^ entities.cpp:54:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] case 5: renderent(e, "switch1", -0.15f, (float)e.attr3*90, (!e.spawned && !triggertime) ? 30 : 0, (e.spawned || !triggertime) ? 1 : 30, triggertime, 35.0f); break; ^ entities.cpp:62:6: warning: suggest braces around initialization of subobject [-Wmissing-braces] 10, 50, S_ITEMAMMO, ^~~~~~~~~~~~~~~~~~~~~ { } entities.cpp:63:6: warning: suggest braces around initialization of subobject [-Wmissing-braces] 20, 100, S_ITEMAMMO, ^~~~~~~~~~~~~~~~~~~~~ { } entities.cpp:64:7: warning: suggest braces around initialization of subobject [-Wmissing-braces] 5, 25, S_ITEMAMMO, ^~~~~~~~~~~~~~~~~~~~ { } entities.cpp:65:7: warning: suggest braces around initialization of subobject [-Wmissing-braces] 5, 25, S_ITEMAMMO, ^~~~~~~~~~~~~~~~~~~~ { } entities.cpp:66:6: warning: suggest braces around initialization of subobject [-Wmissing-braces] 25, 100, S_ITEMHEALTH, ^~~~~~~~~~~~~~~~~~~~~~~ { } entities.cpp:67:6: warning: suggest braces around initialization of subobject [-Wmissing-braces] 50, 200, S_ITEMHEALTH, ^~~~~~~~~~~~~~~~~~~~~~~ { } entities.cpp:68:5: warning: suggest braces around initialization of subobject [-Wmissing-braces] 100, 100, S_ITEMARMOUR, ^~~~~~~~~~~~~~~~~~~~~~~~ { } entities.cpp:69:5: warning: suggest braces around initialization of subobject [-Wmissing-braces] 150, 150, S_ITEMARMOUR, ^~~~~~~~~~~~~~~~~~~~~~~~ { } entities.cpp:70:3: warning: suggest braces around initialization of subobject [-Wmissing-braces] 20000, 30000, S_ITEMPUP, ^~~~~~~~~~~~~~~~~~~~~~~ { } 24 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o main.o main.cpp In file included from main.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from main.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ main.cpp:19:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(msg); ^~~ main.cpp:19:16: note: treat the string as an argument to avoid this printf(msg); ^ "%s", main.cpp:41:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(!b) fatal("out of memory!"); ^ main.cpp:53:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(image = SDL_CreateRGBSurface(SDL_SWSURFACE, scr_w, scr_h, 24, 0x0000FF, 0x00FF00, 0xFF0000, 0)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:53:14: note: place parentheses around the assignment to silence this warning if(image = SDL_CreateRGBSurface(SDL_SWSURFACE, scr_w, scr_h, 24, 0x0000FF, 0x00FF00, 0xFF0000, 0)) ^ ( ) main.cpp:53:14: note: use '==' to turn this assignment into an equality comparison if(image = SDL_CreateRGBSurface(SDL_SWSURFACE, scr_w, scr_h, 24, 0x0000FF, 0x00FF00, 0xFF0000, 0)) ^ == main.cpp:55:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(temp = SDL_CreateRGBSurface(SDL_SWSURFACE, scr_w, scr_h, 24, 0x0000FF, 0x00FF00, 0xFF0000, 0)) ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:55:18: note: place parentheses around the assignment to silence this warning if(temp = SDL_CreateRGBSurface(SDL_SWSURFACE, scr_w, scr_h, 24, 0x0000FF, 0x00FF00, 0xFF0000, 0)) ^ ( ) main.cpp:55:18: note: use '==' to turn this assignment into an equality comparison if(temp = SDL_CreateRGBSurface(SDL_SWSURFACE, scr_w, scr_h, 24, 0x0000FF, 0x00FF00, 0xFF0000, 0)) ^ == main.cpp:72:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(screenshot, ARG_NONE); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :271:1: note: expanded from here "screenshot" ^ main.cpp:73:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(quit, ARG_NONE); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :273:1: note: expanded from here "quit" ^ main.cpp:81:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARF(gamespeed, 10, 100, 1000, if(multiplayer()) gamespeed = 100); ^ ./cube.h:257:88: note: expanded from macro 'VARF' #define VARF(name, min, cur, max, body) void var_##name(); static int name = variable(#name, min, cur, max, &name, var_##name, false); void var_##name() { body; } ^ :275:1: note: expanded from here "gamespeed" ^ main.cpp:82:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARP(minmillis, 0, 5, 1000); ^ ./cube.h:255:55: note: expanded from macro 'VARP' #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ :279:1: note: expanded from here "minmillis" ^ main.cpp:91:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; ^ main.cpp:91:29: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; ^ main.cpp:91:59: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; ^ main.cpp:122:61: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(SDL_Init(SDL_INIT_TIMER|SDL_INIT_VIDEO|par)<0) fatal("Unable to initialize SDL"); ^ main.cpp:125:35: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(enet_initialize()<0) fatal("Unable to initialise network module"); ^ main.cpp:134:51: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(SDL_InitSubSystem(SDL_INIT_VIDEO)<0) fatal("Unable to initialize SDL Video"); ^ main.cpp:138:70: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(SDL_SetVideoMode(scr_w, scr_h, 0, SDL_OPENGL|fs)==NULL) fatal("Unable to create OpenGL screen"); ^ main.cpp:151:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(!installtex(2, path(newstring("data/newchars.png")), xs, ys) || ^ main.cpp:152:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] !installtex(3, path(newstring("data/martin/base.png")), xs, ys) || ^ main.cpp:153:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] !installtex(6, path(newstring("data/martin/ball1.png")), xs, ys) || ^ main.cpp:154:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] !installtex(7, path(newstring("data/martin/smoke.png")), xs, ys) || ^ main.cpp:155:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] !installtex(8, path(newstring("data/martin/ball2.png")), xs, ys) || ^ main.cpp:156:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] !installtex(9, path(newstring("data/martin/ball3.png")), xs, ys) || ^ main.cpp:157:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] !installtex(4, path(newstring("data/explosion.jpg")), xs, ys) || ^ main.cpp:158:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] !installtex(5, path(newstring("data/items.png")), xs, ys) || ^ main.cpp:159:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] !installtex(1, path(newstring("data/crosshair.png")), xs, ys)) fatal("could not find core textures (hint: run cube from the parent of the bin directory)"); ^ main.cpp:159:78: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] !installtex(1, path(newstring("data/crosshair.png")), xs, ys)) fatal("could not find core textures (hint: run cube from the parent of the bin directory)"); ^ main.cpp:165:13: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] newmenu("frags\tpj\tping\tteam\tname"); ^ main.cpp:166:13: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] newmenu("ping\tplr\tserver"); ^ main.cpp:167:10: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] exec("data/keymap.cfg"); ^ main.cpp:168:10: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] exec("data/menus.cfg"); ^ main.cpp:169:10: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] exec("data/prefabs.cfg"); ^ main.cpp:170:10: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] exec("data/sounds.cfg"); ^ main.cpp:171:10: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] exec("servers.cfg"); ^ main.cpp:172:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(!execfile("config.cfg")) execfile("data/defaults.cfg"); ^ main.cpp:172:42: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(!execfile("config.cfg")) execfile("data/defaults.cfg"); ^ main.cpp:173:10: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] exec("autoexec.cfg"); ^ main.cpp:177:15: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] changemap("metl3"); // if this map is changed, also change depthcorrect() ^ 38 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o menus.o menus.cpp In file included from menus.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from menus.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ menus.cpp:99:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] mitem.action = ""; ^ menus.cpp:110:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(menuitem, ARG_2STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :271:1: note: expanded from here "menuitem" ^ menus.cpp:111:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(showmenu, ARG_1STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :273:1: note: expanded from here "showmenu" ^ menus.cpp:112:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(newmenu, ARG_1STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :275:1: note: expanded from here "newmenu" ^ 6 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o monster.o monster.cpp In file included from monster.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from monster.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ monster.cpp:8:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARF(skill, 1, 3, 10, conoutf("skill is now %d", skill)); ^ ./cube.h:257:88: note: expanded from macro 'VARF' #define VARF(name, min, cur, max, body) void var_##name(); static int name = variable(#name, min, cur, max, &name, var_##name, false); void var_##name() { body; } ^ :271:1: note: expanded from here "skill" ^ monster.cpp:25:79: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { GUN_FIREBALL, 15, 100, 3, 0, 100, 800, 1, 10, 10, S_PAINO, S_DIE1, "an ogre", "monster/ogro" }, ^ monster.cpp:25:94: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { GUN_FIREBALL, 15, 100, 3, 0, 100, 800, 1, 10, 10, S_PAINO, S_DIE1, "an ogre", "monster/ogro" }, ^ monster.cpp:26:79: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { GUN_CG, 18, 70, 2, 70, 10, 400, 2, 8, 9, S_PAINR, S_DEATHR, "a rhino", "monster/rhino" }, ^ monster.cpp:26:94: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { GUN_CG, 18, 70, 2, 70, 10, 400, 2, 8, 9, S_PAINR, S_DEATHR, "a rhino", "monster/rhino" }, ^ monster.cpp:27:79: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { GUN_SG, 14, 120, 1, 100, 300, 400, 4, 14, 14, S_PAINE, S_DEATHE, "ratamahatta", "monster/rat" }, ^ monster.cpp:27:94: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { GUN_SG, 14, 120, 1, 100, 300, 400, 4, 14, 14, S_PAINE, S_DEATHE, "ratamahatta", "monster/rat" }, ^ monster.cpp:28:79: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { GUN_RIFLE, 15, 200, 1, 80, 300, 300, 4, 18, 18, S_PAINS, S_DEATHS, "a slith", "monster/slith" }, ^ monster.cpp:28:94: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { GUN_RIFLE, 15, 200, 1, 80, 300, 300, 4, 18, 18, S_PAINS, S_DEATHS, "a slith", "monster/slith" }, ^ monster.cpp:29:79: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { GUN_RL, 13, 500, 1, 0, 100, 200, 6, 24, 24, S_PAINB, S_DEATHB, "bauul", "monster/bauul" }, ^ monster.cpp:29:94: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { GUN_RL, 13, 500, 1, 0, 100, 200, 6, 24, 24, S_PAINB, S_DEATHB, "bauul", "monster/bauul" }, ^ monster.cpp:30:79: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { GUN_BITE, 22, 50, 3, 0, 100, 400, 1, 12, 15, S_PAINP, S_PIGGR2, "a hellpig", "monster/hellpig" }, ^ monster.cpp:30:94: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { GUN_BITE, 22, 50, 3, 0, 100, 400, 1, 12, 15, S_PAINP, S_PIGGR2, "a hellpig", "monster/hellpig" }, ^ monster.cpp:31:79: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { GUN_ICEBALL, 12, 250, 1, 0, 10, 400, 6, 18, 18, S_PAINH, S_DEATHH, "a knight", "monster/knight" }, ^ monster.cpp:31:94: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { GUN_ICEBALL, 12, 250, 1, 0, 10, 400, 6, 18, 18, S_PAINH, S_DEATHH, "a knight", "monster/knight" }, ^ monster.cpp:32:79: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { GUN_SLIMEBALL, 15, 100, 1, 0, 200, 400, 2, 13, 10, S_PAIND, S_DEATHD, "a goblin", "monster/goblin" }, ^ monster.cpp:32:94: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { GUN_SLIMEBALL, 15, 100, 1, 0, 200, 400, 2, 13, 10, S_PAIND, S_DEATHD, "a goblin", "monster/goblin" }, ^ 19 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o physics.o physics.cpp In file included from physics.cpp:6: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from physics.cpp:6: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ physics.cpp:92:78: warning: '&&' within '||' [-Wlogical-op-parentheses] if(x==x1 && y==y1 && cornertest(0, x, y, -1, -1, bx, by, bs) && fx1-bx+fy1-by<=bs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ physics.cpp:92:78: note: place parentheses around the '&&' expression to silence this warning if(x==x1 && y==y1 && cornertest(0, x, y, -1, -1, bx, by, bs) && fx1-bx+fy1-by<=bs ^ ( ) physics.cpp:93:78: warning: '&&' within '||' [-Wlogical-op-parentheses] || x==x2 && y==y1 && cornertest(0, x, y, 1, -1, bx, by, bs) && fx2-bx>=fy1-by ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ physics.cpp:93:78: note: place parentheses around the '&&' expression to silence this warning || x==x2 && y==y1 && cornertest(0, x, y, 1, -1, bx, by, bs) && fx2-bx>=fy1-by ^ ( ) physics.cpp:94:78: warning: '&&' within '||' [-Wlogical-op-parentheses] || x==x1 && y==y2 && cornertest(0, x, y, -1, 1, bx, by, bs) && fx1-bx<=fy2-by ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ physics.cpp:94:78: note: place parentheses around the '&&' expression to silence this warning || x==x1 && y==y2 && cornertest(0, x, y, -1, 1, bx, by, bs) && fx1-bx<=fy2-by ^ ( ) physics.cpp:95:78: warning: '&&' within '||' [-Wlogical-op-parentheses] || x==x2 && y==y2 && cornertest(0, x, y, 1, 1, bx, by, bs) && fx2-bx+fy2-by>=bs) ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ physics.cpp:95:78: note: place parentheses around the '&&' expression to silence this warning || x==x2 && y==y2 && cornertest(0, x, y, 1, 1, bx, by, bs) && fx2-bx+fy2-by>=bs) ^ ( ) physics.cpp:165:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARP(maxroll, 0, 3, 20); ^ ./cube.h:255:55: note: expanded from macro 'VARP' #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ :271:1: note: expanded from here "maxroll" ^ 7 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o rendercubes.o rendercubes.cpp In file included from rendercubes.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from rendercubes.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ rendercubes.cpp:20:22: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(!verts) fatal("no vertex memory!"); ^ rendercubes.cpp:48:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(showmip, ARG_NONE); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :271:1: note: expanded from here "showmip" ^ rendercubes.cpp:54:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VAR(lighterror,1,8,100); ^ ./cube.h:256:55: note: expanded from macro 'VAR' #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ :273:1: note: expanded from here "lighterror" ^ rendercubes.cpp:266:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VAR(watersubdiv, 1, 4, 64); ^ ./cube.h:256:55: note: expanded from macro 'VAR' #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ :274:1: note: expanded from here "watersubdiv" ^ rendercubes.cpp:267:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARF(waterlevel, -128, -128, 127, if(!noteditmode()) hdr.waterlevel = waterlevel); ^ ./cube.h:257:88: note: expanded from macro 'VARF' #define VARF(name, min, cur, max, body) void var_##name(); static int name = variable(#name, min, cur, max, &name, var_##name, false); void var_##name() { body; } ^ :275:1: note: expanded from here "waterlevel" ^ 7 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o renderextras.o renderextras.cpp In file included from renderextras.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from renderextras.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ renderextras.cpp:110:37: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(sphere *p, **pp = &slist; p = *pp;) ~~^~~~~ renderextras.cpp:110:37: note: place parentheses around the assignment to silence this warning for(sphere *p, **pp = &slist; p = *pp;) ^ ( ) renderextras.cpp:110:37: note: use '==' to turn this assignment into an equality comparison for(sphere *p, **pp = &slist; p = *pp;) ^ == renderextras.cpp:144:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "none?", "light", "playerstart", ^ renderextras.cpp:144:14: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "none?", "light", "playerstart", ^ renderextras.cpp:144:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "none?", "light", "playerstart", ^ renderextras.cpp:145:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "shells", "bullets", "rockets", "riflerounds", ^ renderextras.cpp:145:15: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "shells", "bullets", "rockets", "riflerounds", ^ renderextras.cpp:145:26: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "shells", "bullets", "rockets", "riflerounds", ^ renderextras.cpp:145:37: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "shells", "bullets", "rockets", "riflerounds", ^ renderextras.cpp:146:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "health", "healthboost", "greenarmour", "yellowarmour", "quaddamage", ^ renderextras.cpp:146:15: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "health", "healthboost", "greenarmour", "yellowarmour", "quaddamage", ^ renderextras.cpp:146:30: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "health", "healthboost", "greenarmour", "yellowarmour", "quaddamage", ^ renderextras.cpp:146:45: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "health", "healthboost", "greenarmour", "yellowarmour", "quaddamage", ^ renderextras.cpp:146:61: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "health", "healthboost", "greenarmour", "yellowarmour", "quaddamage", ^ renderextras.cpp:147:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "teleport", "teledest", ^ renderextras.cpp:147:17: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "teleport", "teledest", ^ renderextras.cpp:148:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "mapmodel", "monster", "trigger", "jumppad", ^ renderextras.cpp:148:17: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "mapmodel", "monster", "trigger", "jumppad", ^ renderextras.cpp:148:28: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "mapmodel", "monster", "trigger", "jumppad", ^ renderextras.cpp:148:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "mapmodel", "monster", "trigger", "jumppad", ^ renderextras.cpp:149:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "?", "?", "?", "?", "?", ^ renderextras.cpp:149:10: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "?", "?", "?", "?", "?", ^ renderextras.cpp:149:15: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "?", "?", "?", "?", "?", ^ renderextras.cpp:149:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "?", "?", "?", "?", "?", ^ renderextras.cpp:149:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "?", "?", "?", "?", "?", ^ renderextras.cpp:167:152: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] sprintf_s(closeent)("closest entity = %s (%d, %d, %d, %d), selection = (%d, %d)", entnames[c.type], c.attr1, c.attr2, c.attr3, c.attr4, getvar("selxs"), getvar("selys")); ^ renderextras.cpp:167:169: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] sprintf_s(closeent)("closest entity = %s (%d, %d, %d, %d), selection = (%d, %d)", entnames[c.type], c.attr1, c.attr2, c.attr3, c.attr4, getvar("selxs"), getvar("selys")); ^ renderextras.cpp:175:22: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *side[] = { "ft", "bk", "lf", "rt", "dn", "up" }; ^ renderextras.cpp:175:28: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *side[] = { "ft", "bk", "lf", "rt", "dn", "up" }; ^ renderextras.cpp:175:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *side[] = { "ft", "bk", "lf", "rt", "dn", "up" }; ^ renderextras.cpp:175:40: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *side[] = { "ft", "bk", "lf", "rt", "dn", "up" }; ^ renderextras.cpp:175:46: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *side[] = { "ft", "bk", "lf", "rt", "dn", "up" }; ^ renderextras.cpp:175:52: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *side[] = { "ft", "bk", "lf", "rt", "dn", "up" }; ^ renderextras.cpp:186:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(loadsky, ARG_1STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :271:1: note: expanded from here "loadsky" ^ renderextras.cpp:257:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARP(crosshairsize, 0, 15, 50); ^ ./cube.h:255:55: note: expanded from macro 'VARP' #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ :273:1: note: expanded from here "crosshairsize" ^ renderextras.cpp:262:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VAR(hidestats, 0, 0, 1); ^ ./cube.h:256:55: note: expanded from macro 'VAR' #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ :274:1: note: expanded from here "hidestats" ^ renderextras.cpp:263:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARP(crosshairfx, 0, 1, 1); ^ ./cube.h:255:55: note: expanded from macro 'VARP' #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ :275:1: note: expanded from here "crosshairfx" ^ renderextras.cpp:303:28: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(command) draw_textf("> %s_", 20, 1570, 2, command); ^ renderextras.cpp:339:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] draw_textf("fps %d", 3200, 2390, 2, curfps); ^ renderextras.cpp:340:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] draw_textf("wqd %d", 3200, 2460, 2, nquads); ^ renderextras.cpp:341:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] draw_textf("wvt %d", 3200, 2530, 2, curvert); ^ renderextras.cpp:342:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] draw_textf("evt %d", 3200, 2600, 2, xtraverts); ^ renderextras.cpp:351:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] draw_textf("%d", 90, 827, 2, player1->health); ^ renderextras.cpp:352:40: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(player1->armour) draw_textf("%d", 390, 827, 2, player1->armour); ^ renderextras.cpp:353:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] draw_textf("%d", 690, 827, 2, player1->ammo[player1->gunselect]); ^ 46 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o rendergl.o rendergl.cpp In file included from rendergl.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from rendergl.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ rendergl.cpp:56:44: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(!(qsphere = gluNewQuadric())) fatal("glu sphere"); ^ rendergl.cpp:93:101: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(gluBuild2DMipmaps(GL_TEXTURE_2D, GL_RGB, xs, ys, GL_RGB, GL_UNSIGNED_BYTE, scaledimg)) fatal("could not build mipmaps"); ^ rendergl.cpp:134:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(texturereset, ARG_NONE); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :271:1: note: expanded from here "texturereset" ^ rendergl.cpp:135:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(texture, ARG_2STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :273:1: note: expanded from here "texture" ^ rendergl.cpp:163:30: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(curtex==MAXTEX) fatal("loaded too many textures"); ^ rendergl.cpp:235:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARFP(gamma, 30, 100, 300, ^ ./cube.h:258:88: note: expanded from macro 'VARFP' #define VARFP(name, min, cur, max, body) void var_##name(); static int name = variable(#name, min, cur, max, &name, var_##name, true); void var_##name() { body; } ^ :275:1: note: expanded from here "gamma" ^ rendergl.cpp:256:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARP(fov, 10, 105, 120); ^ ./cube.h:255:55: note: expanded from macro 'VARP' #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ :279:1: note: expanded from here "fov" ^ rendergl.cpp:260:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VAR(fog, 64, 180, 1024); ^ ./cube.h:256:55: note: expanded from macro 'VAR' #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ :280:1: note: expanded from here "fog" ^ rendergl.cpp:261:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VAR(fogcolour, 0, 0x8099B3, 0xFFFFFF); ^ ./cube.h:256:55: note: expanded from macro 'VAR' #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ :281:1: note: expanded from here "fogcolour" ^ rendergl.cpp:263:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARP(hudgun,0,1,1); ^ ./cube.h:255:55: note: expanded from macro 'VARP' #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ :282:1: note: expanded from here "hudgun" ^ rendergl.cpp:265:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *hudgunnames[] = { "hudguns/fist", "hudguns/shotg", "hudguns/chaing", "hudguns/rocket", "hudguns/rifle" }; ^ rendergl.cpp:265:41: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *hudgunnames[] = { "hudguns/fist", "hudguns/shotg", "hudguns/chaing", "hudguns/rocket", "hudguns/rifle" }; ^ rendergl.cpp:265:58: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *hudgunnames[] = { "hudguns/fist", "hudguns/shotg", "hudguns/chaing", "hudguns/rocket", "hudguns/rifle" }; ^ rendergl.cpp:265:76: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *hudgunnames[] = { "hudguns/fist", "hudguns/shotg", "hudguns/chaing", "hudguns/rocket", "hudguns/rifle" }; ^ rendergl.cpp:265:94: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *hudgunnames[] = { "hudguns/fist", "hudguns/shotg", "hudguns/chaing", "hudguns/rocket", "hudguns/rifle" }; ^ 17 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o rendermd2.o rendermd2.cpp In file included from rendermd2.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from rendermd2.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ rendermd2.cpp:203:41: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(!m->load(path(name1))) fatal("loadmodel: ", name1); ^ rendermd2.cpp:220:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] mapmodelinfo mmi = { 2, 2, 0, 0, "" }; ^ rendermd2.cpp:239:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(mapmodel, ARG_5STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :271:1: note: expanded from here "mapmodel" ^ rendermd2.cpp:240:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(mapmodelreset, ARG_NONE); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :273:1: note: expanded from here "mapmodelreset" ^ In file included from rendermd2.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ rendermd2.cpp:216:27: note: in instantiation of member function 'hashtable::access' requested here md2 **mm = mdllookup->access(name); ^ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == 7 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o renderparticles.o renderparticles.cpp In file included from renderparticles.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from renderparticles.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ renderparticles.cpp:11:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARP(maxparticles, 100, 2000, MAXPARTICLES-500); ^ ./cube.h:255:55: note: expanded from macro 'VARP' #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ :271:1: note: expanded from here "maxparticles" ^ renderparticles.cpp:38:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VAR(demotracking, 0, 0, 1); ^ ./cube.h:256:55: note: expanded from macro 'VAR' #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ :272:1: note: expanded from here "demotracking" ^ renderparticles.cpp:39:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARP(particlesize, 20, 100, 500); ^ ./cube.h:255:55: note: expanded from macro 'VARP' #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ :273:1: note: expanded from here "particlesize" ^ renderparticles.cpp:73:41: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(particle *p, **pp = &parlist; p = *pp;) ~~^~~~~ renderparticles.cpp:73:41: note: place parentheses around the assignment to silence this warning for(particle *p, **pp = &parlist; p = *pp;) ^ ( ) renderparticles.cpp:73:41: note: use '==' to turn this assignment into an equality comparison for(particle *p, **pp = &parlist; p = *pp;) ^ == renderparticles.cpp:6:11: warning: unused variable 'NUMPARTCUTOFF' [-Wunused-const-variable] const int NUMPARTCUTOFF = 20; ^ 7 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o rendertext.o rendertext.cpp In file included from rendertext.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from rendertext.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ 2 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o rndmap.o rndmap.cpp In file included from rndmap.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from rndmap.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ 2 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o savegamedemo.o savegamedemo.cpp In file included from savegamedemo.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from savegamedemo.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ savegamedemo.cpp:20:45: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] void gzcheck(int a, int b) { if(a!=b) fatal("savegame file corrupt (short)"); }; ^ savegamedemo.cpp:214:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VAR(demoplaybackspeed, 10, 100, 1000); ^ ./cube.h:256:55: note: expanded from macro 'VAR' #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ :274:1: note: expanded from here "demoplaybackspeed" ^ savegamedemo.cpp:239:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VAR(demodelaymsec, 0, 120, 500); ^ ./cube.h:256:55: note: expanded from macro 'VAR' #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ :278:1: note: expanded from here "demodelaymsec" ^ savegamedemo.cpp:285:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(extras = gzget()) // read additional client side state not present in normal network stream ~~~~~~~^~~~~~~~~ savegamedemo.cpp:285:19: note: place parentheses around the assignment to silence this warning if(extras = gzget()) // read additional client side state not present in normal network stream ^ ( ) savegamedemo.cpp:285:19: note: use '==' to turn this assignment into an equality comparison if(extras = gzget()) // read additional client side state not present in normal network stream ^ == savegamedemo.cpp:297:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(bdamage = gzgeti()) damageblend(bdamage); ~~~~~~~~^~~~~~~~~~ savegamedemo.cpp:297:15: note: place parentheses around the assignment to silence this warning if(bdamage = gzgeti()) damageblend(bdamage); ^ ( ) savegamedemo.cpp:297:15: note: use '==' to turn this assignment into an equality comparison if(bdamage = gzgeti()) damageblend(bdamage); ^ == savegamedemo.cpp:298:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(ddamage = gzgeti()) { gzgetv(dorig); particle_splash(3, ddamage, 1000, dorig); }; ~~~~~~~~^~~~~~~~~~ savegamedemo.cpp:298:15: note: place parentheses around the assignment to silence this warning if(ddamage = gzgeti()) { gzgetv(dorig); particle_splash(3, ddamage, 1000, dorig); }; ^ ( ) savegamedemo.cpp:298:15: note: use '==' to turn this assignment into an equality comparison if(ddamage = gzgeti()) { gzgetv(dorig); particle_splash(3, ddamage, 1000, dorig); }; ^ == savegamedemo.cpp:355:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(record, ARG_1STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :282:1: note: expanded from here "record" ^ savegamedemo.cpp:356:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(demo, ARG_1STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :284:1: note: expanded from here "demo" ^ savegamedemo.cpp:357:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(stop, stopn, ARG_NONE); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :286:1: note: expanded from here "stop" ^ savegamedemo.cpp:359:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(savegame, ARG_1STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :288:1: note: expanded from here "savegame" ^ savegamedemo.cpp:360:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(loadgame, ARG_1STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :290:1: note: expanded from here "loadgame" ^ 13 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o server.o server.cpp In file included from server.cpp:4: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from server.cpp:4: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ server.cpp:46:24: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *serverpassword = ""; ^ server.cpp:144:17: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] sendservmsg("vote passed"); ^ server.cpp:156:35: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] disconnect_client(sender, "packet length"); ^ server.cpp:224:43: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] disconnect_client(sender, "client num"); ^ server.cpp:254:54: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(size==-1) { disconnect_client(sender, "tag type"); return; }; ^ server.cpp:259:43: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(p>end) { disconnect_client(sender, "end of packet"); return; }; ^ server.cpp:418:44: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] disconnect_client(lastconnect, "maxclients reached"); ^ server.cpp:450:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(isdedicated = dedicated) ~~~~~~~~~~~~^~~~~~~~~~~ server.cpp:450:20: note: place parentheses around the assignment to silence this warning if(isdedicated = dedicated) ^ ( ) server.cpp:450:20: note: use '==' to turn this assignment into an equality comparison if(isdedicated = dedicated) ^ == server.cpp:459:31: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(!serverhost) fatal("could not create server host\n"); ^ 11 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o serverbrowser.o serverbrowser.cpp In file included from serverbrowser.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from serverbrowser.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ serverbrowser.cpp:290:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(addserver, ARG_1STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :271:1: note: expanded from here "addserver" ^ serverbrowser.cpp:291:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(servermenu, ARG_NONE); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :273:1: note: expanded from here "servermenu" ^ serverbrowser.cpp:292:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(updatefrommaster, ARG_NONE); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :275:1: note: expanded from here "updatefrommaster" ^ 5 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o serverms.o serverms.cpp In file included from serverms.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from serverms.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ serverms.cpp:65:47: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] httpgetsend(masterserver, masterbase, path, "cubeserver", "Cube Server"); ^ serverms.cpp:65:61: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] httpgetsend(masterserver, masterbase, path, "cubeserver", "Cube Server"); ^ serverms.cpp:83:49: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] httpgetsend(masterserver, masterbase, path, "cubeserver", "Cube Server"); ^ serverms.cpp:83:63: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] httpgetsend(masterserver, masterbase, path, "cubeserver", "Cube Server"); ^ serverms.cpp:139:48: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(pongsock == ENET_SOCKET_NULL) fatal("could not create server info socket\n"); ^ serverms.cpp:140:56: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(enet_socket_bind(pongsock, &address) == -1) fatal("cannot bind server info socket\n"); ^ 8 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o serverutil.o serverutil.cpp In file included from serverutil.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from serverutil.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ 2 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o sound.o sound.cpp In file included from sound.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from sound.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ sound.cpp:9:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARP(soundvol, 0, 255, 255); ^ ./cube.h:255:55: note: expanded from macro 'VARP' #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ :271:1: note: expanded from here "soundvol" ^ sound.cpp:10:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARP(musicvol, 0, 128, 255); ^ ./cube.h:255:55: note: expanded from macro 'VARP' #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ :272:1: note: expanded from here "musicvol" ^ sound.cpp:52:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VAR(soundbufferlen, 128, 1024, 4096); ^ ./cube.h:256:55: note: expanded from macro 'VAR' #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ :273:1: note: expanded from here "soundbufferlen" ^ sound.cpp:84:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(mod = Mix_LoadMUS(path(sn))) ~~~~^~~~~~~~~~~~~~~~~~~~~~~ sound.cpp:84:20: note: place parentheses around the assignment to silence this warning if(mod = Mix_LoadMUS(path(sn))) ^ ( ) sound.cpp:84:20: note: use '==' to turn this assignment into an equality comparison if(mod = Mix_LoadMUS(path(sn))) ^ == sound.cpp:108:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(music, ARG_1STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :274:1: note: expanded from here "music" ^ sound.cpp:126:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(registersound, ARG_1EST); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :276:1: note: expanded from here "registersound" ^ sound.cpp:139:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VAR(stereo, 0, 1, 1); ^ ./cube.h:256:55: note: expanded from macro 'VAR' #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ :278:1: note: expanded from here "stereo" ^ sound.cpp:226:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(sound, ARG_1INT); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :282:1: note: expanded from here "sound" ^ 10 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o tools.o tools.cpp In file included from tools.cpp:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == tools.cpp:105:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(char *t = s; t = strpbrk(t, "/\\"); *t++ = PATHDIV); ~~^~~~~~~~~~~~~~~~~~~ tools.cpp:105:24: note: place parentheses around the assignment to silence this warning for(char *t = s; t = strpbrk(t, "/\\"); *t++ = PATHDIV); ^ ( ) tools.cpp:105:24: note: use '==' to turn this assignment into an equality comparison for(char *t = s; t = strpbrk(t, "/\\"); *t++ = PATHDIV); ^ == 2 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o weapon.o weapon.cpp In file included from weapon.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from weapon.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ weapon.cpp:14:42: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { S_PUNCH1, 250, 50, 0, 0, 1, "fist" }, ^ weapon.cpp:15:42: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { S_SG, 1400, 10, 0, 0, 20, "shotgun" }, // *SGRAYS ^ weapon.cpp:16:42: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { S_CG, 100, 30, 0, 0, 7, "chaingun" }, ^ weapon.cpp:17:42: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { S_RLFIRE, 800, 120, 80, 0, 10, "rocketlauncher" }, ^ weapon.cpp:18:42: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { S_RIFLE, 1500, 100, 0, 0, 30, "rifle" }, ^ weapon.cpp:19:42: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { S_FLAUNCH, 200, 20, 50, 4, 1, "fireball" }, ^ weapon.cpp:20:42: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { S_ICEBALL, 200, 40, 30, 6, 1, "iceball" }, ^ weapon.cpp:21:42: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { S_SLIMEBALL, 200, 30, 160, 7, 1, "slimeball" }, ^ weapon.cpp:22:42: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] { S_PIGR1, 250, 50, 0, 0, 1, "bite" }, ^ weapon.cpp:51:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(weapon, ARG_3STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :271:1: note: expanded from here "weapon" ^ 12 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o world.o world.cpp In file included from world.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from world.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ world.cpp:52:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(trigger, ARG_2INT); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :271:1: note: expanded from here "trigger" ^ world.cpp:63:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] int lighterr = getvar("lighterror")*3; ^ world.cpp:252:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(clearents, ARG_1STR); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :273:1: note: expanded from here "clearents" ^ world.cpp:280:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(scalelights, ARG_2INT); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :275:1: note: expanded from here "scalelights" ^ world.cpp:355:14: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] startmap("base/unnamed"); ^ world.cpp:360:17: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] execute("fullbright 1"); ^ world.cpp:367:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(mapenlarge, ARG_NONE); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :277:1: note: expanded from here "mapenlarge" ^ world.cpp:368:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(newmap, ARG_1INT); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :279:1: note: expanded from here "newmap" ^ world.cpp:369:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(recalc, calclight, ARG_NONE); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :281:1: note: expanded from here "recalc" ^ world.cpp:370:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(delent, ARG_NONE); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :283:1: note: expanded from here "delent" ^ world.cpp:371:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(entproperty, ARG_2INT); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :285:1: note: expanded from here "entproperty" ^ 13 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o worldio.o worldio.cpp In file included from worldio.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from worldio.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ worldio.cpp:219:47: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(strncmp(hdr.head, "CUBE", 4)!=0) fatal("while reading map: header malformatted"); ^ worldio.cpp:220:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(hdr.version>MAPVERSION) fatal("this map requires a newer version of cube"); ^ worldio.cpp:221:65: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(sfactorLARGEST_FACTOR) fatal("illegal map size"); ^ worldio.cpp:288:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] fatal("while reading map: type out of range: ", t); ^ worldio.cpp:313:19: warning: address of array 'texuse' will always evaluate to 'true' [-Wpointer-bool-conversion] loopi(256) if(texuse) lookuptexture(i, xs, ys); ~~ ^~~~~~ worldio.cpp:320:53: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(identexists(aliasname)) alias(aliasname, ""); ^ worldio.cpp:322:14: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] execfile("data/default_map_settings.cfg"); ^ worldio.cpp:327:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMANDN(savemap, save_world, ARG_1STR); ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :271:1: note: expanded from here "savemap" ^ 10 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o worldlight.o worldlight.cpp In file included from worldlight.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from worldlight.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ worldlight.cpp:7:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VAR(lightscale,1,4,100); ^ ./cube.h:256:55: note: expanded from macro 'VAR' #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ :271:1: note: expanded from here "lightscale" ^ worldlight.cpp:157:12: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] setvar("fullbright", 0); ^ worldlight.cpp:160:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] VARP(dynlight, 0, 16, 32); ^ ./cube.h:255:55: note: expanded from macro 'VARP' #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ :272:1: note: expanded from here "dynlight" ^ 5 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o worldocull.o worldocull.cpp In file included from worldocull.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from worldocull.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ worldocull.cpp:13:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] COMMAND(toggleocull, ARG_NONE); ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ :271:1: note: expanded from here "toggleocull" ^ worldocull.cpp:22:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] odist = getvar("fog")*1.5f; ^ worldocull.cpp:25:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] float af = getvar("fov")/2+apitch/1.5f+3; ^ 5 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o worldrender.o worldrender.cpp In file included from worldrender.cpp:4: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from worldrender.cpp:4: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ worldrender.cpp:61:11: warning: unused variable 'LOW_LOD' [-Wunused-const-variable] const int LOW_LOD = 25; ^ 3 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -o cube_client client.o clientextras.o clientgame.o clients2c.o command.o console.o editing.o entities.o main.o menus.o monster.o physics.o rendercubes.o renderextras.o rendergl.o rendermd2.o renderparticles.o rendertext.o rndmap.o savegamedemo.o server.o serverbrowser.o serverms.o serverutil.o sound.o tools.o weapon.o world.o worldio.o worldlight.o worldocull.o worldrender.o -L/usr/local/lib -lenet `/usr/local/bin/sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL -lGLU -lX11 c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -DSTANDALONE -o standalone.o -c serverutil.cpp In file included from serverutil.cpp:3: In file included from ./cube.h:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ~~^~~~~~~~ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ ( ) ./tools.h:248:29: note: use '==' to turn this assignment into an equality comparison for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ == In file included from serverutil.cpp:3: In file included from ./cube.h:284: ./protos.h:127:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] extern void fatal(char *s, char *o = ""); ^ serverutil.cpp:94:58: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] void *alloc(int s) { void *b = calloc(1,s); if(!b) fatal("no memory!"); return b; }; ^ serverutil.cpp:99:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; ^ serverutil.cpp:99:29: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; ^ serverutil.cpp:99:59: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; ^ serverutil.cpp:116:35: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(enet_initialize()<0) fatal("Unable to initialise network module"); ^ 7 warnings generated. c++ -O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -o cube_server standalone.o serverms.o server.o tools.o -L/usr/local/lib -lenet =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> cube-2005.08.29_19 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for cube-2005.08.29_19 ===> Generating temporary packing list install -m 555 /wrkdirs/usr/ports/games/cube/work/cube_client /wrkdirs/usr/ports/games/cube/work/stage/usr/local/bin install -s -m 555 /wrkdirs/usr/ports/games/cube/work/cube_source/src/cube_client /wrkdirs/usr/ports/games/cube/work/stage/usr/local/libexec install -m 555 /wrkdirs/usr/ports/games/cube/work/cube_server /wrkdirs/usr/ports/games/cube/work/stage/usr/local/bin install -s -m 555 /wrkdirs/usr/ports/games/cube/work/cube_source/src/cube_server /wrkdirs/usr/ports/games/cube/work/stage/usr/local/libexec (cd /wrkdirs/usr/ports/games/cube/work/cube && /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 "data packages" /wrkdirs/usr/ports/games/cube/work/stage/usr/local/share/cube) (cd /wrkdirs/usr/ports/games/cube/work/cube/docs && /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 . /wrkdirs/usr/ports/games/cube/work/stage/usr/local/share/doc/cube) install -m 0644 /wrkdirs/usr/ports/games/cube/work/cube/autoexec.cfg /wrkdirs/usr/ports/games/cube/work/stage/usr/local/share/cube install -m 0644 /wrkdirs/usr/ports/games/cube/work/cube/readme.html /wrkdirs/usr/ports/games/cube/work/stage/usr/local/share/doc/cube ====> 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-04T09:24:39+0000' 'PKG_NOTE_ports_top_git_hash=c2c35d895e' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=c014f9c79a' '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 cube-2005.08.29_19 ===> Building cube-2005.08.29_19 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for cube-2005.08.29_19 build of games/cube | cube-2005.08.29_19 ended at Thu Apr 4 10:25:31 BST 2024 build time: 00:00:53