<86>Nov 17 09:26:34 userdel[119418]: delete user 'rooter' <86>Nov 17 09:26:34 userdel[119418]: removed group 'rooter' owned by 'rooter' <86>Nov 17 09:26:34 userdel[119418]: removed shadow group 'rooter' owned by 'rooter' <86>Nov 17 09:26:34 groupadd[119440]: group added to /etc/group: name=rooter, GID=573 <86>Nov 17 09:26:34 groupadd[119440]: group added to /etc/gshadow: name=rooter <86>Nov 17 09:26:34 groupadd[119440]: new group: name=rooter, GID=573 <86>Nov 17 09:26:34 useradd[119454]: new user: name=rooter, UID=573, GID=573, home=/root, shell=/bin/bash <86>Nov 17 09:26:35 userdel[119513]: delete user 'builder' <86>Nov 17 09:26:35 userdel[119513]: removed group 'builder' owned by 'builder' <86>Nov 17 09:26:35 userdel[119513]: removed shadow group 'builder' owned by 'builder' <86>Nov 17 09:26:35 groupadd[119536]: group added to /etc/group: name=builder, GID=574 <86>Nov 17 09:26:35 groupadd[119536]: group added to /etc/gshadow: name=builder <86>Nov 17 09:26:35 groupadd[119536]: new group: name=builder, GID=574 <86>Nov 17 09:26:35 useradd[119555]: new user: name=builder, UID=574, GID=574, home=/usr/src, shell=/bin/bash <13>Nov 17 09:26:39 rpmi: libglvnd-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634542 installed <13>Nov 17 09:26:39 rpmi: libogg-1.3.3-alt1 sisyphus+221902.4000.4.1 1550598661 installed <13>Nov 17 09:26:39 rpmi: libflac8-1.3.2-alt2 sisyphus+220898.4400.11.1 1551973321 installed <13>Nov 17 09:26:39 rpmi: libvorbis-1.3.6-alt2 sisyphus+220072.200.2.2 1548744475 installed <13>Nov 17 09:26:39 rpmi: libjpeg-2:2.0.2-alt1 sisyphus+226996.100.1.1 1554902907 installed <13>Nov 17 09:26:39 rpmi: xorg-proto-devel-2018.4-alt3 1527685079 installed <13>Nov 17 09:26:39 rpmi: libexpat-2.2.4-alt1 1503305345 installed <13>Nov 17 09:26:39 rpmi: libwayland-server-1.17.0-alt1 sisyphus+225894.100.1.1 1553872805 installed <13>Nov 17 09:26:39 rpmi: libOpenGL-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634542 installed <13>Nov 17 09:26:39 rpmi: libGLES-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634542 installed <13>Nov 17 09:26:39 rpmi: libmad-0.15.1b-alt9 sisyphus+222614.100.1.1 1550890149 installed <13>Nov 17 09:26:39 rpmi: timidity-instruments-1:1.0-alt1 1166705614 installed <13>Nov 17 09:26:39 rpmi: libwebp7-1.0.3-alt1 p9+234901.200.1.1 1563552457 installed <13>Nov 17 09:26:39 rpmi: libjbig-2.1-alt1 1401380926 installed <13>Nov 17 09:26:39 rpmi: libtiff5-4.0.10.0.57.f9fc01c3-alt1 sisyphus+226958.100.1.1 1554850940 installed <13>Nov 17 09:26:39 rpmi: libpng16-1.6.36-alt1 sisyphus+219478.100.1.1 1547633314 installed <13>Nov 17 09:26:39 rpmi: libgsm-1.0.17-alt1 1523356165 installed <13>Nov 17 09:26:39 rpmi: libsndfile-1.0.28-alt2 sisyphus.212728.100 1536333068 installed <13>Nov 17 09:26:39 rpmi: liblz4-1:1.9.2-alt1 p9+238696.500.1.1 1570228299 installed <13>Nov 17 09:26:39 rpmi: libgpg-error-1.36-alt1 sisyphus+225621.300.1.1 1553521082 installed <13>Nov 17 09:26:40 rpmi: libgcrypt20-1.8.4-alt2 sisyphus+229280.100.1.1 1557742126 installed <13>Nov 17 09:26:40 rpmi: libsystemd-1:242-alt12 p9+239240.100.1.1 1571079084 installed <13>Nov 17 09:26:40 rpmi: libdbus-1.12.16-alt2 p9+240607.100.1.1 1573553687 installed <13>Nov 17 09:26:40 rpmi: libasyncns-0.8-alt2.qa1 1365949820 installed <13>Nov 17 09:26:40 rpmi: libalsa-1:1.1.9-alt2 sisyphus+229323.100.1.1 1557826759 installed <13>Nov 17 09:26:40 rpmi: libxshmfence-1.3-alt1 sisyphus+223149.1000.2.1 1551268571 installed <13>Nov 17 09:26:40 rpmi: libX11-locales-3:1.6.7-alt1 sisyphus+226735.100.2.2 1554615009 installed <13>Nov 17 09:26:40 rpmi: libXdmcp-1.1.3-alt1 sisyphus+225206.600.1.2 1552949353 installed <13>Nov 17 09:26:40 rpmi: libXau-1.0.9-alt1 sisyphus+223149.200.2.1 1551268152 installed <13>Nov 17 09:26:40 rpmi: libxcb-1.13.1-alt1 sisyphus+226527.100.2.2 1554593801 installed <13>Nov 17 09:26:40 rpmi: libX11-3:1.6.7-alt1 sisyphus+226735.100.2.2 1554615005 installed <13>Nov 17 09:26:40 rpmi: libXext-1.3.4-alt1 sisyphus+225206.700.1.2 1552949429 installed <13>Nov 17 09:26:40 rpmi: libpulseaudio-12.2-alt3 p9+233336.100.1.1 1561644521 installed <13>Nov 17 09:26:40 rpmi: libmikmod-3.3.11.1-alt2 1502706814 installed <13>Nov 17 09:26:40 rpmi: libXxf86vm-1.1.4-alt2 1527672187 installed <13>Nov 17 09:26:40 rpmi: libXdamage-1.1.5-alt1 sisyphus+225206.500.1.2 1552949286 installed <13>Nov 17 09:26:40 rpmi: libXfixes-5.0.3-alt1 sisyphus+226736.100.2.2 1554614841 installed <13>Nov 17 09:26:40 rpmi: libXrender-0.9.8-alt1 1371312112 installed <13>Nov 17 09:26:40 rpmi: libXrandr-1.5.2-alt1 sisyphus+225206.1300.1.2 1552949710 installed <13>Nov 17 09:26:40 rpmi: libSDL-1.2.14-alt8 p9+232634.100.1.1 1560964518 installed <13>Nov 17 09:26:40 rpmi: libSDL_image-1.2.12-alt2 sisyphus+223384.100.1.1 1551514520 installed <13>Nov 17 09:26:40 rpmi: libSDL_mixer-1.2.12-alt1 1421435874 installed <13>Nov 17 09:26:42 rpmi: libxcb-devel-1.13.1-alt1 sisyphus+226527.100.2.2 1554593801 installed <13>Nov 17 09:26:42 rpmi: libX11-devel-3:1.6.7-alt1 sisyphus+226735.100.2.2 1554615005 installed <13>Nov 17 09:26:42 rpmi: libwayland-client-1.17.0-alt1 sisyphus+225894.100.1.1 1553872805 installed <13>Nov 17 09:26:42 rpmi: libpciaccess-1:0.14-alt1 1528969252 installed <13>Nov 17 09:26:42 rpmi: libdrm-1:2.4.99-alt1 p9+236610.100.1.1 1566818128 installed <13>Nov 17 09:26:42 rpmi: libGLX-mesa-4:19.1.8-alt1 p9+240059.100.2.1 1573598676 installed <13>Nov 17 09:26:42 rpmi: libGLX-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634542 installed <13>Nov 17 09:26:42 rpmi: libGL-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634542 installed <13>Nov 17 09:26:42 rpmi: libGLU-4:9.0.0-alt1 1347643784 installed <13>Nov 17 09:26:42 rpmi: libgbm-4:19.1.8-alt1 p9+240059.100.2.1 1573598676 installed <13>Nov 17 09:26:42 rpmi: libEGL-mesa-4:19.1.8-alt1 p9+240059.100.2.1 1573598676 installed <13>Nov 17 09:26:42 rpmi: libEGL-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634542 installed <13>Nov 17 09:26:42 rpmi: libglvnd-devel-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634542 installed <13>Nov 17 09:26:42 rpmi: libEGL-devel-4:19.1.8-alt1 p9+240059.100.2.1 1573598676 installed <13>Nov 17 09:26:42 rpmi: libGL-devel-4:19.1.8-alt1 p9+240059.100.2.1 1573598676 installed <13>Nov 17 09:26:42 rpmi: libGLU-devel-4:9.0.0-alt1 1347643784 installed <13>Nov 17 09:26:42 rpmi: libSDL-devel-1.2.14-alt8 p9+232634.100.1.1 1560964518 installed <13>Nov 17 09:26:42 rpmi: gcc-c++-common-1.4.23-alt1 sisyphus+221902.2500.4.1 1550596716 installed <13>Nov 17 09:26:43 rpmi: libstdc++8-devel-8.3.1-alt5 p9+240194.100.1.1 1572928737 installed <13>Nov 17 09:26:44 rpmi: gcc8-c++-8.3.1-alt5 p9+240194.100.1.1 1572928737 installed <13>Nov 17 09:26:44 rpmi: gcc-c++-8-alt1 sisyphus+222164.100.1.1 1550685959 installed <13>Nov 17 09:26:44 rpmi: libSDL_image-devel-1.2.12-alt2 sisyphus+223384.100.1.1 1551514520 installed <13>Nov 17 09:26:44 rpmi: libSDL_mixer-devel-1.2.12-alt1 1421435874 installed <13>Nov 17 09:26:44 rpmi: desktop-file-utils-0.23-alt2 sisyphus+226879.100.1.1 1554744356 installed <13>Nov 17 09:26:44 rpmi: zlib-devel-1.2.11-alt1 sisyphus+221902.6000.4.1 1550601058 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/cube3d-2005.08.29-alt2.qa3.nosrc.rpm Installing cube3d-2005.08.29-alt2.qa3.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.71440 + 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.71440 + 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: https://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 -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + '[' -n '' ']' ++ printf %s '-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' ++ sed -r 's/(^|[[:space:]]+)-[^m][^[:space:]]*//g' + ASFLAGS=' -march=i586 -mtune=generic' + 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=i586-alt-linux --host=i586-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --disable-silent-rules --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 i586-alt-linux-gcc... i586-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 i586-alt-linux-gcc accepts -g... yes checking for i586-alt-linux-gcc option to accept ISO C89... none needed checking whether i586-alt-linux-gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of i586-alt-linux-gcc... none checking for i586-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... i586-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 + make -j8 Making all in include Making all in enet make[2]: Nothing to be done for 'all'. make[2]: Nothing to be done for 'all-am'. make[1]: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' i586-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 -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c -o win32.o win32.c make[1]: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[1]: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' i586-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 -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c -o callbacks.o callbacks.c make[1]: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[1]: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' i586-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 -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c -o list.o list.c make[1]: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[1]: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' i586-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 -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c -o host.o host.c make[1]: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[1]: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' i586-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 -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c -o packet.o packet.c make[1]: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[1]: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' i586-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 -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c -o peer.o peer.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:7:1: +#include peer.c:383:5: memset (peer -> unsequencedWindow, 0, sizeof (peer -> unsequencedWindow)); ^~~~~~ 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' make[1]: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[1]: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' i586-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 -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c -o unix.o unix.c make[1]: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[1]: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' i586-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 -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -c -o protocol.o protocol.c make[1]: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[1]: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' 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' + cd ../src + make -j8 'CXXOPTFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char' 'CXX=g++ -L/usr/lib' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make -C ../enet all 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. make[1]: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' make[1]: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/enet' 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' make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o clientextras.o clientextras.cpp In file included from cube.h:284, from clientextras.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ clientextras.cpp: In function 'void renderclients()': clientextras.cpp:47:155: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] menumanual(0, scorelines.length(), ""); ^ In file included from clientextras.cpp:3: clientextras.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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); ^~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o clientgame.o clientgame.cpp In file included from cube.h:284, from clientgame.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from clientgame.cpp:3: cube.h:256:95: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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:32: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if(player1->attacking = on) respawn(); ~~~~~~~~~~~~~~~~~~~^~~~ In file included from clientgame.cpp:3: clientgame.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] neterr("clientnum"); ^ clientgame.cpp: In function 'void startmap(char*)': clientgame.cpp:446:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] setvar("gamespeed", 100); ^ clientgame.cpp:447:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] setvar("fog", 180); ^ clientgame.cpp:448:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] setvar("fogcolour", 0x8099B3); ^ In file included from clientgame.cpp:3: clientgame.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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); ^~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o editing.o editing.cpp In file included from cube.h:284, from editing.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ editing.cpp:12:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] variable("selx", 0, 0, 4096, &sel.x, NULL, false), ^ editing.cpp:13:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] variable("sely", 0, 0, 4096, &sel.y, NULL, false), ^ editing.cpp:14:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] variable("selxs", 0, 0, 4096, &sel.xs, NULL, false), ^ editing.cpp:15:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] variable("selys", 0, 0, 4096, &sel.ys, NULL, false), ^ In file included from editing.cpp:3: cube.h:256:95: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: editing.cpp: At global scope: cube.h:255:94: warning: ISO C++ forbids converting a 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:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(dragging = isdown) ~~~~~~~~~^~~~~~~~ In file included from editing.cpp:3: editing.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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: editing.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: cube.h:257:134: warning: ISO C++ forbids converting a 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: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs) ^ cube.h:254:30: note: in expansion of macro 'COMMANDN' #define COMMAND(name, nargs) COMMANDN(name, name, nargs) ^~~~~~~~ editing.cpp:477:1: note: in expansion of macro 'COMMAND' COMMAND(arch, ARG_2INT); ^~~~~~~ cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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); ^~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o console.o console.cpp In file included from cube.h:284, from console.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from console.cpp:3: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: console.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(!init) init = ""; ^~ In file included from console.cpp:3: console.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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 { } [-Wnarrowing] if(cooked) { char add[] = { cooked, 0 }; strcat_s(commandbuf, add); }; ^ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o clients2c.o clients2c.cpp In file included from cube.h:284, from clients2c.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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 { } [-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 { } [-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 { } [-Wnarrowing] vec v = { ents[i].x, ents[i].y, ents[i].z }; clients2c.cpp:352:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] neterr("type"); ^ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o command.o command.cpp In file included from cube.h:284, from command.cpp:4: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from command.cpp:4: cube.h:253:104: warning: ISO C++ forbids converting a 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:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] w[i] = ""; ^~ command.cpp:139:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(!s) { numargs = i; s = ""; }; ^~ In file included from command.cpp:4: command.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] void concat(char *s) { alias("s", s); }; ^ command.cpp: In function 'void concatword(char*)': command.cpp:319:33: 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: command.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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, 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 ^~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o entities.o entities.cpp In file included from cube.h:284, from entities.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ entities.cpp:11:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] }; ^ entities.cpp:11:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] entities.cpp:11:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] entities.cpp:11:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] entities.cpp:11:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] entities.cpp:11:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] entities.cpp:11:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] entities.cpp:11:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] entities.cpp:11:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] entities.cpp:11:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] entities.cpp: In function 'void renderentities()': entities.cpp:29:18: warning: the compiler can assume that the address of 'mmi' will never be NULL [-Waddress] if(!&mmi) continue; ^~~ entities.cpp:29:18: warning: the compiler can assume that the address of 'mmi' will never be NULL [-Waddress] entities.cpp:50:109: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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 { } [-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 { } [-Wnarrowing] vec v = { e.x, e.y, S(e.x, e.y)->floor+player1->eyeheight }; ~~^ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o menus.o menus.cpp In file included from cube.h:284, from menus.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a 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:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] mitem.action = ""; ^~ In file included from menus.cpp:3: menus.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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); ^~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o renderextras.o renderextras.cpp In file included from cube.h:284, from renderextras.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ renderextras.cpp: In function 'void renderspheres(int)': renderextras.cpp:110:37: 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] }; ^ renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:150:1: warning: ISO C++ forbids converting a 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 { } [-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 { } [-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 { } [-Wnarrowing] vec v = { e.x, e.y, e.z }; ~~^ renderextras.cpp:167:159: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] char *side[] = { "ft", "bk", "lf", "rt", "dn", "up" }; ^ renderextras.cpp:175:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:175:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:175:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:175:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] renderextras.cpp:175:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] In file included from renderextras.cpp:3: renderextras.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(command) draw_textf("> %s_", 20, 1570, 2, command); ^ renderextras.cpp:339:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] draw_textf("fps %d", 3200, 2390, 2, curfps); ^ renderextras.cpp:340:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] draw_textf("wqd %d", 3200, 2460, 2, nquads); ^ renderextras.cpp:341:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] draw_textf("wvt %d", 3200, 2530, 2, curvert); ^ renderextras.cpp:342:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] draw_textf("evt %d", 3200, 2600, 2, xtraverts); ^ renderextras.cpp:351:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] draw_textf("%d", 90, 827, 2, player1->health); ^ renderextras.cpp:352:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(player1->armour) draw_textf("%d", 390, 827, 2, player1->armour); ^ renderextras.cpp:353:72: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] draw_textf("%d", 690, 827, 2, player1->ammo[player1->gunselect]); ^ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o rendergl.o rendergl.cpp In file included from cube.h:284, from rendergl.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(!(qsphere = gluNewQuadric())) fatal("glu sphere"); ^ rendergl.cpp:56:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] rendergl.cpp: In function 'bool installtex(int, char*, int&, int&, bool)': rendergl.cpp:93:126: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] In file included from rendergl.cpp:3: rendergl.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(curtex==MAXTEX) fatal("loaded too many textures"); ^ rendergl.cpp:163:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] In file included from rendergl.cpp:3: rendergl.cpp: At global scope: cube.h:258:133: warning: ISO C++ forbids converting a 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: cube.h:255:94: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] char *hudgunnames[] = { "hudguns/fist", "hudguns/shotg", "hudguns/chaing", "hudguns/rocket", "hudguns/rifle" }; ^ rendergl.cpp:265:110: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] rendergl.cpp:265:110: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] rendergl.cpp:265:110: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] rendergl.cpp:265:110: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o client.o client.cpp In file included from cube.h:284, from client.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from client.cpp:3: cube.h:257:134: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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); ^~~~~~~~ client.cpp: In function 'void addmsg(int, int, int, ...)': client.cpp:149:133: warning: ISO C++ forbids converting a 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: client.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] newname("unnamed"); ^ client.cpp:183:18: warning: ISO C++ forbids converting a 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) ^ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o rendermd2.o rendermd2.cpp In file included from cube.h:284, from rendermd2.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] mapmodelinfo mmi = { 2, 2, 0, 0, "" }; ^ In file included from rendermd2.cpp:3: rendermd2.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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, 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:10: 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:10: 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:10: 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); ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o physics.o physics.cpp In file included from cube.h:284, from physics.cpp:6: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ physics.cpp: In function 'void mmcollide(dynent*, float&, float&)': physics.cpp:50:14: warning: the compiler can assume that the address of 'mmi' will never be NULL [-Waddress] if(!&mmi || !mmi.h) continue; ^~~ physics.cpp:50:14: warning: the compiler can assume that the address of 'mmi' will never be NULL [-Waddress] 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: physics.cpp: At global scope: cube.h:255:94: warning: ISO C++ forbids converting a 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); ^~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o rendertext.o rendertext.cpp In file included from cube.h:284, from rendertext.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o renderparticles.o renderparticles.cpp In file included from cube.h:284, from renderparticles.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from renderparticles.cpp:3: cube.h:255:94: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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:41: warning: suggest parentheses around assignment used as truth value [-Wparentheses] for(particle *p, **pp = &parlist; p = *pp;) ~~^~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o main.o main.cpp In file included from cube.h:284, from main.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(!b) fatal("out of memory!"); ^ main.cpp:41:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] main.cpp: In function 'void screenshot()': main.cpp:53:14: 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:18: 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: main.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: cube.h:257:134: warning: ISO C++ forbids converting a 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: cube.h:255:94: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; ^~ main.cpp:91:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; ^~ main.cpp:91:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; ^~ main.cpp:122:87: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] main.cpp:125:72: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(enet_initialize()<0) fatal("Unable to initialise network module"); ^ main.cpp:125:72: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] main.cpp:134:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(SDL_InitSubSystem(SDL_INIT_VIDEO)<0) fatal("Unable to initialize SDL Video"); ^ main.cpp:134:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] main.cpp:138:102: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] main.cpp:151:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(!installtex(2, path(newstring("data/newchars.png")), xs, ys) || ^ main.cpp:152:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] !installtex(3, path(newstring("data/martin/base.png")), xs, ys) || ^ main.cpp:153:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] !installtex(6, path(newstring("data/martin/ball1.png")), xs, ys) || ^ main.cpp:154:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] !installtex(7, path(newstring("data/martin/smoke.png")), xs, ys) || ^ main.cpp:155:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] !installtex(8, path(newstring("data/martin/ball2.png")), xs, ys) || ^ main.cpp:156:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] !installtex(9, path(newstring("data/martin/ball3.png")), xs, ys) || ^ main.cpp:157:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] !installtex(4, path(newstring("data/explosion.jpg")), xs, ys) || ^ main.cpp:158:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] !installtex(5, path(newstring("data/items.png")), xs, ys) || ^ main.cpp:159:59: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] main.cpp:165:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] newmenu("frags\tpj\tping\tteam\tname"); ^ main.cpp:166:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] newmenu("ping\tplr\tserver"); ^ main.cpp:167:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] exec("data/keymap.cfg"); ^ main.cpp:168:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] exec("data/menus.cfg"); ^ main.cpp:169:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] exec("data/prefabs.cfg"); ^ main.cpp:170:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] exec("data/sounds.cfg"); ^ main.cpp:171:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] exec("servers.cfg"); ^ main.cpp:172:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(!execfile("config.cfg")) execfile("data/defaults.cfg"); ^ main.cpp:172:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(!execfile("config.cfg")) execfile("data/defaults.cfg"); ^ main.cpp:173:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] exec("autoexec.cfg"); ^ main.cpp:177:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] changemap("metl3"); // if this map is changed, also change depthcorrect() ^ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o monster.o monster.cpp In file included from cube.h:284, from monster.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from monster.cpp:3: cube.h:257:134: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] }; ^ monster.cpp:33:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] monster.cpp:33:1: warning: ISO C++ forbids converting a 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 { } [-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 { } [-Wnarrowing] vec v = { e.x, e.y, S(e.x, e.y)->floor }; ~~^ monster.cpp:314:42: warning: narrowing conversion of '(world + ((sizetype)(((unsigned int)((((int)(& e)->entity::.persistent_entity::y) * ssize) + ((int)(& e)->entity::.persistent_entity::x))) * 14)))->sqr::floor' from 'char' to 'float' inside { } [-Wnarrowing] vec v = { e.x, e.y, S(e.x, e.y)->floor }; make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o server.o server.cpp In file included from cube.h:284, from server.cpp:4: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ server.cpp:46:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] char *serverpassword = ""; ^~ server.cpp: In function 'bool vote(char*, int, int)': server.cpp:144:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] sendservmsg("vote passed"); ^ server.cpp: In function 'void process(ENetPacket*, int)': server.cpp:156:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] disconnect_client(sender, "packet length"); ^ server.cpp:224:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] disconnect_client(sender, "client num"); ^ server.cpp:254:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(size==-1) { disconnect_client(sender, "tag type"); return; }; ^ server.cpp:259:58: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(isdedicated = dedicated) ~~~~~~~~~~~~^~~~~~~~~~~ server.cpp:452:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(!serverhost) fatal("could not create server host\n"); ^ server.cpp:452:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o rendercubes.o rendercubes.cpp In file included from cube.h:284, from rendercubes.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ rendercubes.cpp: In function 'void reallocv()': rendercubes.cpp:20:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(!verts) fatal("no vertex memory!"); ^ rendercubes.cpp:20:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] In file included from rendercubes.cpp:3: rendercubes.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ rendercubes.cpp:54:1: note: in expansion of macro 'VAR' VAR(lighterror,1,8,100); ^~~ cube.h:256:95: warning: ISO C++ forbids converting a 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: cube.h:257:134: warning: ISO C++ forbids converting a 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); ^~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o rndmap.o rndmap.cpp In file included from cube.h:284, from rndmap.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o serverbrowser.o serverbrowser.cpp In file included from cube.h:284, from serverbrowser.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from serverbrowser.cpp:3: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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); ^~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o tools.o tools.cpp tools.cpp: In function 'char* path(char*)': tools.cpp:105:24: 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 of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] if(len!=rlen || len<=0) ~~~^~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o serverutil.o serverutil.cpp In file included from cube.h:284, from serverutil.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o savegamedemo.o savegamedemo.cpp In file included from cube.h:284, from savegamedemo.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] In file included from savegamedemo.cpp:3: savegamedemo.cpp: At global scope: cube.h:256:95: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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:19: 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:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(bdamage = gzgeti()) damageblend(bdamage); ~~~~~~~~^~~~~~~~~~ savegamedemo.cpp:298:15: 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: savegamedemo.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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); ^~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o serverms.o serverms.cpp In file included from cube.h:284, from serverms.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] httpgetsend(masterserver, masterbase, path, "cubeserver", "Cube Server"); ^ serverms.cpp:65:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] serverms.cpp: In function 'uchar* retrieveservers(uchar*, int)': serverms.cpp:83:76: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] httpgetsend(masterserver, masterbase, path, "cubeserver", "Cube Server"); ^ serverms.cpp:83:76: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] serverms.cpp: In function 'void servermsinit(const char*, char*, bool)': serverms.cpp:139:87: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(pongsock == ENET_SOCKET_NULL) fatal("could not create server info socket\n"); ^ serverms.cpp:139:87: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o weapon.o weapon.cpp In file included from cube.h:284, from weapon.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ weapon.cpp:23:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] }; ^ weapon.cpp:23:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] weapon.cpp:23:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] weapon.cpp:23:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] weapon.cpp:23:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] weapon.cpp:23:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] weapon.cpp:23:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] weapon.cpp:23:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] weapon.cpp:23:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] In file included from weapon.cpp:3: cube.h:253:104: warning: ISO C++ forbids converting a 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); ^~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o sound.o sound.cpp In file included from cube.h:284, from sound.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from sound.cpp:3: cube.h:255:94: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(mod = Mix_LoadMUS(path(sn))) ~~~~^~~~~~~~~~~~~~~~~~~~~~~ In file included from sound.cpp:3: sound.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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); ^~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o worldrender.o worldrender.cpp In file included from cube.h:284, from worldrender.cpp:4: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o worldocull.o worldocull.cpp In file included from cube.h:284, from worldocull.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from worldocull.cpp:3: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] odist = getvar("fog")*1.5f; ^ worldocull.cpp:25:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] float af = getvar("fov")/2+apitch/1.5f+3; ^ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o world.o world.cpp In file included from cube.h:284, from world.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from world.cpp:3: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] int lighterr = getvar("lighterror")*3; ^ world.cpp: In function 'int closestent()': world.cpp:170:21: warning: narrowing conversion of '(& e)->entity::.persistent_entity::x' from 'short int' to 'float' inside { } [-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 { } [-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 { } [-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 { } [-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 { } [-Wnarrowing] world.cpp:215:59: warning: narrowing conversion of 'z' from 'int' to 'short int' inside { } [-Wnarrowing] world.cpp:215:59: warning: narrowing conversion of 'v1' from 'int' to 'short int' inside { } [-Wnarrowing] world.cpp:215:59: warning: narrowing conversion of 'type' from 'int' to 'uchar' {aka 'unsigned char'} inside { } [-Wnarrowing] world.cpp:215:59: warning: narrowing conversion of 'v2' from 'int' to 'uchar' {aka 'unsigned char'} inside { } [-Wnarrowing] world.cpp:215:59: warning: narrowing conversion of 'v3' from 'int' to 'uchar' {aka 'unsigned char'} inside { } [-Wnarrowing] world.cpp:215:59: warning: narrowing conversion of 'v4' from 'int' to 'uchar' {aka 'unsigned char'} inside { } [-Wnarrowing] In file included from world.cpp:3: world.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] startmap("base/unnamed"); ^ world.cpp:360:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] execute("fullbright 1"); ^ In file included from world.cpp:3: world.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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); ^~~~~~~ world.cpp: In function 'int closestent()': world.cpp:164:9: warning: 'best' may be used uninitialized in this function [-Wmaybe-uninitialized] int best; ^~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o worldlight.o worldlight.cpp In file included from cube.h:284, from worldlight.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ In file included from worldlight.cpp:3: cube.h:256:95: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define VAR(name, min, cur, max) int name = variable(#name, min, cur, max, &name, NULL, false) ^ worldlight.cpp:7:1: note: in expansion of macro 'VAR' VAR(lightscale,1,4,100); ^~~ worldlight.cpp: In function 'void calclight()': worldlight.cpp:157:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] setvar("fullbright", 0); ^ In file included from worldlight.cpp:3: worldlight.cpp: At global scope: cube.h:255:94: warning: ISO C++ forbids converting a 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:29: warning: narrowing conversion of '(int)v->vec::x' from 'int' to 'short int' inside { } [-Wnarrowing] persistent_entity l = { (int)v.x, (int)v.y, (int)v.z, reach, LIGHT, strength, 0, 0 }; ^~~~~~~~ worldlight.cpp:191:39: warning: narrowing conversion of '(int)v->vec::y' from 'int' to 'short int' inside { } [-Wnarrowing] persistent_entity l = { (int)v.x, (int)v.y, (int)v.z, reach, LIGHT, strength, 0, 0 }; ^~~~~~~~ worldlight.cpp:191:49: warning: narrowing conversion of '(int)v->vec::z' from 'int' to 'short int' inside { } [-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 'reach' from 'int' to 'short int' inside { } [-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 'strength' from 'int' to 'uchar' {aka 'unsigned char'} inside { } [-Wnarrowing] make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -c -o worldio.o worldio.cpp In file included from cube.h:284, from worldio.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] extern void fatal(char *s, char *o = ""); ^ worldio.cpp: In function 'void load_world(char*)': worldio.cpp:219:87: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(strncmp(hdr.head, "CUBE", 4)!=0) fatal("while reading map: header malformatted"); ^ worldio.cpp:219:87: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] worldio.cpp:220:81: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(hdr.version>MAPVERSION) fatal("this map requires a newer version of cube"); ^ worldio.cpp:220:81: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] worldio.cpp:221:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(sfactorLARGEST_FACTOR) fatal("illegal map size"); ^ worldio.cpp:221:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] worldio.cpp:288:70: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] fatal("while reading map: type out of range: ", t); ^ worldio.cpp:320:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(identexists(aliasname)) alias(aliasname, ""); ^ worldio.cpp:322:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] execfile("data/default_map_settings.cfg"); ^ In file included from worldio.cpp:3: worldio.cpp: At global scope: cube.h:253:104: warning: ISO C++ forbids converting a 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); ^~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char -I../enet/include `sdl-config --cflags` -DSTANDALONE -o standalone.o -c serverutil.cpp In file included from cube.h:284, from serverutil.cpp:3: protos.h:127:40: warning: ISO C++ forbids converting a 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: ISO C++ forbids converting a 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: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] serverutil.cpp: In function 'int main(int, char**)': serverutil.cpp:99:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; ^~ serverutil.cpp:99:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; ^~ serverutil.cpp:99:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] char *sdesc = "", *ip = "", *master = NULL, *passwd = ""; ^~ serverutil.cpp:116:72: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if(enet_initialize()<0) fatal("Unable to initialise network module"); ^ serverutil.cpp:116:72: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 make: Leaving directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' make: Entering directory '/usr/src/RPM/BUILD/cube-src-2005.08.29/src' g++ -L/usr/lib -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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.89905 + 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) Checking contents of files in /usr/src/tmp/cube3d-buildroot/ (default) 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) verify-elf: WARNING: ./usr/games/cube_server: uses non-LFS functions: fopen verify-elf: WARNING: ./usr/games/cube_client: uses non-LFS functions: fopen Hardlinking identical .pyc and .pyo files Processing files: cube3d-2005.08.29-alt2.qa3 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.85332 + 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.FD6JCG find-provides: running scripts (debuginfo,lib,pam,perl,pkgconfig,python,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.rv0BHO 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, /lib/ld-linux.so.2, coreutils, libGL.so.1 >= set:pjdsTwt1StpUwWA49a15e0ibi7T24ZJPt4h5zDyo87ZeifjXQcu8HhszmG5PuL1jYfZmHGA5toZnB2Sgg0dK2ocwQ71Rd0M5CrNDIpzFbloewyUDEbxLK2g6Ro2aWdpU2YCMLKPok56OW8CZlePgyZ1sqE9JAX0cMagVoK6BdZqraX9uXb0, libGLU.so.1 >= set:jf2WETbUdzh8jFW1w8HWwpbOL4, libSDL-1.2.so.0 >= set:lgh4FqZ1QGvKkPDX3tJgi1ZG9TREIIGOZEoNbG2I0ZsoL9NKMZF7peBNOnmQB1Z4i92iGjy9iTNeffj0, libSDL_image-1.2.so.0 >= set:jifK3, libSDL_mixer-1.2.so.0 >= set:kgIdCOqKEupQY3CJN8sqedRO7p7WxkxEcp, libX11.so.6 >= set:omNQNN6cW, libc.so.6(GLIBC_2.0), libc.so.6(GLIBC_2.1), libc.so.6(GLIBC_2.1.2), libc.so.6(GLIBC_2.1.3), libc.so.6(GLIBC_2.3.4), libc.so.6(GLIBC_2.4), libgcc_s.so.1(GCC_3.0), libm.so.6(GLIBC_2.0), libm.so.6(GLIBC_2.1), libpthread.so.0(GLIBC_2.0), libstdc++.so.6(CXXABI_1.3), libstdc++.so.6(CXXABI_1.3.8), libstdc++.so.6(CXXABI_1.3.9), libstdc++.so.6(GLIBCXX_3.4), libz.so.1 >= 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.EBCqfc 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.qxR5g0 find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.UeHPQ3 find-requires: running scripts (debuginfo) Requires: cube3d = 2005.08.29-alt2.qa3, /usr/lib/debug/lib/ld-linux.so.2.debug, debug(libGL.so.1), debug(libGLU.so.1), debug(libSDL-1.2.so.0), debug(libSDL_image-1.2.so.0), debug(libSDL_mixer-1.2.so.0), debug(libX11.so.6), debug(libc.so.6), debug(libgcc_s.so.1), debug(libm.so.6), debug(libpthread.so.0), debug(libstdc++.so.6), debug(libz.so.1) Wrote: /usr/src/RPM/RPMS/i586/cube3d-2005.08.29-alt2.qa3.i586.rpm Wrote: /usr/src/RPM/RPMS/i586/cube3d-debuginfo-2005.08.29-alt2.qa3.i586.rpm 24.43user 3.53system 0:25.73elapsed 108%CPU (0avgtext+0avgdata 47460maxresident)k 0inputs+0outputs (0major+957540minor)pagefaults 0swaps 34.32user 8.39system 0:43.19elapsed 98%CPU (0avgtext+0avgdata 114928maxresident)k 0inputs+0outputs (0major+1288596minor)pagefaults 0swaps --- cube3d-2005.08.29-alt2.qa3.i586.rpm.repo 2012-07-17 11:14:10.000000000 +0000 +++ cube3d-2005.08.29-alt2.qa3.i586.rpm.hasher 2019-11-17 09:27:15.377466322 +0000 @@ -10,3 +10,3 @@ Requires: coreutils -Requires: libGL.so.1 >= set:oinoUyfRmE1XOrZ2QBayvs3O5EgciyAigh0LugUbi7T2kkqhn1AhdCwyklxzfgwYMBXIFohcQnpsDNPZ0FDVedjMxCRhsZH5NddzooIcJ5NZgedkIUb6cht1NUJG4Re4sbWgZnl1r88wyHwTgRNs5BdvjwZow2shSibwwKZ50 +Requires: libGL.so.1 >= set:pjdsTwt1StpUwWA49a15e0ibi7T24ZJPt4h5zDyo87ZeifjXQcu8HhszmG5PuL1jYfZmHGA5toZnB2Sgg0dK2ocwQ71Rd0M5CrNDIpzFbloewyUDEbxLK2g6Ro2aWdpU2YCMLKPok56OW8CZlePgyZ1sqE9JAX0cMagVoK6BdZqraX9uXb0 Requires: rpmlib(SetVersions) @@ -15,3 +15,3 @@ Requires: libSDL_image-1.2.so.0 >= set:jifK3 -Requires: libSDL_mixer-1.2.so.0 >= set:lhS6jpd1ZflSEXOEOfMId6xrPFjJQzI6Wxkx0 +Requires: libSDL_mixer-1.2.so.0 >= set:kgIdCOqKEupQY3CJN8sqedRO7p7WxkxEcp Requires: libX11.so.6 >= set:omNQNN6cW @@ -28,2 +28,4 @@ Requires: libstdc++.so.6(CXXABI_1.3) +Requires: libstdc++.so.6(CXXABI_1.3.8) +Requires: libstdc++.so.6(CXXABI_1.3.9) Requires: libstdc++.so.6(GLIBCXX_3.4)