=> Building games/assaultcube Started : Thursday, 7 MAR 2019 at 07:18:30 UTC Platform: 5.5-DEVELOPMENT DragonFly v5.5.0.192.g15ae7f0-DEVELOPMENT #34: Tue Feb 19 09:07:07 PST 2019 root@pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 -------------------------------------------------- -- Environment -------------------------------------------------- UNAME_r=5.5-SYNTH UNAME_m=x86_64 UNAME_p=x86_64 UNAME_v=DragonFly 5.5-SYNTH UNAME_s=DragonFly PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SSL_NO_VERIFY_PEER=1 TERM=dumb PKG_CACHEDIR=/var/cache/pkg8 PKG_DBDIR=/var/db/pkg8 PORTSDIR=/xports LANG=C HOME=/root USER=root -------------------------------------------------- -- Options -------------------------------------------------- ===> The following configuration options are available for assaultcube-1.2.0.2_6: DOCS=on: Build and/or install documentation PORT_ENET=off: Use libenet from net/enet ====> Options available for the multi BUILD: you have to choose at least one of them CLIENT=on: Build client DEDICATED=on: Build dedicated server MASTER=off: Build master server ===> Use 'make config' to modify these settings -------------------------------------------------- -- CONFIGURE_ENV -------------------------------------------------- MAKE=gmake SDL_CONFIG=/usr/local/bin/sdl-config XDG_DATA_HOME=/construction/games/assaultcube XDG_CONFIG_HOME=/construction/games/assaultcube HOME=/construction/games/assaultcube TMPDIR="/tmp" PATH=/construction/games/assaultcube/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc80 CONFIG_SITE=/xports/Templates/config.site lt_cv_sys_max_cmd_len=262144 -------------------------------------------------- -- CONFIGURE_ARGS -------------------------------------------------- --enable-shared=no --enable-static=yes --x-libraries=/usr/local/lib --x-includes=/usr/local/include --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} -------------------------------------------------- -- MAKE_ENV -------------------------------------------------- SDL_CONFIG=/usr/local/bin/sdl-config XDG_DATA_HOME=/construction/games/assaultcube XDG_CONFIG_HOME=/construction/games/assaultcube HOME=/construction/games/assaultcube TMPDIR="/tmp" PATH=/construction/games/assaultcube/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc80 PREFIX=/usr/local LOCALBASE=/usr/local NOPROFILE=1 CC="cc" CFLAGS="-pipe -O2 -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS=" -pipe -O2 -fno-strict-aliasing " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" -------------------------------------------------- -- MAKE_ARGS -------------------------------------------------- DESTDIR=/construction/games/assaultcube/stage -------------------------------------------------- -- PLIST_SUB -------------------------------------------------- PORTDOCS="" OSREL=5.5 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/assaultcube" EXAMPLESDIR="share/examples/assaultcube" DATADIR="share/assaultcube" WWWDIR="www/assaultcube" ETCDIR="etc/assaultcube" -------------------------------------------------- -- SUB_LIST -------------------------------------------------- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/assaultcube DOCSDIR=/usr/local/share/doc/assaultcube EXAMPLESDIR=/usr/local/share/examples/assaultcube WWWDIR=/usr/local/www/assaultcube ETCDIR=/usr/local/etc/assaultcube -------------------------------------------------- -- /etc/make.conf -------------------------------------------------- SYNTHPROFILE=Release-BE USE_PACKAGE_DEPENDS_ONLY=yes PACKAGE_BUILDING=yes BATCH=yes PKG_CREATE_VERBOSE=yes PORTSDIR=/xports DISTDIR=/distfiles WRKDIRPREFIX=/construction PORT_DBDIR=/options PACKAGES=/packages MAKE_JOBS_NUMBER_LIMIT=5 LICENSES_ACCEPTED= NONE HAVE_COMPAT_IA32_KERN= CONFIGURE_MAX_CMD_LEN=262144 _PERL5_FROM_BIN=5.26.2 _ALTCCVERSION_921dbbb2=none _OBJC_ALTCCVERSION_921dbbb2=none _SMP_CPUS=8 UID=0 ARCH=x86_64 OPSYS=DragonFly DFLYVERSION=500500 OSVERSION=9999999 OSREL=5.5 _OSRELEASE=5.5-SYNTH PYTHONBASE=/usr/local _PKG_CHECKED=1 -------------------------------------------------------------------------------- -- Phase: check-sanity -------------------------------------------------------------------------------- ===> License ACUBE CUBE MIT OTHER accepted by the user -------------------------------------------------------------------------------- -- Phase: pkg-depends -------------------------------------------------------------------------------- ===> assaultcube-1.2.0.2_6 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.10.5_5.txz Installing pkg-1.10.5_5... Extracting pkg-1.10.5_5: .......... done ===> assaultcube-1.2.0.2_6 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of assaultcube-1.2.0.2_6 -------------------------------------------------------------------------------- -- Phase: fetch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: fetch -------------------------------------------------------------------------------- ===> License ACUBE CUBE MIT OTHER accepted by the user ===> Fetching all distfiles required by assaultcube-1.2.0.2_6 for building -------------------------------------------------------------------------------- -- Phase: checksum -------------------------------------------------------------------------------- ===> License ACUBE CUBE MIT OTHER accepted by the user ===> Fetching all distfiles required by assaultcube-1.2.0.2_6 for building => SHA256 Checksum OK for AssaultCube_v1.2.0.2.tar.bz2. -------------------------------------------------------------------------------- -- Phase: extract-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: extract -------------------------------------------------------------------------------- ===> License ACUBE CUBE MIT OTHER accepted by the user ===> Fetching all distfiles required by assaultcube-1.2.0.2_6 for building ===> Extracting for assaultcube-1.2.0.2_6 => SHA256 Checksum OK for AssaultCube_v1.2.0.2.tar.bz2. -------------------------------------------------------------------------------- -- Phase: patch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: patch -------------------------------------------------------------------------------- ===> Patching for assaultcube-1.2.0.2_6 ===> Applying ports patches for assaultcube-1.2.0.2_6 -------------------------------------------------------------------------------- -- Phase: build-depends -------------------------------------------------------------------------------- ===> assaultcube-1.2.0.2_6 depends on executable: gmake - not found ===> Installing existing package /packages/All/gmake-4.2.1_3.txz Installing gmake-4.2.1_3... `-- Installing gettext-runtime-0.19.8.1_2... | `-- Installing indexinfo-0.3.1... | `-- Extracting indexinfo-0.3.1: .... done `-- Extracting gettext-runtime-0.19.8.1_2: .......... done Extracting gmake-4.2.1_3: .......... done ===> assaultcube-1.2.0.2_6 depends on executable: gmake - found ===> Returning to build of assaultcube-1.2.0.2_6 ===> assaultcube-1.2.0.2_6 depends on file: /usr/local/bin/sdl-config - not found ===> Installing existing package /packages/All/sdl-1.2.15_13,2.txz Installing sdl-1.2.15_13,2... `-- Installing aalib-1.4.r5_13... | `-- Installing ncurses-6.1.20190112... | `-- Extracting ncurses-6.1.20190112: .......... done `-- Extracting aalib-1.4.r5_13: .......... done `-- Installing libGLU-9.0.0_3... | `-- Installing mesa-libs-18.3.2... | | `-- Installing expat-2.2.6_1... | | `-- Extracting expat-2.2.6_1: .......... done | | `-- Installing libX11-1.6.7,1... | | `-- Installing libXau-1.0.8_5... | | `-- Extracting libXau-1.0.8_5: .......... done | | `-- Installing libXdmcp-1.1.2_2... | | | `-- Installing xorgproto-2018.4... | | | `-- Extracting xorgproto-2018.4: .......... done | | `-- Extracting libXdmcp-1.1.2_2: ......... done | | `-- Installing libxcb-1.13.1... | | | `-- Installing libpthread-stubs-0.4... | | | `-- Extracting libpthread-stubs-0.4: .... done | | | `-- Installing libxml2-2.9.8... | | | `-- Extracting libxml2-2.9.8: .......... done | | `-- Extracting libxcb-1.13.1: .......... done | | `-- Extracting libX11-1.6.7,1: .......... done | | `-- Installing libXdamage-1.1.4_5... | | `-- Installing libXfixes-5.0.3_2... | | `-- Extracting libXfixes-5.0.3_2: .......... done | | `-- Extracting libXdamage-1.1.4_5: ......... done | | `-- Installing libXext-1.3.3_3,1... | | `-- Extracting libXext-1.3.3_3,1: .......... done | | `-- Installing libXrandr-1.5.1_2... | | `-- Installing libXrender-0.9.10_2... | | `-- Extracting libXrender-0.9.10_2: .......... done | | `-- Extracting libXrandr-1.5.1_2: .......... done | | `-- Installing libXxf86vm-1.1.4_3... | | `-- Extracting libXxf86vm-1.1.4_3: .......... done | | `-- Installing libdrm-2.4.96,1... | | `-- Installing libpciaccess-0.13.5... | | | `-- Installing pciids-20190213... | | | `-- Extracting pciids-20190213: ..... done | | `-- Extracting libpciaccess-0.13.5: ......... done | | `-- Extracting libdrm-2.4.96,1: .......... done | | `-- Installing libelf-0.8.13_3... | | `-- Extracting libelf-0.8.13_3: .......... done | | `-- Installing libxshmfence-1.2_4... | | `-- Extracting libxshmfence-1.2_4: ......... done | | `-- Installing wayland-1.16.0... | | `-- Installing libffi-3.2.1_3... | | `-- Extracting libffi-3.2.1_3: .......... done | | `-- Extracting wayland-1.16.0: .......... done | `-- Extracting mesa-libs-18.3.2: .......... done `-- Extracting libGLU-9.0.0_3: ...... done Extracting sdl-1.2.15_13,2: .......... done Message from aalib-1.4.r5_13: ===> NOTICE: The aalib port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port Message from sdl-1.2.15_13,2: ------------------------------------------------------------------------------ Your SDL library has been built with libvgl support, which means that you can run almost any SDL application straight on your console (VESA 2.0 compatible videocard is required). To do this you have to load the vesa kernel module or enable it in your kernel, and set environment variable "SDL_VIDEODRIVER=vgl". ------------------------------------------------------------------------------ ===> assaultcube-1.2.0.2_6 depends on file: /usr/local/bin/sdl-config - found ===> Returning to build of assaultcube-1.2.0.2_6 ===> assaultcube-1.2.0.2_6 depends on package: xorgproto>=0 - found ===> assaultcube-1.2.0.2_6 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found -------------------------------------------------------------------------------- -- Phase: lib-depends -------------------------------------------------------------------------------- ===> assaultcube-1.2.0.2_6 depends on shared library: libvorbisfile.so - not found ===> Installing existing package /packages/All/libvorbis-1.3.6,3.txz Installing libvorbis-1.3.6,3... `-- Installing libogg-1.3.3,4... `-- Extracting libogg-1.3.3,4: .......... done Extracting libvorbis-1.3.6,3: .......... done ===> assaultcube-1.2.0.2_6 depends on shared library: libvorbisfile.so - found (/usr/local/lib/libvorbisfile.so) ===> Returning to build of assaultcube-1.2.0.2_6 ===> assaultcube-1.2.0.2_6 depends on shared library: libcurl.so - not found ===> Installing existing package /packages/All/curl-7.64.0_1.txz Installing curl-7.64.0_1... `-- Installing ca_root_nss-3.42.1... `-- Extracting ca_root_nss-3.42.1: ........ done `-- Installing krb5-1.17_1... | `-- Installing libressl-2.8.3... | `-- Extracting libressl-2.8.3: .......... done | `-- Installing readline-7.0.5... | `-- Extracting readline-7.0.5: .......... done `-- Extracting krb5-1.17_1: .......... done `-- Installing libnghttp2-1.36.0... `-- Extracting libnghttp2-1.36.0: .......... done Extracting curl-7.64.0_1: .......... done Message from ca_root_nss-3.42.1: ********************************* WARNING ********************************* FreeBSD does not, and can not warrant that the certification authorities whose certificates are included in this package have in any way been audited for trustworthiness or RFC 3647 compliance. Assessment and verification of trust is the complete responsibility of the system administrator. *********************************** NOTE ********************************** This package installs symlinks to support root certificates discovery by default for software that uses OpenSSL. This enables SSL Certificate Verification by client software without manual intervention. If you prefer to do this manually, replace the following symlinks with either an empty file or your site-local certificate bundle. * /etc/ssl/cert.pem * /usr/local/etc/ssl/cert.pem * /usr/local/openssl/cert.pem *************************************************************************** ===> assaultcube-1.2.0.2_6 depends on shared library: libcurl.so - found (/usr/local/lib/libcurl.so) ===> Returning to build of assaultcube-1.2.0.2_6 ===> assaultcube-1.2.0.2_6 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so) ===> assaultcube-1.2.0.2_6 depends on shared library: libopenal.so.1 - not found ===> Installing existing package /packages/All/openal-soft-1.19.1_2.txz Installing openal-soft-1.19.1_2... Extracting openal-soft-1.19.1_2: .......... done ===> assaultcube-1.2.0.2_6 depends on shared library: libopenal.so.1 - found (/usr/local/lib/libopenal.so.1) ===> Returning to build of assaultcube-1.2.0.2_6 ===> assaultcube-1.2.0.2_6 depends on shared library: libGL.so - found (/usr/local/lib/libGL.so) ===> assaultcube-1.2.0.2_6 depends on shared library: libSDL_image.so - not found ===> Installing existing package /packages/All/sdl_image-1.2.12_11.txz Installing sdl_image-1.2.12_11... `-- Installing jpeg-turbo-2.0.2... `-- Extracting jpeg-turbo-2.0.2: .......... done `-- Installing png-1.6.36... `-- Extracting png-1.6.36: .......... done `-- Installing tiff-4.0.10... | `-- Installing jbigkit-2.1_1... | `-- Extracting jbigkit-2.1_1: .......... done `-- Extracting tiff-4.0.10: .......... done `-- Installing webp-1.0.2... | `-- Installing giflib-5.1.4... | `-- Extracting giflib-5.1.4: .......... done `-- Extracting webp-1.0.2: .......... done Extracting sdl_image-1.2.12_11: .......... done ===> assaultcube-1.2.0.2_6 depends on shared library: libSDL_image.so - found (/usr/local/lib/libSDL_image.so) ===> Returning to build of assaultcube-1.2.0.2_6 ===> assaultcube-1.2.0.2_6 depends on shared library: libSDL.so - found (/usr/local/lib/libSDL.so) -------------------------------------------------------------------------------- -- Phase: configure -------------------------------------------------------------------------------- ===> Configuring for assaultcube-1.2.0.2_6 configure: loading site script /xports/Templates/config.site checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p checking for gawk... (cached) /usr/bin/awk checking whether gmake sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... yes checking for gcc... cc 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 cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking for style of include used by gmake... GNU checking dependency style of cc... gcc3 checking build system type... x86_64-portbld-dragonfly5.5 checking host system type... x86_64-portbld-dragonfly5.5 checking how to print strings... printf checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for grep that handles long lines and -e... (cached) /usr/bin/grep checking for egrep... (cached) /usr/bin/egrep checking for fgrep... (cached) /usr/bin/fgrep checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... (cached) 262144 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... no checking how to convert x86_64-portbld-dragonfly5.5 file names to x86_64-portbld-dragonfly5.5 format... func_convert_file_noop checking how to convert x86_64-portbld-dragonfly5.5 file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from cc object... ok checking for sysroot... no checking for mt... mt checking if mt is a manifest tool... no checking how to run the C preprocessor... cpp checking for ANSI C header files... (cached) yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for memory.h... (cached) yes checking for strings.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for unistd.h... (cached) yes checking for dlfcn.h... (cached) yes checking for objdir... .libs checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC -DPIC checking if cc PIC flag -fPIC -DPIC works... yes checking if cc static flag -static works... yes checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.o... (cached) yes checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... dragonfly5.5 ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking for gethostbyaddr_r... yes checking for gethostbyname_r... yes checking for poll... (cached) yes checking for fcntl... (cached) yes checking for inet_pton... yes checking for inet_ntop... (cached) yes checking for struct msghdr.msg_flags... yes checking for socklen_t... (cached) yes configure: creating ./config.status config.status: creating Makefile config.status: creating libenet.pc config.status: executing depfiles commands config.status: executing libtool commands -------------------------------------------------------------------------------- -- Phase: build -------------------------------------------------------------------------------- ===> Building for assaultcube-1.2.0.2_6 gmake[1]: Entering directory '/construction/games/assaultcube/AssaultCube_v1.2.0.2/source/src' gmake -C ../enet all c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o crypto.o crypto.cpp c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o audiomanager.o audiomanager.cpp c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o client.o client.cpp c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o clientgame.o clientgame.cpp gmake[2]: Entering directory '/construction/games/assaultcube/AssaultCube_v1.2.0.2/source/enet' /bin/sh ./libtool --tag=CC --mode=compile cc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"1.3.6\" -DPACKAGE_STRING=\"libenet\ 1.3.6\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet\" -DVERSION=\"1.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -I./include -pipe -O2 -fno-strict-aliasing -MT callbacks.lo -MD -MP -MF .deps/callbacks.Tpo -c -o callbacks.lo callbacks.c libtool: compile: cc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"1.3.6\" "-DPACKAGE_STRING=\"libenet 1.3.6\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet\" -DVERSION=\"1.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -I./include -pipe -O2 -fno-strict-aliasing -MT callbacks.lo -MD -MP -MF .deps/callbacks.Tpo -c callbacks.c -o callbacks.o mv -f .deps/callbacks.Tpo .deps/callbacks.Plo /bin/sh ./libtool --tag=CC --mode=compile cc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"1.3.6\" -DPACKAGE_STRING=\"libenet\ 1.3.6\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet\" -DVERSION=\"1.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -I./include -pipe -O2 -fno-strict-aliasing -MT compress.lo -MD -MP -MF .deps/compress.Tpo -c -o compress.lo compress.c libtool: compile: cc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"1.3.6\" "-DPACKAGE_STRING=\"libenet 1.3.6\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet\" -DVERSION=\"1.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -I./include -pipe -O2 -fno-strict-aliasing -MT compress.lo -MD -MP -MF .deps/compress.Tpo -c compress.c -o compress.o In file included from cube.h:69, from client.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ client.cpp: In function 'void addmsg(int, const char*, ...)': client.cpp:400:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(t) sendstring(t, p); nums++; break; ^~ client.cpp:400:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if(t) sendstring(t, p); nums++; break; ^~~~ In file included from cube.h:69, from clientgame.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from cube.h:69, from audiomanager.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from client.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from platform.h:62, from cube.h:7, from clientgame.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:69, from crypto.cpp:1: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ mv -f .deps/compress.Tpo .deps/compress.Plo /bin/sh ./libtool --tag=CC --mode=compile cc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"1.3.6\" -DPACKAGE_STRING=\"libenet\ 1.3.6\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet\" -DVERSION=\"1.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -I./include -pipe -O2 -fno-strict-aliasing -MT host.lo -MD -MP -MF .deps/host.Tpo -c -o host.lo host.c In file included from platform.h:62, from cube.h:7, from audiomanager.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ libtool: compile: cc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"1.3.6\" "-DPACKAGE_STRING=\"libenet 1.3.6\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet\" -DVERSION=\"1.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -I./include -pipe -O2 -fno-strict-aliasing -MT host.lo -MD -MP -MF .deps/host.Tpo -c host.c -o host.o In file included from cube.h:8, from client.cpp:3: In function 'char* copystring(char*, const char*, size_t)', inlined from 'void connectserv_(const char*, int, const char*, int)' at client.cpp:76:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ mv -f .deps/host.Tpo .deps/host.Plo /bin/sh ./libtool --tag=CC --mode=compile cc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"1.3.6\" -DPACKAGE_STRING=\"libenet\ 1.3.6\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet\" -DVERSION=\"1.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -I./include -pipe -O2 -fno-strict-aliasing -MT list.lo -MD -MP -MF .deps/list.Tpo -c -o list.lo list.c libtool: compile: cc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"1.3.6\" "-DPACKAGE_STRING=\"libenet 1.3.6\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet\" -DVERSION=\"1.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -I./include -pipe -O2 -fno-strict-aliasing -MT list.lo -MD -MP -MF .deps/list.Tpo -c list.c -o list.o mv -f .deps/list.Tpo .deps/list.Plo /bin/sh ./libtool --tag=CC --mode=compile cc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"1.3.6\" -DPACKAGE_STRING=\"libenet\ 1.3.6\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet\" -DVERSION=\"1.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -I./include -pipe -O2 -fno-strict-aliasing -MT packet.lo -MD -MP -MF .deps/packet.Tpo -c -o packet.lo packet.c libtool: compile: cc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"1.3.6\" "-DPACKAGE_STRING=\"libenet 1.3.6\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet\" -DVERSION=\"1.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -I./include -pipe -O2 -fno-strict-aliasing -MT packet.lo -MD -MP -MF .deps/packet.Tpo -c packet.c -o packet.o clientgame.cpp: In function 'void teaminfo(const char*, const char*)': clientgame.cpp:350:22: warning: ' ' directive writing 1 byte into a region of size between 0 and 259 [-Wformat-overflow=] sprintf(tmp, "%s%d ", teammembers, players[i]->clientnum); ^~~~~~~ clientgame.cpp:350:16: note: 'sprintf' output between 3 and 272 bytes into a destination of size 260 sprintf(tmp, "%s%d ", teammembers, players[i]->clientnum); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ clientgame.cpp:368:22: warning: ' ' directive writing 1 byte into a region of size between 0 and 259 [-Wformat-overflow=] sprintf(tmp, "%s%d ", teammembers, player1->clientnum); ^~~~~~~ clientgame.cpp:368:16: note: 'sprintf' output between 3 and 272 bytes into a destination of size 260 sprintf(tmp, "%s%d ", teammembers, player1->clientnum); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/packet.Tpo .deps/packet.Plo /bin/sh ./libtool --tag=CC --mode=compile cc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"1.3.6\" -DPACKAGE_STRING=\"libenet\ 1.3.6\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet\" -DVERSION=\"1.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -I./include -pipe -O2 -fno-strict-aliasing -MT peer.lo -MD -MP -MF .deps/peer.Tpo -c -o peer.lo peer.c libtool: compile: cc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"1.3.6\" "-DPACKAGE_STRING=\"libenet 1.3.6\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet\" -DVERSION=\"1.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -I./include -pipe -O2 -fno-strict-aliasing -MT peer.lo -MD -MP -MF .deps/peer.Tpo -c peer.c -o peer.o In function 'char* copystring(char*, const char*, size_t)', inlined from 'int processdownload(package*)' at client.cpp:1007:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ /bin/sh ./libtool --tag=CC --mode=compile cc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"1.3.6\" -DPACKAGE_STRING=\"libenet\ 1.3.6\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet\" -DVERSION=\"1.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -I./include -pipe -O2 -fno-strict-aliasing -MT protocol.lo -MD -MP -MF .deps/protocol.Tpo -c -o protocol.lo protocol.c libtool: compile: cc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"1.3.6\" "-DPACKAGE_STRING=\"libenet 1.3.6\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet\" -DVERSION=\"1.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -I./include -pipe -O2 -fno-strict-aliasing -MT protocol.lo -MD -MP -MF .deps/protocol.Tpo -c protocol.c -o protocol.o crypto.cpp: In function 'void* genchallenge(void*, const void*, int, vector&)': crypto.cpp:802:11: warning: 'void* memcpy(void*, const void*, size_t)' forming offset [25, 26] is out of the bounds [0, 24] of object 'hash' with type 'tiger::hashval' [-Warray-bounds] memcpy(challenge.digits, hash.bytes, sizeof(challenge.digits)); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ crypto.cpp:799:20: note: 'hash' declared here tiger::hashval hash; ^~~~ In file included from platform.h:62, from cube.h:7, from crypto.cpp:1: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ mv -f .deps/peer.Tpo .deps/peer.Plo /bin/sh ./libtool --tag=CC --mode=compile cc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"1.3.6\" -DPACKAGE_STRING=\"libenet\ 1.3.6\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet\" -DVERSION=\"1.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -I./include -pipe -O2 -fno-strict-aliasing -MT unix.lo -MD -MP -MF .deps/unix.Tpo -c -o unix.lo unix.c libtool: compile: cc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"1.3.6\" "-DPACKAGE_STRING=\"libenet 1.3.6\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet\" -DVERSION=\"1.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -I./include -pipe -O2 -fno-strict-aliasing -MT unix.lo -MD -MP -MF .deps/unix.Tpo -c unix.c -o unix.o /bin/sh ./libtool --tag=CC --mode=compile cc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"1.3.6\" -DPACKAGE_STRING=\"libenet\ 1.3.6\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet\" -DVERSION=\"1.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -I./include -pipe -O2 -fno-strict-aliasing -MT win32.lo -MD -MP -MF .deps/win32.Tpo -c -o win32.lo win32.c libtool: compile: cc -DPACKAGE_NAME=\"libenet\" -DPACKAGE_TARNAME=\"libenet\" -DPACKAGE_VERSION=\"1.3.6\" "-DPACKAGE_STRING=\"libenet 1.3.6\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libenet\" -DVERSION=\"1.3.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAS_GETHOSTBYADDR_R=1 -DHAS_GETHOSTBYNAME_R=1 -DHAS_POLL=1 -DHAS_FCNTL=1 -DHAS_INET_PTON=1 -DHAS_INET_NTOP=1 -DHAS_MSGHDR_FLAGS=1 -DHAS_SOCKLEN_T=1 -I. -I./include -pipe -O2 -fno-strict-aliasing -MT win32.lo -MD -MP -MF .deps/win32.Tpo -c win32.c -o win32.o mv -f .deps/win32.Tpo .deps/win32.Plo c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o clients2c.o clients2c.cpp mv -f .deps/unix.Tpo .deps/unix.Plo c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o command.o command.cpp In file included from cube.h:8, from clientgame.cpp:3: In function 'char* copystring(char*, const char*, size_t)', inlined from 'void startmap(const char*, bool)' at clientgame.cpp:1124:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from cube.h:69, from clients2c.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'votedisplayinfo* newvotedisplayinfo(playerent*, int, const char*, const char*, const char*)' at clientgame.cpp:1367:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ clients2c.cpp: In function 'void showhudextras(char, char)': clients2c.cpp:344:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else outf("\f5you covered %s",p->name); break; ^~~~ clients2c.cpp:344:57: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else outf("\f5you covered %s",p->name); break; ^~~~~ mv -f .deps/protocol.Tpo .deps/protocol.Plo /bin/sh ./libtool --tag=CC --mode=link cc -pipe -O2 -fno-strict-aliasing -version-info 3:0:1 -o libenet.la -rpath /usr/local/lib callbacks.lo compress.lo host.lo list.lo packet.lo peer.lo protocol.lo unix.lo win32.lo libtool: link: ar cru .libs/libenet.a callbacks.o compress.o host.o list.o packet.o peer.o protocol.o unix.o win32.o /usr/libexec/binutils227/elf/ar: `u' modifier ignored since `D' is the default (see `U') libtool: link: ranlib .libs/libenet.a libtool: link: ( cd ".libs" && rm -f "libenet.la" && ln -s "../libenet.la" "libenet.la" ) gmake[2]: Leaving directory '/construction/games/assaultcube/AssaultCube_v1.2.0.2/source/enet' c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o console.o console.cpp In file included from platform.h:62, from cube.h:7, from clients2c.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void refreshsopmenu(void*, bool)' at clientgame.cpp:1638:19: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from cube.h:8, from clients2c.cpp:3: In function 'char* copystring(char*, const char*, size_t)', inlined from 'void setDemoFilenameFormat(char*)' at clients2c.cpp:1391:19, inlined from 'void setDemoFilenameFormat(char*)': tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from cube.h:69, from command.cpp:4: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void dokill(playerent*, playerent*, bool, int)' at clientgame.cpp:900:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void dokill(playerent*, playerent*, bool, int)' at clientgame.cpp:901:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void dokill(playerent*, playerent*, bool, int)' at clientgame.cpp:902:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void setDemoTimestampFormat(char*)' at clients2c.cpp:1400:19, inlined from 'void setDemoTimestampFormat(char*)': tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o docs.o docs.cpp In file included from platform.h:62, from cube.h:7, from command.cpp:4: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void parsemessages(int, playerent*, ucharbuf&, bool)' at clients2c.cpp:574:31: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 16 bytes from a string of length 4999 [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void parsemessages(int, playerent*, ucharbuf&, bool)' at clients2c.cpp:615:27: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 16 bytes from a string of length 4999 [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from cube.h:69, from console.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from cube.h:69, from docs.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from console.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from platform.h:62, from cube.h:7, from docs.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:8, from console.cpp:3: In function 'char* copystring(char*, const char*, size_t)', inlined from 'void saycommand(char*)' at console.cpp:334:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void mapmsg(char*)' at console.cpp:352:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 128 bytes from a string of length 259 [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void hline::restore()' at console.cpp:423:19, inlined from 'void consolekey(int, bool, int)' at console.cpp:526:60: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void hline::restore()' at console.cpp:423:19, inlined from 'void consolekey(int, bool, int)' at console.cpp:531:79: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o editing.o editing.cpp In file included from cube.h:8, from command.cpp:4: In function 'char* copystring(char*, const char*, size_t)', inlined from 'void commandcomplete(char*)' at command.cpp:840:19: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from cube.h:69, from editing.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'bool execfile(const char*)' at command.cpp:966:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from platform.h:62, from cube.h:7, from editing.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'const char* parseDemoFilename(char*)' at clients2c.cpp:1441:19: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o entities.o entities.cpp In function 'char* copystring(char*, const char*, size_t)', inlined from 'const char* currentserver(int)' at command.cpp:1703:31: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o i18n.o i18n.cpp c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o log.o log.cpp In file included from cube.h:69, from log.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from log.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o main.o main.cpp In file included from cube.h:69, from i18n.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o menus.o menus.cpp In file included from platform.h:62, from cube.h:7, from i18n.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o oggstream.o oggstream.cpp In file included from cube.h:69, from entities.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ entities.cpp: In function 'void rendermapmodels()': entities.cpp:69:18: warning: the compiler can assume that the address of 'mmi' will never be NULL [-Waddress] if(!&mmi) continue; ^~~ entities.cpp:69:18: warning: the compiler can assume that the address of 'mmi' will never be NULL [-Waddress] entities.cpp: In function 'void renderentities()': entities.cpp:227:32: warning: the compiler can assume that the address of 'mmi' will never be NULL [-Waddress] if(&mmi && mmi.h) ^ entities.cpp:227:32: warning: the compiler can assume that the address of 'mmi' will never be NULL [-Waddress] entities.cpp: In function 'void pickupeffects(int, playerent*)': entities.cpp:296:11: warning: the compiler can assume that the address of 'is' will never be NULL [-Waddress] if(&is) ^ entities.cpp:296:11: warning: the compiler can assume that the address of 'is' will never be NULL [-Waddress] entities.cpp: In function 'void entstats()': entities.cpp:631:32: warning: the compiler can assume that the address of 'mmi' will never be NULL [-Waddress] if(&mmi && mmi.h) clipents++; ^ entities.cpp:631:32: warning: the compiler can assume that the address of 'mmi' will never be NULL [-Waddress] In file included from platform.h:62, from cube.h:7, from entities.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:69, from oggstream.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from oggstream.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:69, from main.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from cube.h:8, from oggstream.cpp:3: In function 'char* copystring(char*, const char*, size_t)', inlined from 'bool oggstream::open(const char*)' at oggstream.cpp:132:19: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o openal.o openal.cpp In file included from cube.h:69, from menus.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from main.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o packetqueue.o packetqueue.cpp In file included from platform.h:62, from cube.h:7, from menus.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:69, from openal.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from cube.h:8, from menus.cpp:3: In function 'char* copystring(char*, const char*, size_t)', inlined from 'virtual void mitemtextvar::init()' at menus.cpp:263:19: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from cube.h:8, from main.cpp:3: In function 'char* copystring(char*, const char*, size_t)', inlined from 'const char* screenshotpath(const char*, const char*)' at main.cpp:155:45: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void mitemtextinput::setdefaultvalue()' at menus.cpp:574:19, inlined from 'virtual void mitemtextinput::focus(bool)' at menus.cpp:547:47: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void mitemtextinput::setdefaultvalue()' at menus.cpp:574:19, inlined from 'virtual void mitemtextinput::init()' at menus.cpp:564:24: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from cube.h:69, from packetqueue.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from openal.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from platform.h:62, from cube.h:7, from packetqueue.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o physics.o physics.cpp In function 'char* copystring(char*, const char*, size_t)', inlined from 'mitemtextinput::mitemtextinput(gmenu*, char*, char*, char*, char*, color*, int, int)' at menus.cpp:491:19, inlined from 'void menuitemtextinput(char*, char*, char*, char*, int*, int*)' at menus.cpp:957:202: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'mitemmaploadmanual::mitemmaploadmanual(gmenu*, const char*, const char*, char*, char*, char*, color*, const char*)' at menus.cpp:369:19, inlined from 'mitemmapload::mitemmapload(gmenu*, const char*, char*, char*, char*, color*, const char*)' at menus.cpp:466:226, inlined from 'void menuitemmapload(char*, char*)' at menus.cpp:951:122: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'mitemmaploadmanual::mitemmaploadmanual(gmenu*, const char*, const char*, char*, char*, char*, color*, const char*)' at menus.cpp:383:27, inlined from 'mitemmapload::mitemmapload(gmenu*, const char*, char*, char*, char*, color*, const char*)' at menus.cpp:466:226, inlined from 'void menuitemmapload(char*, char*)' at menus.cpp:951:122: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'mitemmaploadmanual::mitemmaploadmanual(gmenu*, const char*, const char*, char*, char*, char*, color*, const char*)' at menus.cpp:378:27, inlined from 'mitemmapload::mitemmapload(gmenu*, const char*, char*, char*, char*, color*, const char*)' at menus.cpp:466:226, inlined from 'void menuitemmapload(char*, char*)' at menus.cpp:951:122: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o protocol.o protocol.cpp In function 'char* copystring(char*, const char*, size_t)', inlined from 'int main(int, char**)' at main.cpp:1230:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'int main(int, char**)' at main.cpp:1227:19: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'mitemmaploadmanual::mitemmaploadmanual(gmenu*, const char*, const char*, char*, char*, char*, color*, const char*)' at menus.cpp:369:19, inlined from 'mitemmapload::mitemmapload(gmenu*, const char*, char*, char*, char*, color*, const char*)' at menus.cpp:466:226, inlined from 'void gmenu::init()' at menus.cpp:1285:125: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'mitemmaploadmanual::mitemmaploadmanual(gmenu*, const char*, const char*, char*, char*, char*, color*, const char*)' at menus.cpp:383:27, inlined from 'mitemmapload::mitemmapload(gmenu*, const char*, char*, char*, char*, color*, const char*)' at menus.cpp:466:226, inlined from 'void gmenu::init()' at menus.cpp:1285:125: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'mitemmaploadmanual::mitemmaploadmanual(gmenu*, const char*, const char*, char*, char*, char*, color*, const char*)' at menus.cpp:378:27, inlined from 'mitemmapload::mitemmapload(gmenu*, const char*, char*, char*, char*, color*, const char*)' at menus.cpp:466:226, inlined from 'void gmenu::init()' at menus.cpp:1285:125: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void gmenu::init()' at menus.cpp:1260:32: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from cube.h:69, from physics.cpp:6: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ physics.cpp: In function 'bool mmcollide(physent*, float&, float&)': physics.cpp:134:18: warning: the compiler can assume that the address of 'mmi' will never be NULL [-Waddress] if(!&mmi || !mmi.h) continue; ^~~ physics.cpp:134:18: warning: the compiler can assume that the address of 'mmi' will never be NULL [-Waddress] In file included from platform.h:62, from cube.h:7, from physics.cpp:6: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o rendercubes.o rendercubes.cpp In file included from cube.h:69, from protocol.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from protocol.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o rendergl.o rendergl.cpp In file included from cube.h:69, from rendercubes.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from rendercubes.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o renderhud.o renderhud.cpp In file included from cube.h:69, from rendergl.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from rendergl.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o rendermodel.o rendermodel.cpp In file included from cube.h:69, from renderhud.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from renderhud.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o renderparticles.o renderparticles.cpp In file included from cube.h:69, from rendermodel.cpp:1: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from rendermodel.cpp:9: vertmodel.h: In member function 'bool vertmodel::part::gentag(const char*, int*, int, vertmodel::mesh*)': vertmodel.h:701:86: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'struct vertmodel::tag'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] memcpy(&ntags[(numtags + 1)*i], &tags[numtags*i], numtags*sizeof(tag)); ^ vertmodel.h:606:12: note: 'struct vertmodel::tag' declared here struct tag ^~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o rendertext.o rendertext.cpp In file included from platform.h:62, from cube.h:7, from rendermodel.cpp:1: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:69, from renderparticles.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o rndmap.o rndmap.cpp In file included from platform.h:62, from cube.h:7, from renderparticles.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:69, from rendertext.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from rendertext.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:8, from rendertext.cpp:3: In function 'char* copystring(char*, const char*, size_t)', inlined from 'void newsetfont(const char*)' at rendertext.cpp:65:36, inlined from 'void newsetfont(const char*)': tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from cube.h:69, from rndmap.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o scoreboard.o scoreboard.cpp In file included from platform.h:62, from cube.h:7, from rndmap.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o serverms.o serverms.cpp c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o server.o server.cpp c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o serverbrowser.o serverbrowser.cpp In file included from cube.h:69, from scoreboard.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from scoreboard.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:69, from serverms.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from serverms.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:69, from server.cpp:4: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from cube.h:69, from serverbrowser.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from cube.h:8, from serverms.cpp:3: In function 'char* copystring(char*, const char*, size_t)', inlined from 'void servermsinit(const char*, const char*, int, bool)' at serverms.cpp:333:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o shadow.o shadow.cpp c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o sound.o sound.cpp In file included from platform.h:62, from cube.h:7, from server.cpp:4: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from platform.h:62, from cube.h:7, from serverbrowser.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:69, from shadow.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from shadow.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:8, from serverbrowser.cpp:3: In function 'char* copystring(char*, const char*, size_t)', inlined from 'void searchnickname(const char*)' at serverbrowser.cpp:735:15, inlined from 'void searchnickname(const char*)': tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void searchnickname(const char*)' at serverbrowser.cpp:736:15, inlined from 'void searchnickname(const char*)': tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from cube.h:69, from sound.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from sound.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o soundlocation.o soundlocation.cpp c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o soundscheduler.o soundscheduler.cpp In function 'char* copystring(char*, const char*, size_t)', inlined from 'bool matchplayername(const char*)' at serverbrowser.cpp:747:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ serverbrowser.cpp: In function 'void retrieveservers(vector&)': serverbrowser.cpp:1302:26: warning: '%s' directive writing up to 259 bytes into a region of size 253 [-Wformat-overflow=] sprintf(request, "http://%s/retrieve.do?action=list&name=%s&version=%d&build=%d", mastername, global_name, AC_VERSION, getbuildtype()|(1<<16)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ serverbrowser.cpp:1302:16: note: 'sprintf' output 59 or more bytes (assuming 318) into a destination of size 260 sprintf(request, "http://%s/retrieve.do?action=list&name=%s&version=%d&build=%d", mastername, global_name, AC_VERSION, getbuildtype()|(1<<16)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cube.h:69, from soundscheduler.cpp:5: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from soundscheduler.cpp:5: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:69, from soundlocation.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from soundlocation.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o stream.o stream.cpp c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o texture.o texture.cpp c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o tools.o tools.cpp In file included from server.cpp:10: serverfiles.h: In function 'void serverforbiddenlist::addentry(char*)': serverfiles.h:672:20: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 15 bytes from a string of length 259 [-Wstringop-truncation] strncpy(entries[num][0],c1,FORBIDDENSIZE); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serverfiles.h:673:33: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 15 bytes from a string of length 259 [-Wstringop-truncation] if ( n > 1 ) strncpy(entries[num][1],c2,FORBIDDENSIZE); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cube.h:8, from server.cpp:4: In function 'char* copystring(char*, const char*, size_t)', inlined from 'bool spamdetect(client*, char*)' at server.cpp:1298:20: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void serverconfigfile::init(const char*)' at serverfiles.h:191:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'virtual void killmessagesfile::read()' at serverfiles.h:954:39: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' forming offset [321, 420] is out of the bounds [0, 320] of object 'killmessages' with type 'char [2][10][16]' [-Warray-bounds] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from server.cpp:8: server.h: In member function 'virtual void killmessagesfile::read()': server.h:500:6: note: 'killmessages' declared here char killmessages[2][NUMGUNS][MAXKILLMSGLEN] = {{ "", "busted", "picked off", "peppered", "sprayed", "punctured", "shredded", "busted", "", "busted" }, { "slashed", "", "", "splattered", "", "headshot", "", "", "gibbed", "" }}; ^~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o water.o water.cpp In file included from cube.h:8, from server.cpp:4: In function 'char* copystring(char*, const char*, size_t)', inlined from 'virtual void servermaprot::read()' at serverfiles.h:329:27: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from cube.h:69, from texture.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from texture.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:69, from tools.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from cube.h:69, from stream.cpp:1: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from tools.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:8, from texture.cpp:3: In function 'char* copystring(char*, const char*, size_t)', inlined from 'void texture(float*, char*)' at texture.cpp:496:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'virtual void serverpasswords::read()' at serverfiles.h:756:27: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from platform.h:62, from cube.h:7, from stream.cpp:1: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:8, from tools.cpp:3: In function 'char* copystring(char*, const char*, size_t)', inlined from 'const char* hiddenpwd(const char*, int)' at tools.cpp:371:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o weapon.o weapon.cpp In file included from cube.h:8, from stream.cpp:1: In function 'char* copystring(char*, const char*, size_t)', inlined from 'char* makerelpath(const char*, const char*, const char*, const char*)' at stream.cpp:18:26: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'char* path(const char*, bool)' at stream.cpp:86:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'bool createdir(const char*)' at stream.cpp:126:26: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ stream.cpp: In function 'bool createdir(const char*)': stream.cpp:122:24: note: length computed here size_t len = strlen(path); ~~~~~~^~~~~~ In file included from cube.h:8, from stream.cpp:1: In function 'char* copystring(char*, const char*, size_t)', inlined from 'void sethomedir(const char*)' at stream.cpp:175:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void addpackagedir(const char*)' at stream.cpp:213:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'bool listdir(const char*, const char*, vector&)' at stream.cpp:265:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'bool preparedir(const char*)' at stream.cpp:333:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'bool preparedir(const char*)' at stream.cpp:338:19: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from cube.h:69, from water.cpp:1: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o wizard.o wizard.cpp In file included from platform.h:62, from cube.h:7, from water.cpp:1: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:69, from weapon.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ weapon.cpp: In function 'bool intersect(entity*, const vec&, const vec&, vec*)': weapon.cpp:338:10: warning: the compiler can assume that the address of 'mmi' will never be NULL [-Waddress] if(!&mmi || !mmi.h) return false; ^~~ weapon.cpp:338:10: warning: the compiler can assume that the address of 'mmi' will never be NULL [-Waddress] In function 'char* copystring(char*, const char*, size_t)', inlined from 'void enddemorecord()' at server.cpp:598:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from cube.h:69, from wizard.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from wizard.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from platform.h:62, from cube.h:7, from weapon.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o world.o world.cpp In function 'char* copystring(char*, const char*, size_t)', inlined from 'Texture* textureload(const char*, int, bool, bool, float, bool)' at texture.cpp:432:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'Texture* createtexturefromsurface(const char*, SDL_Surface*)' at texture.cpp:456:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o worldio.o worldio.cpp In function 'char* copystring(char*, const char*, size_t)', inlined from 'void loadsky(char*, bool)' at texture.cpp:564:20: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o worldlight.o worldlight.cpp In file included from cube.h:69, from world.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ world.cpp: In function 'bool empty_world(int, bool)': world.cpp:480:12: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] strncpy(hdr.head, "ACMP", 4); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from platform.h:62, from cube.h:7, from world.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:8, from weapon.cpp:3: In function 'char* copystring(char*, const char*, size_t)', inlined from 'void renderbounceents()' at weapon.cpp:520:27: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void renderbounceents()' at weapon.cpp:532:27: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from cube.h:69, from worldio.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ worldio.cpp: In function 'void save_world(char*)': worldio.cpp:219:12: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] strncpy(hdr.head, "ACMP", 4); // ensure map now declares itself as an AssaultCube map, even if imported as CUBE ~~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from platform.h:62, from cube.h:7, from worldio.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:8, from worldio.cpp:3: In function 'char* copystring(char*, const char*, size_t)', inlined from 'void backup(char*, char*)' at worldio.cpp:8:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'const char* setnames(const char*)' at worldio.cpp:27:19: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'const char* setnames(const char*)' at worldio.cpp:22:19: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from cube.h:69, from worldlight.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o worldocull.o worldocull.cpp c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o worldrender.o worldrender.cpp In function 'char* copystring(char*, const char*, size_t)', inlined from 'void servermapbuffer::load()' at serverfiles.h:68:27, inlined from 'void startgame(const char*, int, int, bool)' at server.cpp:1940:67: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from cube.h:69, from worldocull.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from worldocull.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'virtual void mapaction::perform()' at serveractions.h:52:23, inlined from 'virtual void mapaction::perform()': tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'virtual void mapaction::perform()' at serveractions.h:46:23: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void resetserver(const char*, int, int)' at server.cpp:1886:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from cube.h:69, from worldrender.cpp:4: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from platform.h:62, from cube.h:7, from worldrender.cpp:4: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o zip.o zip.cpp In file included from platform.h:62, from cube.h:7, from worldlight.cpp:3: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o bot/bot.o bot/bot.cpp c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o bot/botmanager.o bot/botmanager.cpp c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o bot/bot_ai.o bot/bot_ai.cpp In function 'char* copystring(char*, const char*, size_t)', inlined from 'void process(ENetPacket*, int, int)' at server.cpp:2660:23: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 16 bytes from a string of length 4999 [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void process(ENetPacket*, int, int)' at server.cpp:2662:23: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 260 bytes from a string of length 4999 [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void process(ENetPacket*, int, int)' at server.cpp:3005:27: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 16 bytes from a string of length 4999 [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 16 bytes from a string of length 4999 [-Wstringop-truncation] server.cpp: In function 'void process(ENetPacket*, int, int)': server.cpp:3518:32: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 4999 bytes from a string of length 4999 [-Wstringop-truncation] strncpy(vi->text,text,MAXTRANS-1); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ server.cpp:3452:36: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 4999 bytes from a string of length 4999 [-Wstringop-truncation] strncpy(vi->text,text,MAXTRANS-1); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ server.cpp:3480:32: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 128 bytes from a string of length 4999 [-Wstringop-truncation] strncpy(vi->text,text,128); ~~~~~~~^~~~~~~~~~~~~~~~~~~ server.cpp:3469:32: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 128 bytes from a string of length 4999 [-Wstringop-truncation] strncpy(vi->text,text,128); ~~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from cube.h:8, from server.cpp:4: In function 'char* copystring(char*, const char*, size_t)', inlined from 'bool servermapbuffer::sendmap(const char*, int, int, int, uchar*)' at serverfiles.h:89:23, inlined from 'void process(ENetPacket*, int, int)' at server.cpp:3335:41: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from ./cube.h:69, from bot/bot.cpp:13: ./protos.h: In member function 'bool servercommandline::checkarg(const char*)': ./protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ ./protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from ./platform.h:62, from ./cube.h:7, from bot/bot.cpp:13: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from ./cube.h:69, from bot/botmanager.cpp:13: ./protos.h: In member function 'bool servercommandline::checkarg(const char*)': ./protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ ./protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from ./cube.h:69, from bot/bot_ai.cpp:13: ./protos.h: In member function 'bool servercommandline::checkarg(const char*)': ./protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ ./protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from ./platform.h:62, from ./cube.h:7, from bot/botmanager.cpp:13: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o bot/bot_util.o bot/bot_util.cpp In file included from ./platform.h:62, from ./cube.h:7, from bot/bot_ai.cpp:13: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:69, from zip.cpp:1: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from ./cube.h:69, from bot/bot_util.cpp:13: ./protos.h: In member function 'bool servercommandline::checkarg(const char*)': ./protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ ./protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ bot/bot_util.cpp: In function 'void TraceLine(vec, vec, dynent*, bool, traceresult_s*, bool)': bot/bot_util.cpp:194:16: warning: the compiler can assume that the address of 'mmi' will never be NULL [-Waddress] if(!&mmi || !mmi.h) continue; ^~~ bot/bot_util.cpp:194:16: warning: the compiler can assume that the address of 'mmi' will never be NULL [-Waddress] In file included from platform.h:62, from cube.h:7, from zip.cpp:1: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from ./platform.h:62, from ./cube.h:7, from bot/bot_util.cpp:13: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o bot/bot_waypoint.o bot/bot_waypoint.cpp In file included from cube.h:8, from zip.cpp:1: In function 'char* copystring(char*, const char*, size_t)', inlined from 'bool removezip(const char*)' at zip.cpp:331:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o bot/ac_bot.o bot/ac_bot.cpp In function 'char* copystring(char*, const char*, size_t)', inlined from 'bool addzip(const char*, const char*, const char*, bool, int)' at zip.cpp:291:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void mountzip(ziparchive&, vector&, const char*, const char*, bool)' at zip.cpp:267:19, inlined from 'bool addzip(const char*, const char*, const char*, bool, int)' at zip.cpp:322:13: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -I. -Ibot -I../enet/include -I/usr/local/include `/usr/local/bin/sdl-config --cflags` -idirafter ../include -c -o bot/ac_bot_ai.o bot/ac_bot_ai.cpp In function 'char* copystring(char*, const char*, size_t)', inlined from 'virtual void killmessagesfile::read()' at serverfiles.h:954:39, inlined from 'void rereadcfgs()' at server.cpp:3689:18: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' forming offset [321, 420] is out of the bounds [0, 320] of object 'killmessages' with type 'char [2][10][16]' [-Warray-bounds] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from server.cpp:8: server.h: In function 'void rereadcfgs()': server.h:500:6: note: 'killmessages' declared here char killmessages[2][NUMGUNS][MAXKILLMSGLEN] = {{ "", "busted", "picked off", "peppered", "sprayed", "punctured", "shredded", "busted", "", "busted" }, { "slashed", "", "", "splattered", "", "headshot", "", "", "gibbed", "" }}; ^~~~~~~~~~~~ In file included from ./cube.h:69, from bot/bot_waypoint.cpp:10: ./protos.h: In member function 'bool servercommandline::checkarg(const char*)': ./protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ ./protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from cube.h:8, from server.cpp:4: In function 'char* copystring(char*, const char*, size_t)', inlined from 'void serverslice(uint)' at server.cpp:3938:27: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 260 bytes from a string of length 1023 [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void serverpasswords::init(const char*, const char*)' at serverfiles.h:730:23, inlined from 'void initserver(bool, int, char**)' at server.cpp:4204:23: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from ./cube.h:69, from bot/ac_bot.cpp:13: ./protos.h: In member function 'bool servercommandline::checkarg(const char*)': ./protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ ./protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from ./platform.h:62, from ./cube.h:7, from bot/bot_waypoint.cpp:10: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -DSTANDALONE -I. -Ibot -I../enet/include -I/usr/local/include -c -o crypto-standalone.o crypto.cpp c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -DSTANDALONE -I. -Ibot -I../enet/include -I/usr/local/include -c -o log-standalone.o log.cpp In file included from cube.h:69, from crypto.cpp:1: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from cube.h:69, from log.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ crypto.cpp: In function 'void* genchallenge(void*, const void*, int, vector&)': crypto.cpp:802:11: warning: 'void* memcpy(void*, const void*, size_t)' forming offset [25, 26] is out of the bounds [0, 24] of object 'hash' with type 'tiger::hashval' [-Warray-bounds] memcpy(challenge.digits, hash.bytes, sizeof(challenge.digits)); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ crypto.cpp:799:20: note: 'hash' declared here tiger::hashval hash; ^~~~ In file included from ./platform.h:62, from ./cube.h:7, from bot/ac_bot.cpp:13: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -DSTANDALONE -I. -Ibot -I../enet/include -I/usr/local/include -c -o protocol-standalone.o protocol.cpp c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -DSTANDALONE -I. -Ibot -I../enet/include -I/usr/local/include -c -o serverms-standalone.o serverms.cpp In file included from cube.h:69, from protocol.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from cube.h:69, from serverms.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ bot/bot_waypoint.cpp: In member function 'void CWaypointClass::SaveWaypoints()': bot/bot_waypoint.cpp:305:13: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation] strncpy(header.szMapName, m_szMapName, sizeof(header.szMapName)-1); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cube.h:8, from serverms.cpp:3: In function 'char* copystring(char*, const char*, size_t)', inlined from 'void servermsinit(const char*, const char*, int, bool)' at serverms.cpp:333:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ bot/bot_waypoint.cpp: In member function 'void CWaypointClass::SaveWPExpFile()': bot/bot_waypoint.cpp:498:13: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 31 bytes from a string of length 31 [-Wstringop-truncation] strncpy(header.szMapName, m_szMapName, 31); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./cube.h:69, from bot/ac_bot_ai.cpp:11: ./protos.h: In member function 'bool servercommandline::checkarg(const char*)': ./protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ ./protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -DSTANDALONE -I. -Ibot -I../enet/include -I/usr/local/include -c -o server-standalone.o server.cpp In file included from ./platform.h:62, from ./cube.h:7, from bot/ac_bot_ai.cpp:11: /usr/local/include/vorbis/vorbisfile.h: At global scope: /usr/local/include/vorbis/vorbisfile.h:95:21: warning: 'OV_CALLBACKS_STREAMONLY_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:88:21: warning: 'OV_CALLBACKS_STREAMONLY' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_STREAMONLY = { ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:81:21: warning: 'OV_CALLBACKS_NOCLOSE' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_NOCLOSE = { ^~~~~~~~~~~~~~~~~~~~ /usr/local/include/vorbis/vorbisfile.h:74:21: warning: 'OV_CALLBACKS_DEFAULT' defined but not used [-Wunused-variable] static ov_callbacks OV_CALLBACKS_DEFAULT = { ^~~~~~~~~~~~~~~~~~~~ In file included from cube.h:69, from server.cpp:4: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -DSTANDALONE -I. -Ibot -I../enet/include -I/usr/local/include -c -o stream-standalone.o stream.cpp In file included from cube.h:69, from stream.cpp:1: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from cube.h:8, from stream.cpp:1: In function 'char* copystring(char*, const char*, size_t)', inlined from 'char* makerelpath(const char*, const char*, const char*, const char*)' at stream.cpp:18:26: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'char* path(const char*, bool)' at stream.cpp:86:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'bool createdir(const char*)' at stream.cpp:126:26: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ stream.cpp: In function 'bool createdir(const char*)': stream.cpp:122:24: note: length computed here size_t len = strlen(path); ~~~~~~^~~~~~ In file included from cube.h:8, from stream.cpp:1: In function 'char* copystring(char*, const char*, size_t)', inlined from 'void sethomedir(const char*)' at stream.cpp:175:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void addpackagedir(const char*)' at stream.cpp:213:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'bool listdir(const char*, const char*, vector&)' at stream.cpp:265:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'bool preparedir(const char*)' at stream.cpp:333:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'bool preparedir(const char*)' at stream.cpp:338:19: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -DSTANDALONE -I. -Ibot -I../enet/include -I/usr/local/include -c -o tools-standalone.o tools.cpp In file included from cube.h:69, from tools.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -DSTANDALONE -I. -Ibot -I../enet/include -I/usr/local/include -c -o wizard-standalone.o wizard.cpp In file included from cube.h:69, from wizard.cpp:3: protos.h: In member function 'bool servercommandline::checkarg(const char*)': protos.h:1032:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else if(ai > 0) maxdemos = ai; break; ^~~~ protos.h:1032:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' else if(ai > 0) maxdemos = ai; break; ^~~~~ In file included from cube.h:8, from tools.cpp:3: In function 'char* copystring(char*, const char*, size_t)', inlined from 'const char* hiddenpwd(const char*, int)' at tools.cpp:371:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -o ac_client crypto.o audiomanager.o client.o clientgame.o clients2c.o command.o console.o docs.o editing.o entities.o i18n.o log.o main.o menus.o oggstream.o openal.o packetqueue.o physics.o protocol.o rendercubes.o rendergl.o renderhud.o rendermodel.o renderparticles.o rendertext.o rndmap.o scoreboard.o serverms.o server.o serverbrowser.o shadow.o sound.o soundlocation.o soundscheduler.o stream.o texture.o tools.o water.o weapon.o wizard.o world.o worldio.o worldlight.o worldocull.o worldrender.o zip.o bot/bot.o bot/botmanager.o bot/bot_ai.o bot/bot_util.o bot/bot_waypoint.o bot/ac_bot.o bot/ac_bot_ai.o -L../enet/.libs -lenet -L/usr/local/lib -lX11 `/usr/local/bin/sdl-config --libs` -lSDL_image -lz -lGL -lopenal -lvorbisfile -lcurl -lintl In file included from server.cpp:10: serverfiles.h: In function 'void serverforbiddenlist::addentry(char*)': serverfiles.h:672:20: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 15 bytes from a string of length 259 [-Wstringop-truncation] strncpy(entries[num][0],c1,FORBIDDENSIZE); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ serverfiles.h:673:33: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 15 bytes from a string of length 259 [-Wstringop-truncation] if ( n > 1 ) strncpy(entries[num][1],c2,FORBIDDENSIZE); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from cube.h:8, from server.cpp:4: In function 'char* copystring(char*, const char*, size_t)', inlined from 'bool spamdetect(client*, char*)' at server.cpp:1298:20: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void serverconfigfile::init(const char*)' at serverfiles.h:191:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'virtual void killmessagesfile::read()' at serverfiles.h:954:39: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' forming offset [321, 420] is out of the bounds [0, 320] of object 'killmessages' with type 'char [2][10][16]' [-Warray-bounds] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from server.cpp:8: server.h: In member function 'virtual void killmessagesfile::read()': server.h:500:6: note: 'killmessages' declared here char killmessages[2][NUMGUNS][MAXKILLMSGLEN] = {{ "", "busted", "picked off", "peppered", "sprayed", "punctured", "shredded", "busted", "", "busted" }, { "slashed", "", "", "splattered", "", "headshot", "", "", "gibbed", "" }}; ^~~~~~~~~~~~ In file included from cube.h:8, from server.cpp:4: In function 'char* copystring(char*, const char*, size_t)', inlined from 'virtual void servermaprot::read()' at serverfiles.h:329:27: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'virtual void serverpasswords::read()' at serverfiles.h:756:27: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'const char* currentserver(int)' at server.cpp:449:29: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'const char* currentserver(int)' at server.cpp:448:29: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void enddemorecord()' at server.cpp:598:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'virtual void killmessagesfile::read()' at serverfiles.h:954:39, inlined from 'void rereadcfgs()' at server.cpp:3689:18: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' forming offset [321, 420] is out of the bounds [0, 320] of object 'killmessages' with type 'char [2][10][16]' [-Warray-bounds] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In file included from server.cpp:8: server.h: In function 'void rereadcfgs()': server.h:500:6: note: 'killmessages' declared here char killmessages[2][NUMGUNS][MAXKILLMSGLEN] = {{ "", "busted", "picked off", "peppered", "sprayed", "punctured", "shredded", "busted", "", "busted" }, { "slashed", "", "", "splattered", "", "headshot", "", "", "gibbed", "" }}; ^~~~~~~~~~~~ In file included from cube.h:8, from server.cpp:4: In function 'char* copystring(char*, const char*, size_t)', inlined from 'void resetserver(const char*, int, int)' at server.cpp:1886:15: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void servermapbuffer::load()' at serverfiles.h:68:27, inlined from 'void startgame(const char*, int, int, bool)' at server.cpp:1940:67: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'virtual void mapaction::perform()' at serveractions.h:52:23, inlined from 'virtual void mapaction::perform()': tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'virtual void mapaction::perform()' at serveractions.h:46:23: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void process(ENetPacket*, int, int)' at server.cpp:2660:23: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 16 bytes from a string of length 4999 [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void process(ENetPacket*, int, int)' at server.cpp:2662:23: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 260 bytes from a string of length 4999 [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void process(ENetPacket*, int, int)' at server.cpp:3005:27: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 16 bytes from a string of length 4999 [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 16 bytes from a string of length 4999 [-Wstringop-truncation] server.cpp: In function 'void process(ENetPacket*, int, int)': server.cpp:3518:32: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 4999 bytes from a string of length 4999 [-Wstringop-truncation] strncpy(vi->text,text,MAXTRANS-1); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ server.cpp:3452:36: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 4999 bytes from a string of length 4999 [-Wstringop-truncation] strncpy(vi->text,text,MAXTRANS-1); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ server.cpp:3480:32: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 128 bytes from a string of length 4999 [-Wstringop-truncation] strncpy(vi->text,text,128); ~~~~~~~^~~~~~~~~~~~~~~~~~~ server.cpp:3469:32: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 128 bytes from a string of length 4999 [-Wstringop-truncation] strncpy(vi->text,text,128); ~~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from cube.h:8, from server.cpp:4: In function 'char* copystring(char*, const char*, size_t)', inlined from 'bool servermapbuffer::sendmap(const char*, int, int, int, uchar*)' at serverfiles.h:89:23, inlined from 'void process(ENetPacket*, int, int)' at server.cpp:3335:41: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void serverslice(uint)' at server.cpp:3938:27: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 260 bytes from a string of length 1023 [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ In function 'char* copystring(char*, const char*, size_t)', inlined from 'void serverpasswords::init(const char*, const char*)' at serverfiles.h:730:23, inlined from 'void initserver(bool, int, char**)' at server.cpp:4204:23: tools.h:108:82: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation] inline char *copystring(char *d, const char *s, size_t len = MAXSTRLEN) { strncpy(d, s, len); d[len-1] = 0; return d; } ~~~~~~~^~~~~~~~~~~ c++ -pipe -O2 -fno-strict-aliasing -Wall -fsigned-char -o ac_server crypto-standalone.o log-standalone.o protocol-standalone.o serverms-standalone.o server-standalone.o stream-standalone.o tools-standalone.o wizard-standalone.o -L../enet/.libs -lenet -lz -L/usr/local/lib gmake[1]: Leaving directory '/construction/games/assaultcube/AssaultCube_v1.2.0.2/source/src' -------------------------------------------------------------------------------- -- Phase: run-depends -------------------------------------------------------------------------------- ===> assaultcube-1.2.0.2_6 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found -------------------------------------------------------------------------------- -- Phase: stage -------------------------------------------------------------------------------- ===> Staging for assaultcube-1.2.0.2_6 ===> Generating temporary packing list (cd /construction/games/assaultcube/AssaultCube_v1.2.0.2 && /bin/sh -c '(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1) && /usr/bin/find -Ed $1 $3 \( -type d -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 755 "$@"'\'' . {} + -o -type f -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE "config packages scripts" /construction/games/assaultcube/stage/usr/local/share/assaultcube) install -m 0644 /construction/games/assaultcube/AssaultCube_v1.2.0.2/docs/images/icon.png /construction/games/assaultcube/stage/usr/local/share/pixmaps/assaultcube.png (cd /construction/games/assaultcube/AssaultCube_v1.2.0.2/docs && /bin/sh -c '(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1) && /usr/bin/find -Ed $1 $3 \( -type d -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 755 "$@"'\'' . {} + -o -type f -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE . /construction/games/assaultcube/stage/usr/local/share/doc/assaultcube) install -m 555 /construction/games/assaultcube/assaultcube_client /construction/games/assaultcube/stage/usr/local/bin install -s -m 555 /construction/games/assaultcube/AssaultCube_v1.2.0.2/source/src/ac_client /construction/games/assaultcube/stage/usr/local/libexec/assaultcube_client install -m 555 /construction/games/assaultcube/assaultcube_server /construction/games/assaultcube/stage/usr/local/bin install -s -m 555 /construction/games/assaultcube/AssaultCube_v1.2.0.2/source/src/ac_server /construction/games/assaultcube/stage/usr/local/libexec/assaultcube_server ====> Compressing man pages (compress-man) -------------------------------------------------------------------------------- -- Phase: package -------------------------------------------------------------------------------- ===> Building package for assaultcube-1.2.0.2_6 file sizes/checksums [1816]: .......... done packing files [1816]: .......... done packing directories [1]: . done -------------------------------------------------- -- Termination -------------------------------------------------- Finished: Thursday, 7 MAR 2019 at 07:21:38 UTC Duration: 00:03:07