=>> Building games/cube build started at Tue Mar 17 07:02:09 EDT 2026 port directory: /usr/ports/games/cube package name: cube-2005.08.29_19 building for: FreeBSD pkg.DaveG.ca 15.0-RELEASE-p3 FreeBSD 15.0-RELEASE-p3 1500068 amd64 maintained by: ports@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 1583 Aug 27 2024 /usr/ports/games/cube/Makefile Ports top last git commit: 8c988f802ea2 Ports top unclean checkout: no Port dir last git commit: fb16dfecae4a Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.2 Host OSVERSION: 1500068 Jail OSVERSION: 1500068 Job Id: 09 ---Begin Environment--- SHELL=/bin/sh OSVERSION=1500068 UNAME_v=FreeBSD 15.0-RELEASE-p3 1500068 UNAME_r=15.0-RELEASE-p3 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.2 MASTERMNT=/usr/local/poudriere/data/.m/freebsd_15_0_x64-HEAD-ALL/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=tmux-256color OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/freebsd_15_0_x64-HEAD-ALL/09/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=freebsd_15_0_x64-HEAD-ALL SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/freebsd_15_0_x64-HEAD-ALL/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.2 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=/usr/local/bin/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=/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 --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=/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 " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fsigned-char -fstack-protector-strong -fno-strict-aliasing -std=gnu++98 " CXXSTD=gnu++98 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=15.0 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--- DEFAULT_VERSIONS+=pgsql=15 DEFAULT_VERSIONS+=php=82 DISABLE_LICENSES=yes SELECTED_OPTIONS+=OPENBLAS ARCHDEF=AMD64K10h64SSE3 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 #### #### DEFAULT_VERSIONS+=pgsql=15 DEFAULT_VERSIONS+=php=82 DISABLE_LICENSES=yes SELECTED_OPTIONS+=OPENBLAS ARCHDEF=AMD64K10h64SSE3 WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 ---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 pipebuf (-y) 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-2.6.2.pkg [pkg.DaveG.ca] Installing pkg-2.6.2... [pkg.DaveG.ca] Extracting pkg-2.6.2: .......... 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.DaveG.ca] Installing gmake-4.4.1... [pkg.DaveG.ca] `-- Installing gettext-runtime-0.26... [pkg.DaveG.ca] | `-- Installing indexinfo-0.3.1_1... [pkg.DaveG.ca] | `-- Extracting indexinfo-0.3.1_1: . done [pkg.DaveG.ca] `-- Extracting gettext-runtime-0.26: .......... done [pkg.DaveG.ca] 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.DaveG.ca] Installing sdl-1.2.15_17,2... [pkg.DaveG.ca] `-- Installing aalib-1.4.r5_14... [pkg.DaveG.ca] `-- Extracting aalib-1.4.r5_14: .......... done [pkg.DaveG.ca] `-- Installing libGLU-9.0.3... [pkg.DaveG.ca] | `-- Installing libglvnd-1.7.0... [pkg.DaveG.ca] | | `-- Installing libX11-1.8.13,1... [pkg.DaveG.ca] | | `-- Installing libxcb-1.17.0... [pkg.DaveG.ca] | | | `-- Installing libXau-1.0.12... [pkg.DaveG.ca] | | | `-- Extracting libXau-1.0.12: .......... done [pkg.DaveG.ca] | | | `-- Installing libXdmcp-1.1.5... [pkg.DaveG.ca] | | | `-- Installing xorgproto-2024.1... [pkg.DaveG.ca] | | | `-- Extracting xorgproto-2024.1: .......... done [pkg.DaveG.ca] | | | `-- Extracting libXdmcp-1.1.5: ...... done [pkg.DaveG.ca] | | `-- Extracting libxcb-1.17.0: .......... done [pkg.DaveG.ca] | | `-- Extracting libX11-1.8.13,1: .......... done [pkg.DaveG.ca] | | `-- Installing libXext-1.3.6,1... [pkg.DaveG.ca] | | `-- Extracting libXext-1.3.6,1: .......... done [pkg.DaveG.ca] | `-- Extracting libglvnd-1.7.0: .......... done [pkg.DaveG.ca] `-- Extracting libGLU-9.0.3: ..... done [pkg.DaveG.ca] `-- Installing libXrandr-1.5.4... [pkg.DaveG.ca] | `-- Installing libXrender-0.9.12... [pkg.DaveG.ca] | `-- Extracting libXrender-0.9.12: ....... done [pkg.DaveG.ca] `-- Extracting libXrandr-1.5.4: .......... done [pkg.DaveG.ca] 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 ===> cube-2005.08.29_19 depends on file: /usr/local/bin/ccache - not found ===> Installing existing package /packages/All/ccache-3.7.12_8.pkg [pkg.DaveG.ca] Installing ccache-3.7.12_8... [pkg.DaveG.ca] Extracting ccache-3.7.12_8: ......... done Create compiler links... create symlink for cc create symlink for cc (world) create symlink for c++ create symlink for c++ (world) create symlink for CC create symlink for CC (world) create symlink for clang create symlink for clang (world) create symlink for clang++ create symlink for clang++ (world) ===== Message from ccache-3.7.12_8: -- NOTE: Please read /usr/local/share/doc/ccache/ccache-howto-freebsd.txt for information on using ccache with FreeBSD ports and src. ===> cube-2005.08.29_19 depends on file: /usr/local/bin/ccache - found ===> Returning to build of cube-2005.08.29_19 =========================================================================== =================================================== ===== 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.18,1.pkg [pkg.DaveG.ca] Installing enet-1.3.18,1... [pkg.DaveG.ca] Extracting enet-1.3.18,1: .......... done ===== Message from enet-1.3.18,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_14.pkg [pkg.DaveG.ca] Installing sdl_image-1.2.12_14... [pkg.DaveG.ca] `-- Installing jpeg-turbo-3.1.3... [pkg.DaveG.ca] `-- Extracting jpeg-turbo-3.1.3: .......... done [pkg.DaveG.ca] `-- Installing png-1.6.55... [pkg.DaveG.ca] `-- Extracting png-1.6.55: .......... done [pkg.DaveG.ca] `-- Installing tiff-4.7.1... [pkg.DaveG.ca] | `-- Installing jbigkit-2.1_3... [pkg.DaveG.ca] | `-- Extracting jbigkit-2.1_3: .......... done [pkg.DaveG.ca] | `-- Installing lerc-4.0.0... [pkg.DaveG.ca] | `-- Extracting lerc-4.0.0: ..... done [pkg.DaveG.ca] | `-- Installing libdeflate-1.25... [pkg.DaveG.ca] | `-- Extracting libdeflate-1.25: .......... done [pkg.DaveG.ca] | `-- Installing zstd-1.5.7_1... [pkg.DaveG.ca] | `-- Extracting zstd-1.5.7_1: .......... done [pkg.DaveG.ca] `-- Extracting tiff-4.7.1: .......... done [pkg.DaveG.ca] `-- Installing webp-1.6.0... [pkg.DaveG.ca] | `-- Installing giflib-5.2.2... [pkg.DaveG.ca] | `-- Extracting giflib-5.2.2: .......... done [pkg.DaveG.ca] `-- Extracting webp-1.6.0: .......... done [pkg.DaveG.ca] Extracting sdl_image-1.2.12_14: ....... done ===> 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_15.pkg [pkg.DaveG.ca] Installing sdl_mixer-1.2.12_15... [pkg.DaveG.ca] `-- Installing flac-1.5.0,1... [pkg.DaveG.ca] | `-- Installing libogg-1.3.6,4... [pkg.DaveG.ca] | `-- Extracting libogg-1.3.6,4: .......... done [pkg.DaveG.ca] `-- Extracting flac-1.5.0,1: .......... done [pkg.DaveG.ca] `-- Installing libmikmod-3.3.13... [pkg.DaveG.ca] `-- Extracting libmikmod-3.3.13: ....... done [pkg.DaveG.ca] `-- Installing libvorbis-1.3.7_2,3... [pkg.DaveG.ca] `-- Extracting libvorbis-1.3.7_2,3: .......... done [pkg.DaveG.ca] `-- Installing smpeg-0.4.4_18... [pkg.DaveG.ca] `-- Extracting smpeg-0.4.4_18: .......... done [pkg.DaveG.ca] `-- Installing timidity-0.2i_1... [pkg.DaveG.ca] `-- Extracting timidity-0.2i_1: .......... done [pkg.DaveG.ca] Extracting sdl_mixer-1.2.12_15: ...... 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 tools.cpp:3: ./tools.h:248:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 248 | 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 248 | 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 248 | 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] 105 | for(char *t = s; t = strpbrk(t, "/\\"); *t++ = PATHDIV); | ~~^~~~~~~~~~~~~~~~~~~ tools.cpp:105:24: note: place parentheses around the assignment to silence this warning 105 | for(char *t = s; t = strpbrk(t, "/\\"); *t++ = PATHDIV); | ^ | ( ) tools.cpp:105:24: note: use '==' to turn this assignment into an equality comparison 105 | for(char *t = s; t = strpbrk(t, "/\\"); *t++ = PATHDIV); | ^ | == 2 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | extern void fatal(char *s, char *o = ""); | ^ main.cpp:19:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 19 | printf(msg); | ^~~ main.cpp:19:16: note: treat the string as an argument to avoid this 19 | printf(msg); | ^ | "%s", main.cpp:41:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 41 | if(!b) fatal("out of memory!"); | ^ main.cpp:53:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 53 | 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 53 | 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 53 | 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] 55 | 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 55 | 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 55 | 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] 72 | COMMAND(screenshot, ARG_NONE); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :169:1: note: expanded from here 169 | "screenshot" | ^ main.cpp:73:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 73 | COMMAND(quit, ARG_NONE); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :171:1: note: expanded from here 171 | "quit" | ^ main.cpp:81:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 81 | VARF(gamespeed, 10, 100, 1000, if(multiplayer()) gamespeed = 100); | ^ ./cube.h:257:88: note: expanded from macro 'VARF' 257 | #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; } | ^ :173:1: note: expanded from here 173 | "gamespeed" | ^ main.cpp:82:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 82 | VARP(minmillis, 0, 5, 1000); | ^ ./cube.h:255:55: note: expanded from macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^ :177:1: note: expanded from here 177 | "minmillis" | ^ main.cpp:91:19: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 91 | 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] 91 | 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] 91 | 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] 122 | 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] 125 | 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] 134 | 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] 138 | 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] 151 | 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] 152 | !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] 153 | !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] 154 | !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] 155 | !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] 156 | !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] 157 | !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] 158 | !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] 159 | !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] 159 | !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] 165 | 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] 166 | newmenu("ping\tplr\tserver"); | ^ main.cpp:167:10: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 167 | exec("data/keymap.cfg"); | ^ main.cpp:168:10: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 168 | exec("data/menus.cfg"); | ^ main.cpp:169:10: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 169 | exec("data/prefabs.cfg"); | ^ main.cpp:170:10: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 170 | exec("data/sounds.cfg"); | ^ main.cpp:171:10: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 171 | exec("servers.cfg"); | ^ main.cpp:172:18: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 172 | 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] 172 | 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] 173 | exec("autoexec.cfg"); | ^ main.cpp:177:15: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 177 | changemap("metl3"); // if this map is changed, also change depthcorrect() | ^ 38 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | extern void fatal(char *s, char *o = ""); | ^ 2 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 13 | COMMAND(toggleocull, ARG_NONE); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :169:1: note: expanded from here 169 | "toggleocull" | ^ worldocull.cpp:22:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 22 | odist = getvar("fog")*1.5f; | ^ worldocull.cpp:25:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 25 | float af = getvar("fov")/2+apitch/1.5f+3; | ^ 5 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | extern void fatal(char *s, char *o = ""); | ^ 2 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | extern void fatal(char *s, char *o = ""); | ^ physics.cpp:92:78: warning: '&&' within '||' [-Wlogical-op-parentheses] 92 | if(x==x1 && y==y1 && cornertest(0, x, y, -1, -1, bx, by, bs) && fx1-bx+fy1-by<=bs | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ 93 | || x==x2 && y==y1 && cornertest(0, x, y, 1, -1, bx, by, bs) && fx2-bx>=fy1-by | ~~ physics.cpp:92:78: note: place parentheses around the '&&' expression to silence this warning 92 | 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] 93 | || 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 93 | || 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] 94 | || 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 94 | || 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] 95 | || 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 95 | || 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] 165 | VARP(maxroll, 0, 3, 20); | ^ ./cube.h:255:55: note: expanded from macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^ :169:1: note: expanded from here 169 | "maxroll" | ^ 7 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | extern void fatal(char *s, char *o = ""); | ^ 2 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 7 | VAR(lightscale,1,4,100); | ^ ./cube.h:256:55: note: expanded from macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^ :169:1: note: expanded from here 169 | "lightscale" | ^ worldlight.cpp:157:12: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 157 | setvar("fullbright", 0); | ^ worldlight.cpp:160:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 160 | VARP(dynlight, 0, 16, 32); | ^ ./cube.h:255:55: note: expanded from macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^ :170:1: note: expanded from here 170 | "dynlight" | ^ 5 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 99 | mitem.action = ""; | ^ menus.cpp:110:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 110 | COMMAND(menuitem, ARG_2STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :169:1: note: expanded from here 169 | "menuitem" | ^ menus.cpp:111:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 111 | COMMAND(showmenu, ARG_1STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :171:1: note: expanded from here 171 | "showmenu" | ^ menus.cpp:112:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 112 | COMMAND(newmenu, ARG_1STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :173:1: note: expanded from here 173 | "newmenu" | ^ 6 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 14 | { 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] 15 | { 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] 16 | { 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] 17 | { 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] 18 | { 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] 19 | { 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] 20 | { 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] 21 | { 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] 22 | { 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] 51 | COMMAND(weapon, ARG_3STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :169:1: note: expanded from here 169 | "weapon" | ^ 12 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | extern void fatal(char *s, char *o = ""); | ^ worldrender.cpp:61:11: warning: unused variable 'LOW_LOD' [-Wunused-const-variable] 61 | const int LOW_LOD = 25; | ^~~~~~~ 3 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 11 | VARP(maxparticles, 100, 2000, MAXPARTICLES-500); | ^ ./cube.h:255:55: note: expanded from macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^ :169:1: note: expanded from here 169 | "maxparticles" | ^ renderparticles.cpp:38:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 38 | VAR(demotracking, 0, 0, 1); | ^ ./cube.h:256:55: note: expanded from macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^ :170:1: note: expanded from here 170 | "demotracking" | ^ renderparticles.cpp:39:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 39 | VARP(particlesize, 20, 100, 500); | ^ ./cube.h:255:55: note: expanded from macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^ :171:1: note: expanded from here 171 | "particlesize" | ^ renderparticles.cpp:73:41: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 73 | for(particle *p, **pp = &parlist; p = *pp;) | ~~^~~~~ renderparticles.cpp:73:41: note: place parentheses around the assignment to silence this warning 73 | for(particle *p, **pp = &parlist; p = *pp;) | ^ | ( ) renderparticles.cpp:73:41: note: use '==' to turn this assignment into an equality comparison 73 | for(particle *p, **pp = &parlist; p = *pp;) | ^ | == renderparticles.cpp:6:11: warning: unused variable 'NUMPARTCUTOFF' [-Wunused-const-variable] 6 | const int NUMPARTCUTOFF = 20; | ^~~~~~~~~~~~~ 7 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 203 | 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] 220 | 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] 239 | COMMAND(mapmodel, ARG_5STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :169:1: note: expanded from here 169 | "mapmodel" | ^ rendermd2.cpp:240:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 240 | COMMAND(mapmodelreset, ARG_NONE); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :171:1: note: expanded from here 171 | "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] 248 | 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 216 | md2 **mm = mdllookup->access(name); | ^ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning 248 | 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 248 | for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor | ^ | == 7 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 65 | 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] 65 | 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] 83 | 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] 83 | 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] 139 | 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] 140 | if(enet_socket_bind(pongsock, &address) == -1) fatal("cannot bind server info socket\n"); | ^ 8 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 219 | 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] 220 | 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] 221 | 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] 288 | 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] 313 | 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] 320 | if(identexists(aliasname)) alias(aliasname, ""); | ^ worldio.cpp:322:14: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 322 | 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] 327 | COMMANDN(savemap, save_world, ARG_1STR); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :169:1: note: expanded from here 169 | "savemap" | ^ 10 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 94 | 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] 99 | 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] 99 | 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] 99 | 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] 116 | if(enet_initialize()<0) fatal("Unable to initialise network module"); | ^ 7 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 9 | "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] 9 | "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] 9 | "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] 9 | "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] 9 | "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] 9 | "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] 10 | "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] 10 | "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] 10 | "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] 10 | "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] 50 | 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] 53 | 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] 54 | 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] 62 | 10, 50, S_ITEMAMMO, | ^~~~~~~~~~~~~~~~~~~~~ | { } entities.cpp:63:6: warning: suggest braces around initialization of subobject [-Wmissing-braces] 63 | 20, 100, S_ITEMAMMO, | ^~~~~~~~~~~~~~~~~~~~~ | { } entities.cpp:64:7: warning: suggest braces around initialization of subobject [-Wmissing-braces] 64 | 5, 25, S_ITEMAMMO, | ^~~~~~~~~~~~~~~~~~~~ | { } entities.cpp:65:7: warning: suggest braces around initialization of subobject [-Wmissing-braces] 65 | 5, 25, S_ITEMAMMO, | ^~~~~~~~~~~~~~~~~~~~ | { } entities.cpp:66:6: warning: suggest braces around initialization of subobject [-Wmissing-braces] 66 | 25, 100, S_ITEMHEALTH, | ^~~~~~~~~~~~~~~~~~~~~~~ | { } entities.cpp:67:6: warning: suggest braces around initialization of subobject [-Wmissing-braces] 67 | 50, 200, S_ITEMHEALTH, | ^~~~~~~~~~~~~~~~~~~~~~~ | { } entities.cpp:68:5: warning: suggest braces around initialization of subobject [-Wmissing-braces] 68 | 100, 100, S_ITEMARMOUR, | ^~~~~~~~~~~~~~~~~~~~~~~~ | { } entities.cpp:69:5: warning: suggest braces around initialization of subobject [-Wmissing-braces] 69 | 150, 150, S_ITEMARMOUR, | ^~~~~~~~~~~~~~~~~~~~~~~~ | { } entities.cpp:70:3: warning: suggest braces around initialization of subobject [-Wmissing-braces] 70 | 20000, 30000, S_ITEMPUP, | ^~~~~~~~~~~~~~~~~~~~~~~ | { } 24 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 28 | 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' 257 | #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; } | ^ :169:1: note: expanded from here 169 | "rate" | ^ client.cpp:32:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 32 | VARF(throttle_interval, 0, 5, 30, throttle()); | ^ ./cube.h:257:88: note: expanded from macro 'VARF' 257 | #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; } | ^ :173:1: note: expanded from here 173 | "throttle_interval" | ^ client.cpp:33:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 33 | VARF(throttle_accel, 0, 2, 32, throttle()); | ^ ./cube.h:257:88: note: expanded from macro 'VARF' 257 | #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; } | ^ :177:1: note: expanded from here 177 | "throttle_accel" | ^ client.cpp:34:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 34 | VARF(throttle_decel, 0, 2, 32, throttle()); | ^ ./cube.h:257:88: note: expanded from macro 'VARF' 257 | #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; } | ^ :181:1: note: expanded from here 181 | "throttle_decel" | ^ client.cpp:46:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 46 | COMMANDN(team, newteam, ARG_1STR); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :188:1: note: expanded from here 188 | "team" | ^ client.cpp:47:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 47 | COMMANDN(name, newname, ARG_1STR); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :190:1: note: expanded from here 190 | "name" | ^ client.cpp:143:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 143 | COMMAND(echo, ARG_VARI); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :192:1: note: expanded from here 192 | "echo" | ^ client.cpp:144:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 144 | COMMANDN(say, toserver, ARG_VARI); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :194:1: note: expanded from here 194 | "say" | ^ client.cpp:145:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 145 | COMMANDN(connect, connects, ARG_1STR); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :196:1: note: expanded from here 196 | "connect" | ^ client.cpp:146:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 146 | COMMANDN(disconnect, trydisconnect, ARG_NONE); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :198:1: note: expanded from here 198 | "disconnect" | ^ client.cpp:179:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 179 | COMMAND(password, ARG_1STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :200:1: note: expanded from here 200 | "password" | ^ client.cpp:188:13: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 188 | newname("unnamed"); | ^ client.cpp:189:13: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 189 | newteam("red"); | ^ 15 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 47 | 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] 104 | menumanual(0, scorelines.length(), ""); | ^ clientextras.cpp:155:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 155 | COMMAND(sendmap, ARG_1STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :169:1: note: expanded from here 169 | "sendmap" | ^ clientextras.cpp:156:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 156 | COMMAND(getmap, ARG_NONE); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :171:1: note: expanded from here 171 | "getmap" | ^ 6 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 54 | 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] 352 | neterr("type"); | ^ 4 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 22 | COMMANDN(conskip, setconskip, ARG_1INT); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :169:1: note: expanded from here 169 | "conskip" | ^ console.cpp:27:74: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 27 | 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] 88 | COMMAND(keymap, ARG_3STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :171:1: note: expanded from here 171 | "keymap" | ^ console.cpp:101:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 101 | COMMANDN(bind, bindkey, ARG_2STR); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :173:1: note: expanded from here 173 | "bind" | ^ console.cpp:107:22: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 107 | if(!init) init = ""; | ^ console.cpp:113:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 113 | COMMAND(saycommand, ARG_VARI); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :175:1: note: expanded from here 175 | "saycommand" | ^ console.cpp:114:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 114 | COMMAND(mapmsg, ARG_1STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :177:1: note: expanded from here 177 | "mapmsg" | ^ console.cpp:168:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 168 | COMMAND(history, ARG_1INT); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :189:1: note: expanded from here 189 | "history" | ^ 10 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 9 | VARP(soundvol, 0, 255, 255); | ^ ./cube.h:255:55: note: expanded from macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^ :169:1: note: expanded from here 169 | "soundvol" | ^ sound.cpp:10:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 10 | VARP(musicvol, 0, 128, 255); | ^ ./cube.h:255:55: note: expanded from macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^ :170:1: note: expanded from here 170 | "musicvol" | ^ sound.cpp:52:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 52 | VAR(soundbufferlen, 128, 1024, 4096); | ^ ./cube.h:256:55: note: expanded from macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^ :171:1: note: expanded from here 171 | "soundbufferlen" | ^ sound.cpp:84:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 84 | if(mod = Mix_LoadMUS(path(sn))) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~ sound.cpp:84:20: note: place parentheses around the assignment to silence this warning 84 | if(mod = Mix_LoadMUS(path(sn))) | ^ | ( ) sound.cpp:84:20: note: use '==' to turn this assignment into an equality comparison 84 | 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] 108 | COMMAND(music, ARG_1STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :172:1: note: expanded from here 172 | "music" | ^ sound.cpp:126:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 126 | COMMAND(registersound, ARG_1EST); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :174:1: note: expanded from here 174 | "registersound" | ^ sound.cpp:139:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 139 | VAR(stereo, 0, 1, 1); | ^ ./cube.h:256:55: note: expanded from macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^ :176:1: note: expanded from here 176 | "stereo" | ^ sound.cpp:226:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 226 | COMMAND(sound, ARG_1INT); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :180:1: note: expanded from here 180 | "sound" | ^ 10 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | extern void fatal(char *s, char *o = ""); | ^ renderextras.cpp:110:37: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 110 | for(sphere *p, **pp = &slist; p = *pp;) | ~~^~~~~ renderextras.cpp:110:37: note: place parentheses around the assignment to silence this warning 110 | for(sphere *p, **pp = &slist; p = *pp;) | ^ | ( ) renderextras.cpp:110:37: note: use '==' to turn this assignment into an equality comparison 110 | 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] 144 | "none?", "light", "playerstart", | ^ renderextras.cpp:144:14: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 144 | "none?", "light", "playerstart", | ^ renderextras.cpp:144:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 144 | "none?", "light", "playerstart", | ^ renderextras.cpp:145:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 145 | "shells", "bullets", "rockets", "riflerounds", | ^ renderextras.cpp:145:15: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 145 | "shells", "bullets", "rockets", "riflerounds", | ^ renderextras.cpp:145:26: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 145 | "shells", "bullets", "rockets", "riflerounds", | ^ renderextras.cpp:145:37: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 145 | "shells", "bullets", "rockets", "riflerounds", | ^ renderextras.cpp:146:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 146 | "health", "healthboost", "greenarmour", "yellowarmour", "quaddamage", | ^ renderextras.cpp:146:15: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 146 | "health", "healthboost", "greenarmour", "yellowarmour", "quaddamage", | ^ renderextras.cpp:146:30: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 146 | "health", "healthboost", "greenarmour", "yellowarmour", "quaddamage", | ^ renderextras.cpp:146:45: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 146 | "health", "healthboost", "greenarmour", "yellowarmour", "quaddamage", | ^ renderextras.cpp:146:61: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 146 | "health", "healthboost", "greenarmour", "yellowarmour", "quaddamage", | ^ renderextras.cpp:147:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 147 | "teleport", "teledest", | ^ renderextras.cpp:147:17: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 147 | "teleport", "teledest", | ^ renderextras.cpp:148:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 148 | "mapmodel", "monster", "trigger", "jumppad", | ^ renderextras.cpp:148:17: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 148 | "mapmodel", "monster", "trigger", "jumppad", | ^ renderextras.cpp:148:28: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 148 | "mapmodel", "monster", "trigger", "jumppad", | ^ renderextras.cpp:148:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 148 | "mapmodel", "monster", "trigger", "jumppad", | ^ renderextras.cpp:149:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 149 | "?", "?", "?", "?", "?", | ^ renderextras.cpp:149:10: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 149 | "?", "?", "?", "?", "?", | ^ renderextras.cpp:149:15: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 149 | "?", "?", "?", "?", "?", | ^ renderextras.cpp:149:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 149 | "?", "?", "?", "?", "?", | ^ renderextras.cpp:149:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 149 | "?", "?", "?", "?", "?", | ^ renderextras.cpp:167:152: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 167 | 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] 167 | 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] 175 | 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] 175 | 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] 175 | 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] 175 | 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] 175 | 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] 175 | 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] 186 | COMMAND(loadsky, ARG_1STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :169:1: note: expanded from here 169 | "loadsky" | ^ renderextras.cpp:257:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 257 | VARP(crosshairsize, 0, 15, 50); | ^ ./cube.h:255:55: note: expanded from macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^ :171:1: note: expanded from here 171 | "crosshairsize" | ^ renderextras.cpp:262:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 262 | VAR(hidestats, 0, 0, 1); | ^ ./cube.h:256:55: note: expanded from macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^ :172:1: note: expanded from here 172 | "hidestats" | ^ renderextras.cpp:263:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 263 | VARP(crosshairfx, 0, 1, 1); | ^ ./cube.h:255:55: note: expanded from macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^ :173:1: note: expanded from here 173 | "crosshairfx" | ^ renderextras.cpp:303:28: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 303 | 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] 339 | 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] 340 | 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] 341 | 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] 342 | 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] 351 | 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] 352 | 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] 353 | draw_textf("%d", 690, 827, 2, player1->ammo[player1->gunselect]); | ^ 46 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 20 | 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] 214 | VAR(demoplaybackspeed, 10, 100, 1000); | ^ ./cube.h:256:55: note: expanded from macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^ :172:1: note: expanded from here 172 | "demoplaybackspeed" | ^ savegamedemo.cpp:239:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 239 | VAR(demodelaymsec, 0, 120, 500); | ^ ./cube.h:256:55: note: expanded from macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^ :176:1: note: expanded from here 176 | "demodelaymsec" | ^ savegamedemo.cpp:285:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 285 | 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 285 | 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 285 | 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] 297 | if(bdamage = gzgeti()) damageblend(bdamage); | ~~~~~~~~^~~~~~~~~~ savegamedemo.cpp:297:15: note: place parentheses around the assignment to silence this warning 297 | if(bdamage = gzgeti()) damageblend(bdamage); | ^ | ( ) savegamedemo.cpp:297:15: note: use '==' to turn this assignment into an equality comparison 297 | if(bdamage = gzgeti()) damageblend(bdamage); | ^ | == savegamedemo.cpp:298:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 298 | 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 298 | 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 298 | 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] 355 | COMMAND(record, ARG_1STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :180:1: note: expanded from here 180 | "record" | ^ savegamedemo.cpp:356:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 356 | COMMAND(demo, ARG_1STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :182:1: note: expanded from here 182 | "demo" | ^ savegamedemo.cpp:357:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 357 | COMMANDN(stop, stopn, ARG_NONE); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :184:1: note: expanded from here 184 | "stop" | ^ savegamedemo.cpp:359:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 359 | COMMAND(savegame, ARG_1STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :186:1: note: expanded from here 186 | "savegame" | ^ savegamedemo.cpp:360:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 360 | COMMAND(loadgame, ARG_1STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :188:1: note: expanded from here 188 | "loadgame" | ^ 13 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 8 | VARF(skill, 1, 3, 10, conoutf("skill is now %d", skill)); | ^ ./cube.h:257:88: note: expanded from macro 'VARF' 257 | #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; } | ^ :169:1: note: expanded from here 169 | "skill" | ^ monster.cpp:25:79: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 25 | { 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] 25 | { 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] 26 | { 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] 26 | { 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] 27 | { 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] 27 | { 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] 28 | { 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] 28 | { 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] 29 | { 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] 29 | { 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] 30 | { 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] 30 | { 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] 31 | { 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] 31 | { 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] 32 | { 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] 32 | { GUN_SLIMEBALL, 15, 100, 1, 0, 200, 400, 2, 13, 10, S_PAIND, S_DEATHD, "a goblin", "monster/goblin" }, | ^ 19 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 290 | COMMAND(addserver, ARG_1STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :169:1: note: expanded from here 169 | "addserver" | ^ serverbrowser.cpp:291:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 291 | COMMAND(servermenu, ARG_NONE); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :171:1: note: expanded from here 171 | "servermenu" | ^ serverbrowser.cpp:292:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 292 | COMMAND(updatefrommaster, ARG_NONE); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :173:1: note: expanded from here 173 | "updatefrommaster" | ^ 5 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 20 | 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] 48 | COMMAND(showmip, ARG_NONE); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :169:1: note: expanded from here 169 | "showmip" | ^ rendercubes.cpp:54:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 54 | VAR(lighterror,1,8,100); | ^ ./cube.h:256:55: note: expanded from macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^ :171:1: note: expanded from here 171 | "lighterror" | ^ rendercubes.cpp:266:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 266 | VAR(watersubdiv, 1, 4, 64); | ^ ./cube.h:256:55: note: expanded from macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^ :172:1: note: expanded from here 172 | "watersubdiv" | ^ rendercubes.cpp:267:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 267 | VARF(waterlevel, -128, -128, 127, if(!noteditmode()) hdr.waterlevel = waterlevel); | ^ ./cube.h:257:88: note: expanded from macro 'VARF' 257 | #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; } | ^ :173:1: note: expanded from here 173 | "waterlevel" | ^ 7 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 6 | VAR(gamemode, 1, 0, 0); | ^ ./cube.h:256:55: note: expanded from macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^ :169:1: note: expanded from here 169 | "gamemode" | ^ clientgame.cpp:9:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 9 | COMMAND(mode, ARG_1INT); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :170:1: note: expanded from here 170 | "mode" | ^ clientgame.cpp:16:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 16 | VARP(sensitivity, 0, 10, 10000); | ^ ./cube.h:255:55: note: expanded from macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^ :172:1: note: expanded from here 172 | "sensitivity" | ^ clientgame.cpp:17:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 17 | VARP(sensitivityscale, 1, 1, 10000); | ^ ./cube.h:255:55: note: expanded from macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^ :173:1: note: expanded from here 173 | "sensitivityscale" | ^ clientgame.cpp:18:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 18 | VARP(invmouse, 0, 0, 1); | ^ ./cube.h:255:55: note: expanded from macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^ :174:1: note: expanded from here 174 | "invmouse" | ^ clientgame.cpp:215:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 215 | COMMANDN(sleep, sleepf, ARG_2STR); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :175:1: note: expanded from here 175 | "sleep" | ^ clientgame.cpp:312:32: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 312 | else if(player1->attacking = on) respawn(); | ~~~~~~~~~~~~~~~~~~~^~~~ clientgame.cpp:312:32: note: place parentheses around the assignment to silence this warning 312 | else if(player1->attacking = on) respawn(); | ^ | ( ) clientgame.cpp:312:32: note: use '==' to turn this assignment into an equality comparison 312 | 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] 317 | COMMAND(backward, ARG_DOWN); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :177:1: note: expanded from here 177 | "backward" | ^ clientgame.cpp:318:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 318 | COMMAND(forward, ARG_DOWN); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :179:1: note: expanded from here 179 | "forward" | ^ clientgame.cpp:319:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 319 | COMMAND(left, ARG_DOWN); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :181:1: note: expanded from here 181 | "left" | ^ clientgame.cpp:320:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 320 | COMMAND(right, ARG_DOWN); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :183:1: note: expanded from here 183 | "right" | ^ clientgame.cpp:321:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 321 | COMMANDN(jump, jumpn, ARG_DOWN); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :185:1: note: expanded from here 185 | "jump" | ^ clientgame.cpp:322:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 322 | COMMAND(attack, ARG_DOWN); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :187:1: note: expanded from here 187 | "attack" | ^ clientgame.cpp:323:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 323 | COMMAND(showscores, ARG_DOWN); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :189:1: note: expanded from here 189 | "showscores" | ^ clientgame.cpp:420:16: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 420 | neterr("clientnum"); | ^ clientgame.cpp:446:12: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 446 | setvar("gamespeed", 100); | ^ clientgame.cpp:447:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 447 | setvar("fog", 180); | ^ clientgame.cpp:448:9: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 448 | setvar("fogcolour", 0x8099B3); | ^ clientgame.cpp:455:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 455 | COMMANDN(map, changemap, ARG_1STR); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :191:1: note: expanded from here 191 | "map" | ^ 21 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 52 | COMMAND(trigger, ARG_2INT); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :169:1: note: expanded from here 169 | "trigger" | ^ world.cpp:63:27: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 63 | int lighterr = getvar("lighterror")*3; | ^ world.cpp:89:43: warning: variable 'num' set but not used [-Wunused-but-set-variable] 89 | int floor = 127, ceil = -128, num = 0; | ^ world.cpp:252:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 252 | COMMAND(clearents, ARG_1STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :171:1: note: expanded from here 171 | "clearents" | ^ world.cpp:280:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 280 | COMMAND(scalelights, ARG_2INT); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :173:1: note: expanded from here 173 | "scalelights" | ^ world.cpp:355:14: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 355 | startmap("base/unnamed"); | ^ world.cpp:360:17: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 360 | execute("fullbright 1"); | ^ world.cpp:367:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 367 | COMMAND(mapenlarge, ARG_NONE); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :175:1: note: expanded from here 175 | "mapenlarge" | ^ world.cpp:368:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 368 | COMMAND(newmap, ARG_1INT); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :177:1: note: expanded from here 177 | "newmap" | ^ world.cpp:369:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 369 | COMMANDN(recalc, calclight, ARG_NONE); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :179:1: note: expanded from here 179 | "recalc" | ^ world.cpp:370:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 370 | COMMAND(delent, ARG_NONE); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :181:1: note: expanded from here 181 | "delent" | ^ world.cpp:371:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 371 | COMMAND(entproperty, ARG_2INT); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :183:1: note: expanded from here 183 | "entproperty" | ^ 14 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 46 | char *serverpassword = ""; | ^ server.cpp:144:17: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 144 | sendservmsg("vote passed"); | ^ server.cpp:156:35: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 156 | disconnect_client(sender, "packet length"); | ^ server.cpp:224:43: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 224 | disconnect_client(sender, "client num"); | ^ server.cpp:254:54: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 254 | 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] 259 | 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] 418 | disconnect_client(lastconnect, "maxclients reached"); | ^ server.cpp:450:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 450 | if(isdedicated = dedicated) | ~~~~~~~~~~~~^~~~~~~~~~~ server.cpp:450:20: note: place parentheses around the assignment to silence this warning 450 | if(isdedicated = dedicated) | ^ | ( ) server.cpp:450:20: note: use '==' to turn this assignment into an equality comparison 450 | if(isdedicated = dedicated) | ^ | == server.cpp:459:31: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 459 | 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` -o cube_server standalone.o serverms.o server.o tools.o -L/usr/local/lib -lenet 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 12 | 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] 13 | 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] 14 | 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] 15 | 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] 33 | VAR(editing,0,0,1); | ^ ./cube.h:256:55: note: expanded from macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^ :169:1: note: expanded from here 169 | "editing" | ^ editing.cpp:56:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 56 | COMMANDN(edittoggle, toggleedit, ARG_NONE); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :170:1: note: expanded from here 170 | "edittoggle" | ^ editing.cpp:101:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 101 | VAR(flrceil,0,0,2); | ^ ./cube.h:256:55: note: expanded from macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^ :172:1: note: expanded from here 172 | "flrceil" | ^ editing.cpp:185:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 185 | VARP(undomegs, 0, 1, 10); // bounded by n megs | ^ ./cube.h:255:55: note: expanded from macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^ :173:1: note: expanded from here 173 | "undomegs" | ^ editing.cpp:253:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 253 | if(dragging = isdown) | ~~~~~~~~~^~~~~~~~ editing.cpp:253:17: note: place parentheses around the assignment to silence this warning 253 | if(dragging = isdown) | ^ | ( ) editing.cpp:253:17: note: use '==' to turn this assignment into an equality comparison 253 | if(dragging = isdown) | ^ | == editing.cpp:290:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 290 | COMMAND(editheight, ARG_2INT); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :174:1: note: expanded from here 174 | "editheight" | ^ editing.cpp:343:65: warning: '&&' within '||' [-Wlogical-op-parentheses] 343 | 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 343 | 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] 354 | COMMAND(heightfield, ARG_1INT); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :176:1: note: expanded from here 176 | "heightfield" | ^ editing.cpp:355:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 355 | COMMAND(solid, ARG_1INT); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :178:1: note: expanded from here 178 | "solid" | ^ editing.cpp:356:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 356 | COMMAND(corner, ARG_NONE); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :180:1: note: expanded from here 180 | "corner" | ^ editing.cpp:381:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 381 | COMMAND(equalize, ARG_1INT); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :182:1: note: expanded from here 182 | "equalize" | ^ editing.cpp:453:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 453 | VARF(fullbright, 0, 0, 1, | ^ ./cube.h:257:88: note: expanded from macro 'VARF' 257 | #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; } | ^ :184:1: note: expanded from here 184 | "fullbright" | ^ editing.cpp:473:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 473 | COMMANDN(select, selectpos, ARG_4INT); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :188:1: note: expanded from here 188 | "select" | ^ editing.cpp:474:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 474 | COMMAND(edittag, ARG_1INT); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :190:1: note: expanded from here 190 | "edittag" | ^ editing.cpp:475:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 475 | COMMAND(replace, ARG_NONE); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :192:1: note: expanded from here 192 | "replace" | ^ editing.cpp:476:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 476 | COMMAND(archvertex, ARG_3INT); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :194:1: note: expanded from here 194 | "archvertex" | ^ editing.cpp:477:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 477 | COMMAND(arch, ARG_2INT); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :196:1: note: expanded from here 196 | "arch" | ^ editing.cpp:478:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 478 | COMMAND(slope, ARG_2INT); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :198:1: note: expanded from here 198 | "slope" | ^ editing.cpp:479:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 479 | COMMANDN(vdelta, setvdelta, ARG_1INT); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :200:1: note: expanded from here 200 | "vdelta" | ^ editing.cpp:480:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 480 | COMMANDN(undo, editundo, ARG_NONE); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :202:1: note: expanded from here 202 | "undo" | ^ editing.cpp:481:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 481 | COMMAND(copy, ARG_NONE); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :204:1: note: expanded from here 204 | "copy" | ^ editing.cpp:482:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 482 | COMMAND(paste, ARG_NONE); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :206:1: note: expanded from here 206 | "paste" | ^ editing.cpp:483:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 483 | COMMAND(edittex, ARG_2INT); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :208:1: note: expanded from here 208 | "edittex" | ^ editing.cpp:484:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 484 | COMMAND(newent, ARG_5STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :210:1: note: expanded from here 210 | "newent" | ^ editing.cpp:485:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 485 | COMMAND(perlin, ARG_3INT); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :212:1: note: expanded from here 212 | "perlin" | ^ 31 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 56 | 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] 93 | 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] 134 | COMMAND(texturereset, ARG_NONE); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :169:1: note: expanded from here 169 | "texturereset" | ^ rendergl.cpp:135:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 135 | COMMAND(texture, ARG_2STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :171:1: note: expanded from here 171 | "texture" | ^ rendergl.cpp:163:30: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 163 | 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] 235 | VARFP(gamma, 30, 100, 300, | ^ ./cube.h:258:88: note: expanded from macro 'VARFP' 258 | #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; } | ^ :173:1: note: expanded from here 173 | "gamma" | ^ rendergl.cpp:256:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 256 | VARP(fov, 10, 105, 120); | ^ ./cube.h:255:55: note: expanded from macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^ :177:1: note: expanded from here 177 | "fov" | ^ rendergl.cpp:260:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 260 | VAR(fog, 64, 180, 1024); | ^ ./cube.h:256:55: note: expanded from macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^ :178:1: note: expanded from here 178 | "fog" | ^ rendergl.cpp:261:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 261 | VAR(fogcolour, 0, 0x8099B3, 0xFFFFFF); | ^ ./cube.h:256:55: note: expanded from macro 'VAR' 256 | #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) | ^ :179:1: note: expanded from here 179 | "fogcolour" | ^ rendergl.cpp:263:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 263 | VARP(hudgun,0,1,1); | ^ ./cube.h:255:55: note: expanded from macro 'VARP' 255 | #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) | ^ :180:1: note: expanded from here 180 | "hudgun" | ^ rendergl.cpp:265:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 265 | 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] 265 | 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] 265 | 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] 265 | 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] 265 | char *hudgunnames[] = { "hudguns/fist", "hudguns/shotg", "hudguns/chaing", "hudguns/rocket", "hudguns/rifle" }; | ^ 17 warnings generated. 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] 248 | 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 248 | 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 248 | 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] 127 | 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] 41 | COMMAND(alias, ARG_2STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :169:1: note: expanded from here 169 | "alias" | ^ command.cpp:136:20: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 136 | w[i] = ""; | ^ command.cpp:139:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 139 | if(!s) { numargs = i; s = ""; }; | ^ command.cpp:161:93: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] 161 | case ARG_1INT: if(isdown) ((void (__cdecl *)(int))id->fun)(ATOI(w[1])); break; | ^ command.cpp:156:9: note: previous statement is here 156 | else switch(id->type) | ^ command.cpp:303:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 303 | COMMAND(writecfg, ARG_NONE); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :171:1: note: expanded from here 171 | "writecfg" | ^ command.cpp:311:78: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 311 | 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] 315 | void concat(char *s) { alias("s", s); }; | ^ command.cpp:319:33: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 319 | 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 319 | 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 319 | for(char *a = s, *b = s; *a = *b; b++) if(*a!=' ') a++; | ^ | == command.cpp:334:28: warning: unsequenced modification and access to 's' [-Wunsequenced] 334 | 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] 339 | COMMANDN(loop, loopa, ARG_2STR); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :173:1: note: expanded from here 173 | "loop" | ^ command.cpp:340:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 340 | COMMANDN(while, whilea, ARG_2STR); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :175:1: note: expanded from here 175 | "while" | ^ command.cpp:341:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 341 | COMMANDN(if, ifthen, ARG_3STR); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :177:1: note: expanded from here 177 | "if" | ^ command.cpp:342:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 342 | COMMAND(onrelease, ARG_DWN1); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :179:1: note: expanded from here 179 | "onrelease" | ^ command.cpp:343:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 343 | COMMAND(exec, ARG_1STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :181:1: note: expanded from here 181 | "exec" | ^ command.cpp:344:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 344 | COMMAND(concat, ARG_VARI); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :183:1: note: expanded from here 183 | "concat" | ^ command.cpp:345:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 345 | COMMAND(concatword, ARG_VARI); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :185:1: note: expanded from here 185 | "concatword" | ^ command.cpp:346:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 346 | COMMAND(at, ARG_2STR); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :187:1: note: expanded from here 187 | "at" | ^ command.cpp:347:1: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 347 | COMMAND(listlen, ARG_1EST); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :189:1: note: expanded from here 189 | "listlen" | ^ command.cpp:349:50: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 349 | int add(int a, int b) { return a+b; }; COMMANDN(+, add, ARG_2EXP); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :191:1: note: expanded from here 191 | "+" | ^ command.cpp:350:50: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 350 | int mul(int a, int b) { return a*b; }; COMMANDN(*, mul, ARG_2EXP); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :193:1: note: expanded from here 193 | "*" | ^ command.cpp:351:50: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 351 | int sub(int a, int b) { return a-b; }; COMMANDN(-, sub, ARG_2EXP); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :195:1: note: expanded from here 195 | "-" | ^ command.cpp:352:50: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 352 | 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' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :197:1: note: expanded from here 197 | "div" | ^ command.cpp:353:50: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 353 | int mod(int a, int b) { return b ? a%b : 0; }; COMMAND(mod, ARG_2EXP); | ^ ./cube.h:254:30: note: expanded from macro 'COMMAND' 254 | #define COMMAND(name, nargs) COMMANDN(name, name, nargs) | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :199:1: note: expanded from here 199 | "mod" | ^ command.cpp:354:50: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 354 | int equal(int a, int b) { return (int)(a==b); }; COMMANDN(=, equal, ARG_2EXP); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :201:1: note: expanded from here 201 | "=" | ^ command.cpp:355:50: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 355 | int lt(int a, int b) { return (int)(a:203:1: note: expanded from here 203 | "<" | ^ command.cpp:356:50: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 356 | int gt(int a, int b) { return (int)(a>b); }; COMMANDN(>, gt, ARG_2EXP); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :205:1: note: expanded from here 205 | ">" | ^ command.cpp:358:60: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 358 | 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' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :207:1: note: expanded from here 207 | "strcmp" | ^ command.cpp:360:51: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 360 | int rndn(int a) { return a>0 ? rnd(a) : 0; }; COMMANDN(rnd, rndn, ARG_1EXP); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :209:1: note: expanded from here 209 | "rnd" | ^ command.cpp:362:46: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] 362 | int explastmillis() { return lastmillis; }; COMMANDN(millis, explastmillis, ARG_1EXP); | ^ ./cube.h:253:75: note: expanded from macro 'COMMANDN' 253 | #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) | ^ :211:1: note: expanded from here 211 | "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] 248 | 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 27 | ident *b = idents->access(name); | ^ ./tools.h:248:29: note: place parentheses around the assignment to silence this warning 248 | 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 248 | 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` -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 =========================================================================== =================================================== ===== 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=2026-03-17T11:02:09+0000' 'PKG_NOTE_ports_top_git_hash=8c988f802ea2' 'PKG_NOTE_ports_top_checkout_unclean=no' 'PKG_NOTE_port_git_hash=fb16dfecae4a' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.2' 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 Tue Mar 17 07:02:40 EDT 2026 build time: 00:00:31