=> Building games/evq3 Started : Saturday, 15 FEB 2020 at 13:29:41 UTC Platform: 5.7-DEVELOPMENT DragonFly v5.7.0.1432.g9cd86-DEVELOPMENT #23: Thu Feb 13 14:43:04 PST 2020 root@sting.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 -------------------------------------------------- -- Environment -------------------------------------------------- UNAME_r=5.7-SYNTH UNAME_m=x86_64 UNAME_p=x86_64 UNAME_v=DragonFly 5.7-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 evq3-1.3.20080810_11: CURL=on: Data transfer support via cURL CURL_DLOPEN=on: Enable dynamic loading of curl DOCS=on: Build and/or install documentation GAMELIBS=off: Build game libraries (when not mandatory) OPENAL=off: Enable OpenAL (3D sound) support OPENAL_DLOPEN=off: Enable dynamic loading of OpenAL OPTIMIZED_CFLAGS=on: Use extra compiler optimizations VOIP=off: Enable Voice Over IP VORBIS=on: Ogg Vorbis audio codec support ====> Options available for the multi TYPE: you have to choose at least one of them CLIENT=on: Build client DEDICATED=on: Build dedicated server SMP=on: Build SMP (threaded) client ===> Use 'make config' to modify these settings -------------------------------------------------- -- CONFIGURE_ENV -------------------------------------------------- MAKE=gmake SDL_CONFIG=/usr/local/bin/sdl-config XDG_DATA_HOME=/construction/games/evq3 XDG_CONFIG_HOME=/construction/games/evq3 HOME=/construction/games/evq3 TMPDIR="/tmp" PATH=/construction/games/evq3/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc80 -------------------------------------------------- -- CONFIGURE_ARGS -------------------------------------------------- -------------------------------------------------- -- MAKE_ENV -------------------------------------------------- DEFAULT_BASEDIR="/usr/local/share/quake3" LIBDIR="/usr/local/lib/evq3" PTHREAD_LIBS="-lpthread" Q3DIR="/usr/local/share/quake3" USE_CURL=1 USE_CURL_DLOPEN=1 USE_CODEC_VORBIS=1 BUILD_CLIENT=1 BUILD_SERVER=1 BUILD_GAME_SO=1 USE_OPTIMIZED_CFLAGS=1 BUILD_CLIENT_SMP=1 SDL_CONFIG=/usr/local/bin/sdl-config XDG_DATA_HOME=/construction/games/evq3 XDG_CONFIG_HOME=/construction/games/evq3 HOME=/construction/games/evq3 TMPDIR="/tmp" PATH=/construction/games/evq3/.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 -DMAP_ANONYMOUS=MAP_ANON -D__FreeBSD__=9 -O2 -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS=" -pipe -DMAP_ANONYMOUS=MAP_ANON -D__FreeBSD__=9 -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/evq3/stage -------------------------------------------------- -- PLIST_SUB -------------------------------------------------- LIBDIR="lib/evq3" Q3DIR="share/quake3" PORTDOCS="" CLIENT="" DEDICATED="" GAMELIBS="" SMP="" OSREL=5.7 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/evq3" EXAMPLESDIR="share/examples/evq3" DATADIR="share/evq3" WWWDIR="www/evq3" ETCDIR="etc/evq3" -------------------------------------------------- -- SUB_LIST -------------------------------------------------- Q3DIR="/usr/local/share/quake3" PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/evq3 DOCSDIR=/usr/local/share/doc/evq3 EXAMPLESDIR=/usr/local/share/examples/evq3 WWWDIR=/usr/local/www/evq3 ETCDIR=/usr/local/etc/evq3 -------------------------------------------------- -- /etc/make.conf -------------------------------------------------- SYNTHPROFILE=LiveSystem 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=15 DPORTS_BUILDER= yes DISABLE_LICENSES= yes DEFAULT_VERSIONS= ssl=openssl FORCE_PACKAGE= yes DEVELOPER= yes HAVE_COMPAT_IA32_KERN= CONFIGURE_MAX_CMD_LEN=262144 _PERL5_FROM_BIN=5.30.1 _ALTCCVERSION_921dbbb2=none _OBJC_ALTCCVERSION_921dbbb2=none _SMP_CPUS=32 UID=0 ARCH=x86_64 OPSYS=DragonFly DFLYVERSION=500709 OSVERSION=9999999 OSREL=5.7 _OSRELEASE=5.7-SYNTH PYTHONBASE=/usr/local _PKG_CHECKED=1 -------------------------------------------------------------------------------- -- Phase: check-sanity -------------------------------------------------------------------------------- ===> NOTICE: The evq3 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 -------------------------------------------------------------------------------- -- Phase: pkg-depends -------------------------------------------------------------------------------- ===> evq3-1.3.20080810_11 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.12.0_1.txz Installing pkg-1.12.0_1... Extracting pkg-1.12.0_1: .......... done ===> evq3-1.3.20080810_11 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of evq3-1.3.20080810_11 -------------------------------------------------------------------------------- -- Phase: fetch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: fetch -------------------------------------------------------------------------------- ===> NOTICE: The evq3 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 => evq3-1.3.20080810.tar.bz2 doesn't seem to exist in /distfiles/. => Attempting to fetch http://distcache.FreeBSD.org/local-distfiles/alepulver/evq3-1.3.20080810.tar.bz2 evq3-1.3.20080810.tar.bz2 3256 kB 818 kBps 04s => pak-evq3.pk3 doesn't seem to exist in /distfiles/. => Attempting to fetch http://distcache.FreeBSD.org/local-distfiles/alepulver/pak-evq3.pk3 pak-evq3.pk3 138 kB 296 kBps 00s => pak-5evq3.pk3 doesn't seem to exist in /distfiles/. => Attempting to fetch http://distcache.FreeBSD.org/local-distfiles/alepulver/pak-5evq3.pk3 pak-5evq3.pk3 95 kB 321 kBps 01s ===> Fetching all distfiles required by evq3-1.3.20080810_11 for building -------------------------------------------------------------------------------- -- Phase: checksum -------------------------------------------------------------------------------- ===> NOTICE: The evq3 port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> Fetching all distfiles required by evq3-1.3.20080810_11 for building => SHA256 Checksum OK for evq3-1.3.20080810.tar.bz2. => SHA256 Checksum OK for pak-evq3.pk3. => SHA256 Checksum OK for pak-5evq3.pk3. -------------------------------------------------------------------------------- -- Phase: extract-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: extract -------------------------------------------------------------------------------- ===> NOTICE: The evq3 port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> Fetching all distfiles required by evq3-1.3.20080810_11 for building ===> Extracting for evq3-1.3.20080810_11 ===> NOTICE: The evq3 port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> Fetching all distfiles required by evq3-1.3.20080810_11 for building => SHA256 Checksum OK for evq3-1.3.20080810.tar.bz2. => SHA256 Checksum OK for pak-evq3.pk3. => SHA256 Checksum OK for pak-5evq3.pk3. -------------------------------------------------------------------------------- -- Phase: patch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: patch -------------------------------------------------------------------------------- ===> Patching for evq3-1.3.20080810_11 ===> Converting DOS text files to UNIX text files ===> Applying ports patches for evq3-1.3.20080810_11 ===> Applying dragonfly patches for evq3-1.3.20080810_11 -------------------------------------------------------------------------------- -- Phase: build-depends -------------------------------------------------------------------------------- ===> evq3-1.3.20080810_11 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.20.1... | `-- Installing indexinfo-0.3.1... | `-- Extracting indexinfo-0.3.1: . done `-- Extracting gettext-runtime-0.20.1: .......... done Extracting gmake-4.2.1_3: .......... done ===> evq3-1.3.20080810_11 depends on executable: gmake - found ===> Returning to build of evq3-1.3.20080810_11 ===> evq3-1.3.20080810_11 depends on file: /usr/local/bin/sdl-config - not found ===> Installing existing package /packages/All/sdl-1.2.15_14,2.txz Installing sdl-1.2.15_14,2... `-- Installing aalib-1.4.r5_13... | `-- Installing ncurses-6.1.20190525... | `-- Extracting ncurses-6.1.20190525: .......... done `-- Extracting aalib-1.4.r5_13: .......... done `-- Installing libGLU-9.0.1... | `-- Installing mesa-libs-18.3.2_3... | | `-- Installing expat-2.2.8... | | `-- Extracting expat-2.2.8: .......... done | | `-- Installing libX11-1.6.9,1... | | `-- Installing libXau-1.0.9... | | `-- Extracting libXau-1.0.9: .......... done | | `-- Installing libXdmcp-1.1.3... | | | `-- Installing xorgproto-2019.2... | | | `-- Extracting xorgproto-2019.2: .......... done | | `-- Extracting libXdmcp-1.1.3: ...... done | | `-- Installing libxcb-1.13.1... | | | `-- Installing libpthread-stubs-0.4... | | | `-- Extracting libpthread-stubs-0.4: .... done | | | `-- Installing libxml2-2.9.10... | | | `-- Extracting libxml2-2.9.10: .......... done | | `-- Extracting libxcb-1.13.1: .......... done | | `-- Extracting libX11-1.6.9,1: .......... done | | `-- Installing libXdamage-1.1.5... | | `-- Installing libXfixes-5.0.3_2... | | `-- Extracting libXfixes-5.0.3_2: ....... done | | `-- Extracting libXdamage-1.1.5: ...... done | | `-- Installing libXext-1.3.4,1... | | `-- Extracting libXext-1.3.4,1: .......... done | | `-- Installing libXrandr-1.5.2... | | `-- Installing libXrender-0.9.10_2... | | `-- Extracting libXrender-0.9.10_2: ....... done | | `-- Extracting libXrandr-1.5.2: .......... done | | `-- Installing libXxf86vm-1.1.4_3... | | `-- Extracting libXxf86vm-1.1.4_3: .......... done | | `-- Installing libdrm-2.4.100... | | `-- Installing libpciaccess-0.16... | | | `-- Installing pciids-20200125... | | | `-- Extracting pciids-20200125: ..... done | | `-- Extracting libpciaccess-0.16: ...... done | | `-- Extracting libdrm-2.4.100: .......... done | | `-- Installing libelf-0.8.13_3... | | `-- Extracting libelf-0.8.13_3: .......... done | | `-- Installing libxshmfence-1.3... | | `-- Extracting libxshmfence-1.3: ...... 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_3: .......... done `-- Extracting libGLU-9.0.1: ...... done Extracting sdl-1.2.15_14,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_14,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". ===> evq3-1.3.20080810_11 depends on file: /usr/local/bin/sdl-config - found ===> Returning to build of evq3-1.3.20080810_11 -------------------------------------------------------------------------------- -- Phase: lib-depends -------------------------------------------------------------------------------- ===> evq3-1.3.20080810_11 depends on shared library: libfreetype.so - not found ===> Installing existing package /packages/All/freetype2-2.10.1.txz Installing freetype2-2.10.1... Extracting freetype2-2.10.1: .......... done ===== Message from freetype2-2.10.1: -- The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as the default, emulating a modern version of ClearType. This change inevitably leads to different rendering results, and you might change port's options to adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment variable). The environment variable "FREETYPE_PROPERTIES" can be used to control the driver properties. Example: FREETYPE_PROPERTIES=truetype:interpreter-version=35 \ cff:no-stem-darkening=1 \ autofitter:warping=1 This allows to select, say, the subpixel hinting mode at runtime for a given application. If LONG_PCF_NAMES port's option was enabled, the PCF family names may include the foundry and information whether they contain wide characters. For example, "Sony Fixed" or "Misc Fixed Wide", instead of "Fixed". This can be disabled at run time with using pcf:no-long-family-names property, if needed. Example: FREETYPE_PROPERTIES=pcf:no-long-family-names=1 How to recreate fontconfig cache with using such environment variable, if needed: # env FREETYPE_PROPERTIES=pcf:no-long-family-names=1 fc-cache -fsv The controllable properties are listed in the section "Controlling FreeType Modules" in the reference's table of contents (/usr/local/share/doc/freetype2/reference/site/index.html, if documentation was installed). ===> evq3-1.3.20080810_11 depends on shared library: libfreetype.so - found (/usr/local/lib/libfreetype.so) ===> Returning to build of evq3-1.3.20080810_11 ===> evq3-1.3.20080810_11 depends on shared library: libcurl.so - not found ===> Installing existing package /packages/All/curl-7.68.0.txz Installing curl-7.68.0... `-- Installing ca_root_nss-3.50... `-- Extracting ca_root_nss-3.50: ..... done `-- Installing libnghttp2-1.40.0... `-- Extracting libnghttp2-1.40.0: ....... done `-- Installing openssl-1.1.1d,1... `-- Extracting openssl-1.1.1d,1: .......... done Extracting curl-7.68.0: .......... done ===== Message from ca_root_nss-3.50: -- 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. 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 ===> evq3-1.3.20080810_11 depends on shared library: libcurl.so - found (/usr/local/lib/libcurl.so) ===> Returning to build of evq3-1.3.20080810_11 ===> evq3-1.3.20080810_11 depends on shared library: libvorbis.so - not found ===> Installing existing package /packages/All/libvorbis-1.3.6,3.txz Installing libvorbis-1.3.6,3... `-- Installing libogg-1.3.4,4... `-- Extracting libogg-1.3.4,4: .......... done Extracting libvorbis-1.3.6,3: .......... done ===> evq3-1.3.20080810_11 depends on shared library: libvorbis.so - found (/usr/local/lib/libvorbis.so) ===> Returning to build of evq3-1.3.20080810_11 ===> evq3-1.3.20080810_11 depends on shared library: libSDL.so - found (/usr/local/lib/libSDL.so) -------------------------------------------------------------------------------- -- Phase: configure -------------------------------------------------------------------------------- ===> Configuring for evq3-1.3.20080810_11 -------------------------------------------------------------------------------- -- Phase: build -------------------------------------------------------------------------------- ===> Building for evq3-1.3.20080810_11 gmake[2]: Entering directory '/construction/games/evq3/evq3' gmake[3]: Entering directory '/construction/games/evq3/evq3' Building evq3 in build/release: PLATFORM: freebsd ARCH: x86_64 VERSION: 1.35 COMPILE_PLATFORM: dragonfly COMPILE_ARCH: x86_64 CC: cc CFLAGS: -pipe -DMAP_ANONYMOUS=MAP_ANON -D__FreeBSD__=9 -O2 -fno-strict-aliasing -MMD -DARCH="x86_64" -I/usr/local/include -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes -DLIBDIR="/usr/local/lib/evq3" -DUSE_ICON -I/usr/local/include/SDL -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -DUSE_CODEC_VORBIS -DNO_VM_COMPILED -DUSE_CURL=1 -DUSE_CURL_DLOPEN=1 -DDEFAULT_BASEDIR="/usr/local/share/quake3" -DPRODUCT_VERSION="1.35" -DNDEBUG -pipe -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations LDFLAGS: -lm Output: build/release/evq3ded build/release/evq3 build/release/evq3-smp build/release/baseq3/cgame.so build/release/baseq3/qagame.so build/release/baseq3/ui.so build/release/missionpack/cgame.so build/release/missionpack/qagame.so build/release/missionpack/ui.so gmake[4]: Entering directory '/construction/games/evq3/evq3' DED_CC code/server/sv_client.c DED_CC code/server/sv_ccmds.c DED_CC code/server/sv_game.c DED_CC code/server/sv_init.c DED_CC code/server/sv_main.c DED_CC code/server/sv_net_chan.c DED_CC code/server/sv_snapshot.c DED_CC code/server/sv_world.c DED_CC code/qcommon/cm_load.c DED_CC code/qcommon/cm_patch.c DED_CC code/server/sv_bot.c DED_CC code/qcommon/cm_polylib.c DED_CC code/qcommon/cm_test.c code/server/sv_init.c: In function 'SV_SetConfigstring': code/server/sv_init.c:107:7: warning: variable 'len' set but not used [-Wunused-but-set-variable] int len, i; ^~~ DED_CC code/qcommon/cm_trace.c DED_CC code/qcommon/cmd.c code/server/sv_game.c: In function 'SV_inPVSIgnorePortals': code/server/sv_game.c:188:14: warning: variable 'area2' set but not used [-Wunused-but-set-variable] int area1, area2; ^~~~~ code/server/sv_game.c:188:7: warning: variable 'area1' set but not used [-Wunused-but-set-variable] int area1, area2; ^~~~~ code/server/sv_net_chan.c: In function 'SV_Netchan_Encode': code/server/sv_net_chan.c:37:7: warning: variable 'reliableAcknowledge' set but not used [-Wunused-but-set-variable] long reliableAcknowledge, i, index; ^~~~~~~~~~~~~~~~~~~ code/server/sv_client.c: In function 'SV_IsBanned': code/server/sv_client.c:240:13: warning: variable 'addrlen' set but not used [-Wunused-but-set-variable] int index, addrlen, curbyte, netmask, cmpmask; ^~~~~~~ code/server/sv_snapshot.c: In function 'SV_AddEntitiesVisibleFromPoint': code/server/sv_snapshot.c:301:7: warning: variable 'c_fullsend' set but not used [-Wunused-but-set-variable] int c_fullsend; ^~~~~~~~~~ code/server/sv_world.c: In function 'SV_AreaEntities_r': code/server/sv_world.c:385:8: warning: variable 'count' set but not used [-Wunused-but-set-variable] int count; ^~~~~ code/server/sv_world.c: In function 'SV_PointContents': code/server/sv_world.c:663:10: warning: variable 'angles' set but not used [-Wunused-but-set-variable] float *angles; ^~~~~~ DED_CC code/qcommon/common.c code/qcommon/common.c: In function 'Z_TagMalloc': code/qcommon/common.c:913:14: warning: variable 'allocSize' set but not used [-Wunused-but-set-variable] int extra, allocSize; ^~~~~~~~~ code/qcommon/common.c: In function 'Com_Frame': code/qcommon/common.c:2798:6: warning: variable 'key' set but not used [-Wunused-but-set-variable] int key; ^~~ code/qcommon/cm_trace.c: In function 'CM_TraceThroughSphere': code/qcommon/cm_trace.c:738:8: warning: variable 'a' set but not used [-Wunused-but-set-variable] float a, b, c, d, sqrtd; ^ code/qcommon/cm_trace.c: In function 'CM_TraceThroughVerticalCylinder': code/qcommon/cm_trace.c:826:8: warning: variable 'a' set but not used [-Wunused-but-set-variable] float a, b, c, d, sqrtd; ^ code/qcommon/cmd.c: In function 'Cmd_Exec_f': code/qcommon/cmd.c:243:7: warning: variable 'len' set but not used [-Wunused-but-set-variable] int len; ^~~ DED_CC code/qcommon/cvar.c code/qcommon/cvar.c: In function 'Cvar_Restart_f': code/qcommon/cvar.c:817:30: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] Com_Memset( var, 0, sizeof( var ) ); ^ DED_CC code/qcommon/files.c code/qcommon/files.c: In function 'FS_ComparePaks': code/qcommon/files.c:2522:20: warning: variable 'badchecksum' set but not used [-Wunused-but-set-variable] qboolean havepak, badchecksum; ^~~~~~~~~~~ DED_CC code/qcommon/md4.c DED_CC code/qcommon/msg.c DED_CC code/qcommon/net_chan.c code/qcommon/net_chan.c: In function 'Netchan_Process': code/qcommon/net_chan.c:306:8: warning: variable 'qport' set but not used [-Wunused-but-set-variable] int qport; ^~~~~ DED_CC code/qcommon/net_ip.c DED_CC code/qcommon/huffman.c DED_CC code/qcommon/q_math.c DED_CC code/qcommon/q_shared.c DED_CC code/qcommon/unzip.c code/qcommon/q_math.c: In function 'MatrixFromQuat': code/qcommon/q_math.c:2163:22: warning: variable 'w2' set but not used [-Wunused-but-set-variable] float x2, y2, z2, w2; ^~ DED_CC code/qcommon/vm.c code/qcommon/net_ip.c: In function 'NET_OpenSocks': code/qcommon/net_ip.c:1030:10: warning: variable 'err' set but not used [-Wunused-but-set-variable] int err; ^~~ DED_CC code/qcommon/vm_interpreted.c code/qcommon/unzip.c: In function 'unzClose': code/qcommon/unzip.c:1415:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (s->pfile_in_zip_read!=NULL) ^~ code/qcommon/unzip.c:1418:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' fclose(s->file); ^~~~~~ code/qcommon/unzip.c: In function 'unzLocateFile': code/qcommon/unzip.c:1740:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (strlen(szFileName)>=UNZ_MAXFILENAMEINZIP) ^~ code/qcommon/unzip.c:1743:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' s=(unz_s*)file; ^ code/qcommon/unzip.c: In function 'unzlocal_CheckCurrentFileCoherencyHeader': code/qcommon/unzip.c:1815:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if ((err==UNZ_OK) && (s->cur_file_info.compression_method!=0) && ^~ code/qcommon/unzip.c:1819:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (unzlocal_getLong(s->file,&uData) != UNZ_OK) /* date/time */ ^~ code/qcommon/unzip.c: In function 'unzOpenCurrentFile': code/qcommon/unzip.c:1879:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (s->pfile_in_zip_read != NULL) ^~ code/qcommon/unzip.c:1882:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (unzlocal_CheckCurrentFileCoherencyHeader(s,&iSizeVar, ^~ code/qcommon/unzip.c: In function 'unzReadCurrentFile': code/qcommon/vm.c: In function 'VM_LoadSymbols': code/qcommon/vm.c:220:7: warning: variable 'len' set but not used [-Wunused-but-set-variable] int len; ^~~ code/qcommon/unzip.c:2045:16: warning: variable 'bufBefore' set but not used [-Wunused-but-set-variable] const Byte *bufBefore; ^~~~~~~~~ code/qcommon/vm.c: In function 'VM_LoadQVM': code/qcommon/vm.c:363:10: warning: variable 'length' set but not used [-Wunused-but-set-variable] int length; ^~~~~~ BOT_CC code/botlib/be_aas_bspq3.c BOT_CC code/botlib/be_aas_cluster.c BOT_CC code/botlib/be_aas_debug.c BOT_CC code/botlib/be_aas_entity.c BOT_CC code/botlib/be_aas_file.c BOT_CC code/botlib/be_aas_main.c In function 'Q_strncpyz', inlined from 'Q_strreplace' at code/qcommon/q_shared.c:1160:3: code/qcommon/q_shared.c:1015:2: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(dest, src, destsize - 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/qcommon/q_shared.c: In function 'Q_strreplace': code/qcommon/q_shared.c:1147:9: note: length computed here lend = strlen(dest); ^~~~~~~~~~~~ BOT_CC code/botlib/be_aas_move.c code/botlib/be_aas_move.c: In function 'AAS_AirControl': code/botlib/be_aas_move.c:392:9: warning: variable 'dir' set but not used [-Wunused-but-set-variable] vec3_t dir; ^~~ code/botlib/be_aas_move.c: In function 'AAS_ClientMovementPrediction': code/botlib/be_aas_move.c:521:35: warning: variable 'ax' set but not used [-Wunused-but-set-variable] int n, i, j, pc, step, swimming, ax, crouch, event, jump_frame, areanum; ^~ BOT_CC code/botlib/be_aas_optimize.c BOT_CC code/botlib/be_aas_reach.c code/botlib/be_aas_reach.c: In function 'AAS_BestReachableFromJumpPadArea': code/botlib/be_aas_reach.c:292:6: warning: variable 'area2num' set but not used [-Wunused-but-set-variable] int area2num, ent, bot_visualizejumppads, bestareanum; ^~~~~~~~ code/botlib/be_aas_reach.c: In function 'AAS_Reachability_Swim': code/botlib/be_aas_reach.c:840:22: warning: variable 'areasettings' set but not used [-Wunused-but-set-variable] aas_areasettings_t *areasettings; ^~~~~~~~~~~~ BOT_CC code/botlib/be_aas_route.c code/botlib/be_aas_reach.c: In function 'AAS_Reachability_Step_Barrier_WaterJump_WalkOffLedge': code/botlib/be_aas_reach.c:1076:61: warning: variable 'water_bestface1' set but not used [-Wunused-but-set-variable] aas_face_t *groundface1, *groundface2, *ground_bestface1, *water_bestface1; ^~~~~~~~~~~~~~~ code/botlib/be_aas_reach.c:1076:42: warning: variable 'ground_bestface1' set but not used [-Wunused-but-set-variable] aas_face_t *groundface1, *groundface2, *ground_bestface1, *water_bestface1; ^~~~~~~~~~~~~~~~ code/botlib/be_aas_reach.c:1065:34: warning: variable 'invgravitydot' set but not used [-Wunused-but-set-variable] float dist, dist1, dist2, diff, invgravitydot, ortdot; ^~~~~~~~~~~~~ code/botlib/be_aas_reach.c: In function 'AAS_Reachability_JumpPad': code/botlib/be_aas_reach.c:3495:21: warning: variable 'hordist' set but not used [-Wunused-but-set-variable] float speed, zvel, hordist; ^~~~~~~ code/botlib/be_aas_reach.c: In function 'AAS_Reachability_WeaponJump': BOT_CC code/botlib/be_aas_routealt.c code/botlib/be_aas_reach.c:4000:21: warning: variable 'hordist' set but not used [-Wunused-but-set-variable] float speed, zvel, hordist; ^~~~~~~ BOT_CC code/botlib/be_aas_sample.c code/botlib/be_aas_route.c: In function 'AAS_CalculateAreaTravelTimes': code/botlib/be_aas_route.c:509:6: warning: variable 'starttime' set but not used [-Wunused-but-set-variable] int starttime; ^~~~~~~~~ code/botlib/be_aas_route.c: In function 'AAS_CreateAllRoutingCache': code/botlib/be_aas_route.c:890:12: warning: variable 't' set but not used [-Wunused-but-set-variable] int i, j, t; ^ BOT_CC code/botlib/be_ai_char.c BOT_CC code/botlib/be_ai_chat.c code/botlib/be_ai_chat.c: In function 'BotFreeChatState': code/botlib/be_ai_chat.c:2942:19: warning: variable 'cs' set but not used [-Wunused-but-set-variable] bot_chatstate_t *cs; ^~ BOT_CC code/botlib/be_ai_gen.c BOT_CC code/botlib/be_ai_goal.c BOT_CC code/botlib/be_ai_move.c code/botlib/be_ai_goal.c: In function 'BotSaveGoalFuzzyLogic': code/botlib/be_ai_goal.c:241:19: warning: variable 'gs' set but not used [-Wunused-but-set-variable] bot_goalstate_t *gs; ^~ code/botlib/be_ai_gen.c: In function 'GeneticSelection': code/botlib/be_ai_gen.c:54:13: warning: variable 'select' set but not used [-Wunused-but-set-variable] float sum, select; ^~~~~~ code/botlib/be_ai_move.c: In function 'BotFinishTravel_BarrierJump': code/botlib/be_ai_move.c:1483:8: warning: variable 'dist' set but not used [-Wunused-but-set-variable] float dist; ^~~~ code/botlib/be_ai_move.c: In function 'BotFinishTravel_WaterJump': code/botlib/be_ai_move.c:1570:8: warning: variable 'dist' set but not used [-Wunused-but-set-variable] float dist; ^~~~ code/botlib/be_ai_move.c: In function 'BotTravel_JumpPad': code/botlib/be_ai_move.c:2870:8: warning: variable 'dist' set but not used [-Wunused-but-set-variable] float dist, speed; ^~~~ code/botlib/be_ai_goal.c: In function 'LoadItemConfig': code/botlib/be_ai_goal.c:284:2: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation] strncpy( path, filename, MAX_PATH ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/botlib/be_ai_goal.c:317:4: warning: 'strncpy' output may be truncated copying 31 bytes from a string of length 1023 [-Wstringop-truncation] strncpy(ii->classname, token.string, sizeof(ii->classname)-1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/botlib/be_ai_chat.c: In function 'BotQueueConsoleMessage': code/botlib/be_ai_chat.c:345:2: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation] strncpy(m->message, message, MAX_MESSAGE_SIZE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BOT_CC code/botlib/be_ai_weap.c BOT_CC code/botlib/be_ai_weight.c In function 'BotGoalName.constprop', inlined from 'BotDumpAvoidGoals' at code/botlib/be_ai_goal.c:730:4: code/botlib/be_ai_goal.c:689:4: warning: 'strncpy' output may be truncated copying 31 bytes from a string of length 79 [-Wstringop-truncation] strncpy(name, itemconfig->iteminfo[li->iteminfo].name, size-1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/botlib/be_ai_weap.c: In function 'LoadWeaponConfig': code/botlib/be_ai_weap.c:222:2: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation] strncpy(path, filename, MAX_PATH); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BOT_CC code/botlib/be_ea.c In function 'BotGoalName.constprop', inlined from 'BotDumpGoalStack' at code/botlib/be_ai_goal.c:1192:3: code/botlib/be_ai_goal.c:689:4: warning: 'strncpy' output may be truncated copying 31 bytes from a string of length 79 [-Wstringop-truncation] strncpy(name, itemconfig->iteminfo[li->iteminfo].name, size-1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BOT_CC code/botlib/be_interface.c BOT_CC code/botlib/l_crc.c BOT_CC code/botlib/l_libvar.c BOT_CC code/botlib/l_log.c BOT_CC code/botlib/l_memory.c code/botlib/be_ai_chat.c: In function 'BotFindMatch': code/botlib/be_ai_chat.c:1461:2: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation] strncpy(match->string, str, MAX_MESSAGE_SIZE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/botlib/l_log.c: In function 'Log_Open': code/botlib/l_log.c:77:2: warning: 'strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] strncpy(logfile.filename, filename, MAX_LOGFILENAMESIZE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BOT_CC code/botlib/l_precomp.c BOT_CC code/botlib/l_script.c BOT_CC code/botlib/l_struct.c code/botlib/l_precomp.c: In function 'PC_EvaluateTokens': code/botlib/l_precomp.c:1701:6: warning: variable 'lastoperatortype' set but not used [-Wunused-but-set-variable] int lastoperatortype = 0; ^~~~~~~~~~~~~~~~ code/botlib/l_struct.c: In function 'ReadString': code/botlib/l_struct.c:224:2: warning: 'strncpy' output may be truncated copying 80 bytes from a string of length 1023 [-Wstringop-truncation] strncpy((char *) p, token.string, MAX_STRINGFIELD); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'ReadString.constprop', inlined from 'ReadStructure' at code/botlib/l_struct.c:294:11: code/botlib/l_struct.c:224:2: warning: 'strncpy' output may be truncated copying 80 bytes from a string of length 1023 [-Wstringop-truncation] strncpy((char *) p, token.string, MAX_STRINGFIELD); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/botlib/l_precomp.c: In function 'PC_Directive_include.part.3': code/botlib/l_precomp.c:1015:4: warning: 'strncat' output may be truncated copying 255 bytes from a string of length 1023 [-Wstringop-truncation] strncat(path, token.string, MAX_PATH - 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DED_CC code/null/null_client.c DED_CC code/null/null_input.c DED_CC code/null/null_snddma.c DED_CC code/sys/con_log.c DED_CC code/sys/sys_main.c DED_CC code/sys/sys_unix.c DED_CC code/sys/con_tty.c CC code/client/cl_cgame.c CC code/client/cl_cin.c code/botlib/be_ai_chat.c: In function 'BotLoadInitialChat': code/botlib/be_ai_chat.c:2120:8: warning: 'strncpy' output may be truncated copying 32 bytes from a string of length 1023 [-Wstringop-truncation] strncpy(chattype->name, token.string, MAX_CHATTYPE_NAME); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/sys/sys_unix.c: In function 'Sys_ListFiles': code/sys/sys_unix.c:323:16: warning: variable 'extLen' set but not used [-Wunused-but-set-variable] int extLen; ^~~~~~ CC code/client/cl_console.c code/botlib/l_precomp.c: In function 'PC_StringizeTokens': code/botlib/l_precomp.c:472:3: warning: 'strncat' output may be truncated copying between 0 and 1023 bytes from a string of length 1023 [-Wstringop-truncation] strncat(token->string, t->string, MAX_TOKEN - strlen(token->string) - 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/client/cl_cin.c: In function 'yuv_to_rgb': code/client/cl_cin.c:583:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (r<0) r = 0; if (g<0) g = 0; if (b<0) b = 0; ^~ code/client/cl_cin.c:583:18: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (r<0) r = 0; if (g<0) g = 0; if (b<0) b = 0; ^~ code/client/cl_cin.c:584:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (r > 31) r = 31; if (g > 63) g = 63; if (b > 31) b = 31; ^~ code/client/cl_cin.c:584:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (r > 31) r = 31; if (g > 63) g = 63; if (b > 31) b = 31; ^~ code/client/cl_cin.c: In function 'yuv_to_rgb24': code/client/cl_cin.c:604:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (r<0) r = 0; if (g<0) g = 0; if (b<0) b = 0; ^~ code/client/cl_cin.c:604:18: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (r<0) r = 0; if (g<0) g = 0; if (b<0) b = 0; ^~ code/client/cl_cin.c:605:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (r > 255) r = 255; if (g > 255) g = 255; if (b > 255) b = 255; ^~ code/client/cl_cin.c:605:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (r > 255) r = 255; if (g > 255) g = 255; if (b > 255) b = 255; ^~ code/client/cl_cgame.c: In function 'CL_AdjustTimeDelta': code/client/cl_cgame.c:829:7: warning: variable 'resetTime' set but not used [-Wunused-but-set-variable] int resetTime; ^~~~~~~~~ code/client/cl_cin.c: In function 'CL_PlayCinematic_f': code/client/cl_cin.c:1587:11: warning: variable 'holdatend' set but not used [-Wunused-but-set-variable] qboolean holdatend; ^~~~~~~~~ CC code/client/cl_input.c code/client/cl_input.c: In function 'CL_JoystickMove': code/client/cl_input.c:393:7: warning: variable 'movespeed' set but not used [-Wunused-but-set-variable] int movespeed; ^~~~~~~~~ code/client/cl_input.c: In function 'CL_CreateNewCommands': code/client/cl_input.c:599:13: warning: variable 'cmd' set but not used [-Wunused-but-set-variable] usercmd_t *cmd; ^~~ In function 'PC_StringizeTokens', inlined from 'PC_ExpandDefine' at code/botlib/l_precomp.c:849:11: code/botlib/l_precomp.c:472:3: warning: 'strncat' output may be truncated copying between 0 and 1023 bytes from a string of length 1023 [-Wstringop-truncation] strncat(token->string, t->string, MAX_TOKEN - strlen(token->string) - 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC code/client/cl_keys.c CC code/client/cl_main.c code/client/cl_main.c: In function 'CL_ChangeReliableCommand': code/client/cl_main.c:427:6: warning: variable 'r' set but not used [-Wunused-but-set-variable] int r, index, l; ^ code/client/cl_main.c: In function 'CL_GetServerStatus': code/client/cl_main.c:3332:18: warning: variable 'serverStatus' set but not used [-Wunused-but-set-variable] serverStatus_t *serverStatus; ^~~~~~~~~~~~ CC code/client/cl_net_chan.c CC code/client/cl_parse.c CC code/client/cl_ui.c CC code/client/cl_scrn.c code/client/cl_scrn.c: In function 'SCR_DrawDebugGraph': code/client/cl_scrn.c:384:7: warning: variable 'color' set but not used [-Wunused-but-set-variable] int color; ^~~~~ CC code/client/cl_avi.c CC code/qcommon/cm_load.c CC code/qcommon/cm_patch.c CC code/qcommon/cm_polylib.c CC code/qcommon/cm_test.c CC code/qcommon/cm_trace.c code/qcommon/cm_trace.c: In function 'CM_TraceThroughSphere': code/qcommon/cm_trace.c:738:8: warning: variable 'a' set but not used [-Wunused-but-set-variable] float a, b, c, d, sqrtd; ^ code/qcommon/cm_trace.c: In function 'CM_TraceThroughVerticalCylinder': code/qcommon/cm_trace.c:826:8: warning: variable 'a' set but not used [-Wunused-but-set-variable] float a, b, c, d, sqrtd; ^ CC code/qcommon/cmd.c code/qcommon/cmd.c: In function 'Cmd_Exec_f': code/qcommon/cmd.c:243:7: warning: variable 'len' set but not used [-Wunused-but-set-variable] int len; ^~~ CC code/qcommon/common.c code/qcommon/common.c: In function 'Z_TagMalloc': code/qcommon/common.c:913:14: warning: variable 'allocSize' set but not used [-Wunused-but-set-variable] int extra, allocSize; ^~~~~~~~~ code/qcommon/common.c: In function 'Com_WriteCDKey': code/qcommon/common.c:2450:15: warning: implicit declaration of function 'umask' [-Wimplicit-function-declaration] savedumask = umask(0077); ^~~~~ code/qcommon/common.c: In function 'Com_Frame': code/qcommon/common.c:2798:6: warning: variable 'key' set but not used [-Wunused-but-set-variable] int key; ^~~ CC code/qcommon/cvar.c code/qcommon/cvar.c: In function 'Cvar_Restart_f': code/qcommon/cvar.c:817:30: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] Com_Memset( var, 0, sizeof( var ) ); ^ code/botlib/be_ai_move.c: In function 'BotResetLastAvoidReach': code/botlib/be_ai_move.c:3512:26: warning: array subscript 1 is above array bounds of 'int[1]' [-Warray-bounds] if (ms->avoidreachtries[i] > 0) ms->avoidreachtries[latest]--; ~~~~~~~~~~~~~~~~~~~^~~ CC code/qcommon/files.c CC code/qcommon/md4.c CC code/qcommon/md5.c CC code/qcommon/msg.c code/qcommon/md5.c: In function 'MD5Final': code/qcommon/md5.c:256:26: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ ^ code/qcommon/files.c: In function 'FS_ComparePaks': code/qcommon/files.c:2522:20: warning: variable 'badchecksum' set but not used [-Wunused-but-set-variable] qboolean havepak, badchecksum; ^~~~~~~~~~~ CC code/qcommon/net_chan.c CC code/qcommon/net_ip.c code/qcommon/net_chan.c: In function 'Netchan_Process': code/qcommon/net_chan.c:306:8: warning: variable 'qport' set but not used [-Wunused-but-set-variable] int qport; ^~~~~ code/qcommon/net_ip.c: In function 'NET_OpenSocks': code/qcommon/net_ip.c:1030:10: warning: variable 'err' set but not used [-Wunused-but-set-variable] int err; ^~~ CC code/qcommon/huffman.c CC code/client/snd_adpcm.c CC code/client/snd_dma.c CC code/client/snd_mem.c CC code/client/snd_mix.c CC code/client/snd_wavelet.c CC code/client/snd_main.c CC code/client/snd_codec.c code/client/snd_wavelet.c: In function 'encodeWavelet': code/client/snd_wavelet.c:35:9: warning: array subscript -1 is below array bounds of 'float[4097]' [-Warray-bounds] float *a=b-1; // numerical recipies so a[1] = b[0] ^ code/client/snd_wavelet.c:35:9: warning: array subscript -1 is below array bounds of 'float[4097]' [-Warray-bounds] code/client/snd_wavelet.c:35:9: warning: array subscript -1 is below array bounds of 'float[4097]' [-Warray-bounds] code/client/snd_wavelet.c:35:9: warning: array subscript -1 is below array bounds of 'float[4097]' [-Warray-bounds] code/client/snd_wavelet.c:35:9: warning: array subscript -1 is below array bounds of 'float[4097]' [-Warray-bounds] code/client/snd_wavelet.c:35:9: warning: array subscript -1 is below array bounds of 'float[4097]' [-Warray-bounds] code/client/snd_wavelet.c:35:9: warning: array subscript -1 is below array bounds of 'float[4097]' [-Warray-bounds] CC code/client/snd_codec_wav.c code/client/snd_codec.c: In function 'S_CodecLoad': code/client/snd_codec.c:151:2: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation] strncpy(fn, filename, sizeof(fn)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/client/snd_codec.c: In function 'S_CodecOpenStream': code/client/snd_codec.c:174:2: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation] strncpy(fn, filename, sizeof(fn)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC code/client/snd_codec_ogg.c code/client/snd_codec_wav.c: In function 'S_ReadRIFFHeader': code/client/snd_codec_wav.c:134:6: warning: variable 'wav_format' set but not used [-Wunused-but-set-variable] int wav_format; ^~~~~~~~~~ In file included from code/client/snd_codec_ogg.c:34: /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 = { ^~~~~~~~~~~~~~~~~~~~ CC code/client/qal.c CC code/client/snd_openal.c CC code/client/cl_curl.c CC code/server/sv_bot.c CC code/server/sv_ccmds.c code/client/snd_wavelet.c: In function 'decodeWavelet': code/client/snd_wavelet.c:35:9: warning: array subscript -1 is below array bounds of 'float[4097]' [-Warray-bounds] float *a=b-1; // numerical recipies so a[1] = b[0] ^ code/client/snd_wavelet.c:35:9: warning: array subscript -1 is below array bounds of 'float[4097]' [-Warray-bounds] code/client/snd_wavelet.c:35:9: warning: array subscript -1 is below array bounds of 'float[4097]' [-Warray-bounds] code/client/snd_wavelet.c:35:9: warning: array subscript -1 is below array bounds of 'float[4097]' [-Warray-bounds] code/client/snd_wavelet.c:35:9: warning: array subscript -1 is below array bounds of 'float[4097]' [-Warray-bounds] code/client/snd_wavelet.c:35:9: warning: array subscript -1 is below array bounds of 'float[4097]' [-Warray-bounds] code/client/snd_wavelet.c:35:9: warning: array subscript -1 is below array bounds of 'float[4097]' [-Warray-bounds] code/client/snd_wavelet.c:35:9: warning: array subscript -1 is below array bounds of 'float[4097]' [-Warray-bounds] CC code/server/sv_client.c code/server/sv_client.c: In function 'SV_IsBanned': code/server/sv_client.c:240:13: warning: variable 'addrlen' set but not used [-Wunused-but-set-variable] int index, addrlen, curbyte, netmask, cmpmask; ^~~~~~~ CC code/server/sv_game.c CC code/server/sv_init.c code/server/sv_game.c: In function 'SV_inPVSIgnorePortals': code/server/sv_game.c:188:14: warning: variable 'area2' set but not used [-Wunused-but-set-variable] int area1, area2; ^~~~~ code/server/sv_game.c:188:7: warning: variable 'area1' set but not used [-Wunused-but-set-variable] int area1, area2; ^~~~~ code/server/sv_init.c: In function 'SV_SetConfigstring': code/server/sv_init.c:107:7: warning: variable 'len' set but not used [-Wunused-but-set-variable] int len, i; ^~~ CC code/server/sv_main.c CC code/server/sv_net_chan.c code/server/sv_net_chan.c: In function 'SV_Netchan_Encode': code/server/sv_net_chan.c:37:7: warning: variable 'reliableAcknowledge' set but not used [-Wunused-but-set-variable] long reliableAcknowledge, i, index; ^~~~~~~~~~~~~~~~~~~ CC code/server/sv_snapshot.c CC code/server/sv_world.c CC code/qcommon/q_math.c code/server/sv_snapshot.c: In function 'SV_AddEntitiesVisibleFromPoint': code/server/sv_snapshot.c:301:7: warning: variable 'c_fullsend' set but not used [-Wunused-but-set-variable] int c_fullsend; ^~~~~~~~~~ code/server/sv_world.c: In function 'SV_AreaEntities_r': code/server/sv_world.c:385:8: warning: variable 'count' set but not used [-Wunused-but-set-variable] int count; ^~~~~ code/server/sv_world.c: In function 'SV_PointContents': code/server/sv_world.c:663:10: warning: variable 'angles' set but not used [-Wunused-but-set-variable] float *angles; ^~~~~~ code/qcommon/q_math.c: In function 'MatrixFromQuat': code/qcommon/q_math.c:2163:22: warning: variable 'w2' set but not used [-Wunused-but-set-variable] float x2, y2, z2, w2; ^~ CC code/qcommon/q_shared.c CC code/qcommon/unzip.c CC code/qcommon/puff.c CC code/qcommon/vm.c code/qcommon/unzip.c: In function 'unzClose': code/qcommon/unzip.c:1415:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (s->pfile_in_zip_read!=NULL) ^~ code/qcommon/unzip.c:1418:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' fclose(s->file); ^~~~~~ code/qcommon/unzip.c: In function 'unzLocateFile': code/qcommon/unzip.c:1740:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (strlen(szFileName)>=UNZ_MAXFILENAMEINZIP) ^~ code/qcommon/unzip.c:1743:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' s=(unz_s*)file; ^ code/qcommon/unzip.c: In function 'unzlocal_CheckCurrentFileCoherencyHeader': code/qcommon/unzip.c:1815:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if ((err==UNZ_OK) && (s->cur_file_info.compression_method!=0) && ^~ code/qcommon/unzip.c:1819:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (unzlocal_getLong(s->file,&uData) != UNZ_OK) /* date/time */ ^~ code/qcommon/unzip.c: In function 'unzOpenCurrentFile': code/qcommon/unzip.c:1879:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (s->pfile_in_zip_read != NULL) ^~ code/qcommon/unzip.c:1882:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (unzlocal_CheckCurrentFileCoherencyHeader(s,&iSizeVar, ^~ code/qcommon/unzip.c: In function 'unzReadCurrentFile': code/qcommon/unzip.c:2045:16: warning: variable 'bufBefore' set but not used [-Wunused-but-set-variable] const Byte *bufBefore; ^~~~~~~~~ code/qcommon/vm.c: In function 'VM_LoadSymbols': code/qcommon/vm.c:220:7: warning: variable 'len' set but not used [-Wunused-but-set-variable] int len; ^~~ code/qcommon/vm.c: In function 'VM_LoadQVM': code/qcommon/vm.c:363:10: warning: variable 'length' set but not used [-Wunused-but-set-variable] int length; ^~~~~~ CC code/qcommon/vm_interpreted.c BOT_CC code/botlib/be_aas_bspq3.c BOT_CC code/botlib/be_aas_cluster.c BOT_CC code/botlib/be_aas_debug.c BOT_CC code/botlib/be_aas_entity.c BOT_CC code/botlib/be_aas_file.c BOT_CC code/botlib/be_aas_main.c BOT_CC code/botlib/be_aas_move.c code/botlib/be_aas_move.c: In function 'AAS_AirControl': code/botlib/be_aas_move.c:392:9: warning: variable 'dir' set but not used [-Wunused-but-set-variable] vec3_t dir; ^~~ BOT_CC code/botlib/be_aas_optimize.c code/botlib/be_aas_move.c: In function 'AAS_ClientMovementPrediction': code/botlib/be_aas_move.c:521:35: warning: variable 'ax' set but not used [-Wunused-but-set-variable] int n, i, j, pc, step, swimming, ax, crouch, event, jump_frame, areanum; ^~ BOT_CC code/botlib/be_aas_reach.c BOT_CC code/botlib/be_aas_route.c code/botlib/be_aas_reach.c: In function 'AAS_BestReachableFromJumpPadArea': code/botlib/be_aas_reach.c:292:6: warning: variable 'area2num' set but not used [-Wunused-but-set-variable] int area2num, ent, bot_visualizejumppads, bestareanum; ^~~~~~~~ code/botlib/be_aas_reach.c: In function 'AAS_Reachability_Swim': code/botlib/be_aas_reach.c:840:22: warning: variable 'areasettings' set but not used [-Wunused-but-set-variable] aas_areasettings_t *areasettings; ^~~~~~~~~~~~ code/botlib/be_aas_reach.c: In function 'AAS_Reachability_Step_Barrier_WaterJump_WalkOffLedge': code/botlib/be_aas_reach.c:1076:61: warning: variable 'water_bestface1' set but not used [-Wunused-but-set-variable] aas_face_t *groundface1, *groundface2, *ground_bestface1, *water_bestface1; ^~~~~~~~~~~~~~~ code/botlib/be_aas_reach.c:1076:42: warning: variable 'ground_bestface1' set but not used [-Wunused-but-set-variable] aas_face_t *groundface1, *groundface2, *ground_bestface1, *water_bestface1; ^~~~~~~~~~~~~~~~ code/botlib/be_aas_reach.c:1065:34: warning: variable 'invgravitydot' set but not used [-Wunused-but-set-variable] float dist, dist1, dist2, diff, invgravitydot, ortdot; ^~~~~~~~~~~~~ code/botlib/be_aas_route.c: In function 'AAS_CalculateAreaTravelTimes': code/botlib/be_aas_route.c:509:6: warning: variable 'starttime' set but not used [-Wunused-but-set-variable] int starttime; ^~~~~~~~~ code/botlib/be_aas_route.c: In function 'AAS_CreateAllRoutingCache': code/botlib/be_aas_route.c:890:12: warning: variable 't' set but not used [-Wunused-but-set-variable] int i, j, t; ^ code/botlib/be_aas_reach.c: In function 'AAS_Reachability_JumpPad': code/botlib/be_aas_reach.c:3495:21: warning: variable 'hordist' set but not used [-Wunused-but-set-variable] float speed, zvel, hordist; ^~~~~~~ code/botlib/be_aas_reach.c: In function 'AAS_Reachability_WeaponJump': code/botlib/be_aas_reach.c:4000:21: warning: variable 'hordist' set but not used [-Wunused-but-set-variable] float speed, zvel, hordist; ^~~~~~~ BOT_CC code/botlib/be_aas_routealt.c BOT_CC code/botlib/be_aas_sample.c BOT_CC code/botlib/be_ai_char.c BOT_CC code/botlib/be_ai_chat.c BOT_CC code/botlib/be_ai_gen.c code/botlib/be_ai_gen.c: In function 'GeneticSelection': code/botlib/be_ai_gen.c:54:13: warning: variable 'select' set but not used [-Wunused-but-set-variable] float sum, select; ^~~~~~ code/botlib/be_ai_chat.c: In function 'BotFreeChatState': code/botlib/be_ai_chat.c:2942:19: warning: variable 'cs' set but not used [-Wunused-but-set-variable] bot_chatstate_t *cs; ^~ BOT_CC code/botlib/be_ai_goal.c code/botlib/be_ai_goal.c: In function 'BotSaveGoalFuzzyLogic': code/botlib/be_ai_goal.c:241:19: warning: variable 'gs' set but not used [-Wunused-but-set-variable] bot_goalstate_t *gs; ^~ BOT_CC code/botlib/be_ai_move.c code/botlib/be_ai_move.c: In function 'BotFinishTravel_BarrierJump': code/botlib/be_ai_move.c:1483:8: warning: variable 'dist' set but not used [-Wunused-but-set-variable] float dist; ^~~~ code/botlib/be_ai_move.c: In function 'BotFinishTravel_WaterJump': code/botlib/be_ai_move.c:1570:8: warning: variable 'dist' set but not used [-Wunused-but-set-variable] float dist; ^~~~ code/botlib/be_ai_move.c: In function 'BotTravel_JumpPad': code/botlib/be_ai_move.c:2870:8: warning: variable 'dist' set but not used [-Wunused-but-set-variable] float dist, speed; ^~~~ code/botlib/be_ai_goal.c: In function 'LoadItemConfig': code/botlib/be_ai_goal.c:284:2: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation] strncpy( path, filename, MAX_PATH ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/botlib/be_ai_goal.c:317:4: warning: 'strncpy' output may be truncated copying 31 bytes from a string of length 1023 [-Wstringop-truncation] strncpy(ii->classname, token.string, sizeof(ii->classname)-1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/botlib/be_ai_chat.c: In function 'BotQueueConsoleMessage': code/botlib/be_ai_chat.c:345:2: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation] strncpy(m->message, message, MAX_MESSAGE_SIZE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BOT_CC code/botlib/be_ai_weap.c In function 'Q_strncpyz', inlined from 'Q_strreplace' at code/qcommon/q_shared.c:1160:3: code/qcommon/q_shared.c:1015:2: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(dest, src, destsize - 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/qcommon/q_shared.c: In function 'Q_strreplace': code/qcommon/q_shared.c:1147:9: note: length computed here lend = strlen(dest); ^~~~~~~~~~~~ BOT_CC code/botlib/be_ai_weight.c code/botlib/be_ai_weap.c: In function 'LoadWeaponConfig': code/botlib/be_ai_weap.c:222:2: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation] strncpy(path, filename, MAX_PATH); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BOT_CC code/botlib/be_ea.c BOT_CC code/botlib/be_interface.c BOT_CC code/botlib/l_crc.c BOT_CC code/botlib/l_libvar.c In function 'BotGoalName.constprop', inlined from 'BotDumpAvoidGoals' at code/botlib/be_ai_goal.c:730:4: code/botlib/be_ai_goal.c:689:4: warning: 'strncpy' output may be truncated copying 31 bytes from a string of length 79 [-Wstringop-truncation] strncpy(name, itemconfig->iteminfo[li->iteminfo].name, size-1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BOT_CC code/botlib/l_log.c BOT_CC code/botlib/l_memory.c code/botlib/l_log.c: In function 'Log_Open': code/botlib/l_log.c:77:2: warning: 'strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] strncpy(logfile.filename, filename, MAX_LOGFILENAMESIZE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BOT_CC code/botlib/l_precomp.c BOT_CC code/botlib/l_script.c BOT_CC code/botlib/l_struct.c CC code/jpeg-6/jcapimin.c code/botlib/l_precomp.c: In function 'PC_EvaluateTokens': code/botlib/l_precomp.c:1701:6: warning: variable 'lastoperatortype' set but not used [-Wunused-but-set-variable] int lastoperatortype = 0; ^~~~~~~~~~~~~~~~ CC code/jpeg-6/jcapistd.c CC code/jpeg-6/jchuff.c CC code/jpeg-6/jcinit.c CC code/jpeg-6/jccoefct.c In function 'BotGoalName.constprop', inlined from 'BotDumpGoalStack' at code/botlib/be_ai_goal.c:1192:3: code/botlib/be_ai_goal.c:689:4: warning: 'strncpy' output may be truncated copying 31 bytes from a string of length 79 [-Wstringop-truncation] strncpy(name, itemconfig->iteminfo[li->iteminfo].name, size-1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/botlib/l_struct.c: In function 'ReadString': code/botlib/l_struct.c:224:2: warning: 'strncpy' output may be truncated copying 80 bytes from a string of length 1023 [-Wstringop-truncation] strncpy((char *) p, token.string, MAX_STRINGFIELD); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'ReadString.constprop', inlined from 'ReadStructure' at code/botlib/l_struct.c:294:11: code/botlib/l_struct.c:224:2: warning: 'strncpy' output may be truncated copying 80 bytes from a string of length 1023 [-Wstringop-truncation] strncpy((char *) p, token.string, MAX_STRINGFIELD); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC code/jpeg-6/jccolor.c CC code/jpeg-6/jfdctflt.c code/botlib/l_precomp.c: In function 'PC_Directive_include.part.3': code/botlib/l_precomp.c:1015:4: warning: 'strncat' output may be truncated copying 255 bytes from a string of length 1023 [-Wstringop-truncation] strncat(path, token.string, MAX_PATH - 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC code/jpeg-6/jcdctmgr.c CC code/jpeg-6/jcphuff.c CC code/jpeg-6/jcmainct.c CC code/jpeg-6/jcmarker.c CC code/jpeg-6/jcmaster.c code/botlib/l_precomp.c: In function 'PC_StringizeTokens': code/botlib/l_precomp.c:472:3: warning: 'strncat' output may be truncated copying between 0 and 1023 bytes from a string of length 1023 [-Wstringop-truncation] strncat(token->string, t->string, MAX_TOKEN - strlen(token->string) - 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC code/jpeg-6/jcomapi.c CC code/jpeg-6/jcparam.c CC code/jpeg-6/jcprepct.c CC code/jpeg-6/jcsample.c CC code/jpeg-6/jdapimin.c In function 'PC_StringizeTokens', inlined from 'PC_ExpandDefine' at code/botlib/l_precomp.c:849:11: code/botlib/l_precomp.c:472:3: warning: 'strncat' output may be truncated copying between 0 and 1023 bytes from a string of length 1023 [-Wstringop-truncation] strncat(token->string, t->string, MAX_TOKEN - strlen(token->string) - 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC code/jpeg-6/jdapistd.c CC code/jpeg-6/jdatasrc.c In file included from code/jpeg-6/jcparam.c:14: In function 'add_huff_table', inlined from 'std_huff_tables' at code/jpeg-6/jcparam.c:228:3, inlined from 'jpeg_set_defaults' at code/jpeg-6/jcparam.c:273:3: code/jpeg-6/jinclude.h:93:32: warning: 'memcpy' forming offset [13, 256] is out of the bounds [0, 12] of object 'val_dc_luminance' with type 'const UINT8[12]' {aka 'const unsigned char[12]'} [-Warray-bounds] #define MEMCOPY(dest,src,size) memcpy((void *)(dest), (const void *)(src), (size_t)(size)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/jpeg-6/jcparam.c:156:3: note: in expansion of macro 'MEMCOPY' MEMCOPY((*htblptr)->huffval, val, SIZEOF((*htblptr)->huffval)); ^~~~~~~ code/jpeg-6/jcparam.c: In function 'jpeg_set_defaults': code/jpeg-6/jcparam.c:170:22: note: 'val_dc_luminance' declared here static const UINT8 val_dc_luminance[] = ^~~~~~~~~~~~~~~~ In file included from code/jpeg-6/jcparam.c:14: In function 'add_huff_table', inlined from 'std_huff_tables' at code/jpeg-6/jcparam.c:230:3, inlined from 'jpeg_set_defaults' at code/jpeg-6/jcparam.c:273:3: code/jpeg-6/jinclude.h:93:32: warning: 'memcpy' forming offset [163, 256] is out of the bounds [0, 162] of object 'val_ac_luminance' with type 'const UINT8[162]' {aka 'const unsigned char[162]'} [-Warray-bounds] #define MEMCOPY(dest,src,size) memcpy((void *)(dest), (const void *)(src), (size_t)(size)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/jpeg-6/jcparam.c:156:3: note: in expansion of macro 'MEMCOPY' MEMCOPY((*htblptr)->huffval, val, SIZEOF((*htblptr)->huffval)); ^~~~~~~ code/jpeg-6/jcparam.c: In function 'jpeg_set_defaults': code/jpeg-6/jcparam.c:180:22: note: 'val_ac_luminance' declared here static const UINT8 val_ac_luminance[] = ^~~~~~~~~~~~~~~~ In file included from code/jpeg-6/jcparam.c:14: In function 'add_huff_table', inlined from 'std_huff_tables' at code/jpeg-6/jcparam.c:232:3, inlined from 'jpeg_set_defaults' at code/jpeg-6/jcparam.c:273:3: code/jpeg-6/jinclude.h:93:32: warning: 'memcpy' forming offset [13, 256] is out of the bounds [0, 12] of object 'val_dc_chrominance' with type 'const UINT8[12]' {aka 'const unsigned char[12]'} [-Warray-bounds] #define MEMCOPY(dest,src,size) memcpy((void *)(dest), (const void *)(src), (size_t)(size)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/jpeg-6/jcparam.c:156:3: note: in expansion of macro 'MEMCOPY' MEMCOPY((*htblptr)->huffval, val, SIZEOF((*htblptr)->huffval)); ^~~~~~~ code/jpeg-6/jcparam.c: In function 'jpeg_set_defaults': code/jpeg-6/jcparam.c:175:22: note: 'val_dc_chrominance' declared here static const UINT8 val_dc_chrominance[] = ^~~~~~~~~~~~~~~~~~ In file included from code/jpeg-6/jcparam.c:14: In function 'add_huff_table', inlined from 'std_huff_tables' at code/jpeg-6/jcparam.c:234:3, inlined from 'jpeg_set_defaults' at code/jpeg-6/jcparam.c:273:3: code/jpeg-6/jinclude.h:93:32: warning: 'memcpy' forming offset [163, 256] is out of the bounds [0, 162] of object 'val_ac_chrominance' with type 'const UINT8[162]' {aka 'const unsigned char[162]'} [-Warray-bounds] #define MEMCOPY(dest,src,size) memcpy((void *)(dest), (const void *)(src), (size_t)(size)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ code/jpeg-6/jcparam.c:156:3: note: in expansion of macro 'MEMCOPY' MEMCOPY((*htblptr)->huffval, val, SIZEOF((*htblptr)->huffval)); ^~~~~~~ CC code/jpeg-6/jdcoefct.c CC code/jpeg-6/jdcolor.c code/jpeg-6/jcparam.c: In function 'jpeg_set_defaults': code/jpeg-6/jcparam.c:205:22: note: 'val_ac_chrominance' declared here static const UINT8 val_ac_chrominance[] = ^~~~~~~~~~~~~~~~~~ CC code/jpeg-6/jddctmgr.c CC code/jpeg-6/jdhuff.c CC code/jpeg-6/jdinput.c CC code/jpeg-6/jdmainct.c CC code/jpeg-6/jdmarker.c CC code/jpeg-6/jdmaster.c CC code/jpeg-6/jdpostct.c CC code/jpeg-6/jdsample.c code/botlib/be_ai_chat.c: In function 'BotFindMatch': code/botlib/be_ai_chat.c:1461:2: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation] strncpy(match->string, str, MAX_MESSAGE_SIZE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC code/jpeg-6/jdtrans.c CC code/jpeg-6/jerror.c CC code/jpeg-6/jidctflt.c CC code/jpeg-6/jmemmgr.c CC code/jpeg-6/jmemnobs.c CC code/jpeg-6/jutils.c CC code/renderer/tr_animation.c CC code/renderer/tr_backend.c CC code/renderer/tr_bsp.c In file included from code/jpeg-6/jmemnobs.c:18: code/jpeg-6/../renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/jpeg-6/jerror.c:16: code/jpeg-6/../renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/jpeg-6/jmemnobs.c:18: code/jpeg-6/../renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/jpeg-6/../renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/jpeg-6/../renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/jpeg-6/../renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/jpeg-6/../renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/jpeg-6/../renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/jpeg-6/../renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/jpeg-6/../renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ In file included from code/jpeg-6/jerror.c:16: code/jpeg-6/../renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/jpeg-6/../renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/jpeg-6/../renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ code/jpeg-6/../renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/jpeg-6/../renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/jpeg-6/../renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/jpeg-6/../renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/jpeg-6/../renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/jpeg-6/../renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/jpeg-6/../renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/jpeg-6/../renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/jpeg-6/../renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ CC code/renderer/tr_cmds.c CC code/renderer/tr_curve.c In file included from code/renderer/tr_bsp.c:24: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_backend.c:24: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_bsp.c:24: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ In file included from code/renderer/tr_backend.c:24: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ code/renderer/tr_backend.c: In function 'RB_RenderDrawSurfaces': code/renderer/tr_backend.c:625:18: warning: variable 'oldSort' set but not used [-Wunused-but-set-variable] int oldSort; ^~~~~~~ In file included from code/renderer/tr_animation.c:24: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_animation.c:24: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ code/renderer/tr_backend.c: In function 'RB_RenderBloom': code/renderer/tr_backend.c:2125:3: warning: implicit declaration of function 'GL_SetVertexAttribs'; did you mean 'GL_SelectTexture'? [-Wimplicit-function-declaration] GL_SetVertexAttribs(); ^~~~~~~~~~~~~~~~~~~ GL_SelectTexture code/renderer/tr_bsp.c: In function 'R_LoadEntities': code/renderer/tr_bsp.c:2709:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if((numOmniLights + numProjLights + numDirectLights) < s_worldData.numDlights); ^~ code/renderer/tr_bsp.c:2710:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' { ^ CC code/renderer/tr_fbo.c code/renderer/tr_bsp.c: At top level: code/renderer/tr_bsp.c:4101:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_PrecacheInteractions() ^~~~~~~~~~~~~~~~~~~~~~ In file included from code/renderer/tr_cmds.c:24: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_cmds.c:24: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ In file included from code/renderer/tr_curve.c:24: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_curve.c:24: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ CC code/renderer/tr_flares.c In file included from code/renderer/tr_fbo.c:24: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_fbo.c:24: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ code/botlib/be_ai_move.c: In function 'BotResetLastAvoidReach': code/botlib/be_ai_move.c:3512:26: warning: array subscript 1 is above array bounds of 'int[1]' [-Warray-bounds] if (ms->avoidreachtries[i] > 0) ms->avoidreachtries[latest]--; ~~~~~~~~~~~~~~~~~~~^~~ CC code/renderer/tr_font.c CC code/renderer/tr_image.c CC code/renderer/tr_image_png.c In file included from code/renderer/tr_font.c:71: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_font.c:71: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ code/renderer/tr_font.c:343:5: warning: function declaration isn't a prototype [-Wstrict-prototypes] int readInt() ^~~~~~~ code/renderer/tr_font.c:357:7: warning: function declaration isn't a prototype [-Wstrict-prototypes] float readFloat() ^~~~~~~~~ code/renderer/tr_font.c:596:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType() ^~~~~~~~~~~~~~ code/renderer/tr_font.c:608:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType() ^~~~~~~~~~~~~~ CC code/renderer/tr_image_jpg.c In file included from code/renderer/tr_image.c:24: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ CC code/renderer/tr_image_tga.c In file included from code/renderer/tr_flares.c:24: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_flares.c:24: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ code/renderer/tr_flares.c: In function 'RB_AddFlare': code/renderer/tr_flares.c:119:22: warning: variable 'oldest' set but not used [-Wunused-but-set-variable] flare_t *f, *oldest; ^~~~~~ code/botlib/be_ai_chat.c: In function 'BotLoadInitialChat': code/botlib/be_ai_chat.c:2120:8: warning: 'strncpy' output may be truncated copying 32 bytes from a string of length 1023 [-Wstringop-truncation] strncpy(chattype->name, token.string, MAX_CHATTYPE_NAME); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from code/renderer/tr_image_png.c:22: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_image.c:24: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ In file included from code/renderer/tr_image_png.c:22: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ code/renderer/tr_image_png.c: In function 'R_LoadPNG': code/renderer/tr_image_png.c:2275:27: warning: comparison of constant '2' with boolean expression is always false [-Wbool-compare] if(!ChunkHeaderLength == 2) ^~ code/renderer/tr_image_png.c:2275:27: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] code/renderer/tr_image_png.c:2275:8: note: add parentheses around left hand side expression to silence this warning if(!ChunkHeaderLength == 2) ^~~~~~~~~~~~~~~~~~ ( ) code/renderer/tr_image_png.c:2297:27: warning: comparison of constant '6' with boolean expression is always false [-Wbool-compare] if(!ChunkHeaderLength == 6) ^~ code/renderer/tr_image_png.c:2297:27: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] code/renderer/tr_image_png.c:2297:8: note: add parentheses around left hand side expression to silence this warning if(!ChunkHeaderLength == 6) ^~~~~~~~~~~~~~~~~~ ( ) code/renderer/tr_image.c: In function 'R_CreateFogImage': code/renderer/tr_image.c:2092:18: warning: variable 'g' set but not used [-Wunused-but-set-variable] float g; ^ In file included from code/renderer/tr_image_jpg.c:23: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_local.h:31, from code/renderer/tr_image.c:24: code/renderer/tr_image.c: In function 'R_ShutdownImages': code/renderer/qgl.h:238:24: warning: the address of 'glBindTexture' will always evaluate as 'true' [-Waddress] #define qglBindTexture glBindTexture ^~~~~~~~~~~~~ code/renderer/tr_image.c:2452:5: note: in expansion of macro 'qglBindTexture' if(qglBindTexture) ^~~~~~~~~~~~~~ In file included from code/renderer/tr_image_jpg.c:23: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ CC code/renderer/tr_init.c code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ In file included from code/renderer/tr_image_tga.c:23: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_image_tga.c:23: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ In file included from code/renderer/tr_init.c:25: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_init.c:25: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ code/renderer/tr_init.c: In function 'R_Init': code/renderer/tr_init.c:1245:45: warning: pointer targets in passing argument 2 of 'qglGenQueriesARB' differ in signedness [-Wpointer-sign] qglGenQueriesARB(MAX_OCCLUSION_QUERIES, tr.occlusionQueryObjects); ~~^~~~~~~~~~~~~~~~~~~~~~ code/renderer/tr_init.c:1245:45: note: expected 'GLuint *' {aka 'unsigned int *'} but argument is of type 'int *' code/renderer/tr_init.c: In function 'RE_Shutdown': code/renderer/tr_init.c:1287:49: warning: pointer targets in passing argument 2 of 'qglDeleteQueriesARB' differ in signedness [-Wpointer-sign] qglDeleteQueriesARB(MAX_OCCLUSION_QUERIES, tr.occlusionQueryObjects); ~~^~~~~~~~~~~~~~~~~~~~~~ code/renderer/tr_init.c:1287:49: note: expected 'const GLuint *' {aka 'const unsigned int *'} but argument is of type 'int *' CC code/renderer/tr_light.c CC code/renderer/tr_main.c CC code/renderer/tr_marks.c In file included from code/renderer/tr_light.c:25: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_main.c:24: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_light.c:25: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ In file included from code/renderer/tr_main.c:24: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ code/renderer/tr_light.c: In function 'R_SetupEntityLighting': code/renderer/tr_light.c:334:18: warning: variable 'lightOrigin' set but not used [-Wunused-but-set-variable] vec3_t lightOrigin; ^~~~~~~~~~~ CC code/renderer/tr_mesh.c code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ code/renderer/tr_main.c:1784:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_AddSlightInteractions() ^~~~~~~~~~~~~~~~~~~~~~~ code/renderer/tr_main.c:1893:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_AddDlightInteractions() ^~~~~~~~~~~~~~~~~~~~~~~ In file included from code/renderer/tr_marks.c:24: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_mesh.c:24: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_marks.c:24: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ In file included from code/renderer/tr_mesh.c:24: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ CC code/renderer/tr_model.c CC code/renderer/tr_noise.c In file included from code/renderer/tr_model.c:25: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_model.c:25: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ code/renderer/tr_model.c: In function 'RE_RegisterModel': code/renderer/tr_model.c:145:19: warning: variable 'len' set but not used [-Wunused-but-set-variable] int len; ^~~ code/renderer/tr_model.c:91:18: warning: variable 'bufferLen' set but not used [-Wunused-but-set-variable] int bufferLen; ^~~~~~~~~ CC code/renderer/tr_scene.c In file included from code/renderer/tr_noise.c:24: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_noise.c:24: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ In file included from code/renderer/tr_scene.c:24: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_scene.c:24: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ CC code/renderer/tr_shade.c In file included from code/renderer/tr_shade.c:24: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_shade.c:24: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ code/renderer/tr_shade.c: In function 'RB_ShowProgramUniforms': code/renderer/tr_shade.c:184:72: warning: pointer targets in passing argument 6 of 'qglGetActiveUniformARB' differ in signedness [-Wpointer-sign] qglGetActiveUniformARB(program, i, sizeof(uniformName), NULL, &size, &type, uniformName); ^~~~~ code/renderer/tr_shade.c:184:72: note: expected 'GLenum *' {aka 'unsigned int *'} but argument is of type 'int *' code/renderer/tr_shade.c: At top level: code/renderer/tr_shade.c:1020:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] void GL_SetVertexAttribs() ^~~~~~~~~~~~~~~~~~~ code/renderer/tr_shade.c:1110:13: warning: function declaration isn't a prototype [-Wstrict-prototypes] static void R_DrawElements() ^~~~~~~~~~~~~~ code/renderer/tr_shade.c:1192:13: warning: function declaration isn't a prototype [-Wstrict-prototypes] static void R_BindLightMap() ^~~~~~~~~~~~~~ code/renderer/tr_shade.c:1219:13: warning: function declaration isn't a prototype [-Wstrict-prototypes] static void R_BindDeluxeMap() ^~~~~~~~~~~~~~~ code/renderer/tr_shade.c:1248:13: warning: function declaration isn't a prototype [-Wstrict-prototypes] static void DrawTris() ^~~~~~~~ code/renderer/tr_shade.c:1319:13: warning: function declaration isn't a prototype [-Wstrict-prototypes] static void DrawTangentSpaces() ^~~~~~~~~~~~~~~~~ code/renderer/tr_shade.c:1361:13: warning: function declaration isn't a prototype [-Wstrict-prototypes] static void DrawNormals() ^~~~~~~~~~~ code/renderer/tr_shade.c:2578:13: warning: function declaration isn't a prototype [-Wstrict-prototypes] static void Render_fog() ^~~~~~~~~~ code/renderer/tr_shade.c:3380:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting() ^~~~~~~~~~~~~~~~~~~~~~~~~~ code/renderer/tr_shade.c:3624:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric() ^~~~~~~~~~~~~~~~~~~~~~~~~ code/renderer/tr_shade.c:4070:13: warning: function declaration isn't a prototype [-Wstrict-prototypes] static void Render_shadowVolume() ^~~~~~~~~~~~~~~~~~~ CC code/renderer/tr_shade_calc.c CC code/renderer/tr_shader.c CC code/renderer/tr_sky.c In file included from code/renderer/tr_shade_calc.c:24: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_shade_calc.c:24: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ CC code/renderer/tr_surface.c code/renderer/tr_shade_calc.c: In function 'RB_CalcColorFromOneMinusEntity': code/renderer/tr_shade_calc.c:1088:18: warning: variable 'c' set but not used [-Wunused-but-set-variable] int c; ^ In file included from code/renderer/tr_shader.c:24: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_shader.c:24: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ In file included from code/renderer/tr_sky.c:24: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ In file included from code/renderer/tr_sky.c:24: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ CC code/renderer/tr_world.c code/renderer/tr_sky.c:262:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_ClipSkyPolygons() ^~~~~~~~~~~~~~~~~~~~ code/renderer/tr_sky.c:593:13: warning: function declaration isn't a prototype [-Wstrict-prototypes] static void BuildCloudData() ^~~~~~~~~~~~~~ code/renderer/tr_sky.c: In function 'BuildCloudData': code/renderer/tr_sky.c:596:18: warning: variable 'shader' set but not used [-Wunused-but-set-variable] shader_t *shader; ^~~~~~ code/renderer/tr_shader.c: In function 'ParseStage': code/renderer/tr_shader.c:2443:21: warning: comparison between 'alphaGen_t' {aka 'enum '} and 'enum ' [-Wenum-compare] if(stage->alphaGen == CGEN_IDENTITY) ^~ In file included from code/renderer/tr_surface.c:24: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ CC code/sdl/sdl_gamma.c In file included from code/renderer/tr_surface.c:24: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ code/renderer/tr_surface.c:46:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_EndBegin() ^~~~~~~~~~~~~ code/renderer/tr_surface.c: In function 'Tess_SurfaceFace': code/renderer/tr_surface.c:311:47: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] if(d > 0 && !tess.surfaceShader->cullType == CT_BACK_SIDED) ^~ code/renderer/tr_surface.c:311:17: note: add parentheses around left hand side expression to silence this warning if(d > 0 && !tess.surfaceShader->cullType == CT_BACK_SIDED) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( ) code/renderer/tr_surface.c: In function 'Tess_SurfaceGrid': code/renderer/tr_surface.c:581:47: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] if(d > 0 && !tess.surfaceShader->cullType == CT_BACK_SIDED) ^~ code/renderer/tr_surface.c:581:17: note: add parentheses around left hand side expression to silence this warning if(d > 0 && !tess.surfaceShader->cullType == CT_BACK_SIDED) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( ) code/renderer/tr_surface.c: In function 'Tess_SurfaceTriangles': code/renderer/tr_surface.c:851:47: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] if(d > 0 && !tess.surfaceShader->cullType == CT_BACK_SIDED) ^~ code/renderer/tr_surface.c:851:17: note: add parentheses around left hand side expression to silence this warning if(d > 0 && !tess.surfaceShader->cullType == CT_BACK_SIDED) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( ) code/renderer/tr_surface.c: In function 'Tess_SurfaceMDX': code/renderer/tr_surface.c:1546:46: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] if(d > 0 && !tess.surfaceShader->cullType == CT_BACK_SIDED) ^~ code/renderer/tr_surface.c:1546:16: note: add parentheses around left hand side expression to silence this warning if(d > 0 && !tess.surfaceShader->cullType == CT_BACK_SIDED) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( ) code/renderer/tr_surface.c:1704:23: warning: pointer targets in assignment from 'glIndex_t *' {aka 'unsigned int *'} to 'int *' differ in signedness [-Wpointer-sign] for(i = 0, indices = tess.indexes + tess.numIndexes; i < numIndexes; i += 3, indices += 3) ^ code/renderer/tr_surface.c:1448:18: warning: variable 'model' set but not used [-Wunused-but-set-variable] mdxModel_t *model; ^~~~~ code/renderer/tr_surface.c: In function 'Tess_SurfaceMD5': code/renderer/tr_surface.c:1846:46: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] if(d > 0 && !tess.surfaceShader->cullType == CT_BACK_SIDED) ^~ code/renderer/tr_surface.c:1846:16: note: add parentheses around left hand side expression to silence this warning if(d > 0 && !tess.surfaceShader->cullType == CT_BACK_SIDED) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( ) code/renderer/tr_surface.c:2012:23: warning: pointer targets in assignment from 'glIndex_t *' {aka 'unsigned int *'} to 'int *' differ in signedness [-Wpointer-sign] for(i = 0, indices = tess.indexes + tess.numIndexes; i < numIndexes; i += 3, indices += 3) ^ CC code/sdl/sdl_input.c CC code/sdl/sdl_snd.c In file included from code/sdl/sdl_input.c:33: code/sdl/../renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/sdl/sdl_input.c:33: code/sdl/../renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/sdl/../renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/sdl/../renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/sdl/../renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/sdl/../renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/sdl/../renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/sdl/../renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/sdl/../renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/sdl/../renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/sdl/../renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ In file included from code/renderer/tr_world.c:24: code/renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/renderer/tr_world.c:24: code/renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ code/renderer/tr_world.c:961:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs() ^~~~~~~~~~~~~~ In file included from code/sdl/sdl_gamma.c:29: code/sdl/../renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/sdl/sdl_gamma.c:29: code/sdl/../renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/sdl/../renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/sdl/../renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/sdl/../renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/sdl/../renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/sdl/../renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/sdl/../renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/sdl/../renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/sdl/../renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/sdl/../renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ CC code/sys/con_passive.c CC code/sys/con_log.c CC code/sys/sys_main.c CC code/sys/sys_unix.c code/sys/sys_unix.c: In function 'Sys_ListFiles': code/sys/sys_unix.c:323:16: warning: variable 'extLen' set but not used [-Wunused-but-set-variable] int extLen; ^~~~~~ CC code/sdl/sdl_glimp.c SMP_CC code/sdl/sdl_glimp.c CGAME_CC code/cgame/cg_main.c In file included from code/sdl/sdl_glimp.c:47: code/sdl/../renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/sdl/sdl_glimp.c:47: code/sdl/../renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/sdl/../renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/sdl/../renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/sdl/../renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/sdl/../renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/sdl/../renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/sdl/../renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/sdl/../renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/sdl/../renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/sdl/../renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ In file included from code/sdl/../renderer/tr_local.h:31, from code/sdl/sdl_glimp.c:47: code/sdl/sdl_glimp.c: In function 'GLimp_InitExtensions': code/sdl/../renderer/qgl.h:350:22: warning: pointer targets in passing argument 2 of 'Q_strncpyz' differ in signedness [-Wpointer-sign] #define qglGetString glGetString code/sdl/sdl_glimp.c:796:48: note: in expansion of macro 'qglGetString' Q_strncpyz(glConfig2.shadingLanguageVersion, qglGetString(GL_SHADING_LANGUAGE_VERSION_ARB), sizeof(glConfig2.shadingLanguageVersion)); ^~~~~~~~~~~~ In file included from code/sdl/../renderer/tr_local.h:27, from code/sdl/sdl_glimp.c:47: code/sdl/../renderer/../qcommon/q_shared.h:881:17: note: expected 'const char *' but argument is of type 'const GLubyte *' {aka 'const unsigned char *'} void Q_strncpyz(char *dest, const char *src, int destsize); ^~~~~~~~~~ In file included from code/sdl/sdl_glimp.c:47: code/sdl/../renderer/tr_local.h:770:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*optimalStageIteratorFunc) (); ^~~~ In file included from code/sdl/sdl_glimp.c:47: code/sdl/../renderer/tr_local.h:2176:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DeleteSurfaceVBOs(); ^~~~ code/sdl/../renderer/tr_local.h:2286:2: warning: function declaration isn't a prototype [-Wstrict-prototypes] void (*currentStageIteratorFunc) (); ^~~~ code/sdl/../renderer/tr_local.h:2302:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_InitGPUShaders(); ^~~~ code/sdl/../renderer/tr_local.h:2303:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void RB_ShutdownGPUShaders(); ^~~~ code/sdl/../renderer/tr_local.h:2305:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorLighting(); ^~~~ code/sdl/../renderer/tr_local.h:2306:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorGeneric(); ^~~~ code/sdl/../renderer/tr_local.h:2307:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void Tess_StageIteratorSky(); ^~~~ code/sdl/../renderer/tr_local.h:2330:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_ShutdownVBOs(); ^~~~ code/sdl/../renderer/tr_local.h:2689:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_InitFreeType(); ^~~~ code/sdl/../renderer/tr_local.h:2690:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] void R_DoneFreeType(); ^~~~ In file included from code/sdl/../renderer/tr_local.h:31, from code/sdl/sdl_glimp.c:47: code/sdl/sdl_glimp.c: In function 'GLimp_InitExtensions': code/sdl/../renderer/qgl.h:350:22: warning: pointer targets in passing argument 2 of 'Q_strncpyz' differ in signedness [-Wpointer-sign] #define qglGetString glGetString code/sdl/sdl_glimp.c:796:48: note: in expansion of macro 'qglGetString' Q_strncpyz(glConfig2.shadingLanguageVersion, qglGetString(GL_SHADING_LANGUAGE_VERSION_ARB), sizeof(glConfig2.shadingLanguageVersion)); ^~~~~~~~~~~~ In file included from code/sdl/../renderer/tr_local.h:27, from code/sdl/sdl_glimp.c:47: code/sdl/../renderer/../qcommon/q_shared.h:881:17: note: expected 'const char *' but argument is of type 'const GLubyte *' {aka 'const unsigned char *'} void Q_strncpyz(char *dest, const char *src, int destsize); ^~~~~~~~~~ CGAME_CC code/game/bg_misc.c CGAME_CC code/game/bg_pmove.c code/renderer/tr_shade_calc.c:1096:13: warning: array subscript 3 is above array bounds of 'unsigned char[3]' [-Warray-bounds] invModulate[3] = 255 - backEnd.currentEntity->e.shaderRGBA[3]; // this trashes alpha, but the AGEN block fixes it ~~~~~~~~~~~^~~ CGAME_CC code/game/bg_slidemove.c code/game/bg_slidemove.c: In function 'PM_StepSlideMove': code/game/bg_slidemove.c:235:18: warning: variable 'down_v' set but not used [-Wunused-but-set-variable] vec3_t down_o, down_v; ^~~~~~ code/game/bg_slidemove.c:235:10: warning: variable 'down_o' set but not used [-Wunused-but-set-variable] vec3_t down_o, down_v; ^~~~~~ CGAME_CC code/game/bg_lib.c CGAME_CC code/cgame/cg_consolecmds.c CGAME_CC code/cgame/cg_draw.c CGAME_CC code/cgame/cg_drawtools.c code/cgame/cg_draw.c: In function 'CG_DrawWarmup': code/cgame/cg_draw.c:2364:8: warning: variable 'scale' set but not used [-Wunused-but-set-variable] float scale; ^~~~~ CGAME_CC code/cgame/cg_effects.c CGAME_CC code/cgame/cg_ents.c CGAME_CC code/cgame/cg_event.c code/cgame/cg_ents.c: In function 'CG_AdjustPositionForMover': code/cgame/cg_ents.c:668:28: warning: variable 'deltaAngles' set but not used [-Wunused-but-set-variable] vec3_t oldAngles, angles, deltaAngles; ^~~~~~~~~~~ code/cgame/cg_event.c: In function 'CG_EntityEvent': code/cgame/cg_event.c:602:19: warning: variable 'smoke' set but not used [-Wunused-but-set-variable] localEntity_t *smoke; ^~~~~ CGAME_CC code/cgame/cg_info.c CGAME_CC code/cgame/cg_localents.c CGAME_CC code/cgame/cg_marks.c code/cgame/cg_marks.c: In function 'CG_AddParticles': code/cgame/cg_marks.c:1093:9: warning: variable 'type' set but not used [-Wunused-but-set-variable] int type; ^~~~ code/cgame/cg_marks.c:1091:9: warning: variable 'color' set but not used [-Wunused-but-set-variable] int color; ^~~~~ CGAME_CC code/cgame/cg_players.c CGAME_CC code/cgame/cg_playerstate.c code/cgame/cg_playerstate.c: In function 'CG_CheckLocalSounds': code/cgame/cg_playerstate.c:298:27: warning: variable 'armor' set but not used [-Wunused-but-set-variable] int highScore, health, armor, reward; ^~~~~ code/cgame/cg_playerstate.c:298:19: warning: variable 'health' set but not used [-Wunused-but-set-variable] int highScore, health, armor, reward; ^~~~~~ CGAME_CC code/cgame/cg_predict.c CGAME_CC code/cgame/cg_scoreboard.c CGAME_CC code/cgame/cg_servercmds.c code/cgame/cg_servercmds.c:47:18: warning: 'numValidOrders' defined but not used [-Wunused-const-variable=] static const int numValidOrders = sizeof(validOrders) / sizeof(orderTask_t); ^~~~~~~~~~~~~~ CGAME_CC code/cgame/cg_snapshot.c CGAME_CC code/cgame/cg_view.c CGAME_CC code/cgame/cg_weapons.c SHLIB_CC code/qcommon/q_math.c code/cgame/cg_weapons.c: In function 'CG_RailTrail': code/cgame/cg_weapons.c:216:32: warning: variable 'next_move' set but not used [-Wunused-but-set-variable] vec3_t axis[36], move, move2, next_move, vec, temp; ^~~~~~~~~ code/cgame/cg_weapons.c: In function 'CG_PlasmaTrail': code/cgame/cg_weapons.c:468:9: warning: variable 't' set but not used [-Wunused-but-set-variable] int t, startTime, step; ^ code/qcommon/q_math.c: In function 'MatrixFromQuat': code/qcommon/q_math.c:2163:22: warning: variable 'w2' set but not used [-Wunused-but-set-variable] float x2, y2, z2, w2; ^~ SHLIB_CC code/qcommon/q_shared.c CGAME_CC code/cgame/cg_syscalls.c GAME_CC code/game/g_main.c GAME_CC code/game/ai_chat.c GAME_CC code/game/ai_cmd.c GAME_CC code/game/ai_dmnet.c code/game/ai_chat.c: In function 'BotChatTime': code/game/ai_chat.c:962:6: warning: variable 'cpm' set but not used [-Wunused-but-set-variable] int cpm; ^~~ code/game/g_main.c: In function 'G_RunFrame': code/game/g_main.c:1730:12: warning: variable 'end' set but not used [-Wunused-but-set-variable] int start, end; ^~~ code/game/g_main.c:1730:5: warning: variable 'start' set but not used [-Wunused-but-set-variable] int start, end; ^~~~~ code/game/g_main.c:1729:8: warning: variable 'msec' set but not used [-Wunused-but-set-variable] int msec; ^~~~ GAME_CC code/game/ai_dmq3.c code/game/g_main.c: In function 'CalculateRanks': code/game/g_main.c:769:33: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations] level.numteamVotingClients[i] = 0; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ code/game/g_main.c:768:2: note: within this loop for ( i = 0; i < TEAM_NUM_TEAMS; i++ ) { ^~~ code/game/ai_dmq3.c: In function 'BotAIBlocked': code/game/ai_dmq3.c:4431:35: warning: variable 'maxs' set but not used [-Wunused-but-set-variable] vec3_t hordir, start, end, mins, maxs, sideward, angles, up = {0, 0, 1}; ^~~~ code/game/ai_dmq3.c:4431:29: warning: variable 'mins' set but not used [-Wunused-but-set-variable] vec3_t hordir, start, end, mins, maxs, sideward, angles, up = {0, 0, 1}; ^~~~ code/game/ai_dmq3.c:4431:24: warning: variable 'end' set but not used [-Wunused-but-set-variable] vec3_t hordir, start, end, mins, maxs, sideward, angles, up = {0, 0, 1}; ^~~ GAME_CC code/game/ai_main.c GAME_CC code/game/ai_team.c code/game/g_main.c:769:29: warning: array subscript 2 is above array bounds of 'int[2]' [-Warray-bounds] level.numteamVotingClients[i] = 0; ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ code/game/g_main.c:769:29: warning: array subscript 3 is above array bounds of 'int[2]' [-Warray-bounds] GAME_CC code/game/ai_vcmd.c code/renderer/tr_bsp.c: In function 'RE_LoadWorldMap': code/renderer/tr_bsp.c:232:23: warning: '*((void *)&out+8)' may be used uninitialized in this function [-Wmaybe-uninitialized] float out[3]; ^~~ code/renderer/tr_bsp.c:232:23: warning: '*((void *)&out+4)' may be used uninitialized in this function [-Wmaybe-uninitialized] code/renderer/tr_bsp.c:232:23: warning: 'out' may be used uninitialized in this function [-Wmaybe-uninitialized] code/game/ai_vcmd.c: In function 'BotVoiceChatCommand': code/game/ai_vcmd.c:516:31: warning: variable 'color' set but not used [-Wunused-but-set-variable] int i, voiceOnly, clientNum, color; ^~~~~ code/game/ai_vcmd.c:516:9: warning: variable 'voiceOnly' set but not used [-Wunused-but-set-variable] int i, voiceOnly, clientNum, color; ^~~~~~~~~ GAME_CC code/game/bg_misc.c GAME_CC code/game/bg_pmove.c GAME_CC code/game/bg_slidemove.c code/game/bg_slidemove.c: In function 'PM_StepSlideMove': code/game/bg_slidemove.c:235:18: warning: variable 'down_v' set but not used [-Wunused-but-set-variable] vec3_t down_o, down_v; ^~~~~~ code/game/bg_slidemove.c:235:10: warning: variable 'down_o' set but not used [-Wunused-but-set-variable] vec3_t down_o, down_v; ^~~~~~ GAME_CC code/game/bg_lib.c GAME_CC code/game/g_active.c GAME_CC code/game/g_arenas.c GAME_CC code/game/g_bot.c code/game/g_active.c: In function 'ClientEvents': code/game/g_active.c:542:9: warning: variable 'dir' set but not used [-Wunused-but-set-variable] vec3_t dir; ^~~ code/game/g_active.c: In function 'ClientEndFrame': code/game/g_active.c:1109:22: warning: variable 'pers' set but not used [-Wunused-but-set-variable] clientPersistant_t *pers; ^~~~ GAME_CC code/game/g_client.c GAME_CC code/game/g_cmds.c GAME_CC code/game/g_combat.c code/game/g_combat.c: In function 'LookAtKiller': code/game/g_combat.c:219:10: warning: variable 'angles' set but not used [-Wunused-but-set-variable] vec3_t angles; ^~~~~~ code/game/g_combat.c: In function 'G_Damage': code/game/g_combat.c:825:8: warning: variable 'save' set but not used [-Wunused-but-set-variable] int save; ^~~~ GAME_CC code/game/g_items.c GAME_CC code/game/g_mem.c GAME_CC code/game/g_misc.c GAME_CC code/game/g_missile.c GAME_CC code/game/g_mover.c GAME_CC code/game/g_session.c GAME_CC code/game/g_spawn.c GAME_CC code/game/g_svcmds.c GAME_CC code/game/g_target.c GAME_CC code/game/g_team.c GAME_CC code/game/g_trigger.c GAME_CC code/game/g_utils.c GAME_CC code/game/g_weapon.c GAME_CC code/game/g_syscalls.c code/game/g_weapon.c: In function 'ShotgunPattern': code/game/g_weapon.c:327:8: warning: variable 'oldScore' set but not used [-Wunused-but-set-variable] int oldScore; ^~~~~~~~ UI_CC code/q3_ui/ui_main.c UI_CC code/game/bg_misc.c UI_CC code/game/bg_lib.c UI_CC code/q3_ui/ui_addbots.c UI_CC code/q3_ui/ui_atoms.c UI_CC code/q3_ui/ui_cdkey.c UI_CC code/q3_ui/ui_cinematics.c UI_CC code/q3_ui/ui_confirm.c UI_CC code/q3_ui/ui_connect.c UI_CC code/q3_ui/ui_controls2.c UI_CC code/q3_ui/ui_credits.c UI_CC code/q3_ui/ui_demo2.c UI_CC code/q3_ui/ui_display.c UI_CC code/q3_ui/ui_gameinfo.c UI_CC code/q3_ui/ui_ingame.c code/q3_ui/ui_demo2.c: In function 'UI_DemosMenu_Key': code/q3_ui/ui_demo2.c:119:16: warning: variable 'item' set but not used [-Wunused-but-set-variable] menucommon_s *item; ^~~~ UI_CC code/q3_ui/ui_loadconfig.c UI_CC code/q3_ui/ui_menu.c UI_CC code/q3_ui/ui_mfield.c UI_CC code/q3_ui/ui_mods.c UI_CC code/q3_ui/ui_network.c UI_CC code/q3_ui/ui_options.c code/q3_ui/ui_mfield.c: In function 'MenuField_Draw': code/q3_ui/ui_mfield.c:337:7: warning: variable 'h' set but not used [-Wunused-but-set-variable] int h; ^ UI_CC code/q3_ui/ui_playermodel.c UI_CC code/q3_ui/ui_players.c UI_CC code/q3_ui/ui_playersettings.c UI_CC code/q3_ui/ui_preferences.c UI_CC code/q3_ui/ui_qmenu.c UI_CC code/q3_ui/ui_removebots.c UI_CC code/q3_ui/ui_saveconfig.c UI_CC code/q3_ui/ui_serverinfo.c UI_CC code/q3_ui/ui_servers2.c UI_CC code/q3_ui/ui_setup.c code/q3_ui/ui_servers2.c: In function 'ArenaServers_LoadFavorites': code/q3_ui/ui_servers2.c:739:9: warning: variable 'emptyinfo' set but not used [-Wunused-but-set-variable] char emptyinfo[MAX_INFO_STRING]; ^~~~~~~~~ UI_CC code/q3_ui/ui_sound.c UI_CC code/q3_ui/ui_sparena.c UI_CC code/q3_ui/ui_specifyserver.c UI_CC code/q3_ui/ui_splevel.c UI_CC code/q3_ui/ui_sppostgame.c UI_CC code/q3_ui/ui_spskill.c UI_CC code/q3_ui/ui_startserver.c UI_CC code/q3_ui/ui_team.c UI_CC code/q3_ui/ui_teamorders.c UI_CC code/q3_ui/ui_video.c UI_CC_MISSIONPACK code/ui/ui_syscalls.c CGAME_CC_MISSIONPACK code/cgame/cg_main.c CGAME_CC_MISSIONPACK code/game/bg_misc.c code/cgame/cg_main.c: In function 'CG_LoadMenus': code/cgame/cg_main.c:1463:2: warning: implicit declaration of function 'COM_Compress'; did you mean 'Com_Compress'? [-Wimplicit-function-declaration] COM_Compress(buf); ^~~~~~~~~~~~ Com_Compress CGAME_CC_MISSIONPACK code/game/bg_pmove.c CGAME_CC_MISSIONPACK code/game/bg_slidemove.c CGAME_CC_MISSIONPACK code/game/bg_lib.c code/game/bg_slidemove.c: In function 'PM_StepSlideMove': code/game/bg_slidemove.c:235:18: warning: variable 'down_v' set but not used [-Wunused-but-set-variable] vec3_t down_o, down_v; ^~~~~~ code/game/bg_slidemove.c:235:10: warning: variable 'down_o' set but not used [-Wunused-but-set-variable] vec3_t down_o, down_v; ^~~~~~ CGAME_CC_MISSIONPACK code/cgame/cg_consolecmds.c CGAME_CC_MISSIONPACK code/cgame/cg_newdraw.c CGAME_CC_MISSIONPACK code/cgame/cg_draw.c CGAME_CC_MISSIONPACK code/cgame/cg_drawtools.c code/game/bg_pmove.c: In function 'PM_Weapon': code/game/bg_pmove.c:1699:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ code/game/bg_pmove.c:1705:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' pm->ps->weaponTime += addTime; ^~ code/cgame/cg_newdraw.c: In function 'CG_DrawPlayerArmorIcon': code/cgame/cg_newdraw.c:164:17: warning: variable 'ps' set but not used [-Wunused-but-set-variable] playerState_t *ps; ^~ code/cgame/cg_newdraw.c:163:13: warning: variable 'cent' set but not used [-Wunused-but-set-variable] centity_t *cent; ^~~~ code/cgame/cg_newdraw.c: In function 'CG_DrawPlayerArmorValue': code/cgame/cg_newdraw.c:192:13: warning: variable 'cent' set but not used [-Wunused-but-set-variable] centity_t *cent; ^~~~ code/cgame/cg_newdraw.c: In function 'CG_DrawPlayerAmmoIcon': code/cgame/cg_newdraw.c:223:17: warning: variable 'ps' set but not used [-Wunused-but-set-variable] playerState_t *ps; ^~ code/cgame/cg_draw.c: In function 'CG_DrawScoreboard': code/cgame/cg_draw.c:2167:8: warning: variable 'fade' set but not used [-Wunused-but-set-variable] float fade, *fadeColor; ^~~~ code/cgame/cg_draw.c: In function 'CG_DrawWarmup': code/cgame/cg_draw.c:2366:8: warning: variable 'cw' set but not used [-Wunused-but-set-variable] int cw; ^~ CGAME_CC_MISSIONPACK code/cgame/cg_effects.c CGAME_CC_MISSIONPACK code/cgame/cg_ents.c code/cgame/cg_ents.c: In function 'CG_AdjustPositionForMover': code/cgame/cg_ents.c:668:28: warning: variable 'deltaAngles' set but not used [-Wunused-but-set-variable] vec3_t oldAngles, angles, deltaAngles; ^~~~~~~~~~~ CGAME_CC_MISSIONPACK code/cgame/cg_event.c CGAME_CC_MISSIONPACK code/cgame/cg_info.c code/cgame/cg_event.c: In function 'CG_EntityEvent': code/cgame/cg_event.c:602:19: warning: variable 'smoke' set but not used [-Wunused-but-set-variable] localEntity_t *smoke; ^~~~~ CGAME_CC_MISSIONPACK code/cgame/cg_localents.c CGAME_CC_MISSIONPACK code/cgame/cg_marks.c CGAME_CC_MISSIONPACK code/cgame/cg_players.c CGAME_CC_MISSIONPACK code/cgame/cg_playerstate.c code/cgame/cg_players.c: In function 'CG_DustTrail': code/cgame/cg_players.c:1568:17: warning: variable 'dust' set but not used [-Wunused-but-set-variable] localEntity_t *dust; ^~~~ code/cgame/cg_marks.c: In function 'CG_AddParticles': code/cgame/cg_marks.c:1093:9: warning: variable 'type' set but not used [-Wunused-but-set-variable] int type; ^~~~ code/cgame/cg_marks.c:1091:9: warning: variable 'color' set but not used [-Wunused-but-set-variable] int color; ^~~~~ CGAME_CC_MISSIONPACK code/cgame/cg_predict.c CGAME_CC_MISSIONPACK code/cgame/cg_scoreboard.c CGAME_CC_MISSIONPACK code/cgame/cg_servercmds.c CGAME_CC_MISSIONPACK code/cgame/cg_snapshot.c CGAME_CC_MISSIONPACK code/cgame/cg_view.c CGAME_CC_MISSIONPACK code/cgame/cg_weapons.c UI_CC_MISSIONPACK code/ui/ui_shared.c SHLIB_CC_MISSIONPACK code/qcommon/q_math.c code/cgame/cg_weapons.c: In function 'CG_RailTrail': code/cgame/cg_weapons.c:216:32: warning: variable 'next_move' set but not used [-Wunused-but-set-variable] vec3_t axis[36], move, move2, next_move, vec, temp; ^~~~~~~~~ code/cgame/cg_weapons.c: In function 'CG_PlasmaTrail': code/cgame/cg_weapons.c:468:9: warning: variable 't' set but not used [-Wunused-but-set-variable] int t, startTime, step; ^ SHLIB_CC_MISSIONPACK code/qcommon/q_shared.c CGAME_CC_MISSIONPACK code/cgame/cg_syscalls.c code/ui/ui_shared.c: In function 'Item_ListBox_OverLB': code/ui/ui_shared.c:1533:6: warning: variable 'count' set but not used [-Wunused-but-set-variable] int count; ^~~~~ code/ui/ui_shared.c:1531:16: warning: variable 'listPtr' set but not used [-Wunused-but-set-variable] listBoxDef_t *listPtr; ^~~~~~~ code/ui/ui_shared.c: In function 'Item_Slider_Paint': code/ui/ui_shared.c:3381:14: warning: variable 'value' set but not used [-Wunused-but-set-variable] float x, y, value; ^~~~~ code/ui/ui_shared.c: In function 'Item_OwnerDraw_Paint': code/ui/ui_shared.c:3803:14: warning: variable 'parent' set but not used [-Wunused-but-set-variable] menuDef_t *parent; ^~~~~~ code/qcommon/q_math.c: In function 'MatrixFromQuat': code/qcommon/q_math.c:2163:22: warning: variable 'w2' set but not used [-Wunused-but-set-variable] float x2, y2, z2, w2; ^~ GAME_CC_MISSIONPACK code/game/g_main.c GAME_CC_MISSIONPACK code/game/ai_chat.c code/game/ai_chat.c: In function 'BotChatTime': code/game/ai_chat.c:962:6: warning: variable 'cpm' set but not used [-Wunused-but-set-variable] int cpm; ^~~ GAME_CC_MISSIONPACK code/game/ai_cmd.c code/game/g_main.c: In function 'G_RunFrame': code/game/g_main.c:1730:12: warning: variable 'end' set but not used [-Wunused-but-set-variable] int start, end; ^~~ code/game/g_main.c:1730:5: warning: variable 'start' set but not used [-Wunused-but-set-variable] int start, end; ^~~~~ code/game/g_main.c:1729:8: warning: variable 'msec' set but not used [-Wunused-but-set-variable] int msec; ^~~~ code/game/g_main.c: In function 'CalculateRanks': code/game/g_main.c:769:33: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations] level.numteamVotingClients[i] = 0; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ code/game/g_main.c:768:2: note: within this loop for ( i = 0; i < TEAM_NUM_TEAMS; i++ ) { ^~~ GAME_CC_MISSIONPACK code/game/ai_dmnet.c GAME_CC_MISSIONPACK code/game/ai_dmq3.c code/game/ai_dmq3.c: In function 'BotAIBlocked': code/game/ai_dmq3.c:4431:35: warning: variable 'maxs' set but not used [-Wunused-but-set-variable] vec3_t hordir, start, end, mins, maxs, sideward, angles, up = {0, 0, 1}; ^~~~ code/game/ai_dmq3.c:4431:29: warning: variable 'mins' set but not used [-Wunused-but-set-variable] vec3_t hordir, start, end, mins, maxs, sideward, angles, up = {0, 0, 1}; ^~~~ code/game/ai_dmq3.c:4431:24: warning: variable 'end' set but not used [-Wunused-but-set-variable] vec3_t hordir, start, end, mins, maxs, sideward, angles, up = {0, 0, 1}; ^~~ GAME_CC_MISSIONPACK code/game/ai_main.c GAME_CC_MISSIONPACK code/game/ai_team.c code/game/g_main.c:769:29: warning: array subscript 2 is above array bounds of 'int[2]' [-Warray-bounds] level.numteamVotingClients[i] = 0; ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ code/game/g_main.c:769:29: warning: array subscript 3 is above array bounds of 'int[2]' [-Warray-bounds] GAME_CC_MISSIONPACK code/game/ai_vcmd.c GAME_CC_MISSIONPACK code/game/bg_misc.c code/game/ai_vcmd.c: In function 'BotVoiceChatCommand': code/game/ai_vcmd.c:516:31: warning: variable 'color' set but not used [-Wunused-but-set-variable] int i, voiceOnly, clientNum, color; ^~~~~ code/game/ai_vcmd.c:516:9: warning: variable 'voiceOnly' set but not used [-Wunused-but-set-variable] int i, voiceOnly, clientNum, color; ^~~~~~~~~ GAME_CC_MISSIONPACK code/game/bg_pmove.c GAME_CC_MISSIONPACK code/game/bg_slidemove.c code/game/bg_pmove.c: In function 'PM_Weapon': code/game/bg_pmove.c:1699:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ code/game/bg_pmove.c:1705:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' pm->ps->weaponTime += addTime; ^~ code/game/bg_slidemove.c: In function 'PM_StepSlideMove': code/game/bg_slidemove.c:235:18: warning: variable 'down_v' set but not used [-Wunused-but-set-variable] vec3_t down_o, down_v; ^~~~~~ code/game/bg_slidemove.c:235:10: warning: variable 'down_o' set but not used [-Wunused-but-set-variable] vec3_t down_o, down_v; ^~~~~~ GAME_CC_MISSIONPACK code/game/bg_lib.c GAME_CC_MISSIONPACK code/game/g_active.c code/game/g_active.c: In function 'ClientEvents': code/game/g_active.c:542:9: warning: variable 'dir' set but not used [-Wunused-but-set-variable] vec3_t dir; ^~~ code/game/g_active.c: In function 'ClientEndFrame': code/game/g_active.c:1109:22: warning: variable 'pers' set but not used [-Wunused-but-set-variable] clientPersistant_t *pers; ^~~~ GAME_CC_MISSIONPACK code/game/g_arenas.c GAME_CC_MISSIONPACK code/game/g_bot.c GAME_CC_MISSIONPACK code/game/g_client.c GAME_CC_MISSIONPACK code/game/g_cmds.c GAME_CC_MISSIONPACK code/game/g_combat.c code/game/g_combat.c: In function 'LookAtKiller': code/game/g_combat.c:219:10: warning: variable 'angles' set but not used [-Wunused-but-set-variable] vec3_t angles; ^~~~~~ code/game/g_combat.c: In function 'G_Damage': code/game/g_combat.c:825:8: warning: variable 'save' set but not used [-Wunused-but-set-variable] int save; ^~~~ GAME_CC_MISSIONPACK code/game/g_items.c GAME_CC_MISSIONPACK code/game/g_mem.c GAME_CC_MISSIONPACK code/game/g_misc.c GAME_CC_MISSIONPACK code/game/g_missile.c GAME_CC_MISSIONPACK code/game/g_mover.c GAME_CC_MISSIONPACK code/game/g_session.c GAME_CC_MISSIONPACK code/game/g_spawn.c GAME_CC_MISSIONPACK code/game/g_svcmds.c GAME_CC_MISSIONPACK code/game/g_target.c GAME_CC_MISSIONPACK code/game/g_team.c GAME_CC_MISSIONPACK code/game/g_trigger.c GAME_CC_MISSIONPACK code/game/g_utils.c GAME_CC_MISSIONPACK code/game/g_weapon.c GAME_CC_MISSIONPACK code/game/g_syscalls.c UI_CC_MISSIONPACK code/ui/ui_main.c code/game/g_weapon.c: In function 'ShotgunPattern': code/game/g_weapon.c:327:8: warning: variable 'oldScore' set but not used [-Wunused-but-set-variable] int oldScore; ^~~~~~~~ UI_CC_MISSIONPACK code/ui/ui_atoms.c UI_CC_MISSIONPACK code/ui/ui_gameinfo.c code/ui/ui_gameinfo.c: In function 'UI_LoadBotsFromFile': code/ui/ui_gameinfo.c:238:2: warning: implicit declaration of function 'COM_Compress'; did you mean 'Com_Compress'? [-Wimplicit-function-declaration] COM_Compress(buf); ^~~~~~~~~~~~ Com_Compress UI_CC_MISSIONPACK code/ui/ui_players.c code/ui/ui_main.c: In function '_UI_Init': code/ui/ui_main.c:5021:6: warning: variable 'start' set but not used [-Wunused-but-set-variable] int start; ^~~~~ code/ui/ui_players.c: In function 'UI_PositionEntityOnTag': code/ui/ui_players.c:309:24: warning: passing argument 1 of 'MatrixMultiply' from incompatible pointer type [-Wincompatible-pointer-types] MatrixMultiply( lerped.axis, ((refEntity_t*)parent)->axis, entity->axis ); ~~~~~~^~~~~ In file included from code/ui/ui_local.h:26, from code/ui/ui_players.c:25: code/ui/../qcommon/q_shared.h:652:47: note: expected 'const vec_t *' {aka 'const float *'} but argument is of type 'vec_t (*)[3]' {aka 'float (*)[3]'} void MatrixMultiply(const matrix_t a, const matrix_t b, matrix_t out); ~~~~~~~~~~~~~~~^ code/ui/ui_players.c:309:53: warning: passing argument 2 of 'MatrixMultiply' from incompatible pointer type [-Wincompatible-pointer-types] MatrixMultiply( lerped.axis, ((refEntity_t*)parent)->axis, entity->axis ); ~~~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from code/ui/ui_local.h:26, from code/ui/ui_players.c:25: code/ui/../qcommon/q_shared.h:652:65: note: expected 'const vec_t *' {aka 'const float *'} but argument is of type 'vec_t (*)[3]' {aka 'float (*)[3]'} void MatrixMultiply(const matrix_t a, const matrix_t b, matrix_t out); ~~~~~~~~~~~~~~~^ code/ui/ui_players.c:309:67: warning: passing argument 3 of 'MatrixMultiply' from incompatible pointer type [-Wincompatible-pointer-types] MatrixMultiply( lerped.axis, ((refEntity_t*)parent)->axis, entity->axis ); ~~~~~~^~~~~~ In file included from code/ui/ui_local.h:26, from code/ui/ui_players.c:25: code/ui/../qcommon/q_shared.h:652:77: note: expected 'vec_t *' {aka 'float *'} but argument is of type 'vec_t (*)[3]' {aka 'float (*)[3]'} void MatrixMultiply(const matrix_t a, const matrix_t b, matrix_t out); ~~~~~~~~~^~~ code/ui/ui_players.c: In function 'UI_PositionRotatedEntityOnTag': code/ui/ui_players.c:336:24: warning: passing argument 1 of 'MatrixMultiply' from incompatible pointer type [-Wincompatible-pointer-types] MatrixMultiply( entity->axis, ((refEntity_t *)parent)->axis, tempAxis ); ~~~~~~^~~~~~ In file included from code/ui/ui_local.h:26, from code/ui/ui_players.c:25: code/ui/../qcommon/q_shared.h:652:47: note: expected 'const vec_t *' {aka 'const float *'} but argument is of type 'vec_t (*)[3]' {aka 'float (*)[3]'} void MatrixMultiply(const matrix_t a, const matrix_t b, matrix_t out); ~~~~~~~~~~~~~~~^ code/ui/ui_players.c:336:55: warning: passing argument 2 of 'MatrixMultiply' from incompatible pointer type [-Wincompatible-pointer-types] MatrixMultiply( entity->axis, ((refEntity_t *)parent)->axis, tempAxis ); ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from code/ui/ui_local.h:26, from code/ui/ui_players.c:25: code/ui/../qcommon/q_shared.h:652:65: note: expected 'const vec_t *' {aka 'const float *'} but argument is of type 'vec_t (*)[3]' {aka 'float (*)[3]'} void MatrixMultiply(const matrix_t a, const matrix_t b, matrix_t out); ~~~~~~~~~~~~~~~^ code/ui/ui_players.c:336:63: warning: passing argument 3 of 'MatrixMultiply' from incompatible pointer type [-Wincompatible-pointer-types] MatrixMultiply( entity->axis, ((refEntity_t *)parent)->axis, tempAxis ); ^~~~~~~~ In file included from code/ui/ui_local.h:26, from code/ui/ui_players.c:25: code/ui/../qcommon/q_shared.h:652:77: note: expected 'vec_t *' {aka 'float *'} but argument is of type 'vec_t (*)[3]' {aka 'float (*)[3]'} void MatrixMultiply(const matrix_t a, const matrix_t b, matrix_t out); ~~~~~~~~~^~~ code/ui/ui_players.c:337:24: warning: passing argument 1 of 'MatrixMultiply' from incompatible pointer type [-Wincompatible-pointer-types] MatrixMultiply( lerped.axis, tempAxis, entity->axis ); ~~~~~~^~~~~ In file included from code/ui/ui_local.h:26, from code/ui/ui_players.c:25: code/ui/../qcommon/q_shared.h:652:47: note: expected 'const vec_t *' {aka 'const float *'} but argument is of type 'vec_t (*)[3]' {aka 'float (*)[3]'} void MatrixMultiply(const matrix_t a, const matrix_t b, matrix_t out); ~~~~~~~~~~~~~~~^ code/ui/ui_players.c:337:31: warning: passing argument 2 of 'MatrixMultiply' from incompatible pointer type [-Wincompatible-pointer-types] MatrixMultiply( lerped.axis, tempAxis, entity->axis ); ^~~~~~~~ In file included from code/ui/ui_local.h:26, from code/ui/ui_players.c:25: code/ui/../qcommon/q_shared.h:652:65: note: expected 'const vec_t *' {aka 'const float *'} but argument is of type 'vec_t (*)[3]' {aka 'float (*)[3]'} void MatrixMultiply(const matrix_t a, const matrix_t b, matrix_t out); ~~~~~~~~~~~~~~~^ code/ui/ui_players.c:337:47: warning: passing argument 3 of 'MatrixMultiply' from incompatible pointer type [-Wincompatible-pointer-types] MatrixMultiply( lerped.axis, tempAxis, entity->axis ); ~~~~~~^~~~~~ In file included from code/ui/ui_local.h:26, from code/ui/ui_players.c:25: code/ui/../qcommon/q_shared.h:652:77: note: expected 'vec_t *' {aka 'float *'} but argument is of type 'vec_t (*)[3]' {aka 'float (*)[3]'} void MatrixMultiply(const matrix_t a, const matrix_t b, matrix_t out); ~~~~~~~~~^~~ code/ui/ui_players.c: In function 'UI_ParseAnimationFile': code/ui/ui_players.c:1050:2: warning: implicit declaration of function 'COM_Compress'; did you mean 'Com_Compress'? [-Wimplicit-function-declaration] COM_Compress(text); ^~~~~~~~~~~~ Com_Compress UI_CC_MISSIONPACK code/game/bg_misc.c UI_CC_MISSIONPACK code/game/bg_lib.c At top level: code/ui/ui_main.c:114:18: warning: 'numSortKeys' defined but not used [-Wunused-const-variable=] static const int numSortKeys = sizeof(sortKeys) / sizeof(const char*); ^~~~~~~~~~~ code/ui/ui_main.c:102:18: warning: 'numTeamArenaGameNames' defined but not used [-Wunused-const-variable=] static int const numTeamArenaGameNames = sizeof(teamArenaGameNames) / sizeof(const char*); ^~~~~~~~~~~~~~~~~~~~~ LD build/release/evq3ded LD build/release/evq3 LD build/release/evq3-smp LD build/release/baseq3/cgame.so LD build/release/baseq3/qagame.so LD build/release/baseq3/ui.so LD build/release/missionpack/cgame.so LD build/release/missionpack/qagame.so LD build/release/missionpack/ui.so gmake[4]: Leaving directory '/construction/games/evq3/evq3' gmake[3]: Leaving directory '/construction/games/evq3/evq3' gmake[2]: Leaving directory '/construction/games/evq3/evq3' -------------------------------------------------------------------------------- -- Phase: run-depends -------------------------------------------------------------------------------- ===> evq3-1.3.20080810_11 depends on file: /usr/local/share/quake3/baseq3/pak1.pk3 - not found ===> Installing existing package /packages/All/quake3-data-1.32.b.3_2.txz Installing quake3-data-1.32.b.3_2... Extracting quake3-data-1.32.b.3_2: .......... done ===== Message from quake3-data-1.32.b.3_2: -- To complete the installation of this port you need to copy the file "baseq3/pak0.pk3" from the original Quake III Arena distribution to /usr/local/share/quake3/baseq3. If you have the expansion pack then you have to copy the file "missionpack/pak0.pk3" from the original Quake III Team Arena distribution to /usr/local/share/quake3/missionpack. -- ===> NOTICE: The quake3-data 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 ===> evq3-1.3.20080810_11 depends on file: /usr/local/share/quake3/baseq3/pak1.pk3 - found ===> Returning to build of evq3-1.3.20080810_11 -------------------------------------------------------------------------------- -- Phase: stage -------------------------------------------------------------------------------- ===> Staging for evq3-1.3.20080810_11 ===> Generating temporary packing list install -m 0644 /distfiles/pak-evq3.pk3 /distfiles/pak-5evq3.pk3 /construction/games/evq3/stage/usr/local/lib/evq3/baseq3 install -s -m 555 /construction/games/evq3/evq3/build/release/evq3 /construction/games/evq3/stage/usr/local/bin install -s -m 555 /construction/games/evq3/evq3/build/release/evq3ded /construction/games/evq3/stage/usr/local/bin install -s -m 555 /construction/games/evq3/evq3/build/release/evq3-smp /construction/games/evq3/stage/usr/local/bin install -s -m 555 /construction/games/evq3/evq3/build/release/baseq3/*.so /construction/games/evq3/stage/usr/local/lib/evq3/baseq3 install -s -m 555 /construction/games/evq3/evq3/build/release/missionpack/*.so /construction/games/evq3/stage/usr/local/lib/evq3/missionpack install -m 0644 /construction/games/evq3/evq3/README /construction/games/evq3/stage/usr/local/share/doc/evq3 ====> Compressing man pages (compress-man) ====> Running Q/A tests (stage-qa) Error: /usr/local/bin/evq3 is linked to /usr/local/lib/libGL.so.1 from graphics/mesa-libs but it is not declared as a dependency Warning: you need USE_GL+=gl Error: /usr/local/bin/evq3 is linked to /usr/local/lib/libogg.so.0 from audio/libogg but it is not declared as a dependency Warning: you need LIB_DEPENDS+=libogg.so:audio/libogg Warning: You have disabled the licenses framework with DISABLE_LICENSES, unable to run checks -------------------------------------------------------------------------------- -- Phase: package -------------------------------------------------------------------------------- ===> Building package for evq3-1.3.20080810_11 file sizes/checksums [12]: . done packing files [12]: . done packing directories [0]: . done -------------------------------------------------- -- Termination -------------------------------------------------- Finished: Saturday, 15 FEB 2020 at 13:31:31 UTC Duration: 00:01:50