=> Building games/cube build started at Sat Oct 8 22:59:58 PDT 2016 port directory: /usr/ports/games/cube building for: DragonFly pkgbox64.dragonflybsd.org 4.7-DEVELOPMENT DragonFly v4.7.0.78.g7d868-DEVELOPMENT #7: Mon Aug 1 22:25:32 PDT 2016 root@pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 maintained by: ports@FreeBSD.org ident warning: no id keywords in /build/boomdata/data/.m/Release46-default/ref/../06//usr/ports/games/cube/Makefile Makefile ident: Poudriere version: 3.1-pre Host OSVERSION: 400700 Jail OSVERSION: 400600 ---Begin Environment--- STATUS=1 SAVED_TERM=screen MASTERMNT=/build/boomdata/data/.m/Release46-default/ref PATH=/usr/local/libexec/poudriere:/sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/pkg/xorg/bin:/usr/X11R6/bin:/root/bin:/sbin:/usr/sbin POUDRIERE_BUILD_TYPE=bulk PKGNAME=cube-2005.08.29_16 OLDPWD=/root/boom PWD=/build/boomdata/data/.m/Release46-default/ref/.p/pool MASTERNAME=Release46-default TERM=cons25 USER=root HOME=/root POUDRIERE_VERSION=3.1-pre LOCALBASE=/usr/local PACKAGE_BUILDING=yes ---End Environment--- ---Begin OPTIONS List--- ===> The following configuration options are available for cube-2005.08.29_16: 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--- --CONFIGURE_ARGS-- --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- SDL_CONFIG=/usr/local/bin/sdl-config MAKE=gmake XDG_DATA_HOME=/wrkdirs/games/cube XDG_CONFIG_HOME=/wrkdirs/games/cube HOME=/wrkdirs/games/cube TMPDIR="/tmp" SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc50 --End CONFIGURE_ENV-- --MAKE_ENV-- SDL_CONFIG=/usr/local/bin/sdl-config XDG_DATA_HOME=/wrkdirs/games/cube XDG_CONFIG_HOME=/wrkdirs/games/cube HOME=/wrkdirs/games/cube TMPDIR="/tmp" NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc50 PREFIX=/usr/local LOCALBASE=/usr/local LIBDIR="/usr/lib" NOPROFILE=1 CC="cc" CFLAGS="-pipe -fsigned-char -O2 -fno-strict-aliasing" CPP="cpp" CPPFLAGS="" LDFLAGS=" -lX11" LIBS="" CXX="c++" CXXFLAGS=" -pipe -fsigned-char -O2 -fno-strict-aliasing" MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 444" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- DOCS="" NO_DOCS="@comment " OPTIMIZED_CFLAGS="@comment " NO_OPTIMIZED_CFLAGS="" CLIENT="" NO_CLIENT="@comment " SERVER="" NO_SERVER="@comment " OSREL=4.6 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local PORTDOCS="" PORTEXAMPLES="" LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/cube" EXAMPLESDIR="share/examples/cube" DATADIR="share/cube" WWWDIR="www/cube" ETCDIR="etc/cube" --End PLIST_SUB-- --SUB_LIST-- DOCS="" NO_DOCS="@comment " OPTIMIZED_CFLAGS="@comment " NO_OPTIMIZED_CFLAGS="" CLIENT="" NO_CLIENT="@comment " 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--- NO_BACKUP=yes USE_PACKAGE_DEPENDS=yes PKG_CREATE_VERBOSE=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORT_DBDIR=/options PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles MAKE_JOBS_NUMBER=5 ---End make.conf--- =================================================== ===> 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://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port =========================================================================== =================================================== ===> cube-2005.08.29_16 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.8.7_3.txz Installing pkg-1.8.7_3... Extracting pkg-1.8.7_3: .......... done ===> cube-2005.08.29_16 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of cube-2005.08.29_16 =========================================================================== =================================================== =========================================================================== =================================================== ===> 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://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> Fetching all distfiles required by cube-2005.08.29_16 for building =========================================================================== =================================================== ===> 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://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> Fetching all distfiles required by cube-2005.08.29_16 for building => SHA256 Checksum OK for cube_2005_08_29_unix.tar.gz. => SHA256 Checksum OK for cube_2005_08_29_src.zip. =========================================================================== =================================================== =========================================================================== =================================================== ===> 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://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> Fetching all distfiles required by cube-2005.08.29_16 for building ===> Extracting for cube-2005.08.29_16 => SHA256 Checksum OK for cube_2005_08_29_unix.tar.gz. => SHA256 Checksum OK for cube_2005_08_29_src.zip. =========================================================================== =================================================== =========================================================================== =================================================== ===> Patching for cube-2005.08.29_16 ===> Converting DOS text files to UNIX text files ===> Applying ports patches for cube-2005.08.29_16 =========================================================================== =================================================== ===> cube-2005.08.29_16 depends on file: /usr/local/bin/sdl-config - not found ===> Installing existing package /packages/All/sdl-1.2.15_7,2.txz Installing sdl-1.2.15_7,2... `-- Installing libXrender-0.9.9... | `-- Installing xproto-7.0.28... | `-- Extracting xproto-7.0.28: .......... done | `-- Installing renderproto-0.11.1... | `-- Extracting renderproto-0.11.1: .... done | `-- Installing libX11-1.6.3,1... | | `-- Installing kbproto-1.0.7... | | `-- Extracting kbproto-1.0.7: .......... done | | `-- Installing libXdmcp-1.1.2... | | `-- Extracting libXdmcp-1.1.2: ......... done | | `-- Installing libxcb-1.11.1... | | `-- Installing libxml2-2.9.4... | | `-- Extracting libxml2-2.9.4: .......... done | | `-- Installing libpthread-stubs-0.3_6... | | `-- Extracting libpthread-stubs-0.3_6: ..... done | | `-- Installing libXau-1.0.8_3... | | `-- Extracting libXau-1.0.8_3: .......... done | | `-- Extracting libxcb-1.11.1: .......... done | `-- Extracting libX11-1.6.3,1: .......... done `-- Extracting libXrender-0.9.9: .......... done `-- Installing libXrandr-1.5.0... | `-- Installing randrproto-1.5.0... | `-- Extracting randrproto-1.5.0: .... done | `-- Installing libXext-1.3.3_1,1... | | `-- Installing xextproto-7.3.0... | | `-- Extracting xextproto-7.3.0: .......... done | `-- Extracting libXext-1.3.3_1,1: .......... done `-- Extracting libXrandr-1.5.0: .......... done `-- Installing libGLU-9.0.0_2... | `-- Installing libGL-11.2.2... | | `-- Installing expat-2.2.0... | | `-- Extracting expat-2.2.0: .......... done | | `-- Installing dri2proto-2.8... | | `-- Extracting dri2proto-2.8: .... done | | `-- Installing libXdamage-1.1.4_3... | | `-- Installing libXfixes-5.0.1_3... | | | `-- Installing fixesproto-5.0... | | | `-- Extracting fixesproto-5.0: .... done | | `-- Extracting libXfixes-5.0.1_3: .......... done | | `-- Installing damageproto-1.2.1... | | `-- Extracting damageproto-1.2.1: .... done | | `-- Extracting libXdamage-1.1.4_3: ...... done | | `-- Installing libdevq-0.0.2_1... | | `-- Extracting libdevq-0.0.2_1: ....... done | | `-- Installing libXxf86vm-1.1.4_1... | | `-- Installing xf86vidmodeproto-2.3.1... | | `-- Extracting xf86vidmodeproto-2.3.1: .... done | | `-- Extracting libXxf86vm-1.1.4_1: .......... done | | `-- Installing libdrm-2.4.66,1... | | `-- Installing libpciaccess-0.13.4... | | | `-- Installing pciids-20160621... | | | `-- Extracting pciids-20160621: ..... done | | `-- Extracting libpciaccess-0.13.4: ...... done | | `-- Extracting libdrm-2.4.66,1: .......... done | | `-- Installing libelf-0.8.13_1... | | `-- Installing gettext-runtime-0.19.8.1... | | | `-- Installing indexinfo-0.2.5... | | | `-- Extracting indexinfo-0.2.5: .... done | | `-- Extracting gettext-runtime-0.19.8.1: .......... done | | `-- Extracting libelf-0.8.13_1: .......... done | | `-- Installing libxshmfence-1.2... | | `-- Extracting libxshmfence-1.2: ......... done | | `-- Installing libglapi-11.2.2... | | `-- Installing libXvMC-1.0.9... | | | `-- Installing libXv-1.0.10_3,1... | | | `-- Installing videoproto-2.3.2... | | | `-- Extracting videoproto-2.3.2: ...... done | | | `-- Extracting libXv-1.0.10_3,1: .......... done | | `-- Extracting libXvMC-1.0.9: .......... done | | `-- Extracting libglapi-11.2.2: ... done | `-- Extracting libGL-11.2.2: .......... done `-- Extracting libGLU-9.0.0_2: ...... done `-- Installing aalib-1.4.r5_11... | `-- Installing ncurses-6.0_5... | `-- Extracting ncurses-6.0_5: .......... done `-- Extracting aalib-1.4.r5_11: .......... done Extracting sdl-1.2.15_7,2: .......... done Message from ncurses-6.0_5: ===> NOTICE: The ncurses port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port Message from aalib-1.4.r5_11: ===> NOTICE: The aalib port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port Message from sdl-1.2.15_7,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_16 depends on file: /usr/local/bin/sdl-config - found ===> Returning to build of cube-2005.08.29_16 ===> cube-2005.08.29_16 depends on executable: gmake - not found ===> Installing existing package /packages/All/gmake-4.2.1_1.txz Installing gmake-4.2.1_1... Extracting gmake-4.2.1_1: .......... done ===> cube-2005.08.29_16 depends on executable: gmake - found ===> Returning to build of cube-2005.08.29_16 ===> cube-2005.08.29_16 depends on file: /usr/local/libdata/pkgconfig/glproto.pc - not found ===> Installing existing package /packages/All/glproto-1.4.17.txz Installing glproto-1.4.17... Extracting glproto-1.4.17: ...... done ===> cube-2005.08.29_16 depends on file: /usr/local/libdata/pkgconfig/glproto.pc - found ===> Returning to build of cube-2005.08.29_16 ===> cube-2005.08.29_16 depends on file: /usr/local/libdata/pkgconfig/dri2proto.pc - found ===> cube-2005.08.29_16 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found =========================================================================== =================================================== ===> cube-2005.08.29_16 depends on shared library: libenet.so - not found ===> Installing existing package /packages/All/enet-1.3.13,1.txz Installing enet-1.3.13,1... Extracting enet-1.3.13,1: .......... done ===> cube-2005.08.29_16 depends on shared library: libenet.so - found (/usr/local/lib/libenet.so) ===> Returning to build of cube-2005.08.29_16 ===> cube-2005.08.29_16 depends on shared library: libSDL.so - found (/usr/local/lib/libSDL.so) ===> cube-2005.08.29_16 depends on shared library: libSDL_image.so - not found ===> Installing existing package /packages/All/sdl_image-1.2.12_9.txz Installing sdl_image-1.2.12_9... `-- Installing jpeg-turbo-1.4.2... `-- Extracting jpeg-turbo-1.4.2: .......... done `-- Installing png-1.6.23... `-- Extracting png-1.6.23: .......... done `-- Installing webp-0.5.0... | `-- Installing giflib-5.1.3... | `-- Extracting giflib-5.1.3: .......... done | `-- Installing tiff-4.0.6_2... | | `-- Installing jbigkit-2.1_1... | | `-- Extracting jbigkit-2.1_1: .......... done | `-- Extracting tiff-4.0.6_2: .......... done `-- Extracting webp-0.5.0: .......... done Extracting sdl_image-1.2.12_9: .......... done ===> cube-2005.08.29_16 depends on shared library: libSDL_image.so - found (/usr/local/lib/libSDL_image.so) ===> Returning to build of cube-2005.08.29_16 ===> cube-2005.08.29_16 depends on shared library: libSDL_mixer.so - not found ===> Installing existing package /packages/All/sdl_mixer-1.2.12_12.txz Installing sdl_mixer-1.2.12_12... `-- Installing flac-1.3.1_2... | `-- Installing libogg-1.3.2_1,4... | `-- Extracting libogg-1.3.2_1,4: .......... done `-- Extracting flac-1.3.1_2: .......... done `-- Installing libmikmod-3.3.8... `-- Extracting libmikmod-3.3.8: .......... done `-- Installing smpeg-0.4.4_14... `-- Extracting smpeg-0.4.4_14: .......... done `-- Installing libvorbis-1.3.5,3... `-- Extracting libvorbis-1.3.5,3: .......... done `-- Installing timidity-0.2i_1... `-- Extracting timidity-0.2i_1: .......... done Extracting sdl_mixer-1.2.12_12: ......... 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://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> cube-2005.08.29_16 depends on shared library: libSDL_mixer.so - found (/usr/local/lib/libSDL_mixer.so) ===> Returning to build of cube-2005.08.29_16 ===> cube-2005.08.29_16 depends on shared library: libGLU.so - found (/usr/local/lib/libGLU.so) =========================================================================== =================================================== ===> Configuring for cube-2005.08.29_16 =========================================================================== =================================================== ===> Building for cube-2005.08.29_16 gmake[1]: Entering directory '/wrkdirs/games/cube/cube_source/src' c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o client.o client.cpp c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o clientextras.o clientextras.cpp c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o clientgame.o clientgame.cpp c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o clients2c.o clients2c.cpp c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o command.o command.cpp In file included from cube.h:284:0, from clients2c.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ clients2c.cpp: In function 'void localservertoclient(uchar*, int)': clients2c.cpp:54:72: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(ENET_NET_TO_HOST_16(*(ushort *)buf)!=len) neterr("packet length"); ^ clients2c.cpp:259:31: warning: narrowing conversion of '(& ents.vector::operator[](((int)i)))->entity::.persistent_entity::x' from 'short int' to 'float' inside { } is ill-formed in C++11 [-Wnarrowing] vec v = { ents[i].x, ents[i].y, ents[i].z }; ^ clients2c.cpp:259:42: warning: narrowing conversion of '(& ents.vector::operator[](((int)i)))->entity::.persistent_entity::y' from 'short int' to 'float' inside { } is ill-formed in C++11 [-Wnarrowing] vec v = { ents[i].x, ents[i].y, ents[i].z }; ^ clients2c.cpp:259:53: warning: narrowing conversion of '(& ents.vector::operator[](((int)i)))->entity::.persistent_entity::z' from 'short int' to 'float' inside { } is ill-formed in C++11 [-Wnarrowing] vec v = { ents[i].x, ents[i].y, ents[i].z }; ^ clients2c.cpp:352:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] neterr("type"); ^ In file included from cube.h:284:0, from clientextras.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ clientextras.cpp: In function 'void renderclients()': clientextras.cpp:47:155: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] loopv(players) if((d = players[i]) && (!demoplayback || i!=democlientnum)) renderclient(d, isteam(player1->team, d->team), "monster/ogro", false, 1.0f); ^ clientextras.cpp: In function 'void renderscores()': clientextras.cpp:104:46: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] menumanual(0, scorelines.length(), ""); ^ In file included from clientextras.cpp:3:0: clientextras.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ clientextras.cpp:155:1: note: in expansion of macro 'COMMAND' COMMAND(sendmap, ARG_1STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ clientextras.cpp:156:1: note: in expansion of macro 'COMMAND' COMMAND(getmap, ARG_NONE); ^ In file included from cube.h:284:0, from clientgame.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from clientgame.cpp:3:0: cube.h:256:95: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ clientgame.cpp:6:1: note: in expansion of macro 'VAR' VAR(gamemode, 1, 0, 0); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ clientgame.cpp:9:1: note: in expansion of macro 'COMMAND' COMMAND(mode, ARG_1INT); ^ cube.h:255:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ clientgame.cpp:16:1: note: in expansion of macro 'VARP' VARP(sensitivity, 0, 10, 10000); ^ cube.h:255:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ clientgame.cpp:17:1: note: in expansion of macro 'VARP' VARP(sensitivityscale, 1, 1, 10000); ^ cube.h:255:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ clientgame.cpp:18:1: note: in expansion of macro 'VARP' VARP(invmouse, 0, 0, 1); ^ In file included from cube.h:284:0, from command.cpp:4: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ clientgame.cpp:215:1: note: in expansion of macro 'COMMANDN' COMMANDN(sleep, sleepf, ARG_2STR); ^ In file included from command.cpp:4:0: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ command.cpp:41:1: note: in expansion of macro 'COMMAND' COMMAND(alias, ARG_2STR); ^ command.cpp: In function 'int execute(char*, bool)': command.cpp:136:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] w[i] = ""; ^ command.cpp:139:37: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(!s) { numargs = i; s = ""; }; ^ In file included from command.cpp:4:0: command.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ command.cpp:303:1: note: in expansion of macro 'COMMAND' COMMAND(writecfg, ARG_NONE); ^ command.cpp: In function 'void loopa(char*, char*)': command.cpp:311:84: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] void loopa(char *times, char *body) { int t = atoi(times); loopi(t) { intset("i", i); execute(body); }; }; ^ command.cpp: In function 'void concat(char*)': command.cpp:315:36: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] void concat(char *s) { alias("s", s); }; ^ command.cpp: In function 'void concatword(char*)': command.cpp:319:36: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for(char *a = s, *b = s; *a = *b; b++) if(*a!=' ') a++; ^ In file included from command.cpp:4:0: command.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:339:1: note: in expansion of macro 'COMMANDN' COMMANDN(loop, loopa, ARG_2STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:340:1: note: in expansion of macro 'COMMANDN' COMMANDN(while, whilea, ARG_2STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:341:1: note: in expansion of macro 'COMMANDN' COMMANDN(if, ifthen, ARG_3STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ command.cpp:342:1: note: in expansion of macro 'COMMAND' COMMAND(onrelease, ARG_DWN1); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ command.cpp:343:1: note: in expansion of macro 'COMMAND' COMMAND(exec, ARG_1STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ command.cpp:344:1: note: in expansion of macro 'COMMAND' COMMAND(concat, ARG_VARI); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ command.cpp:345:1: note: in expansion of macro 'COMMAND' COMMAND(concatword, ARG_VARI); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ command.cpp:346:1: note: in expansion of macro 'COMMAND' COMMAND(at, ARG_2STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ command.cpp:347:1: note: in expansion of macro 'COMMAND' COMMAND(listlen, ARG_1EST); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:349:50: note: in expansion of macro 'COMMANDN' int add(int a, int b) { return a+b; }; COMMANDN(+, add, ARG_2EXP); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:350:50: note: in expansion of macro 'COMMANDN' int mul(int a, int b) { return a*b; }; COMMANDN(*, mul, ARG_2EXP); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:351:50: note: in expansion of macro 'COMMANDN' int sub(int a, int b) { return a-b; }; COMMANDN(-, sub, ARG_2EXP); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:352:50: note: in expansion of macro 'COMMANDN' int divi(int a, int b) { return b ? a/b : 0; }; COMMANDN(div, divi, ARG_2EXP); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ command.cpp:353:50: note: in expansion of macro 'COMMAND' int mod(int a, int b) { return b ? a%b : 0; }; COMMAND(mod, ARG_2EXP); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:354:50: note: in expansion of macro 'COMMANDN' int equal(int a, int b) { return (int)(a==b); }; COMMANDN(=, equal, ARG_2EXP); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:355:50: note: in expansion of macro 'COMMANDN' int lt(int a, int b) { return (int)(ab); }; COMMANDN(>, gt, ARG_2EXP); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:358:60: note: in expansion of macro 'COMMANDN' int strcmpa(char *a, char *b) { return strcmp(a,b)==0; }; COMMANDN(strcmp, strcmpa, ARG_2EST); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:360:51: note: in expansion of macro 'COMMANDN' int rndn(int a) { return a>0 ? rnd(a) : 0; }; COMMANDN(rnd, rndn, ARG_1EXP); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:362:46: note: in expansion of macro 'COMMANDN' int explastmillis() { return lastmillis; }; COMMANDN(millis, explastmillis, ARG_1EXP); ^ In file included from cube.h:3:0, from command.cpp:4: tools.h: In instantiation of 'T* hashtable::access(char*, T*) [with T = ident]': command.cpp:27:35: required from here tools.h:248:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ clientgame.cpp: In function 'void attack(bool)': clientgame.cpp:312:36: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if(player1->attacking = on) respawn(); ^ In file included from clientgame.cpp:3:0: clientgame.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ clientgame.cpp:317:1: note: in expansion of macro 'COMMAND' COMMAND(backward, ARG_DOWN); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ clientgame.cpp:318:1: note: in expansion of macro 'COMMAND' COMMAND(forward, ARG_DOWN); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ clientgame.cpp:319:1: note: in expansion of macro 'COMMAND' COMMAND(left, ARG_DOWN); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ clientgame.cpp:320:1: note: in expansion of macro 'COMMAND' COMMAND(right, ARG_DOWN); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ clientgame.cpp:321:1: note: in expansion of macro 'COMMANDN' COMMANDN(jump, jumpn, ARG_DOWN); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ clientgame.cpp:322:1: note: in expansion of macro 'COMMAND' COMMAND(attack, ARG_DOWN); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ clientgame.cpp:323:1: note: in expansion of macro 'COMMAND' COMMAND(showscores, ARG_DOWN); ^ clientgame.cpp: In function 'dynent* getclient(int)': clientgame.cpp:420:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] neterr("clientnum"); ^ clientgame.cpp: In function 'void startmap(char*)': clientgame.cpp:446:28: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] setvar("gamespeed", 100); ^ clientgame.cpp:447:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] setvar("fog", 180); ^ clientgame.cpp:448:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] setvar("fogcolour", 0x8099B3); ^ In file included from clientgame.cpp:3:0: clientgame.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ clientgame.cpp:455:1: note: in expansion of macro 'COMMANDN' COMMANDN(map, changemap, ARG_1STR); ^ In file included from cube.h:284:0, from client.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from client.cpp:3:0: cube.h:257:134: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #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; } ^ client.cpp:28:1: note: in expansion of macro 'VARF' VARF(rate, 0, 0, 25000, if(clienthost && (!rate || rate>1000)) enet_host_bandwidth_limit (clienthost, rate, rate)); ^ cube.h:257:134: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #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; } ^ client.cpp:32:1: note: in expansion of macro 'VARF' VARF(throttle_interval, 0, 5, 30, throttle()); ^ cube.h:257:134: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #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; } ^ client.cpp:33:1: note: in expansion of macro 'VARF' VARF(throttle_accel, 0, 2, 32, throttle()); ^ cube.h:257:134: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #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; } ^ client.cpp:34:1: note: in expansion of macro 'VARF' VARF(throttle_decel, 0, 2, 32, throttle()); ^ In file included from client.cpp:3:0: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ client.cpp:46:1: note: in expansion of macro 'COMMANDN' COMMANDN(team, newteam, ARG_1STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ client.cpp:47:1: note: in expansion of macro 'COMMANDN' COMMANDN(name, newname, ARG_1STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ client.cpp:143:1: note: in expansion of macro 'COMMAND' COMMAND(echo, ARG_VARI); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ client.cpp:144:1: note: in expansion of macro 'COMMANDN' COMMANDN(say, toserver, ARG_VARI); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ client.cpp:145:1: note: in expansion of macro 'COMMANDN' COMMANDN(connect, connects, ARG_1STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ client.cpp:146:1: note: in expansion of macro 'COMMANDN' COMMANDN(disconnect, trydisconnect, ARG_NONE); ^ client.cpp: In function 'void addmsg(int, int, int, ...)': client.cpp:155:133: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(num!=msgsizelookup(type)) { sprintf_sd(s)("inconsistant msg size for %d (%d != %d)", type, num, msgsizelookup(type)); fatal(s); }; ^ In file included from client.cpp:3:0: client.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ client.cpp:179:1: note: in expansion of macro 'COMMAND' COMMAND(password, ARG_1STR); ^ client.cpp: In function 'void initclientnet()': client.cpp:188:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] newname("unnamed"); ^ client.cpp:189:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] newteam("red"); ^ cube.h:253:48: warning: '__dummy_sendmap' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ clientextras.cpp:155:1: note: in expansion of macro 'COMMAND' COMMAND(sendmap, ARG_1STR); ^ cube.h:253:48: warning: '__dummy_getmap' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ clientextras.cpp:156:1: note: in expansion of macro 'COMMAND' COMMAND(getmap, ARG_NONE); ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o console.o console.cpp c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o editing.o editing.cpp In file included from cube.h:284:0, from console.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from console.cpp:3:0: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ console.cpp:22:1: note: in expansion of macro 'COMMANDN' COMMANDN(conskip, setconskip, ARG_1INT); ^ console.cpp: In function 'void conline(const char*, bool)': console.cpp:27:76: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] cl.cref = conlines.length()>100 ? conlines.pop().cref : newstringbuf(""); // constrain the buffer size ^ In file included from console.cpp:3:0: console.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ console.cpp:88:1: note: in expansion of macro 'COMMAND' COMMAND(keymap, ARG_3STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ console.cpp:101:1: note: in expansion of macro 'COMMANDN' COMMANDN(bind, bindkey, ARG_2STR); ^ console.cpp: In function 'void saycommand(char*)': console.cpp:107:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(!init) init = ""; ^ In file included from console.cpp:3:0: console.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ console.cpp:113:1: note: in expansion of macro 'COMMAND' COMMAND(saycommand, ARG_VARI); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ console.cpp:114:1: note: in expansion of macro 'COMMAND' COMMAND(mapmsg, ARG_1STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ console.cpp:168:1: note: in expansion of macro 'COMMAND' COMMAND(history, ARG_1INT); ^ console.cpp: In function 'void keypress(int, bool, int)': console.cpp:206:59: warning: narrowing conversion of 'cooked' from 'int' to 'char' inside { } is ill-formed in C++11 [-Wnarrowing] if(cooked) { char add[] = { cooked, 0 }; strcat_s(commandbuf, add); }; ^ cube.h:253:48: warning: '__dummy_mode' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ clientgame.cpp:9:1: note: in expansion of macro 'COMMAND' COMMAND(mode, ARG_1INT); ^ cube.h:253:48: warning: '__dummy_sleepf' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ clientgame.cpp:215:1: note: in expansion of macro 'COMMANDN' COMMANDN(sleep, sleepf, ARG_2STR); ^ cube.h:253:48: warning: '__dummy_backward' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ clientgame.cpp:317:1: note: in expansion of macro 'COMMAND' COMMAND(backward, ARG_DOWN); ^ cube.h:253:48: warning: '__dummy_forward' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ clientgame.cpp:318:1: note: in expansion of macro 'COMMAND' COMMAND(forward, ARG_DOWN); ^ cube.h:253:48: warning: '__dummy_left' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ clientgame.cpp:319:1: note: in expansion of macro 'COMMAND' COMMAND(left, ARG_DOWN); ^ cube.h:253:48: warning: '__dummy_right' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ clientgame.cpp:320:1: note: in expansion of macro 'COMMAND' COMMAND(right, ARG_DOWN); ^ cube.h:253:48: warning: '__dummy_jumpn' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ clientgame.cpp:321:1: note: in expansion of macro 'COMMANDN' COMMANDN(jump, jumpn, ARG_DOWN); ^ cube.h:253:48: warning: '__dummy_attack' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ clientgame.cpp:322:1: note: in expansion of macro 'COMMAND' COMMAND(attack, ARG_DOWN); ^ cube.h:253:48: warning: '__dummy_showscores' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ clientgame.cpp:323:1: note: in expansion of macro 'COMMAND' COMMAND(showscores, ARG_DOWN); ^ cube.h:253:48: warning: '__dummy_changemap' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ clientgame.cpp:455:1: note: in expansion of macro 'COMMANDN' COMMANDN(map, changemap, ARG_1STR); ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o entities.o entities.cpp In file included from cube.h:284:0, from editing.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ editing.cpp:12:55: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] variable("selx", 0, 0, 4096, &sel.x, NULL, false), ^ In file included from client.cpp:3:0: client.cpp: At global scope: cube.h:253:48: warning: '__dummy_newteam' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ client.cpp:46:1: note: in expansion of macro 'COMMANDN' COMMANDN(team, newteam, ARG_1STR); ^ cube.h:253:48: warning: '__dummy_newname' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ client.cpp:47:1: note: in expansion of macro 'COMMANDN' COMMANDN(name, newname, ARG_1STR); ^ cube.h:253:48: warning: '__dummy_echo' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ client.cpp:143:1: note: in expansion of macro 'COMMAND' COMMAND(echo, ARG_VARI); ^ editing.cpp:13:55: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] variable("sely", 0, 0, 4096, &sel.y, NULL, false), ^ cube.h:253:48: warning: '__dummy_toserver' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ client.cpp:144:1: note: in expansion of macro 'COMMANDN' COMMANDN(say, toserver, ARG_VARI); ^ editing.cpp:14:55: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] variable("selxs", 0, 0, 4096, &sel.xs, NULL, false), ^ editing.cpp:15:55: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] variable("selys", 0, 0, 4096, &sel.ys, NULL, false), ^ In file included from editing.cpp:3:0: cube.h:256:95: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ editing.cpp:33:1: note: in expansion of macro 'VAR' VAR(editing,0,0,1); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ editing.cpp:56:1: note: in expansion of macro 'COMMANDN' COMMANDN(edittoggle, toggleedit, ARG_NONE); ^ cube.h:256:95: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ editing.cpp:101:1: note: in expansion of macro 'VAR' VAR(flrceil,0,0,2); ^ editing.cpp: In function 'void cursorupdate()': editing.cpp:161:16: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] if(!(ix+1&GRIDM)) line(ix+1, iy, h2, ix+1, iy+1, h3); ^ editing.cpp:163:16: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] if(!(iy+1&GRIDM)) line(ix, iy+1, h4, ix+1, iy+1, h3); ^ In file included from editing.cpp:3:0: editing.cpp: At global scope: cube.h:255:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ editing.cpp:185:1: note: in expansion of macro 'VARP' VARP(undomegs, 0, 1, 10); // bounded by n megs ^ editing.cpp: In function 'void editdrag(bool)': editing.cpp:253:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(dragging = isdown) ^ In file included from editing.cpp:3:0: editing.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:290:1: note: in expansion of macro 'COMMAND' COMMAND(editheight, ARG_2INT); ^ editing.cpp: In function 'void edittype(int)': editing.cpp:343:65: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(type==CORNER && (sel.xs!=sel.ys || sel.xs==3 || sel.xs>4 && sel.xs!=8 ^ In file included from editing.cpp:3:0: editing.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:354:1: note: in expansion of macro 'COMMAND' COMMAND(heightfield, ARG_1INT); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:355:1: note: in expansion of macro 'COMMAND' COMMAND(solid, ARG_1INT); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:356:1: note: in expansion of macro 'COMMAND' COMMAND(corner, ARG_NONE); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:381:1: note: in expansion of macro 'COMMAND' COMMAND(equalize, ARG_1INT); ^ In file included from editing.cpp:3:0: cube.h:257:134: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #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; } ^ editing.cpp:453:1: note: in expansion of macro 'VARF' VARF(fullbright, 0, 0, 1, ^ In file included from editing.cpp:3:0: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ editing.cpp:473:1: note: in expansion of macro 'COMMANDN' COMMANDN(select, selectpos, ARG_4INT); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:474:1: note: in expansion of macro 'COMMAND' COMMAND(edittag, ARG_1INT); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:475:1: note: in expansion of macro 'COMMAND' COMMAND(replace, ARG_NONE); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:476:1: note: in expansion of macro 'COMMAND' COMMAND(archvertex, ARG_3INT); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:477:1: note: in expansion of macro 'COMMAND' COMMAND(arch, ARG_2INT); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:478:1: note: in expansion of macro 'COMMAND' COMMAND(slope, ARG_2INT); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ editing.cpp:479:1: note: in expansion of macro 'COMMANDN' COMMANDN(vdelta, setvdelta, ARG_1INT); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ editing.cpp:480:1: note: in expansion of macro 'COMMANDN' COMMANDN(undo, editundo, ARG_NONE); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:481:1: note: in expansion of macro 'COMMAND' COMMAND(copy, ARG_NONE); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:482:1: note: in expansion of macro 'COMMAND' COMMAND(paste, ARG_NONE); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:483:1: note: in expansion of macro 'COMMAND' COMMAND(edittex, ARG_2INT); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:484:1: note: in expansion of macro 'COMMAND' COMMAND(newent, ARG_5STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:485:1: note: in expansion of macro 'COMMAND' COMMAND(perlin, ARG_3INT); ^ cube.h:253:48: warning: '__dummy_connects' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ client.cpp:145:1: note: in expansion of macro 'COMMANDN' COMMANDN(connect, connects, ARG_1STR); ^ cube.h:253:48: warning: '__dummy_trydisconnect' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ client.cpp:146:1: note: in expansion of macro 'COMMANDN' COMMANDN(disconnect, trydisconnect, ARG_NONE); ^ cube.h:253:48: warning: '__dummy_password' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ client.cpp:179:1: note: in expansion of macro 'COMMAND' COMMAND(password, ARG_1STR); ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o main.o main.cpp In file included from cube.h:284:0, from entities.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ entities.cpp:11:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] }; ^ entities.cpp:11:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] entities.cpp:11:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] entities.cpp:11:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] entities.cpp:11:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] entities.cpp:11:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] entities.cpp:11:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] entities.cpp:11:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] entities.cpp:11:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] entities.cpp:11:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] entities.cpp: In function 'void renderentities()': entities.cpp:50:109: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderent(e, "carrot", (float)(1+sin(lastmillis/100.0+e.x+e.y)/20), lastmillis/(e.attr2 ? 1.0f : 10.0f)); ^ entities.cpp:53:173: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] case 4: renderent(e, "switch2", 3, (float)e.attr3*90, (!e.spawned && !triggertime) ? 1 : 0, (e.spawned || !triggertime) ? 1 : 2, triggertime, 1050.0f); break; ^ entities.cpp:54:171: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] case 5: renderent(e, "switch1", -0.15f, (float)e.attr3*90, (!e.spawned && !triggertime) ? 30 : 0, (e.spawned || !triggertime) ? 1 : 30, triggertime, 35.0f); break; ^ entities.cpp: In function 'void checkitems()': entities.cpp:216:21: warning: narrowing conversion of '(& e)->entity::.persistent_entity::x' from 'short int' to 'float' inside { } is ill-formed in C++11 [-Wnarrowing] vec v = { e.x, e.y, S(e.x, e.y)->floor+player1->eyeheight }; ^ entities.cpp:216:26: warning: narrowing conversion of '(& e)->entity::.persistent_entity::y' from 'short int' to 'float' inside { } is ill-formed in C++11 [-Wnarrowing] vec v = { e.x, e.y, S(e.x, e.y)->floor+player1->eyeheight }; ^ In file included from console.cpp:3:0: console.cpp: At global scope: cube.h:253:48: warning: '__dummy_setconskip' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ console.cpp:22:1: note: in expansion of macro 'COMMANDN' COMMANDN(conskip, setconskip, ARG_1INT); ^ cube.h:253:48: warning: '__dummy_keymap' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ console.cpp:88:1: note: in expansion of macro 'COMMAND' COMMAND(keymap, ARG_3STR); ^ cube.h:253:48: warning: '__dummy_bindkey' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ console.cpp:101:1: note: in expansion of macro 'COMMANDN' COMMANDN(bind, bindkey, ARG_2STR); ^ cube.h:253:48: warning: '__dummy_saycommand' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ console.cpp:113:1: note: in expansion of macro 'COMMAND' COMMAND(saycommand, ARG_VARI); ^ cube.h:253:48: warning: '__dummy_mapmsg' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ console.cpp:114:1: note: in expansion of macro 'COMMAND' COMMAND(mapmsg, ARG_1STR); ^ cube.h:253:48: warning: '__dummy_history' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ console.cpp:168:1: note: in expansion of macro 'COMMAND' COMMAND(history, ARG_1INT); ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o menus.o menus.cpp In file included from cube.h:284:0, from main.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ main.cpp: In function 'void* alloc(int)': main.cpp:41:34: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(!b) fatal("out of memory!"); ^ main.cpp:41:34: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] main.cpp: In function 'void screenshot()': main.cpp:53:102: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(image = SDL_CreateRGBSurface(SDL_SWSURFACE, scr_w, scr_h, 24, 0x0000FF, 0x00FF00, 0xFF0000, 0)) ^ main.cpp:55:106: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(temp = SDL_CreateRGBSurface(SDL_SWSURFACE, scr_w, scr_h, 24, 0x0000FF, 0x00FF00, 0xFF0000, 0)) ^ In file included from main.cpp:3:0: main.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ main.cpp:72:1: note: in expansion of macro 'COMMAND' COMMAND(screenshot, ARG_NONE); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ main.cpp:73:1: note: in expansion of macro 'COMMAND' COMMAND(quit, ARG_NONE); ^ In file included from main.cpp:3:0: cube.h:257:134: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #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; } ^ main.cpp:81:1: note: in expansion of macro 'VARF' VARF(gamespeed, 10, 100, 1000, if(multiplayer()) gamespeed = 100); ^ In file included from main.cpp:3:0: cube.h:255:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ main.cpp:82:1: note: in expansion of macro 'VARP' VARP(minmillis, 0, 5, 1000); ^ main.cpp: In function 'int main(int, char**)': main.cpp:91:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; ^ main.cpp:91:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; ^ main.cpp:91:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; ^ main.cpp:122:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(SDL_Init(SDL_INIT_TIMER|SDL_INIT_VIDEO|par)<0) fatal("Unable to initialize SDL"); ^ main.cpp:122:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] main.cpp:125:72: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(enet_initialize()<0) fatal("Unable to initialise network module"); ^ main.cpp:125:72: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] main.cpp:134:83: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(SDL_InitSubSystem(SDL_INIT_VIDEO)<0) fatal("Unable to initialize SDL Video"); ^ main.cpp:134:83: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] main.cpp:138:102: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(SDL_SetVideoMode(scr_w, scr_h, 0, SDL_OPENGL|fs)==NULL) fatal("Unable to create OpenGL screen"); ^ main.cpp:138:102: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] main.cpp:151:58: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(!installtex(2, path(newstring("data/newchars.png")), xs, ys) || ^ main.cpp:152:61: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] !installtex(3, path(newstring("data/martin/base.png")), xs, ys) || ^ main.cpp:153:62: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] !installtex(6, path(newstring("data/martin/ball1.png")), xs, ys) || ^ main.cpp:154:62: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] !installtex(7, path(newstring("data/martin/smoke.png")), xs, ys) || ^ main.cpp:155:62: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] !installtex(8, path(newstring("data/martin/ball2.png")), xs, ys) || ^ main.cpp:156:62: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] !installtex(9, path(newstring("data/martin/ball3.png")), xs, ys) || ^ main.cpp:157:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] !installtex(4, path(newstring("data/explosion.jpg")), xs, ys) || ^ main.cpp:158:55: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] !installtex(5, path(newstring("data/items.png")), xs, ys) || ^ main.cpp:159:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] !installtex(1, path(newstring("data/crosshair.png")), xs, ys)) fatal("could not find core textures (hint: run cube from the parent of the bin directory)"); ^ main.cpp:159:162: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] !installtex(1, path(newstring("data/crosshair.png")), xs, ys)) fatal("could not find core textures (hint: run cube from the parent of the bin directory)"); ^ main.cpp:159:162: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] main.cpp:165:42: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] newmenu("frags\tpj\tping\tteam\tname"); ^ main.cpp:166:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] newmenu("ping\tplr\tserver"); ^ main.cpp:167:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] exec("data/keymap.cfg"); ^ main.cpp:168:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] exec("data/menus.cfg"); ^ main.cpp:169:28: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] exec("data/prefabs.cfg"); ^ main.cpp:170:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] exec("data/sounds.cfg"); ^ main.cpp:171:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] exec("servers.cfg"); ^ main.cpp:172:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(!execfile("config.cfg")) execfile("data/defaults.cfg"); ^ main.cpp:172:61: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(!execfile("config.cfg")) execfile("data/defaults.cfg"); ^ main.cpp:173:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] exec("autoexec.cfg"); ^ main.cpp:177:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] changemap("metl3"); // if this map is changed, also change depthcorrect() ^ In file included from main.cpp:3:0: main.cpp: At global scope: cube.h:253:48: warning: '__dummy_screenshot' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ main.cpp:72:1: note: in expansion of macro 'COMMAND' COMMAND(screenshot, ARG_NONE); ^ cube.h:253:48: warning: '__dummy_quit' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ main.cpp:73:1: note: in expansion of macro 'COMMAND' COMMAND(quit, ARG_NONE); ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o monster.o monster.cpp In file included from cube.h:284:0, from menus.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ menus.cpp: In function 'void menumanual(int, int, char*)': menus.cpp:99:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] mitem.action = ""; ^ In file included from menus.cpp:3:0: menus.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ menus.cpp:110:1: note: in expansion of macro 'COMMAND' COMMAND(menuitem, ARG_2STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ menus.cpp:111:1: note: in expansion of macro 'COMMAND' COMMAND(showmenu, ARG_1STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ menus.cpp:112:1: note: in expansion of macro 'COMMAND' COMMAND(newmenu, ARG_1STR); ^ In file included from cube.h:284:0, from monster.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from monster.cpp:3:0: cube.h:257:134: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #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; } ^ monster.cpp:8:1: note: in expansion of macro 'VARF' VARF(skill, 1, 3, 10, conoutf("skill is now %d", skill)); ^ monster.cpp:33:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] }; ^ monster.cpp:33:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] monster.cpp: In function 'void monsterthink()': monster.cpp:314:21: warning: narrowing conversion of '(& e)->entity::.persistent_entity::x' from 'short int' to 'float' inside { } is ill-formed in C++11 [-Wnarrowing] vec v = { e.x, e.y, S(e.x, e.y)->floor }; ^ monster.cpp:314:26: warning: narrowing conversion of '(& e)->entity::.persistent_entity::y' from 'short int' to 'float' inside { } is ill-formed in C++11 [-Wnarrowing] vec v = { e.x, e.y, S(e.x, e.y)->floor }; ^ monster.cpp:314:42: warning: narrowing conversion of '(world + ((sizetype)(((long unsigned int)((((int)(& e)->entity::.persistent_entity::y) * ssize) + ((int)(& e)->entity::.persistent_entity::x))) * 14ul)))->sqr::floor' from 'char' to 'float' inside { } is ill-formed in C++11 [-Wnarrowing] vec v = { e.x, e.y, S(e.x, e.y)->floor }; ^ cube.h:253:48: warning: '__dummy_menuitem' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ menus.cpp:110:1: note: in expansion of macro 'COMMAND' COMMAND(menuitem, ARG_2STR); ^ cube.h:253:48: warning: '__dummy_showmenu' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ menus.cpp:111:1: note: in expansion of macro 'COMMAND' COMMAND(showmenu, ARG_1STR); ^ cube.h:253:48: warning: '__dummy_newmenu' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ menus.cpp:112:1: note: in expansion of macro 'COMMAND' COMMAND(newmenu, ARG_1STR); ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o physics.o physics.cpp c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o rendercubes.o rendercubes.cpp In file included from cube.h:284:0, from physics.cpp:6: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ physics.cpp: In function 'bool collide(dynent*, bool, float, float)': physics.cpp:92:78: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(x==x1 && y==y1 && cornertest(0, x, y, -1, -1, bx, by, bs) && fx1-bx+fy1-by<=bs ^ physics.cpp:94:78: warning: suggest parentheses around '&&' within '||' [-Wparentheses] || x==x1 && y==y2 && cornertest(0, x, y, -1, 1, bx, by, bs) && fx1-bx<=fy2-by ^ physics.cpp:95:78: warning: suggest parentheses around '&&' within '||' [-Wparentheses] || x==x2 && y==y2 && cornertest(0, x, y, 1, 1, bx, by, bs) && fx2-bx+fy2-by>=bs) ^ In file included from physics.cpp:6:0: physics.cpp: At global scope: cube.h:255:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ physics.cpp:165:1: note: in expansion of macro 'VARP' VARP(maxroll, 0, 3, 20); ^ In file included from command.cpp:4:0: cube.h:253:48: warning: '__dummy_alias' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ command.cpp:41:1: note: in expansion of macro 'COMMAND' COMMAND(alias, ARG_2STR); ^ cube.h:253:48: warning: '__dummy_writecfg' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ command.cpp:303:1: note: in expansion of macro 'COMMAND' COMMAND(writecfg, ARG_NONE); ^ cube.h:253:48: warning: '__dummy_loopa' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:339:1: note: in expansion of macro 'COMMANDN' COMMANDN(loop, loopa, ARG_2STR); ^ cube.h:253:48: warning: '__dummy_whilea' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:340:1: note: in expansion of macro 'COMMANDN' COMMANDN(while, whilea, ARG_2STR); ^ cube.h:253:48: warning: '__dummy_ifthen' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:341:1: note: in expansion of macro 'COMMANDN' COMMANDN(if, ifthen, ARG_3STR); ^ cube.h:253:48: warning: '__dummy_onrelease' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ command.cpp:342:1: note: in expansion of macro 'COMMAND' COMMAND(onrelease, ARG_DWN1); ^ cube.h:253:48: warning: '__dummy_exec' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ command.cpp:343:1: note: in expansion of macro 'COMMAND' COMMAND(exec, ARG_1STR); ^ cube.h:253:48: warning: '__dummy_concat' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ command.cpp:344:1: note: in expansion of macro 'COMMAND' COMMAND(concat, ARG_VARI); ^ cube.h:253:48: warning: '__dummy_concatword' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ command.cpp:345:1: note: in expansion of macro 'COMMAND' COMMAND(concatword, ARG_VARI); ^ cube.h:253:48: warning: '__dummy_at' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ command.cpp:346:1: note: in expansion of macro 'COMMAND' COMMAND(at, ARG_2STR); ^ cube.h:253:48: warning: '__dummy_listlen' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ command.cpp:347:1: note: in expansion of macro 'COMMAND' COMMAND(listlen, ARG_1EST); ^ cube.h:253:48: warning: '__dummy_add' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:349:50: note: in expansion of macro 'COMMANDN' int add(int a, int b) { return a+b; }; COMMANDN(+, add, ARG_2EXP); ^ cube.h:253:48: warning: '__dummy_mul' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:350:50: note: in expansion of macro 'COMMANDN' int mul(int a, int b) { return a*b; }; COMMANDN(*, mul, ARG_2EXP); ^ cube.h:253:48: warning: '__dummy_sub' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:351:50: note: in expansion of macro 'COMMANDN' int sub(int a, int b) { return a-b; }; COMMANDN(-, sub, ARG_2EXP); ^ cube.h:253:48: warning: '__dummy_divi' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:352:50: note: in expansion of macro 'COMMANDN' int divi(int a, int b) { return b ? a/b : 0; }; COMMANDN(div, divi, ARG_2EXP); ^ cube.h:253:48: warning: '__dummy_mod' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ command.cpp:353:50: note: in expansion of macro 'COMMAND' int mod(int a, int b) { return b ? a%b : 0; }; COMMAND(mod, ARG_2EXP); ^ cube.h:253:48: warning: '__dummy_equal' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:354:50: note: in expansion of macro 'COMMANDN' int equal(int a, int b) { return (int)(a==b); }; COMMANDN(=, equal, ARG_2EXP); ^ cube.h:253:48: warning: '__dummy_lt' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:355:50: note: in expansion of macro 'COMMANDN' int lt(int a, int b) { return (int)(ab); }; COMMANDN(>, gt, ARG_2EXP); ^ cube.h:253:48: warning: '__dummy_strcmpa' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:358:60: note: in expansion of macro 'COMMANDN' int strcmpa(char *a, char *b) { return strcmp(a,b)==0; }; COMMANDN(strcmp, strcmpa, ARG_2EST); ^ cube.h:253:48: warning: '__dummy_rndn' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:360:51: note: in expansion of macro 'COMMANDN' int rndn(int a) { return a>0 ? rnd(a) : 0; }; COMMANDN(rnd, rndn, ARG_1EXP); ^ cube.h:253:48: warning: '__dummy_explastmillis' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ command.cpp:362:46: note: in expansion of macro 'COMMANDN' int explastmillis() { return lastmillis; }; COMMANDN(millis, explastmillis, ARG_1EXP); ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o renderextras.o renderextras.cpp In file included from cube.h:284:0, from rendercubes.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ rendercubes.cpp: In function 'void reallocv()': rendercubes.cpp:20:41: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(!verts) fatal("no vertex memory!"); ^ rendercubes.cpp:20:41: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] In file included from rendercubes.cpp:3:0: rendercubes.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ rendercubes.cpp:48:1: note: in expansion of macro 'COMMAND' COMMAND(showmip, ARG_NONE); ^ cube.h:256:95: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ rendercubes.cpp:54:1: note: in expansion of macro 'VAR' VAR(lighterror,1,8,100); ^ cube.h:256:95: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ rendercubes.cpp:266:1: note: in expansion of macro 'VAR' VAR(watersubdiv, 1, 4, 64); ^ In file included from rendercubes.cpp:3:0: cube.h:257:134: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #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; } ^ rendercubes.cpp:267:1: note: in expansion of macro 'VARF' VARF(waterlevel, -128, -128, 127, if(!noteditmode()) hdr.waterlevel = waterlevel); ^ In file included from cube.h:284:0, from renderextras.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ renderextras.cpp: In function 'void renderspheres(int)': renderextras.cpp:110:40: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for(sphere *p, **pp = &slist; p = *pp;) ^ renderextras.cpp: At global scope: renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] }; ^ renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp: In function 'void renderents()': renderextras.cpp:160:21: warning: narrowing conversion of '(& e)->entity::.persistent_entity::x' from 'short int' to 'float' inside { } is ill-formed in C++11 [-Wnarrowing] vec v = { e.x, e.y, e.z }; ^ renderextras.cpp:160:26: warning: narrowing conversion of '(& e)->entity::.persistent_entity::y' from 'short int' to 'float' inside { } is ill-formed in C++11 [-Wnarrowing] vec v = { e.x, e.y, e.z }; ^ renderextras.cpp:160:31: warning: narrowing conversion of '(& e)->entity::.persistent_entity::z' from 'short int' to 'float' inside { } is ill-formed in C++11 [-Wnarrowing] vec v = { e.x, e.y, e.z }; ^ renderextras.cpp:167:159: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] sprintf_s(closeent)("closest entity = %s (%d, %d, %d, %d), selection = (%d, %d)", entnames[c.type], c.attr1, c.attr2, c.attr3, c.attr4, getvar("selxs"), getvar("selys")); ^ renderextras.cpp:167:176: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] sprintf_s(closeent)("closest entity = %s (%d, %d, %d, %d), selection = (%d, %d)", entnames[c.type], c.attr1, c.attr2, c.attr3, c.attr4, getvar("selxs"), getvar("selys")); ^ renderextras.cpp: In function 'void loadsky(char*)': renderextras.cpp:175:57: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] char *side[] = { "ft", "bk", "lf", "rt", "dn", "up" }; ^ renderextras.cpp:175:57: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:175:57: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:175:57: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:175:57: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] renderextras.cpp:175:57: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] In file included from renderextras.cpp:3:0: renderextras.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ renderextras.cpp:186:1: note: in expansion of macro 'COMMAND' COMMAND(loadsky, ARG_1STR); ^ cube.h:255:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ renderextras.cpp:257:1: note: in expansion of macro 'VARP' VARP(crosshairsize, 0, 15, 50); ^ cube.h:256:95: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ renderextras.cpp:262:1: note: in expansion of macro 'VAR' VAR(hidestats, 0, 0, 1); ^ cube.h:255:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ renderextras.cpp:263:1: note: in expansion of macro 'VARP' VARP(crosshairfx, 0, 1, 1); ^ renderextras.cpp: In function 'void gl_drawhud(int, int, int, int, int, bool)': renderextras.cpp:303:57: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(command) draw_textf("> %s_", 20, 1570, 2, command); ^ renderextras.cpp:339:51: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] draw_textf("fps %d", 3200, 2390, 2, curfps); ^ renderextras.cpp:340:51: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] draw_textf("wqd %d", 3200, 2460, 2, nquads); ^ renderextras.cpp:341:52: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] draw_textf("wvt %d", 3200, 2530, 2, curvert); ^ renderextras.cpp:342:54: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] draw_textf("evt %d", 3200, 2600, 2, xtraverts); ^ renderextras.cpp:351:54: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] draw_textf("%d", 90, 827, 2, player1->health); ^ renderextras.cpp:352:74: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(player1->armour) draw_textf("%d", 390, 827, 2, player1->armour); ^ renderextras.cpp:353:72: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] draw_textf("%d", 690, 827, 2, player1->ammo[player1->gunselect]); ^ In file included from renderextras.cpp:3:0: renderextras.cpp: At global scope: cube.h:253:48: warning: '__dummy_loadsky' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ renderextras.cpp:186:1: note: in expansion of macro 'COMMAND' COMMAND(loadsky, ARG_1STR); ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o rendergl.o rendergl.cpp c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o rendermd2.o rendermd2.cpp cube.h:253:48: warning: '__dummy_toggleedit' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ editing.cpp:56:1: note: in expansion of macro 'COMMANDN' COMMANDN(edittoggle, toggleedit, ARG_NONE); ^ cube.h:253:48: warning: '__dummy_editheight' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:290:1: note: in expansion of macro 'COMMAND' COMMAND(editheight, ARG_2INT); ^ cube.h:253:48: warning: '__dummy_heightfield' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:354:1: note: in expansion of macro 'COMMAND' COMMAND(heightfield, ARG_1INT); ^ cube.h:253:48: warning: '__dummy_solid' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:355:1: note: in expansion of macro 'COMMAND' COMMAND(solid, ARG_1INT); ^ cube.h:253:48: warning: '__dummy_corner' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:356:1: note: in expansion of macro 'COMMAND' COMMAND(corner, ARG_NONE); ^ cube.h:253:48: warning: '__dummy_equalize' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:381:1: note: in expansion of macro 'COMMAND' COMMAND(equalize, ARG_1INT); ^ cube.h:253:48: warning: '__dummy_selectpos' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ editing.cpp:473:1: note: in expansion of macro 'COMMANDN' COMMANDN(select, selectpos, ARG_4INT); ^ cube.h:253:48: warning: '__dummy_edittag' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:474:1: note: in expansion of macro 'COMMAND' COMMAND(edittag, ARG_1INT); ^ cube.h:253:48: warning: '__dummy_replace' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:475:1: note: in expansion of macro 'COMMAND' COMMAND(replace, ARG_NONE); ^ cube.h:253:48: warning: '__dummy_archvertex' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:476:1: note: in expansion of macro 'COMMAND' COMMAND(archvertex, ARG_3INT); ^ cube.h:253:48: warning: '__dummy_arch' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:477:1: note: in expansion of macro 'COMMAND' COMMAND(arch, ARG_2INT); ^ cube.h:253:48: warning: '__dummy_slope' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:478:1: note: in expansion of macro 'COMMAND' COMMAND(slope, ARG_2INT); ^ cube.h:253:48: warning: '__dummy_setvdelta' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ editing.cpp:479:1: note: in expansion of macro 'COMMANDN' COMMANDN(vdelta, setvdelta, ARG_1INT); ^ cube.h:253:48: warning: '__dummy_editundo' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ editing.cpp:480:1: note: in expansion of macro 'COMMANDN' COMMANDN(undo, editundo, ARG_NONE); ^ cube.h:253:48: warning: '__dummy_copy' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:481:1: note: in expansion of macro 'COMMAND' COMMAND(copy, ARG_NONE); ^ cube.h:253:48: warning: '__dummy_paste' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:482:1: note: in expansion of macro 'COMMAND' COMMAND(paste, ARG_NONE); ^ cube.h:253:48: warning: '__dummy_edittex' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:483:1: note: in expansion of macro 'COMMAND' COMMAND(edittex, ARG_2INT); ^ cube.h:253:48: warning: '__dummy_newent' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:484:1: note: in expansion of macro 'COMMAND' COMMAND(newent, ARG_5STR); ^ cube.h:253:48: warning: '__dummy_perlin' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ editing.cpp:485:1: note: in expansion of macro 'COMMAND' COMMAND(perlin, ARG_3INT); ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o renderparticles.o renderparticles.cpp In file included from cube.h:284:0, from rendergl.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ rendergl.cpp: In function 'void gl_init(int, int)': rendergl.cpp:56:56: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(!(qsphere = gluNewQuadric())) fatal("glu sphere"); ^ rendergl.cpp:56:56: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] rendergl.cpp: In function 'bool installtex(int, char*, int&, int&, bool)': rendergl.cpp:93:126: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(gluBuild2DMipmaps(GL_TEXTURE_2D, GL_RGB, xs, ys, GL_RGB, GL_UNSIGNED_BYTE, scaledimg)) fatal("could not build mipmaps"); ^ rendergl.cpp:93:126: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] In file included from rendergl.cpp:3:0: rendergl.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ rendergl.cpp:134:1: note: in expansion of macro 'COMMAND' COMMAND(texturereset, ARG_NONE); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ rendergl.cpp:135:1: note: in expansion of macro 'COMMAND' COMMAND(texture, ARG_2STR); ^ rendergl.cpp: In function 'int lookuptexture(int, int&, int&)': rendergl.cpp:163:56: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(curtex==MAXTEX) fatal("loaded too many textures"); ^ rendergl.cpp:163:56: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] In file included from rendergl.cpp:3:0: rendergl.cpp: At global scope: cube.h:258:133: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #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; } ^ rendergl.cpp:235:1: note: in expansion of macro 'VARFP' VARFP(gamma, 30, 100, 300, ^ In file included from rendergl.cpp:3:0: cube.h:255:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ rendergl.cpp:256:1: note: in expansion of macro 'VARP' VARP(fov, 10, 105, 120); ^ cube.h:256:95: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ rendergl.cpp:260:1: note: in expansion of macro 'VAR' VAR(fog, 64, 180, 1024); ^ cube.h:256:95: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ rendergl.cpp:261:1: note: in expansion of macro 'VAR' VAR(fogcolour, 0, 0x8099B3, 0xFFFFFF); ^ cube.h:255:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ rendergl.cpp:263:1: note: in expansion of macro 'VARP' VARP(hudgun,0,1,1); ^ rendergl.cpp:265:110: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] char *hudgunnames[] = { "hudguns/fist", "hudguns/shotg", "hudguns/chaing", "hudguns/rocket", "hudguns/rifle" }; ^ rendergl.cpp:265:110: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] rendergl.cpp:265:110: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] rendergl.cpp:265:110: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] rendergl.cpp:265:110: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] In file included from cube.h:284:0, from renderparticles.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from renderparticles.cpp:3:0: cube.h:255:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ renderparticles.cpp:11:1: note: in expansion of macro 'VARP' VARP(maxparticles, 100, 2000, MAXPARTICLES-500); ^ cube.h:256:95: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ renderparticles.cpp:38:1: note: in expansion of macro 'VAR' VAR(demotracking, 0, 0, 1); ^ cube.h:255:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ renderparticles.cpp:39:1: note: in expansion of macro 'VARP' VARP(particlesize, 20, 100, 500); ^ renderparticles.cpp: In function 'void render_particles(int)': renderparticles.cpp:73:44: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for(particle *p, **pp = &parlist; p = *pp;) ^ In file included from cube.h:284:0, from rendermd2.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ rendermd2.cpp: In function 'void delayedload(md2*)': rendermd2.cpp:203:61: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(!m->load(path(name1))) fatal("loadmodel: ", name1); ^ rendermd2.cpp: In function 'md2* loadmodel(char*)': rendermd2.cpp:220:41: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] mapmodelinfo mmi = { 2, 2, 0, 0, "" }; ^ In file included from rendermd2.cpp:3:0: rendermd2.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ rendermd2.cpp:239:1: note: in expansion of macro 'COMMAND' COMMAND(mapmodel, ARG_5STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ rendermd2.cpp:240:1: note: in expansion of macro 'COMMAND' COMMAND(mapmodelreset, ARG_NONE); ^ In file included from cube.h:3:0, from rendermd2.cpp:3: tools.h: In instantiation of 'T* hashtable::access(char*, T*) [with T = md2*]': rendermd2.cpp:216:38: required from here tools.h:248:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for(int i = 0, k; k = key[i]; i++) h = ((h<<5)+h)^k; // bernstein k=33 xor ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o rendertext.o rendertext.cpp In file included from cube.h:284:0, from rendertext.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o rndmap.o rndmap.cpp In file included from rendergl.cpp:3:0: cube.h:253:48: warning: '__dummy_texturereset' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ rendergl.cpp:134:1: note: in expansion of macro 'COMMAND' COMMAND(texturereset, ARG_NONE); ^ cube.h:253:48: warning: '__dummy_texture' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ rendergl.cpp:135:1: note: in expansion of macro 'COMMAND' COMMAND(texture, ARG_2STR); ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o savegamedemo.o savegamedemo.cpp c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o server.o server.cpp In file included from cube.h:284:0, from rndmap.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from rendermd2.cpp:3:0: cube.h:253:48: warning: '__dummy_mapmodel' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ rendermd2.cpp:239:1: note: in expansion of macro 'COMMAND' COMMAND(mapmodel, ARG_5STR); ^ cube.h:253:48: warning: '__dummy_mapmodelreset' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ rendermd2.cpp:240:1: note: in expansion of macro 'COMMAND' COMMAND(mapmodelreset, ARG_NONE); ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o serverbrowser.o serverbrowser.cpp c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o serverms.o serverms.cpp In file included from cube.h:284:0, from savegamedemo.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ savegamedemo.cpp: In function 'void gzcheck(int, int)': savegamedemo.cpp:20:76: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] void gzcheck(int a, int b) { if(a!=b) fatal("savegame file corrupt (short)"); }; ^ savegamedemo.cpp:20:76: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] In file included from savegamedemo.cpp:3:0: savegamedemo.cpp: At global scope: cube.h:256:95: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ savegamedemo.cpp:214:1: note: in expansion of macro 'VAR' VAR(demoplaybackspeed, 10, 100, 1000); ^ cube.h:256:95: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ savegamedemo.cpp:239:1: note: in expansion of macro 'VAR' VAR(demodelaymsec, 0, 120, 500); ^ savegamedemo.cpp: In function 'void demoplaybackstep()': savegamedemo.cpp:285:28: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(extras = gzget()) // read additional client side state not present in normal network stream ^ savegamedemo.cpp:297:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(bdamage = gzgeti()) damageblend(bdamage); ^ savegamedemo.cpp:298:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(ddamage = gzgeti()) { gzgetv(dorig); particle_splash(3, ddamage, 1000, dorig); }; ^ In file included from savegamedemo.cpp:3:0: savegamedemo.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ savegamedemo.cpp:355:1: note: in expansion of macro 'COMMAND' COMMAND(record, ARG_1STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ savegamedemo.cpp:356:1: note: in expansion of macro 'COMMAND' COMMAND(demo, ARG_1STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ savegamedemo.cpp:357:1: note: in expansion of macro 'COMMANDN' COMMANDN(stop, stopn, ARG_NONE); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ savegamedemo.cpp:359:1: note: in expansion of macro 'COMMAND' COMMAND(savegame, ARG_1STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ savegamedemo.cpp:360:1: note: in expansion of macro 'COMMAND' COMMAND(loadgame, ARG_1STR); ^ In file included from cube.h:284:0, from server.cpp:4: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ server.cpp:46:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] char *serverpassword = ""; ^ server.cpp: In function 'bool vote(char*, int, int)': server.cpp:144:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] sendservmsg("vote passed"); ^ server.cpp: In function 'void process(ENetPacket*, int)': server.cpp:156:50: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] disconnect_client(sender, "packet length"); ^ server.cpp:224:55: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] disconnect_client(sender, "client num"); ^ server.cpp:254:64: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(size==-1) { disconnect_client(sender, "tag type"); return; }; ^ server.cpp:259:58: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(p>end) { disconnect_client(sender, "end of packet"); return; }; ^ server.cpp: In function 'void serverslice(int, unsigned int)': server.cpp:418:64: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] disconnect_client(lastconnect, "maxclients reached"); ^ server.cpp: In function 'void initserver(bool, int, char*, char*, char*, char*, int)': server.cpp:450:31: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(isdedicated = dedicated) ^ server.cpp:459:63: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(!serverhost) fatal("could not create server host\n"); ^ server.cpp:459:63: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] In file included from cube.h:284:0, from serverms.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ serverms.cpp: In function 'void updatemasterserver(int)': serverms.cpp:65:74: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] httpgetsend(masterserver, masterbase, path, "cubeserver", "Cube Server"); ^ serverms.cpp:65:74: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] serverms.cpp: In function 'uchar* retrieveservers(uchar*, int)': serverms.cpp:83:76: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] httpgetsend(masterserver, masterbase, path, "cubeserver", "Cube Server"); ^ serverms.cpp:83:76: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] serverms.cpp: In function 'void servermsinit(const char*, char*, bool)': serverms.cpp:139:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(pongsock == ENET_SOCKET_NULL) fatal("could not create server info socket\n"); ^ serverms.cpp:139:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] serverms.cpp:140:90: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(enet_socket_bind(pongsock, &address) == -1) fatal("cannot bind server info socket\n"); ^ serverms.cpp:140:90: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o serverutil.o serverutil.cpp In file included from cube.h:284:0, from serverbrowser.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from rendercubes.cpp:3:0: cube.h:253:48: warning: '__dummy_showmip' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ rendercubes.cpp:48:1: note: in expansion of macro 'COMMAND' COMMAND(showmip, ARG_NONE); ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o sound.o sound.cpp In file included from cube.h:284:0, from serverutil.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o tools.o tools.cpp In file included from serverbrowser.cpp:3:0: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ serverbrowser.cpp:290:1: note: in expansion of macro 'COMMAND' COMMAND(addserver, ARG_1STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ serverbrowser.cpp:291:1: note: in expansion of macro 'COMMAND' COMMAND(servermenu, ARG_NONE); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ serverbrowser.cpp:292:1: note: in expansion of macro 'COMMAND' COMMAND(updatefrommaster, ARG_NONE); ^ In file included from cube.h:284:0, from sound.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from sound.cpp:3:0: cube.h:255:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ sound.cpp:9:1: note: in expansion of macro 'VARP' VARP(soundvol, 0, 255, 255); ^ cube.h:255:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ sound.cpp:10:1: note: in expansion of macro 'VARP' VARP(musicvol, 0, 128, 255); ^ cube.h:256:95: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ sound.cpp:52:1: note: in expansion of macro 'VAR' VAR(soundbufferlen, 128, 1024, 4096); ^ sound.cpp: In function 'void music(char*)': sound.cpp:84:43: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(mod = Mix_LoadMUS(path(sn))) ^ In file included from sound.cpp:3:0: sound.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ sound.cpp:108:1: note: in expansion of macro 'COMMAND' COMMAND(music, ARG_1STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ sound.cpp:126:1: note: in expansion of macro 'COMMAND' COMMAND(registersound, ARG_1EST); ^ cube.h:256:95: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ sound.cpp:139:1: note: in expansion of macro 'VAR' VAR(stereo, 0, 1, 1); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ sound.cpp:226:1: note: in expansion of macro 'COMMAND' COMMAND(sound, ARG_1INT); ^ tools.cpp: In function 'char* path(char*)': tools.cpp:105:42: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for(char *t = s; t = strpbrk(t, "/\\"); *t++ = PATHDIV); ^ tools.cpp: In function 'char* loadfile(char*, int*)': tools.cpp:121:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(len!=rlen || len<=0) ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o weapon.o weapon.cpp cube.h:253:48: warning: '__dummy_music' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ sound.cpp:108:1: note: in expansion of macro 'COMMAND' COMMAND(music, ARG_1STR); ^ cube.h:253:48: warning: '__dummy_registersound' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ sound.cpp:126:1: note: in expansion of macro 'COMMAND' COMMAND(registersound, ARG_1EST); ^ cube.h:253:48: warning: '__dummy_sound' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ sound.cpp:226:1: note: in expansion of macro 'COMMAND' COMMAND(sound, ARG_1INT); ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o world.o world.cpp In file included from cube.h:284:0, from weapon.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ weapon.cpp:23:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] }; ^ weapon.cpp:23:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] weapon.cpp:23:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] weapon.cpp:23:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] weapon.cpp:23:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] weapon.cpp:23:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] weapon.cpp:23:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] weapon.cpp:23:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] weapon.cpp:23:1: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] In file included from weapon.cpp:3:0: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ weapon.cpp:51:1: note: in expansion of macro 'COMMAND' COMMAND(weapon, ARG_3STR); ^ In file included from cube.h:284:0, from world.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from world.cpp:3:0: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ world.cpp:52:1: note: in expansion of macro 'COMMAND' COMMAND(trigger, ARG_2INT); ^ world.cpp: In function 'void remip(block&, int)': world.cpp:63:39: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] int lighterr = getvar("lighterror")*3; ^ world.cpp: In function 'int closestent()': world.cpp:170:21: warning: narrowing conversion of '(& e)->entity::.persistent_entity::x' from 'short int' to 'float' inside { } is ill-formed in C++11 [-Wnarrowing] vec v = { e.x, e.y, e.z }; ^ world.cpp:170:26: warning: narrowing conversion of '(& e)->entity::.persistent_entity::y' from 'short int' to 'float' inside { } is ill-formed in C++11 [-Wnarrowing] vec v = { e.x, e.y, e.z }; ^ world.cpp:170:31: warning: narrowing conversion of '(& e)->entity::.persistent_entity::z' from 'short int' to 'float' inside { } is ill-formed in C++11 [-Wnarrowing] vec v = { e.x, e.y, e.z }; ^ world.cpp: In function 'entity* newentity(int, int, int, char*, int, int, int, int)': world.cpp:215:59: warning: narrowing conversion of 'x' from 'int' to 'short int' inside { } is ill-formed in C++11 [-Wnarrowing] persistent_entity e = { x, y, z, v1, type, v2, v3, v4 }; ^ world.cpp:215:59: warning: narrowing conversion of 'y' from 'int' to 'short int' inside { } is ill-formed in C++11 [-Wnarrowing] world.cpp:215:59: warning: narrowing conversion of 'z' from 'int' to 'short int' inside { } is ill-formed in C++11 [-Wnarrowing] world.cpp:215:59: warning: narrowing conversion of 'v1' from 'int' to 'short int' inside { } is ill-formed in C++11 [-Wnarrowing] world.cpp:215:59: warning: narrowing conversion of 'type' from 'int' to 'uchar {aka unsigned char}' inside { } is ill-formed in C++11 [-Wnarrowing] world.cpp:215:59: warning: narrowing conversion of 'v2' from 'int' to 'uchar {aka unsigned char}' inside { } is ill-formed in C++11 [-Wnarrowing] world.cpp:215:59: warning: narrowing conversion of 'v3' from 'int' to 'uchar {aka unsigned char}' inside { } is ill-formed in C++11 [-Wnarrowing] world.cpp:215:59: warning: narrowing conversion of 'v4' from 'int' to 'uchar {aka unsigned char}' inside { } is ill-formed in C++11 [-Wnarrowing] In file included from world.cpp:3:0: world.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ world.cpp:252:1: note: in expansion of macro 'COMMAND' COMMAND(clearents, ARG_1STR); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ world.cpp:280:1: note: in expansion of macro 'COMMAND' COMMAND(scalelights, ARG_2INT); ^ world.cpp: In function 'void empty_world(int, bool)': world.cpp:355:28: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] startmap("base/unnamed"); ^ world.cpp:360:31: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] execute("fullbright 1"); ^ In file included from world.cpp:3:0: world.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ world.cpp:367:1: note: in expansion of macro 'COMMAND' COMMAND(mapenlarge, ARG_NONE); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ world.cpp:368:1: note: in expansion of macro 'COMMAND' COMMAND(newmap, ARG_1INT); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ world.cpp:369:1: note: in expansion of macro 'COMMANDN' COMMANDN(recalc, calclight, ARG_NONE); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ world.cpp:370:1: note: in expansion of macro 'COMMAND' COMMAND(delent, ARG_NONE); ^ cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ world.cpp:371:1: note: in expansion of macro 'COMMAND' COMMAND(entproperty, ARG_2INT); ^ cube.h:253:48: warning: '__dummy_record' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ savegamedemo.cpp:355:1: note: in expansion of macro 'COMMAND' COMMAND(record, ARG_1STR); ^ cube.h:253:48: warning: '__dummy_demo' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ savegamedemo.cpp:356:1: note: in expansion of macro 'COMMAND' COMMAND(demo, ARG_1STR); ^ cube.h:253:48: warning: '__dummy_stopn' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ savegamedemo.cpp:357:1: note: in expansion of macro 'COMMANDN' COMMANDN(stop, stopn, ARG_NONE); ^ cube.h:253:48: warning: '__dummy_savegame' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ savegamedemo.cpp:359:1: note: in expansion of macro 'COMMAND' COMMAND(savegame, ARG_1STR); ^ cube.h:253:48: warning: '__dummy_loadgame' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ savegamedemo.cpp:360:1: note: in expansion of macro 'COMMAND' COMMAND(loadgame, ARG_1STR); ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o worldio.o worldio.cpp In file included from cube.h:284:0, from worldio.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ worldio.cpp: In function 'void load_world(char*)': worldio.cpp:219:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(strncmp(hdr.head, "CUBE", 4)!=0) fatal("while reading map: header malformatted"); ^ worldio.cpp:219:87: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] worldio.cpp:220:81: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(hdr.version>MAPVERSION) fatal("this map requires a newer version of cube"); ^ worldio.cpp:220:81: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] worldio.cpp:221:83: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(sfactorLARGEST_FACTOR) fatal("illegal map size"); ^ worldio.cpp:221:83: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] worldio.cpp:288:70: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] fatal("while reading map: type out of range: ", t); ^ worldio.cpp:313:25: warning: the address of 'texuse' will always evaluate as 'true' [-Waddress] loopi(256) if(texuse) lookuptexture(i, xs, ys); ^ worldio.cpp:320:55: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(identexists(aliasname)) alias(aliasname, ""); ^ worldio.cpp:322:45: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] execfile("data/default_map_settings.cfg"); ^ In file included from worldio.cpp:3:0: worldio.cpp: At global scope: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ worldio.cpp:327:1: note: in expansion of macro 'COMMANDN' COMMANDN(savemap, save_world, ARG_1STR); ^ cube.h:253:48: warning: '__dummy_addserver' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ serverbrowser.cpp:290:1: note: in expansion of macro 'COMMAND' COMMAND(addserver, ARG_1STR); ^ cube.h:253:48: warning: '__dummy_servermenu' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ serverbrowser.cpp:291:1: note: in expansion of macro 'COMMAND' COMMAND(servermenu, ARG_NONE); ^ cube.h:253:48: warning: '__dummy_updatefrommaster' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ serverbrowser.cpp:292:1: note: in expansion of macro 'COMMAND' COMMAND(updatefrommaster, ARG_NONE); ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o worldlight.o worldlight.cpp world.cpp: In function 'int closestent()': world.cpp:164:9: warning: 'best' may be used uninitialized in this function [-Wmaybe-uninitialized] int best; ^ In file included from cube.h:284:0, from worldlight.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from worldlight.cpp:3:0: cube.h:256:95: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ worldlight.cpp:7:1: note: in expansion of macro 'VAR' VAR(lightscale,1,4,100); ^ worldlight.cpp: In function 'void calclight()': worldlight.cpp:157:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] setvar("fullbright", 0); ^ In file included from worldlight.cpp:3:0: worldlight.cpp: At global scope: cube.h:255:94: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define VARP(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, true) ^ worldlight.cpp:160:1: note: in expansion of macro 'VARP' VARP(dynlight, 0, 16, 32); ^ worldlight.cpp: In function 'void dodynlight(vec&, vec&, int, int, dynent*)': worldlight.cpp:191:88: warning: narrowing conversion of '(int)v->vec::x' from 'int' to 'short int' inside { } is ill-formed in C++11 [-Wnarrowing] persistent_entity l = { (int)v.x, (int)v.y, (int)v.z, reach, LIGHT, strength, 0, 0 }; ^ worldlight.cpp:191:88: warning: narrowing conversion of '(int)v->vec::y' from 'int' to 'short int' inside { } is ill-formed in C++11 [-Wnarrowing] worldlight.cpp:191:88: warning: narrowing conversion of '(int)v->vec::z' from 'int' to 'short int' inside { } is ill-formed in C++11 [-Wnarrowing] worldlight.cpp:191:88: warning: narrowing conversion of 'reach' from 'int' to 'short int' inside { } is ill-formed in C++11 [-Wnarrowing] worldlight.cpp:191:88: warning: narrowing conversion of 'strength' from 'int' to 'uchar {aka unsigned char}' inside { } is ill-formed in C++11 [-Wnarrowing] c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o worldocull.o worldocull.cpp c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -c -o worldrender.o worldrender.cpp cube.h:253:48: warning: '__dummy_weapon' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ weapon.cpp:51:1: note: in expansion of macro 'COMMAND' COMMAND(weapon, ARG_3STR); ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -Wall -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -DSTANDALONE -o standalone.o -c serverutil.cpp In file included from cube.h:284:0, from worldrender.cpp:4: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ cube.h:253:48: warning: '__dummy_save_world' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ worldio.cpp:327:1: note: in expansion of macro 'COMMANDN' COMMANDN(savemap, save_world, ARG_1STR); ^ In file included from cube.h:284:0, from worldocull.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from worldocull.cpp:3:0: cube.h:253:104: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ worldocull.cpp:13:1: note: in expansion of macro 'COMMAND' COMMAND(toggleocull, ARG_NONE); ^ worldocull.cpp: In function 'void computeraytable(float, float)': worldocull.cpp:22:25: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] odist = getvar("fog")*1.5f; ^ worldocull.cpp:25:28: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] float af = getvar("fov")/2+apitch/1.5f+3; ^ In file included from cube.h:284:0, from serverutil.cpp:3: protos.h:127:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ serverutil.cpp: In function 'void* alloc(int)': serverutil.cpp:94:70: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] void *alloc(int s) { void *b = calloc(1,s); if(!b) fatal("no memory!"); return b; }; ^ serverutil.cpp:94:70: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] serverutil.cpp: In function 'int main(int, char**)': serverutil.cpp:99:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; ^ serverutil.cpp:99:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; ^ serverutil.cpp:99:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; ^ serverutil.cpp:116:72: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(enet_initialize()<0) fatal("Unable to initialise network module"); ^ serverutil.cpp:116:72: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -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 worldocull.cpp:3:0: worldocull.cpp: At global scope: cube.h:253:48: warning: '__dummy_toggleocull' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ worldocull.cpp:13:1: note: in expansion of macro 'COMMAND' COMMAND(toggleocull, ARG_NONE); ^ In file included from world.cpp:3:0: world.cpp: At global scope: cube.h:253:48: warning: '__dummy_trigger' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ world.cpp:52:1: note: in expansion of macro 'COMMAND' COMMAND(trigger, ARG_2INT); ^ cube.h:253:48: warning: '__dummy_clearents' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ world.cpp:252:1: note: in expansion of macro 'COMMAND' COMMAND(clearents, ARG_1STR); ^ cube.h:253:48: warning: '__dummy_scalelights' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ world.cpp:280:1: note: in expansion of macro 'COMMAND' COMMAND(scalelights, ARG_2INT); ^ cube.h:253:48: warning: '__dummy_mapenlarge' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ world.cpp:367:1: note: in expansion of macro 'COMMAND' COMMAND(mapenlarge, ARG_NONE); ^ cube.h:253:48: warning: '__dummy_newmap' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ world.cpp:368:1: note: in expansion of macro 'COMMAND' COMMAND(newmap, ARG_1INT); ^ cube.h:253:48: warning: '__dummy_calclight' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ world.cpp:369:1: note: in expansion of macro 'COMMANDN' COMMANDN(recalc, calclight, ARG_NONE); ^ cube.h:253:48: warning: '__dummy_delent' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ world.cpp:370:1: note: in expansion of macro 'COMMAND' COMMAND(delent, ARG_NONE); ^ cube.h:253:48: warning: '__dummy_entproperty' defined but not used [-Wunused-variable] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^ world.cpp:371:1: note: in expansion of macro 'COMMAND' COMMAND(entproperty, ARG_2INT); ^ c++ -pipe -fsigned-char -O2 -fno-strict-aliasing -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 gmake[1]: Leaving directory '/wrkdirs/games/cube/cube_source/src' =========================================================================== =================================================== ===> cube-2005.08.29_16 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found =========================================================================== =================================================== ===> Staging for cube-2005.08.29_16 ===> Generating temporary packing list install -m 555 /wrkdirs/games/cube/cube_client /wrkdirs/games/cube/stage/usr/local/bin install -s -m 555 /wrkdirs/games/cube/cube_source/src/cube_client /wrkdirs/games/cube/stage/usr/local/libexec install -m 555 /wrkdirs/games/cube/cube_server /wrkdirs/games/cube/stage/usr/local/bin install -s -m 555 /wrkdirs/games/cube/cube_source/src/cube_server /wrkdirs/games/cube/stage/usr/local/libexec (cd /wrkdirs/games/cube/cube && /bin/sh -c '(/usr/bin/find -d $0 $2 | /usr/bin/cpio -dumpl $1 >/dev/null 2>&1) && /usr/bin/find -d $0 $2 -type d -exec chmod 755 $1/{} \; && /usr/bin/find -d $0 $2 -type f -exec chmod 444 $1/{} \;' -- "data packages" /wrkdirs/games/cube/stage/usr/local/share/cube) (cd /wrkdirs/games/cube/cube/docs && /bin/sh -c '(/usr/bin/find -d $0 $2 | /usr/bin/cpio -dumpl $1 >/dev/null 2>&1) && /usr/bin/find -d $0 $2 -type d -exec chmod 755 $1/{} \; && /usr/bin/find -d $0 $2 -type f -exec chmod 444 $1/{} \;' -- . /wrkdirs/games/cube/stage/usr/local/share/doc/cube) install -m 0644 /wrkdirs/games/cube/cube/autoexec.cfg /wrkdirs/games/cube/stage/usr/local/share/cube install -m 0644 /wrkdirs/games/cube/cube/readme.html /wrkdirs/games/cube/stage/usr/local/share/doc/cube ====> Compressing man pages (compress-man) =========================================================================== =================================================== ===> Building package for cube-2005.08.29_16 file sizes/checksums [1073]: .......... done packing files [1073]: .......... done packing directories [2]: . done =========================================================================== => Cleaning up wrkdir ===> Cleaning for cube-2005.08.29_16 build of games/cube ended at Sat Oct 8 23:01:23 PDT 2016 build time: 00:01:25