<86>Apr 21 01:11:24 userdel[27390]: delete user 'rooter' <86>Apr 21 01:11:24 groupadd[27398]: group added to /etc/group: name=rooter, GID=585 <86>Apr 21 01:11:24 groupadd[27398]: group added to /etc/gshadow: name=rooter <86>Apr 21 01:11:24 groupadd[27398]: new group: name=rooter, GID=585 <86>Apr 21 01:11:24 useradd[27406]: new user: name=rooter, UID=585, GID=585, home=/root, shell=/bin/bash <86>Apr 21 01:11:24 userdel[27427]: delete user 'builder' <86>Apr 21 01:11:24 userdel[27427]: removed group 'builder' owned by 'builder' <86>Apr 21 01:11:24 userdel[27427]: removed shadow group 'builder' owned by 'builder' <86>Apr 21 01:11:24 groupadd[27450]: group added to /etc/group: name=builder, GID=586 <86>Apr 21 01:11:24 groupadd[27450]: group added to /etc/gshadow: name=builder <86>Apr 21 01:11:24 groupadd[27450]: new group: name=builder, GID=586 <86>Apr 21 01:11:24 useradd[27461]: new user: name=builder, UID=586, GID=586, home=/usr/src, shell=/bin/bash <13>Apr 21 01:11:28 rpmi: libogg-1.3.2-alt1 1416015875 installed <13>Apr 21 01:11:28 rpmi: libjpeg-2:1.3.1-alt0.1 1388074033 installed <13>Apr 21 01:11:28 rpmi: xorg-xproto-devel-7.0.31-alt0.M80P.1 p8+226471.100.1.1 1554301566 installed <13>Apr 21 01:11:28 rpmi: libtiff5-4.0.3-alt1 1348347498 installed <13>Apr 21 01:11:28 rpmi: libflac8-1.2.1-alt11.1 1434275120 installed <13>Apr 21 01:11:28 rpmi: libvorbis-1.3.4-alt1 1395615320 installed <13>Apr 21 01:11:28 rpmi: libmad-0.15.1b-alt8 1398374528 installed <13>Apr 21 01:11:28 rpmi: timidity-instruments-1:1.0-alt1 1166705614 installed <13>Apr 21 01:11:28 rpmi: libpng15-1.5.28-alt1 1484572014 installed <13>Apr 21 01:11:28 rpmi: libwrap-1:7.6-alt11 1297041305 installed <13>Apr 21 01:11:28 rpmi: libgsm-1.0.13-alt8 1365910842 installed <13>Apr 21 01:11:28 rpmi: libsndfile-1.0.28-alt1.M80P.1 p8.212938.100 1536756416 installed <13>Apr 21 01:11:28 rpmi: libjson-c-0.12-alt1 1401212997 installed <13>Apr 21 01:11:28 rpmi: liblz4-1:1.7.5-alt1 1488766699 installed <13>Apr 21 01:11:29 rpmi: libgpg-error-1.31-alt1.M80P.1 1529024730 installed <13>Apr 21 01:11:29 rpmi: libgcrypt20-1.8.3-alt4 p8+219793.200.6.1 1551112986 installed <13>Apr 21 01:11:29 rpmi: libsystemd-1:239-alt1.M80P.1 p8+226956.200.2.1 1555431492 installed <13>Apr 21 01:11:29 rpmi: libdbus-1.10.24-alt4.M80P.1 1518773282 installed <13>Apr 21 01:11:29 rpmi: libasyncns-0.8-alt2.qa1 1365949819 installed <13>Apr 21 01:11:29 rpmi: libalsa-1:1.1.0-alt1.1.1 1454429213 installed <13>Apr 21 01:11:29 rpmi: xorg-kbproto-devel-1.0.6-alt1 1332531883 installed <13>Apr 21 01:11:29 rpmi: libxshmfence-1.2-alt1 1420972191 installed <13>Apr 21 01:11:29 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 21 01:11:29 rpmi: libpciaccess-1:0.13.4-alt1 1431681688 installed <13>Apr 21 01:11:29 rpmi: libdrm-1:2.4.89-alt1.M80P.1 1516609380 installed <13>Apr 21 01:11:29 rpmi: libX11-locales-3:1.6.3-alt1 1431956885 installed <13>Apr 21 01:11:29 rpmi: libXdmcp-1.1.1-alt1 1334617699 installed <13>Apr 21 01:11:29 rpmi: libXau-1.0.8-alt1 1369565807 installed <13>Apr 21 01:11:29 rpmi: libxcb-1.12-alt2 p8.218219.300 1545313310 installed <13>Apr 21 01:11:29 rpmi: libX11-3:1.6.3-alt1 1431956911 installed <13>Apr 21 01:11:29 rpmi: libXext-1.3.3-alt1 1409902932 installed <13>Apr 21 01:11:29 rpmi: libpulseaudio-9.0-alt2 1469793979 installed <13>Apr 21 01:11:29 rpmi: libmikmod-3.3.8-alt1.1 1449204660 installed <13>Apr 21 01:11:29 rpmi: libXxf86vm-1.1.3-alt1 1369984824 installed <13>Apr 21 01:11:29 rpmi: libXdamage-1.1.3-alt4 1297162596 installed <13>Apr 21 01:11:29 rpmi: libXfixes-5.0.1-alt1 1369809606 installed <13>Apr 21 01:11:29 rpmi: libGL-4:18.0.5-alt1.M80P.1 p8+226404.100.1.1 1554206332 installed <13>Apr 21 01:11:29 rpmi: libGLU-4:9.0.0-alt1 1347643776 installed <13>Apr 21 01:11:29 rpmi: libXrender-0.9.8-alt1 1371312110 installed <13>Apr 21 01:11:29 rpmi: libXrandr-1.5.0-alt1 1431936188 installed <13>Apr 21 01:11:29 rpmi: libSDL-1.2.14-alt6.M80P.1 1483818219 installed <13>Apr 21 01:11:29 rpmi: libSDL_image-1.2.12-alt1 1347907933 installed <13>Apr 21 01:11:29 rpmi: libSDL_mixer-1.2.12-alt1 1421435872 installed <13>Apr 21 01:11:31 rpmi: libxcb-devel-1.12-alt2 p8.218219.300 1545313310 installed <13>Apr 21 01:11:31 rpmi: libX11-devel-3:1.6.3-alt1 1431956911 installed <13>Apr 21 01:11:31 rpmi: libGL-devel-4:18.0.5-alt1.M80P.1 p8+226404.100.1.1 1554206332 installed <13>Apr 21 01:11:31 rpmi: libGLU-devel-4:9.0.0-alt1 1347643776 installed <13>Apr 21 01:11:32 rpmi: libSDL-devel-1.2.14-alt6.M80P.1 1483818219 installed <13>Apr 21 01:11:32 rpmi: gcc-c++-common-1.4.20-alt1 1432315196 installed <13>Apr 21 01:11:32 rpmi: libstdc++5-devel-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 21 01:11:33 rpmi: gcc5-c++-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 21 01:11:33 rpmi: libSDL_image-devel-1.2.12-alt1 1347907933 installed <13>Apr 21 01:11:33 rpmi: libSDL_mixer-devel-1.2.12-alt1 1421435872 installed <13>Apr 21 01:11:33 rpmi: zlib-devel-1.2.8-alt1 1371079009 installed <13>Apr 21 01:11:33 rpmi: desktop-file-utils-0.22.0.patchset1-alt1 1412210843 installed Installing cube3d-2005.08.29-alt2.qa3.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.58003 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf cube-src-2005.08.29 + echo 'Source #0 (cube-src-2005.08.29.tar):' Source #0 (cube-src-2005.08.29.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/cube-src-2005.08.29.tar + cd cube-src-2005.08.29 + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #0 (cube3d-2005.08.29-alt-DSO.patch):' Patch #0 (cube3d-2005.08.29-alt-DSO.patch): + /usr/bin/patch -p2 patching file src/Makefile + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.2166 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd cube-src-2005.08.29 + cd ./enet + touch NEWS AUTHORS ChangeLog + autoreconf -fisv autoreconf-default: Entering directory `.' autoreconf-default: configure.in: not using Gettext autoreconf-default: running: aclocal --force aclocal-default: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf-default: configure.in: tracing autoreconf-default: configure.in: not using Libtool autoreconf-default: configure.in: not using Intltool autoreconf-default: configure.in: not using gtk-doc autoreconf-default: running: /usr/bin/autoconf-2.60 --force autoreconf-default: configure.in: not using Autoheader autoreconf-default: running: automake --add-missing --force-missing automake-default: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:2: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: configure.in:2: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation configure.in:4: installing './compile' configure.in:2: installing './install-sh' configure.in:2: installing './missing' Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') Makefile.am: installing './INSTALL' Makefile.am: installing './COPYING' using GNU General Public License v3 file Makefile.am: Consider adding the COPYING file to the version control system Makefile.am: for your code, to avoid questions about which license your project uses automake-default: warning: autoconf input should be named 'configure.ac', not 'configure.in' Makefile.am: installing './depcomp' autoreconf-default: Leaving directory `.' + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + '[' -n '' ']' ++ printf %s '-pipe -Wall -g -O2' ++ sed -r 's/(^|[[:space:]]+)-[^m][^[:space:]]*//g' + ASFLAGS= + export ASFLAGS + export lt_cv_deplibs_check_method=pass_all + lt_cv_deplibs_check_method=pass_all + readlink -e -- ./configure + xargs -ri dirname -- '{}' + xargs -ri find '{}' -type f '(' -name config.sub -or -name config.guess ')' -printf '%h/\n' + sort -u + xargs -rn1 install -pm755 -- /usr/share/gnu-config/config.sub /usr/share/gnu-config/config.guess + ./configure --build=x86_64-alt-linux --host=x86_64-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --without-included-gettext configure: WARNING: unrecognized options: --without-included-gettext checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for x86_64-alt-linux-gcc... x86_64-alt-linux-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-alt-linux-gcc accepts -g... yes checking for x86_64-alt-linux-gcc option to accept ISO C89... none needed checking whether x86_64-alt-linux-gcc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of x86_64-alt-linux-gcc... none checking for x86_64-alt-linux-ranlib... no checking for ranlib... ranlib checking for gethostbyaddr_r... yes checking for gethostbyname_r... yes checking for poll... yes checking for fcntl... yes checking for struct msghdr.msg_flags... yes checking for socklen_t... yes checking how to run the C preprocessor... x86_64-alt-linux-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating include/Makefile config.status: creating include/enet/Makefile config.status: executing depfiles commands configure: WARNING: unrecognized options: --without-included-gettext + '[' -n '' ']' + NPROCS=8 + make -j8 make: Entering directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' Making all in include make[1]: Entering directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet/include' Making all in enet make[2]: Entering directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet/include/enet' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet/include/enet' make[2]: Entering directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet/include' make[2]: Nothing to be done for `all-am'. make[2]: Leaving directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet/include' make[1]: Leaving directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet/include' make[1]: Entering directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' x86_64-alt-linux-gcc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"7-18-2005\" -DPACKAGE_STRING=\"libenet\ 7-18-2005\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet.a\" -DVERSION=\"7-18-2005\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -Iinclude/ -pipe -Wall -g -O2 -c -o host.o host.c x86_64-alt-linux-gcc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"7-18-2005\" -DPACKAGE_STRING=\"libenet\ 7-18-2005\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet.a\" -DVERSION=\"7-18-2005\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -Iinclude/ -pipe -Wall -g -O2 -c -o list.o list.c x86_64-alt-linux-gcc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"7-18-2005\" -DPACKAGE_STRING=\"libenet\ 7-18-2005\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet.a\" -DVERSION=\"7-18-2005\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -Iinclude/ -pipe -Wall -g -O2 -c -o callbacks.o callbacks.c x86_64-alt-linux-gcc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"7-18-2005\" -DPACKAGE_STRING=\"libenet\ 7-18-2005\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet.a\" -DVERSION=\"7-18-2005\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -Iinclude/ -pipe -Wall -g -O2 -c -o packet.o packet.c x86_64-alt-linux-gcc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"7-18-2005\" -DPACKAGE_STRING=\"libenet\ 7-18-2005\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet.a\" -DVERSION=\"7-18-2005\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -Iinclude/ -pipe -Wall -g -O2 -c -o peer.o peer.c x86_64-alt-linux-gcc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"7-18-2005\" -DPACKAGE_STRING=\"libenet\ 7-18-2005\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet.a\" -DVERSION=\"7-18-2005\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -Iinclude/ -pipe -Wall -g -O2 -c -o protocol.o protocol.c x86_64-alt-linux-gcc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"7-18-2005\" -DPACKAGE_STRING=\"libenet\ 7-18-2005\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet.a\" -DVERSION=\"7-18-2005\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -Iinclude/ -pipe -Wall -g -O2 -c -o unix.o unix.c x86_64-alt-linux-gcc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"7-18-2005\" -DPACKAGE_STRING=\"libenet\ 7-18-2005\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet.a\" -DVERSION=\"7-18-2005\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -Iinclude/ -pipe -Wall -g -O2 -c -o win32.o win32.c peer.c: In function 'enet_peer_reset': peer.c:383:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration] memset (peer -> unsequencedWindow, 0, sizeof (peer -> unsequencedWindow)); ^ peer.c:383:5: warning: incompatible implicit declaration of built-in function 'memset' peer.c:383:5: note: include '' or provide a declaration of 'memset' peer.c: In function 'enet_peer_queue_incoming_command': peer.c:631:8: warning: incompatible implicit declaration of built-in function 'memset' memset (incomingCommand -> fragments, 0, (fragmentCount + 31) / 32 * sizeof (enet_uint32)); ^ peer.c:631:8: note: include '' or provide a declaration of 'memset' rm -f libenet.a ar cru libenet.a host.o list.o callbacks.o packet.o peer.o protocol.o unix.o win32.o ranlib libenet.a make[1]: Leaving directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make: Leaving directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' + cd ../src + '[' -n 8 ']' + make -j8 'CXXOPTFLAGS=-pipe -Wall -g -O2 -fsigned-char' 'CXX=g++ -L/usr/lib64' make: Entering directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make -C ../enet all g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o client.o client.cpp g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o clientextras.o clientextras.cpp g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o clientgame.o clientgame.cpp make[1]: Entering directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o clients2c.o clients2c.cpp g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o command.o command.cpp g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o console.o console.cpp g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o editing.o editing.cpp Making all in include make[2]: Entering directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet/include' Making all in enet make[3]: Entering directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet/include/enet' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet/include/enet' make[3]: Entering directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet/include' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet/include' make[2]: Leaving directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet/include' make[2]: Entering directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[2]: Nothing to be done for `all-am'. make[2]: Leaving directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[1]: Leaving directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o entities.o entities.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 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 command.cpp:4: 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 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:247: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 ^ 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); ^ 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); ^ 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:137: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:138: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:139: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:140:1: note: in expansion of macro 'COMMANDN' COMMANDN(disconnect, trydisconnect, ARG_NONE); ^ 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 = ""); ^ client.cpp: In function 'void addmsg(int, int, int, ...)': client.cpp:149: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:173:1: note: in expansion of macro 'COMMAND' COMMAND(password, ARG_1STR); ^ client.cpp: In function 'void initclientnet()': client.cpp:182:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] newname("unnamed"); ^ client.cpp:183:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] newteam("red"); ^ client.cpp: In function 'void gets2c()': client.cpp:289:11: warning: enumeration value 'ENET_EVENT_TYPE_NONE' not handled in switch [-Wswitch] switch(event.type) ^ 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 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), ^ editing.cpp:13:55: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] variable("sely", 0, 0, 4096, &sel.y, NULL, false), ^ 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); ^ 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 = ""); ^ 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); ^ 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); }; ^ g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o main.o main.cpp g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o menus.o menus.cpp 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:137:1: note: in expansion of macro 'COMMAND' COMMAND(echo, ARG_VARI); ^ 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:138:1: note: in expansion of macro 'COMMANDN' COMMANDN(say, toserver, ARG_VARI); ^ 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:139: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:140: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:173:1: note: in expansion of macro 'COMMAND' COMMAND(password, ARG_1STR); ^ g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o monster.o monster.cpp 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); ^ 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); ^ g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o physics.o physics.cpp g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o rendercubes.o rendercubes.cpp 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 }; ^ 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); ^ 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); ^ g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o renderextras.o renderextras.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 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 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); ^ g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o rendergl.o rendergl.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); ^ g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o rendermd2.o rendermd2.cpp 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); ^ g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o renderparticles.o renderparticles.cpp 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); ^ 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); ^ g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o rendertext.o rendertext.cpp g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o rndmap.o rndmap.cpp 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]); ^ 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); ^ g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o savegamedemo.o savegamedemo.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 = ""); ^ 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] g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o server.o server.cpp 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;) ^ g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o serverbrowser.o serverbrowser.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); ^ g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o serverms.o serverms.cpp 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:384:15: warning: enumeration value 'ENET_EVENT_TYPE_NONE' not handled in switch [-Wswitch] switch(event.type) ^ server.cpp:415: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:447:31: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(isdedicated = dedicated) ^ server.cpp:452:63: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] if(!serverhost) fatal("could not create server host\n"); ^ server.cpp:452:63: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings] 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:247: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 ^ rendermd2.cpp: In member function 'bool md2::load(char*)': rendermd2.cpp:71:48: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fread(&header, sizeof(md2_header), 1, file); ^ rendermd2.cpp:80:62: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fread(frames, header.frameSize*header.numFrames, 1, file); ^ rendermd2.cpp:91:65: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fread(glCommands, header.numGlCommands*sizeof(int), 1, file); ^ 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 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); ^ 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 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); ^ 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 = ""); ^ g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o serverutil.o serverutil.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); ^ g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o sound.o sound.cpp 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] g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o tools.o tools.cpp 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) ^ 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); ^ g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o weapon.o weapon.cpp In file included from rendermd2.cpp:3:0: rendermd2.cpp: At global scope: 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); ^ g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o world.o world.cpp g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o worldio.o worldio.cpp g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o worldlight.o worldlight.cpp g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o worldocull.o worldocull.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 = ""); ^ 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); ^ g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -c -o worldrender.o worldrender.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 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); ^ 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; ^ 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] 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); ^ g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -DSTANDALONE -o standalone.o -c serverutil.cpp 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; ^ 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 = ""); ^ 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); ^ 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_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); ^ 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); ^ 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); ^ 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 = ""); ^ 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 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); ^ 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] 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); ^ g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `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../enet -lenet `sdl-config --libs` -lSDL_image -lSDL_mixer -lz -lGL -lGLU -lX11 g++ -L/usr/lib64 -pipe -Wall -g -O2 -fsigned-char -I../enet/include `sdl-config --cflags` -o cube_server standalone.o serverms.o server.o tools.o -L../enet -lenet make: Leaving directory `/usr/src/RPM/BUILD/cube-src-2005.08.29/src' + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.64387 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/cube3d-buildroot + : + /bin/rm -rf -- /usr/src/tmp/cube3d-buildroot + cd cube-src-2005.08.29 + install -pD -m755 src/cube_client /usr/src/tmp/cube3d-buildroot/usr/games/cube_client + install -pD -m755 src/cube_server /usr/src/tmp/cube3d-buildroot/usr/games/cube_server + install -pD -m755 cube3d.sh /usr/src/tmp/cube3d-buildroot/usr/games/cube3d + install -m755 -d /usr/src/tmp/cube3d-buildroot/usr/share/applications/ + cat + desktop-file-install --dir /usr/src/tmp/cube3d-buildroot/usr/share/applications --remove-category=Action --add-category=ActionGame /usr/src/tmp/cube3d-buildroot/usr/share/applications/cube3d.desktop + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/cube3d-buildroot (auto) Verifying and fixing files in /usr/src/tmp/cube3d-buildroot (binconfig,pkgconfig,libtool,desktop) Compressing files in /usr/src/tmp/cube3d-buildroot (auto) Verifying ELF objects in /usr/src/tmp/cube3d-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Hardlinking identical .pyc and .pyo files Processing files: cube3d-2005.08.29-alt2.qa3 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.64387 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd cube-src-2005.08.29 + DOCDIR=/usr/src/tmp/cube3d-buildroot/usr/share/doc/cube3d + export DOCDIR + /bin/mkdir -p /usr/src/tmp/cube3d-buildroot/usr/share/doc/cube3d + cp -prL readme.txt /usr/src/tmp/cube3d-buildroot/usr/share/doc/cube3d + chmod -R go-w /usr/src/tmp/cube3d-buildroot/usr/share/doc/cube3d + chmod -R a+rX /usr/src/tmp/cube3d-buildroot/usr/share/doc/cube3d + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.pxGpcA find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.f4GFVc find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks) find-requires: FINDPACKAGE-COMMANDS: cp ln mkdir Requires: cube3d-data >= 2005, /bin/sh, /lib64/ld-linux-x86-64.so.2, coreutils, libGL.so.1()(64bit) >= set:oinoUyfRmE1XOrZ2QBayvs3O5EgciyAigh0LugUbi7T2kkqhn1AhdCwyklxzfgwYMBXIFohcQnpsDNPZ0FDVedjMxCRhsZH5NddzooIcJ5NZgedkIUb6cht1NUJG4Re4sbWgZnl1r88wyHwTgRNs5BdvjwZow2shSibwwKZ50, libGLU.so.1()(64bit) >= set:jf2WETbUdzh8jFW1w8HWwpbOL4, libSDL-1.2.so.0()(64bit) >= set:lgh4FqZ1QGvKkPDX3tJgi1ZG9TREIIGOZEoNbG2I0ZsoL9NKMZF7peBNOnmQB1Z4i92iGjy9iTNeffj0, libSDL_image-1.2.so.0()(64bit) >= set:jifK3, libSDL_mixer-1.2.so.0()(64bit) >= set:kgIdCOqKEupQY3CJN8sqedRO7p7WxkxEcp, libX11.so.6()(64bit) >= set:omNQNN6cW, libc.so.6(GLIBC_2.14)(64bit), libc.so.6(GLIBC_2.2.5)(64bit), libc.so.6(GLIBC_2.3.4)(64bit), libc.so.6(GLIBC_2.4)(64bit), libgcc_s.so.1(GCC_3.0)(64bit), libm.so.6(GLIBC_2.2.5)(64bit), libpthread.so.0(GLIBC_2.2.5)(64bit), libstdc++.so.6(CXXABI_1.3)(64bit), libstdc++.so.6(GLIBCXX_3.4)(64bit), libz.so.1()(64bit) >= set:khU3OnBq0dZE5LwrS9i18, rtld(GNU_HASH) Requires(rpmlib): rpmlib(SetVersions) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.s6nCSU Creating cube3d-debuginfo package Processing files: cube3d-debuginfo-2005.08.29-alt2.qa3 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.aB4TxF find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.gb5IUs find-requires: running scripts (debuginfo) Requires: cube3d = 2005.08.29-alt2.qa3, /usr/lib/debug/lib64/ld-linux-x86-64.so.2.debug, debug64(libGL.so.1), debug64(libGLU.so.1), debug64(libSDL-1.2.so.0), debug64(libSDL_image-1.2.so.0), debug64(libSDL_mixer-1.2.so.0), debug64(libX11.so.6), debug64(libc.so.6), debug64(libgcc_s.so.1), debug64(libm.so.6), debug64(libpthread.so.0), debug64(libstdc++.so.6), debug64(libz.so.1) Wrote: /usr/src/RPM/RPMS/x86_64/cube3d-2005.08.29-alt2.qa3.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/cube3d-debuginfo-2005.08.29-alt2.qa3.x86_64.rpm 23.59user 4.92system 0:19.47elapsed 146%CPU (0avgtext+0avgdata 55984maxresident)k 0inputs+0outputs (0major+870054minor)pagefaults 0swaps 33.60user 11.05system 0:37.10elapsed 120%CPU (0avgtext+0avgdata 122128maxresident)k 88inputs+0outputs (0major+1182246minor)pagefaults 0swaps --- cube3d-2005.08.29-alt2.qa3.x86_64.rpm.repo 2012-07-17 11:14:08.000000000 +0000 +++ cube3d-2005.08.29-alt2.qa3.x86_64.rpm.hasher 2019-04-21 01:11:57.860350387 +0000 @@ -15,4 +15,5 @@ Requires: libSDL_image-1.2.so.0()(64bit) >= set:jifK3 -Requires: libSDL_mixer-1.2.so.0()(64bit) >= set:lhS6jpd1ZflSEXOEOfMId6xrPFjJQzI6Wxkx0 +Requires: libSDL_mixer-1.2.so.0()(64bit) >= set:kgIdCOqKEupQY3CJN8sqedRO7p7WxkxEcp Requires: libX11.so.6()(64bit) >= set:omNQNN6cW +Requires: libc.so.6(GLIBC_2.14)(64bit) Requires: libc.so.6(GLIBC_2.2.5)(64bit)