Diff of the two buildlogs: -- --- b1/build.log 2025-02-27 11:30:27.086389263 +0000 +++ b2/build.log 2025-02-27 11:31:59.090236797 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed Feb 26 23:24:56 -12 2025 -I: pbuilder-time-stamp: 1740655496 +I: Current time: Thu Apr 2 07:53:28 +14 2026 +I: pbuilder-time-stamp: 1775066008 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -24,52 +24,84 @@ dpkg-source: info: applying hardening.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/3011061/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1807576/tmp/hooks/D01_modify_environment starting +debug: Running on ionos5-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Apr 1 17:53 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/1807576/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1807576/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=20 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='01bc3db2465b46dda41733640f314a02' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='3011061' - PS1='# ' - PS2='> ' + INVOCATION_ID=163214b806cc47c7ad2e12bd08712fbb + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=1807576 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.9o6Rr2hw/pbuilderrc_upGZ --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.9o6Rr2hw/b1 --logfile b1/build.log gl-117_1.3.2-4.dsc' - SUDO_GID='111' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://46.16.76.132:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.9o6Rr2hw/pbuilderrc_t0x3 --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.9o6Rr2hw/b2 --logfile b2/build.log gl-117_1.3.2-4.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://213.165.73.152:3128 I: uname -a - Linux ionos11-amd64 6.1.0-31-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.12.9+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.9-1~bpo12+1 (2025-01-19) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/3011061/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1807576/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -337,7 +369,7 @@ Get: 220 http://deb.debian.org/debian trixie/main amd64 libsdl1.2-dev amd64 1.2.68-2+b2 [64.6 kB] Get: 221 http://deb.debian.org/debian trixie/main amd64 libvorbis-dev amd64 1.3.7-2+b1 [326 kB] Get: 222 http://deb.debian.org/debian trixie/main amd64 libsdl-mixer1.2-dev amd64 1.2.12-19+b1 [97.9 kB] -Fetched 112 MB in 3s (35.4 MB/s) +Fetched 112 MB in 1s (93.1 MB/s) Preconfiguring packages ... Selecting previously unselected package libpython3.13-minimal:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19802 files and directories currently installed.) @@ -1052,8 +1084,8 @@ Setting up tzdata (2025a-2) ... Current default time zone: 'Etc/UTC' -Local time is now: Thu Feb 27 11:27:46 UTC 2025. -Universal Time is now: Thu Feb 27 11:27:46 UTC 2025. +Local time is now: Wed Apr 1 17:54:30 UTC 2026. +Universal Time is now: Wed Apr 1 17:54:30 UTC 2026. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libxcb-present0:amd64 (1.17.0-2+b1) ... @@ -1263,7 +1295,11 @@ fakeroot is already the newest version (1.37-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/reproducible-path/gl-117-1.3.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../gl-117_1.3.2-4_source.changes +I: user script /srv/workspace/pbuilder/1807576/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/1807576/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/gl-117-1.3.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../gl-117_1.3.2-4_source.changes dpkg-buildpackage: info: source package gl-117 dpkg-buildpackage: info: source version 1.3.2-4 dpkg-buildpackage: info: source distribution unstable @@ -1388,7 +1424,7 @@ config.status: executing depfiles commands make[1]: Leaving directory '/build/reproducible-path/gl-117-1.3.2' dh_auto_build - make -j20 + make -j42 make[1]: Entering directory '/build/reproducible-path/gl-117-1.3.2' make all-recursive make[2]: Entering directory '/build/reproducible-path/gl-117-1.3.2' @@ -1414,6 +1450,13 @@ g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include -I/usr/include -c -o conf.o conf.cpp g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include -I/usr/include -c -o mission.o mission.cpp g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include -I/usr/include -c -o cockpit.o cockpit.cpp +g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include -I/usr/include -c -o common.o common.cpp +g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include -I/usr/include -c -o menu.o menu.cpp +g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include -I/usr/include -c -o fileloader.o fileloader.cpp +g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include -I/usr/include -c -o maploader.o maploader.cpp +loader_tga.cpp:42:1: warning: multi-line comment [-Wcomment] + 42 | //#define WRITE_RGBA(p, r, g, b, a) \ + | ^ audio.cpp: In constructor 'SoundSystem::SoundSystem()': audio.cpp:229:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 229 | display ("Using SDL_mixer", LOG_MOST); @@ -1472,6 +1515,13 @@ audio.cpp:320:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 320 | wavebeep2 = new WaveFile (dirs->getSounds ("beep2.wav")); | ^~~~~~~~~~~ +loader_tga.cpp: In function 'unsigned char* tga_load(char*, int*, int*)': +loader_tga.cpp:198:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 198 | display ("Out of memory", LOG_FATAL); + | ^~~~~~~~~~~~~~~ +loader_tga.cpp:217:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 217 | display ("Out of memory", LOG_FATAL); + | ^~~~~~~~~~~~~~~ audio.cpp: In member function 'void SoundSystem::loadMusic(int)': audio.cpp:442:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 442 | music1 = Mix_LoadMUS (dirs->getMusic ("dark.s3m")); @@ -1497,20 +1547,27 @@ audio.cpp:463:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 463 | music1 = Mix_LoadMUS (dirs->getMusic ("ambient.s3m")); | ^~~~~~~~~~~~~ -loader_tga.cpp:42:1: warning: multi-line comment [-Wcomment] - 42 | //#define WRITE_RGBA(p, r, g, b, a) \ - | ^ -vertexarray.cpp: In member function 'void VertexArray::reallocData()': -vertexarray.cpp:160:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 160 | display ("Out of memory", LOG_FATAL); - | ^~~~~~~~~~~~~~~ conf.cpp: In member function 'int ConfigFile::getValue(char*)': conf.cpp:153:11: warning: the address of 'res' will never be NULL [-Waddress] 153 | if (res == NULL) return -1; | ^ +loader_tga.cpp: In function 'DATA32* flip(DATA32*, int, int)': +loader_tga.cpp:438:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 438 | display ("Out of memory", LOG_FATAL); + | ^~~~~~~~~~~~~~~ conf.cpp:151:8: note: 'res' declared here 151 | char res [256]; | ^~~ +In file included from effects.h:28, + from aiobject.h:29, + from mission.h:28, + from pilots.cpp:31: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ conf.cpp: In function 'void save_config()': conf.cpp:204:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 204 | char *confname = dirs->getSaves ("conf"); @@ -1629,19 +1686,10 @@ conf.cpp:252:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 252 | cf->writeText ("\n# To get back to default settings, just delete this file!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from effects.h:28, - from aiobject.h:29, - from aiobject.cpp:26: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ conf.cpp: In function 'void save_saveconfig()': conf.cpp:261:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 261 | char *confname = dirs->getSaves ("saveconf"); | ^~~~~~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ conf.cpp:267:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 267 | display ("Could not save working graphics mode configuration", LOG_ERROR); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1688,14 +1736,6 @@ conf.cpp:353:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 353 | str = cf->getString (ret, "dithering"); | ^~~~~~~~~~~ -In file included from land.cpp:31: -land.cpp: In member function 'void Landscape::convolveGauss(int, int, int)': -land.cpp:95:39: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 95 | mx = GETCOORD(x - MAXCORE / 2 + i); - | ~~~~~~~~~~~~~~~~^~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ conf.cpp:357:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 357 | str = cf->getString (ret, "antialiasing"); | ^~~~~~~~~~~~~~ @@ -1705,30 +1745,80 @@ conf.cpp:365:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 365 | str = cf->getString (ret, "dynamiclighting"); | ^~~~~~~~~~~~~~~~~ +pilots.cpp: In member function 'char* TeamPilot::getRank()': +pilots.cpp:55:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 55 | if (ranking == 0) return "AIRMAN BASIC"; + | ^~~~~~~~~~~~~~ conf.cpp:370:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 370 | str = cf->getString (ret, "sound"); | ^~~~~~~ +pilots.cpp:56:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 56 | else if (ranking == 1) return "AIRMAN"; + | ^~~~~~~~ +pilots.cpp:57:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 57 | else if (ranking == 2) return "AIRMAN 1ST CLASS"; + | ^~~~~~~~~~~~~~~~~~ conf.cpp:378:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 378 | str = cf->getString (ret, "music"); | ^~~~~~~ -land.cpp:107:41: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 107 | my = GETCOORD(y - MAXCORE / 2 + i); - | ~~~~~~~~~~~~~~~~^~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ +pilots.cpp:58:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 58 | else if (ranking == 3) return "2ND LIEUTNANT"; + | ^~~~~~~~~~~~~~~ +pilots.cpp:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 59 | else if (ranking == 4) return "1ST LIEUTNANT"; + | ^~~~~~~~~~~~~~~ conf.cpp:387:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 387 | str = cf->getString (ret, "controls"); | ^~~~~~~~~~ +pilots.cpp:60:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 60 | else if (ranking == 5) return "CAPTAIN"; + | ^~~~~~~~~ +pilots.cpp:61:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 61 | else if (ranking == 6) return "MAJOR"; + | ^~~~~~~ conf.cpp:395:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 395 | str = cf->getString (ret, "difficulty"); | ^~~~~~~~~~~~ +pilots.cpp:62:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 62 | else if (ranking == 7) return "COLONEL"; + | ^~~~~~~~~ +pilots.cpp:63:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 63 | else return "GENERAL"; + | ^~~~~~~~~ conf.cpp:403:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 403 | str = cf->getString (ret, "brightness"); | ^~~~~~~~~~~~ +pilots.cpp: In member function 'char* TeamPilot::getShortRank()': +pilots.cpp:68:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 68 | if (ranking == 0) return "AB"; + | ^~~~ conf.cpp:411:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 411 | str = cf->getString (ret, "physics"); | ^~~~~~~~~ +pilots.cpp:69:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 69 | else if (ranking == 1) return "ARM"; + | ^~~~~ +pilots.cpp:70:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 70 | else if (ranking == 2) return "A1C"; + | ^~~~~ +pilots.cpp:71:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 71 | else if (ranking == 3) return "2ND LT"; + | ^~~~~~~~ +pilots.cpp:72:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 72 | else if (ranking == 4) return "1ST LT"; + | ^~~~~~~~ +pilots.cpp:73:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 73 | else if (ranking == 5) return "CAPT"; + | ^~~~~~ +pilots.cpp:74:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 74 | else if (ranking == 6) return "MAJ"; + | ^~~~~ +pilots.cpp:75:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 75 | else if (ranking == 7) return "COL"; + | ^~~~~ +pilots.cpp:76:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 76 | else return "GEN"; + | ^~~~~ conf.cpp: In function 'int load_saveconfig()': conf.cpp:428:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 428 | char *confname = dirs->getSaves ("saveconf"); @@ -1745,31 +1835,65 @@ conf.cpp:463:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 463 | str = cf->getString (ret, "savefullscreen"); | ^~~~~~~~~~~~~~~~ +pilots.cpp: In member function 'void Pilot::load()': +pilots.cpp:140:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 140 | tp [0] = new TeamPilot (5, "PRIMETIME", 200, 100, 150, 20); + | ^~~~~~~~~~~ +pilots.cpp:141:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 141 | tp [1] = new TeamPilot (1, "HEPTARGON", 80, 220, 300, 1); + | ^~~~~~~~~~~ +pilots.cpp:142:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 142 | tp [2] = new TeamPilot (2, "KARA", 180, 160, 50, 4); + | ^~~~~~ +pilots.cpp:143:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 143 | tp [3] = new TeamPilot (6, "SHARK", 70, 90, 120, 22); + | ^~~~~~~ conf.cpp: In function 'void save_configInterface()': conf.cpp:485:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 485 | char *confname = dirs->getSaves ("conf.interface"); | ^~~~~~~~~~~~~~~~ +pilots.cpp:144:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 144 | tp [4] = new TeamPilot (3, "BOSS", 250, 180, 80, 10); + | ^~~~~~ +pilots.cpp:145:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 145 | tp [5] = new TeamPilot (2, "DR DOOM", 320, 210, 20, 2); + | ^~~~~~~~~ conf.cpp:491:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 491 | display ("Could not save interface configuration", LOG_ERROR); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:146:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 146 | tp [6] = new TeamPilot (4, "SHADOW", 130, 200, 320, 15); + | ^~~~~~~~ conf.cpp:494:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 494 | cf->writeText ("# Interface configuration\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:147:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 147 | tp [7] = new TeamPilot (7, "MATRIX", 40, 80, 180, 25); + | ^~~~~~~~ conf.cpp:495:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 495 | cf->writeText ("# ---------------------------------------------------------------------"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ conf.cpp:496:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 496 | cf->writeText ("# Keyboard section"); | ^~~~~~~~~~~~~~~~~~~~ +pilots.cpp:148:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 148 | tp [8] = new TeamPilot (1, "FIREBIRD", 250, 140, 100, 1); + | ^~~~~~~~~~ conf.cpp:497:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 497 | cf->writeText ("# ---------------------------------------------------------------------\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ conf.cpp:498:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 498 | cf->writeText ("# Use ASCII-Code values or letters to remap"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:149:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 149 | tp [9] = new TeamPilot (4, "THUNDER", 150, 170, 60, 18); + | ^~~~~~~~~ conf.cpp:499:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 499 | cf->writeText ("# 8=BACKSPACE, 13=ENTER, 32=SPACE, 65=A...90=Z (NOT case sensitive)"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:150:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 150 | tp [10] = new TeamPilot (0, "PLAYER", 0, 0, 0, 0); + | ^~~~~~~~ conf.cpp:500:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 500 | cf->write (" key_firecannon", (int) key_firecannon); | ^~~~~~~~~~~~~~~~~ @@ -1782,6 +1906,9 @@ conf.cpp:503:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 503 | cf->write (" key_dropchaff", (int) key_dropchaff); | ^~~~~~~~~~~~~~~~ +pilots.cpp:158:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 158 | display ("Could not load pilot", LOG_WARN); + | ^~~~~~~~~~~~~~~~~~~~~~ conf.cpp:504:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 504 | cf->write (" key_selectmissile", (int) key_selectmissile); | ^~~~~~~~~~~~~~~~~~~~ @@ -1845,6 +1972,10 @@ conf.cpp:524:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 524 | cf->write (" mouse_autorudder", (int) mouse_autorudder); | ^~~~~~~~~~~~~~~~~~~ +pilots.cpp: In member function 'void Pilot::save()': +pilots.cpp:185:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 185 | display ("Could not write pilot", LOG_WARN); + | ^~~~~~~~~~~~~~~~~~~~~~~ conf.cpp:525:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 525 | cf->writeText ("\n# Buttons: 1=Left, 2=Middle, 3=Right"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1887,30 +2018,58 @@ conf.cpp:548:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 548 | writeJoystick (cf, " joystick_throttle", joystick_throttle); | ^~~~~~~~~~~~~~~~~~~~ +pilots.cpp: In member function 'char* Pilot::getRank()': +pilots.cpp:212:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 212 | { ranking = 0; return "AIRMAN BASIC"; } + | ^~~~~~~~~~~~~~ conf.cpp:549:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 549 | writeJoystick (cf, " joystick_rudder", joystick_rudder); | ^~~~~~~~~~~~~~~~~~ +pilots.cpp:214:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 214 | { ranking = 1; return "AIRMAN"; } + | ^~~~~~~~ conf.cpp:550:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 550 | writeJoystick (cf, " joystick_view_x", joystick_view_x); | ^~~~~~~~~~~~~~~~~~ +pilots.cpp:216:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 216 | { ranking = 2; return "AIRMAN 1ST CLASS"; } + | ^~~~~~~~~~~~~~~~~~ conf.cpp:551:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 551 | writeJoystick (cf, " joystick_view_y", joystick_view_y); | ^~~~~~~~~~~~~~~~~~ +pilots.cpp:218:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 218 | { ranking = 3; return "2ND LIEUTNANT"; } + | ^~~~~~~~~~~~~~~ conf.cpp:552:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 552 | cf->writeText ("\n# Buttons: 0...MAX-1, Coolie: 100=Right, 101=Up, 102=Left, 103=Down"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ conf.cpp:553:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 553 | writeJoystick (cf, " joystick_firecannon", joystick_firecannon); | ^~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:220:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 220 | { ranking = 4; return "1ST LIEUTNANT"; } + | ^~~~~~~~~~~~~~~ +pilots.cpp:222:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 222 | { ranking = 5; return "CAPTAIN"; } + | ^~~~~~~~~ conf.cpp:554:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 554 | writeJoystick (cf, " joystick_firemissile", joystick_firemissile); | ^~~~~~~~~~~~~~~~~~~~~~~ conf.cpp:555:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 555 | cf->writeText ("# Dropping chaff AND flare may be preferred"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:224:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 224 | { ranking = 6; return "MAJOR"; } + | ^~~~~~~ conf.cpp:556:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 556 | writeJoystick (cf, " joystick_dropflare", joystick_dropflare); | ^~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:226:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 226 | { ranking = 7; return "COLONEL"; } + | ^~~~~~~~~ +pilots.cpp:228:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 228 | { ranking = 8; return "GENERAL"; } + | ^~~~~~~~~ conf.cpp:557:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 557 | writeJoystick (cf, " joystick_dropchaff", joystick_dropchaff); | ^~~~~~~~~~~~~~~~~~~~~ @@ -1932,22 +2091,57 @@ conf.cpp:563:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 563 | writeJoystick (cf, " joystick_incthrust", joystick_thrustup); | ^~~~~~~~~~~~~~~~~~~~~ +pilots.cpp: In member function 'char* Pilot::getShortRank()': +pilots.cpp:254:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 254 | { ranking = 0; return "AB"; } + | ^~~~ conf.cpp:564:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 564 | writeJoystick (cf, " joystick_decthrust", joystick_thrustdown); | ^~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:256:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 256 | { ranking = 1; return "AMN"; } + | ^~~~~ conf.cpp:565:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 565 | cf->writeText ("\n# This file is meant to give sensible custom interface settings"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ conf.cpp:566:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 566 | cf->writeText ("\n# To get back to default settings, just delete this file!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:258:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 258 | { ranking = 2; return "A1C"; } + | ^~~~~ +pilots.cpp:260:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 260 | { ranking = 3; return "2ND LT"; } + | ^~~~~~~~ +pilots.cpp:262:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 262 | { ranking = 4; return "1ST LT"; } + | ^~~~~~~~ +pilots.cpp:264:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 264 | { ranking = 5; return "CAPT"; } + | ^~~~~~ +pilots.cpp:266:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 266 | { ranking = 6; return "MAJ"; } + | ^~~~~ +pilots.cpp:268:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 268 | { ranking = 7; return "COL"; } + | ^~~~~ +pilots.cpp:270:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 270 | { ranking = 8; return "GEN"; } + | ^~~~~ conf.cpp: In function 'int load_configInterface()': conf.cpp:605:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 605 | char *confname = dirs->getSaves ("conf.interface"); | ^~~~~~~~~~~~~~~~ +pilots.cpp: In member function 'void PilotList::load(char*)': +pilots.cpp:296:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 296 | display ("Could not load saves/pilots", LOG_WARN); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ conf.cpp:610:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 610 | str = cf->getString (ret, "key_firecannon"); | ^~~~~~~~~~~~~~~~ +pilots.cpp:298:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 298 | add ("PLAYER"); + | ^~~~~~~~ conf.cpp:613:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 613 | str = cf->getString (ret, "key_firemissile"); | ^~~~~~~~~~~~~~~~~ @@ -1975,6 +2169,10 @@ conf.cpp:637:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 637 | str = cf->getString (ret, "key_incthrust"); | ^~~~~~~~~~~~~~~ +pilots.cpp: In member function 'void PilotList::save(char*)': +pilots.cpp:325:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 325 | display ("Could not write saves/pilots", LOG_WARN); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ conf.cpp:640:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 640 | str = cf->getString (ret, "key_decthrust"); | ^~~~~~~~~~~~~~~ @@ -2050,280 +2248,6 @@ conf.cpp:747:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 747 | str = cf->getString (ret, "joystick_decthrust"); | ^~~~~~~~~~~~~~~~~~~~ -land.cpp: In member function 'void Landscape::genCanyonSurface(int)': -land.cpp:746:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] - 746 | if (h [i * step] [i2 * step] == 0) - | ^ -land.cpp: In member function 'void Landscape::genDesertSurface(int)': -land.cpp:907:43: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] - 907 | ha [i3] = h [i] [GETCOORD(i2 + i3 - range / 2)]; - | ~~~~~~~~^~~~~~~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -land.cpp: In member function 'void Landscape::genRocks(int, int)': -land.cpp:1042:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses] - 1042 | if (f [i - 1] [i2] == ROCKS && f [i + 1] [i2] == ROCKS || -land.cpp:1046:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses] - 1046 | if (f [i - 1] [i2] == GLACIER && f [i + 1] [i2] == GLACIER || -land.cpp: In member function 'int Landscape::calcLake(int, int, short unsigned int, int, int)': -land.cpp:1074:17: warning: variable 'w' set but not used [-Wunused-but-set-variable] - 1074 | int i, i2, n, w, timeout = 0; - | ^ -In file included from effects.h:28, - from aiobject.h:29, - from glland.h:30, - from glland.cpp:26: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ -land.cpp: In member function 'void Landscape::calcWoods(int)': -land.cpp:1384:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] - 1384 | if (isWoods (f [i - 1] [i2]) && isWoods (f [i + 1] [i2]) || - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -loader_tga.cpp: In function 'unsigned char* tga_load(char*, int*, int*)': -loader_tga.cpp:198:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 198 | display ("Out of memory", LOG_FATAL); - | ^~~~~~~~~~~~~~~ -loader_tga.cpp:217:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 217 | display ("Out of memory", LOG_FATAL); - | ^~~~~~~~~~~~~~~ -loader_tga.cpp: In function 'DATA32* flip(DATA32*, int, int)': -loader_tga.cpp:438:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 438 | display ("Out of memory", LOG_FATAL); - | ^~~~~~~~~~~~~~~ -In file included from effects.h:28, - from aiobject.h:29, - from mission.h:28, - from pilots.cpp:31: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ -pilots.cpp: In member function 'char* TeamPilot::getRank()': -pilots.cpp:55:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 55 | if (ranking == 0) return "AIRMAN BASIC"; - | ^~~~~~~~~~~~~~ -pilots.cpp:56:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 56 | else if (ranking == 1) return "AIRMAN"; - | ^~~~~~~~ -pilots.cpp:57:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 57 | else if (ranking == 2) return "AIRMAN 1ST CLASS"; - | ^~~~~~~~~~~~~~~~~~ -pilots.cpp:58:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 58 | else if (ranking == 3) return "2ND LIEUTNANT"; - | ^~~~~~~~~~~~~~~ -pilots.cpp:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 59 | else if (ranking == 4) return "1ST LIEUTNANT"; - | ^~~~~~~~~~~~~~~ -pilots.cpp:60:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 60 | else if (ranking == 5) return "CAPTAIN"; - | ^~~~~~~~~ -pilots.cpp:61:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 61 | else if (ranking == 6) return "MAJOR"; - | ^~~~~~~ -pilots.cpp:62:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 62 | else if (ranking == 7) return "COLONEL"; - | ^~~~~~~~~ -pilots.cpp:63:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 63 | else return "GENERAL"; - | ^~~~~~~~~ -pilots.cpp: In member function 'char* TeamPilot::getShortRank()': -pilots.cpp:68:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 68 | if (ranking == 0) return "AB"; - | ^~~~ -pilots.cpp:69:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 69 | else if (ranking == 1) return "ARM"; - | ^~~~~ -pilots.cpp:70:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 70 | else if (ranking == 2) return "A1C"; - | ^~~~~ -pilots.cpp:71:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 71 | else if (ranking == 3) return "2ND LT"; - | ^~~~~~~~ -pilots.cpp:72:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 72 | else if (ranking == 4) return "1ST LT"; - | ^~~~~~~~ -pilots.cpp:73:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 73 | else if (ranking == 5) return "CAPT"; - | ^~~~~~ -pilots.cpp:74:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 74 | else if (ranking == 6) return "MAJ"; - | ^~~~~ -pilots.cpp:75:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 75 | else if (ranking == 7) return "COL"; - | ^~~~~ -In file included from effects.h:28, - from aiobject.h:29, - from mission.h:28, - from mission.cpp:28: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ -pilots.cpp:76:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 76 | else return "GEN"; - | ^~~~~ -pilots.cpp: In member function 'void Pilot::load()': -pilots.cpp:140:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 140 | tp [0] = new TeamPilot (5, "PRIMETIME", 200, 100, 150, 20); - | ^~~~~~~~~~~ -pilots.cpp:141:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 141 | tp [1] = new TeamPilot (1, "HEPTARGON", 80, 220, 300, 1); - | ^~~~~~~~~~~ -pilots.cpp:142:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 142 | tp [2] = new TeamPilot (2, "KARA", 180, 160, 50, 4); - | ^~~~~~ -pilots.cpp:143:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 143 | tp [3] = new TeamPilot (6, "SHARK", 70, 90, 120, 22); - | ^~~~~~~ -pilots.cpp:144:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 144 | tp [4] = new TeamPilot (3, "BOSS", 250, 180, 80, 10); - | ^~~~~~ -dirs.cpp: In constructor 'Dirs::Dirs(char*)': -dirs.cpp:141:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 141 | p = mystrtok (p, (int) (path + pathlen - p), ":"); - | ^~~ -pilots.cpp:145:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 145 | tp [5] = new TeamPilot (2, "DR DOOM", 320, 210, 20, 2); - | ^~~~~~~~~ -pilots.cpp:146:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 146 | tp [6] = new TeamPilot (4, "SHADOW", 130, 200, 320, 15); - | ^~~~~~~~ -dirs.cpp:158:71: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 158 | p = mystrtok (p + strlen (p) + 1, (int) (path + pathlen - p), ":"); - | ^~~ -pilots.cpp:147:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 147 | tp [7] = new TeamPilot (7, "MATRIX", 40, 80, 180, 25); - | ^~~~~~~~ -pilots.cpp:148:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 148 | tp [8] = new TeamPilot (1, "FIREBIRD", 250, 140, 100, 1); - | ^~~~~~~~~~ -pilots.cpp:149:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 149 | tp [9] = new TeamPilot (4, "THUNDER", 150, 170, 60, 18); - | ^~~~~~~~~ -pilots.cpp:150:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 150 | tp [10] = new TeamPilot (0, "PLAYER", 0, 0, 0, 0); - | ^~~~~~~~ -pilots.cpp:158:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 158 | display ("Could not load pilot", LOG_WARN); - | ^~~~~~~~~~~~~~~~~~~~~~ -dirs.cpp:161:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 161 | display ("Binary file has no context to the data files.", LOG_FATAL); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -dirs.cpp:185:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 185 | display ("Binary file has no context to the data files.", LOG_FATAL); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp: In member function 'void Pilot::save()': -pilots.cpp:185:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 185 | display ("Could not write pilot", LOG_WARN); - | ^~~~~~~~~~~~~~~~~~~~~~~ -dirs.cpp:194:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 194 | append (saves, ".gl-117"); - | ^~~~~~~~~ -dirs.cpp:230:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 230 | append (textures, "textures"); - | ^~~~~~~~~~ -dirs.cpp:231:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 231 | append (music, "music"); - | ^~~~~~~ -dirs.cpp:232:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 232 | append (sound, "sounds"); - | ^~~~~~~~ -dirs.cpp:233:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 233 | append (models, "models"); - | ^~~~~~~~ -dirs.cpp:234:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 234 | append (maps, "maps"); - | ^~~~~~ -dirs.cpp: In constructor 'Dirs::Dirs(char*)': -dirs.cpp:131:12: warning: ignoring return value of 'char* getcwd(char*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] - 131 | getcwd (cwd, 4096); // get current working directory - | ~~~~~~~^~~~~~~~~~~ -pilots.cpp: In member function 'char* Pilot::getRank()': -pilots.cpp:212:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 212 | { ranking = 0; return "AIRMAN BASIC"; } - | ^~~~~~~~~~~~~~ -pilots.cpp:214:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 214 | { ranking = 1; return "AIRMAN"; } - | ^~~~~~~~ -pilots.cpp:216:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 216 | { ranking = 2; return "AIRMAN 1ST CLASS"; } - | ^~~~~~~~~~~~~~~~~~ -pilots.cpp:218:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 218 | { ranking = 3; return "2ND LIEUTNANT"; } - | ^~~~~~~~~~~~~~~ -pilots.cpp:220:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 220 | { ranking = 4; return "1ST LIEUTNANT"; } - | ^~~~~~~~~~~~~~~ -pilots.cpp:222:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 222 | { ranking = 5; return "CAPTAIN"; } - | ^~~~~~~~~ -pilots.cpp:224:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 224 | { ranking = 6; return "MAJOR"; } - | ^~~~~~~ -pilots.cpp:226:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 226 | { ranking = 7; return "COLONEL"; } - | ^~~~~~~~~ -pilots.cpp:228:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 228 | { ranking = 8; return "GENERAL"; } - | ^~~~~~~~~ -pilots.cpp: In member function 'char* Pilot::getShortRank()': -pilots.cpp:254:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 254 | { ranking = 0; return "AB"; } - | ^~~~ -pilots.cpp:256:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 256 | { ranking = 1; return "AMN"; } - | ^~~~~ -pilots.cpp:258:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 258 | { ranking = 2; return "A1C"; } - | ^~~~~ -pilots.cpp:260:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 260 | { ranking = 3; return "2ND LT"; } - | ^~~~~~~~ -pilots.cpp:262:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 262 | { ranking = 4; return "1ST LT"; } - | ^~~~~~~~ -In file included from effects.h:28, - from aiobject.h:29, - from main.h:41, - from main.cpp:38: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ -pilots.cpp:264:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 264 | { ranking = 5; return "CAPT"; } - | ^~~~~~ -pilots.cpp:266:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 266 | { ranking = 6; return "MAJ"; } - | ^~~~~ -pilots.cpp:268:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 268 | { ranking = 7; return "COL"; } - | ^~~~~ -pilots.cpp:270:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 270 | { ranking = 8; return "GEN"; } - | ^~~~~ -pilots.cpp: In member function 'void PilotList::load(char*)': -pilots.cpp:296:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 296 | display ("Could not load saves/pilots", LOG_WARN); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:298:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 298 | add ("PLAYER"); - | ^~~~~~~~ -pilots.cpp: In member function 'void PilotList::save(char*)': -pilots.cpp:325:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 325 | display ("Could not write saves/pilots", LOG_WARN); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pilots.cpp: In member function 'void TeamPilot::load(FILE*)': pilots.cpp:97:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 97 | fread (&ranking, sizeof (int), 1, in); @@ -2384,24 +2308,193 @@ pilots.cpp:303:9: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 303 | fgets (buf, 16, in); | ~~~~~~^~~~~~~~~~~~~ +dirs.cpp: In constructor 'Dirs::Dirs(char*)': +dirs.cpp:141:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 141 | p = mystrtok (p, (int) (path + pathlen - p), ":"); + | ^~~ +dirs.cpp:158:71: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 158 | p = mystrtok (p + strlen (p) + 1, (int) (path + pathlen - p), ":"); + | ^~~ +dirs.cpp:161:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 161 | display ("Binary file has no context to the data files.", LOG_FATAL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +dirs.cpp:185:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 185 | display ("Binary file has no context to the data files.", LOG_FATAL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +dirs.cpp:194:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 194 | append (saves, ".gl-117"); + | ^~~~~~~~~ +dirs.cpp:230:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 230 | append (textures, "textures"); + | ^~~~~~~~~~ +dirs.cpp:231:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 231 | append (music, "music"); + | ^~~~~~~ +dirs.cpp:232:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 232 | append (sound, "sounds"); + | ^~~~~~~~ +dirs.cpp:233:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 233 | append (models, "models"); + | ^~~~~~~~ +dirs.cpp:234:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 234 | append (maps, "maps"); + | ^~~~~~ +dirs.cpp: In constructor 'Dirs::Dirs(char*)': +dirs.cpp:131:12: warning: ignoring return value of 'char* getcwd(char*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] + 131 | getcwd (cwd, 4096); // get current working directory + | ~~~~~~~^~~~~~~~~~~ In file included from effects.h:28, from aiobject.h:29, - from main.h:41, - from net.cpp:27: + from glland.h:30, + from glland.cpp:26: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ +In file included from effects.h:28, + from aiobject.h:29, + from mission.h:28, + from mission.cpp:28: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ +In file included from effects.h:28, + from aiobject.h:29, + from aiobject.cpp:26: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ +vertexarray.cpp: In member function 'void VertexArray::reallocData()': +vertexarray.cpp:160:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 160 | display ("Out of memory", LOG_FATAL); + | ^~~~~~~~~~~~~~~ +In file included from land.cpp:31: +land.cpp: In member function 'void Landscape::convolveGauss(int, int, int)': +land.cpp:95:39: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 95 | mx = GETCOORD(x - MAXCORE / 2 + i); + | ~~~~~~~~~~~~~~~~^~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +land.cpp:107:41: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 107 | my = GETCOORD(y - MAXCORE / 2 + i); + | ~~~~~~~~~~~~~~~~^~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +common.cpp: In function 'void display(char*, int)': +common.cpp:47:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 47 | if ((display_out = fopen (dirs->getSaves ("logfile.txt"), "wt")) != NULL) + | ^~~~~~~~~~~~~ +common.cpp: In function 'void error_outofmemory()': +common.cpp:62:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 62 | display ("Out of memory", LOG_FATAL); + | ^~~~~~~~~~~~~~~ +land.cpp: In member function 'void Landscape::genCanyonSurface(int)': +land.cpp:746:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] + 746 | if (h [i * step] [i2 * step] == 0) + | ^ +land.cpp: In member function 'void Landscape::genDesertSurface(int)': +land.cpp:907:43: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] + 907 | ha [i3] = h [i] [GETCOORD(i2 + i3 - range / 2)]; + | ~~~~~~~~^~~~~~~~~~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +land.cpp: In member function 'void Landscape::genRocks(int, int)': +land.cpp:1042:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses] + 1042 | if (f [i - 1] [i2] == ROCKS && f [i + 1] [i2] == ROCKS || +land.cpp:1046:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses] + 1046 | if (f [i - 1] [i2] == GLACIER && f [i + 1] [i2] == GLACIER || +land.cpp: In member function 'int Landscape::calcLake(int, int, short unsigned int, int, int)': +land.cpp:1074:17: warning: variable 'w' set but not used [-Wunused-but-set-variable] + 1074 | int i, i2, n, w, timeout = 0; + | ^ +land.cpp: In member function 'void Landscape::calcWoods(int)': +land.cpp:1384:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] + 1384 | if (isWoods (f [i - 1] [i2]) && isWoods (f [i + 1] [i2]) || + | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +3ds.cpp: In constructor 'BinaryFile::BinaryFile(char*)': +3ds.cpp:59:9: warning: variable 'tmp' set but not used [-Wunused-but-set-variable] + 59 | int tmp; + | ^~~ +In file included from effects.h:28, + from aiobject.h:29, + from maploader.h:27, + from maploader.cpp:30: object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); | ^~~~~~ effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' 164 | void drawGL (CVector3 *tl, CVector3 *textl); | ^~~~~~ +3ds.cpp: In member function 'void CLoad3DS::ProcessNextChunk(CModel*, Chunk*)': +3ds.cpp:274:16: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CObject'; use assignment or value-initialization instead [-Wclass-memaccess] + 274 | memset (&newObject, 0, sizeof (CObject)); + | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from 3ds.h:27, + from 3ds.cpp:32: +model.h:188:7: note: 'class CObject' declared here + 188 | class CObject + | ^~~~~~~ +3ds.cpp: In member function 'void CLoad3DS::ReadVertices(CObject*, Chunk*)': +3ds.cpp:516:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CVertex'; use assignment or value-initialization instead [-Wclass-memaccess] + 516 | memset (object->vertex, 0, sizeof (CVertex) * object->numVertices); + | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +model.h:113:7: note: 'class CVertex' declared here + 113 | class CVertex + | ^~~~~~~ +maploader.cpp: In member function 'void MapLoader::readMapFile()': +maploader.cpp:57:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 57 | if (!file_open (dirs->getMaps ("maps.txt"))) + | ^~~~~~~~~~ +maploader.cpp: In constructor 'MapLoader::MapLoader()': +maploader.cpp:73:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 73 | file_setWhitespace (" \t\r\n"); + | ^~~~~~~~~ +maploader.cpp:74:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 74 | file_addComment ("#", "\n"); + | ^~~ +maploader.cpp:74:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 74 | file_addComment ("#", "\n"); + | ^~~~ +maploader.cpp:75:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 75 | file_setQuotes ("\"'´`"); + | ^~~~~~~ +maploader.cpp: In member function 'int MissionCustom::readAttribute(char*, char*, char*)': +maploader.cpp:145:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 145 | error ("Assignment symbol '=' is missing"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:152:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 152 | error ("Unexpected end of file"); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp: In member function 'int MissionCustom::synchronize()': +maploader.cpp:163:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 163 | if (!file_find ("\n")) return 0; + | ^~~~ model.cpp: In member function 'void CModel::addMaterial(CMaterial*)': model.cpp:573:32: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CMaterial'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 573 | if (material != NULL) memcpy (this->material [numMaterials], material, sizeof (CMaterial)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp: In member function 'int MissionCustom::parseMapData()': +maploader.cpp:235:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 235 | error ("Heading value must be an integer"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from model.cpp:32: model.h:170:7: note: 'class CMaterial' declared here 170 | class CMaterial | ^~~~~~~~~ +maploader.cpp:259:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 259 | error ("Time value must be an integer in [0...24]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ model.cpp: In member function 'void CModel::addObject(CObject*)': model.cpp:581:30: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CObject'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 581 | if (object != NULL) memcpy (this->object [numObjects], object, sizeof (CObject)); @@ -2409,247 +2502,216 @@ model.h:188:7: note: 'class CObject' declared here 188 | class CObject | ^~~~~~~ -main.cpp: In function 'int game_levelInit()': -main.cpp:669:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 669 | display ("Could not startup mission", LOG_ERROR); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp: In function 'void switch_mission(int)': -main.cpp:1188:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 1188 | display ("Could not init mission", LOG_ERROR); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp: In function 'void drawQuads(CColor*)': -main.cpp:1864:18: warning: variable 'yf' set but not used [-Wunused-but-set-variable] - 1864 | float zf = -3, yf; - | ^~ -main.cpp: In function 'void pleaseWait()': -main.cpp:1974:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 1974 | font1->drawTextCentered (0, -0.5, -1.5, "PLEASE WAIT...", &colorwhite); - | ^~~~~~~~~~~~~~~~ -main.cpp: In function 'void stats_key(unsigned char, int, int)': -main.cpp:1983:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 1983 | display ("Initing new mission", LOG_MOST); - | ^~~~~~~~~~~~~~~~~~~~~ -main.cpp: In function 'char* getModelText(int)': -main.cpp:2083:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2083 | return "THE FALCON IS A NIMBLE AND\nFAST FIGHTER PROVIDING\nBOTH AIR-AIR AND\nAIR-GROUND-MISSILES."; - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:2085:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2085 | return "THE HAWK IS A TYPICAL\nALLROUNDER AND DESIGNED\nFOR GROUND ATTACKS."; - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:2087:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2087 | return "THE HAWK II IS A ..."; - | ^~~~~~~~~~~~~~~~~~~~~~ -main.cpp:2088:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2088 | return "NO INFO"; - | ^~~~~~~~~ -main.cpp: In function 'char* getModelName(int)': -main.cpp:2094:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2094 | return "GL-16 FALCON"; - | ^~~~~~~~~~~~~~ -main.cpp:2096:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2096 | return "GL-22 HAWK"; - | ^~~~~~~~~~~~ -main.cpp:2098:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2098 | return "GL-23 HAWK II"; - | ^~~~~~~~~~~~~~~ -main.cpp:2100:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2100 | return "GL-15 REDARROW"; - | ^~~~~~~~~~~~~~~~ -main.cpp:2102:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2102 | return "GL-117 PHOENIX"; - | ^~~~~~~~~~~~~~~~ -main.cpp:2104:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2104 | return "GL-50 STORM"; - | ^~~~~~~~~~~~~ -main.cpp:2106:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2106 | return "CROW"; - | ^~~~~~ -main.cpp:2108:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2108 | return "BUZZARD"; - | ^~~~~~~~~ -main.cpp:2110:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2110 | return "SWALLOW"; - | ^~~~~~~~~ -main.cpp:2112:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2112 | return "BLACKBIRD"; - | ^~~~~~~~~~~ -main.cpp:2114:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2114 | return "AIR-AIR MISSILE PACK"; +maploader.cpp:266:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 266 | error ("Time value must be an integer in [0...24]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:300:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 300 | error ("Only 32 bpp TGA files are valid"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:313:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 313 | error ("Scaleheight value must be a float number in [0...1]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:320:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 320 | error ("Scaleheight value must be a float number in [0...1]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:333:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 333 | error ("Tree needs a number suffix like \"Tree2\" with number in [1...3]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:339:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 339 | error ("Tree value must be an integer in [0...100]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:345:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 345 | error ("Tree value must be an integer in [0...100]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp: In member function 'int MissionCustom::parseObjectData()': +maploader.cpp:369:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 369 | error ("Too many objects defined"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:426:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 426 | error ("Party value must be an integer"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:437:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 437 | error ("Level value must be an integer in [0...10]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:443:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 443 | error ("Level value must be an integer in [0...10]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:451:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 451 | error ("X value must be a float number"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:462:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 462 | error ("Y value must be a float number"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:473:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 473 | error ("Inittime value must be a float number"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:485:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 485 | error ("Critical value must be an integer"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp: In member function 'int MissionCustom::parseTextData()': +maploader.cpp:511:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 511 | error ("Too many text blocks"); | ^~~~~~~~~~~~~~~~~~~~~~ -main.cpp:2116:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2116 | return "AIR-GROUND MISSILE PACK"; +maploader.cpp:530:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 530 | error ("Starttime value must be a float number"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:542:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 542 | error ("Delay value must be a float number"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp: In member function 'int MissionCustom::parseRelCoords()': +maploader.cpp:576:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 576 | error ("No object defined yet: coords origin could not be set"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:587:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 587 | error ("No object defined yet: coords origin could not be set"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:608:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 608 | error ("Quadrant value must be an integer in [1...16]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:614:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 614 | error ("Quadrant value must be an integer in [1...16]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp: In member function 'int MissionCustom::parseInfoData()': +maploader.cpp:657:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 657 | error ("Pilot needs a number suffix like \"Pilot5\" with number in [1...maxpilots]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:664:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 664 | error ("Invalid pilot name"); + | ^~~~~~~~~~~~~~~~~~~~ +maploader.cpp:677:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 677 | error ("Fighter needs a number suffix like \"Fighter1\" with number in [1...3]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:689:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 689 | error ("Invalid fighter type"); + | ^~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:698:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 698 | error ("Weapon needs a number suffix like \"Weapon\" with number in [1...3]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:707:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 707 | error ("Invalid weapon type"); + | ^~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:715:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 715 | error ("Maxtime value must be a float number"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp: In member function 'void MissionCustom::init()': +maploader.cpp:741:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 741 | error ("Could not open map file"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:2118:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2118 | return "DUMB FIRE MISSILE PACK"; - | ^~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:2119:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2119 | return "NO INFO"; - | ^~~~~~~~~ -main.cpp: In function 'void mission_display()': -main.cpp:2280:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2280 | font1->drawText (textx / fontscale, texty / fontscale, -2, "BRIEFING:", col); - | ^~~~~~~~~~~ -main.cpp:2286:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2286 | font1->drawText (xstats / fontscale, ystats / fontscale, -2, "STATUS:", col); - | ^~~~~~~~~ -main.cpp:2288:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2288 | font1->drawText (xstatstab / fontscale, ystats / fontscale, -2, "SUCCESS", colorstd); - | ^~~~~~~~~ -main.cpp:2290:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2290 | font1->drawText (xstatstab / fontscale, ystats / fontscale, -2, "FAILED", colorstd); - | ^~~~~~~~ -main.cpp:2292:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2292 | font1->drawText (xstatstab / fontscale, ystats / fontscale, -2, "EMPTY", colorstd); - | ^~~~~~~ -main.cpp:2296:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2296 | font1->drawText (xstats / fontscale, texty / fontscale, -2, "SCORE:", col); - | ^~~~~~~~ -main.cpp:2302:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2302 | font1->drawText (xstats / fontscale, texty / fontscale, -2, "KILLS:", col); - | ^~~~~~~~ -main.cpp:2310:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2310 | font1->drawText (xstats / fontscale, texty / fontscale, -2, "SCORE:", col); - | ^~~~~~~~ -main.cpp:2311:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2311 | font1->drawText (xstatstab / fontscale, texty / fontscale, -2, "TRAINING", col); - | ^~~~~~~~~~ -main.cpp:2314:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2314 | font1->drawText (textx / fontscale, piloty / fontscale, -2, "PILOTS:", col); - | ^~~~~~~~~ -main.cpp:2327:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2327 | font1->drawText (textx / fontscale, -1 / fontscale, -2, "CHOOSE FIGHTER:", col); - | ^~~~~~~~~~~~~~~~~ -main.cpp:2328:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2328 | font1->drawText (xstats / fontscale, -1 / fontscale, -2, "CHOOSE WEAPON PACK:", col); - | ^~~~~~~~~~~~~~~~~~~~~ -main.cpp: In function 'void create_display()': -main.cpp:2382:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2382 | font1->drawTextCentered (0, 9, -1.5, "CREATE GAME"); - | ^~~~~~~~~~~~~ -main.cpp:2385:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2385 | font1->drawTextScaled (-2, -12, -2, "BACK", colorstd, -missionmenutimer * 5); - | ^~~~~~ -main.cpp:2387:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2387 | font1->drawText (-2, -12, -2, "BACK"); - | ^~~~~~ -main.cpp: In function 'void join_display()': -main.cpp:2426:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2426 | font1->drawTextCentered (0, 9, -1.5, "JOIN GAME"); - | ^~~~~~~~~~~ -main.cpp:2429:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2429 | font1->drawTextScaled (-2, -12, -2, "BACK", colorstd, -missionmenutimer * 5); - | ^~~~~~ -main.cpp:2431:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2431 | font1->drawText (-2, -12, -2, "BACK"); - | ^~~~~~ -main.cpp: In function 'void game_quit()': -main.cpp:2583:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2583 | pilots->save (dirs->getSaves ("pilots")); - | ^~~~~~~~ -main.cpp:2584:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2584 | display ("Pilots saved", LOG_MOST); - | ^~~~~~~~~~~~~~ -main.cpp: In function 'void stats_display()': -main.cpp:2700:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2700 | font1->drawTextCentered (0, 7, -2, "SUCCESS", &colorblue); - | ^~~~~~~~~ -main.cpp:2704:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2704 | font1->drawTextCentered (0, 7, -2, "FAILED", &colorred); - | ^~~~~~~~ -main.cpp:2707:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2707 | font1->drawText (xf1, yf, zf, "SCORE:", color); - | ^~~~~~~~ -main.cpp:2712:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2712 | font1->drawText (xf1, yf, zf, "DIFFICULTY:", color); - | ^~~~~~~~~~~~~ -main.cpp:2713:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2713 | if (mission->difficulty == 0) font1->drawText (xf2, yf, zf, "EASY", color); - | ^~~~~~ -main.cpp:2714:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2714 | else if (mission->difficulty == 1) font1->drawText (xf2, yf, zf, "NORMAL", color); - | ^~~~~~~~ -main.cpp:2715:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2715 | else if (mission->difficulty == 2) font1->drawText (xf2, yf, zf, "HARD", color); - | ^~~~~~ -main.cpp:2716:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2716 | if (mission->difficulty == 0) font1->drawText (xf3, yf, zf, "-25", color); - | ^~~~~ -main.cpp:2717:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2717 | else if (mission->difficulty == 1) font1->drawText (xf3, yf, zf, "+25", color); - | ^~~~~ -main.cpp:2718:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2718 | else if (mission->difficulty == 2) font1->drawText (xf3, yf, zf, "+75", color); - | ^~~~~ -main.cpp:2721:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2721 | font1->drawText (xf1, yf, zf, "FLIGHT MODEL:", color); - | ^~~~~~~~~~~~~~~ -main.cpp:2722:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2722 | if (!fplayer->realism) font1->drawText (xf2, yf, zf, "ACTION", color); - | ^~~~~~~~ -main.cpp:2723:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2723 | else font1->drawText (xf2, yf, zf, "SIM", color); - | ^~~~~ -main.cpp:2724:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2724 | if (!fplayer->realism) font1->drawText (xf3, yf, zf, "-25", color); - | ^~~~~ -main.cpp:2725:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2725 | else font1->drawText (xf3, yf, zf, "+25", color); - | ^~~~~ -main.cpp:2731:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2731 | font1->drawText (xf1, yf, zf, "TIME BONUS:", color); - | ^~~~~~~~~~~~~ -main.cpp:2738:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2738 | font1->drawText (xf1, yf, zf, "SHIELD BONUS:", color); - | ^~~~~~~~~~~~~~~ -main.cpp:2744:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2744 | font1->drawText (xf1, yf, zf, "KILLS:", color); - | ^~~~~~~~ -main.cpp:2782:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2782 | font1->drawTextCentered (0, yf, zf, "PROMOTED TO", color); - | ^~~~~~~~~~~~~ -main.cpp: In function 'int selectMouse(int, int, int, int, int, bool)': -main.cpp:2893:7: warning: variable 'pick' set but not used [-Wunused-but-set-variable] - 2893 | int pick [100]; - | ^~~~ -main.cpp: In function 'void pause_display()': -main.cpp:2938:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2938 | font1->drawText (-3, -1, -1, "PAUSED", &colorwhite); - | ^~~~~~~~ -main.cpp: In function 'void credits_display()': -main.cpp:3009:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3009 | font2->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "GAME PROGRAMMING,", col); - | ^~~~~~~~~~~~~~~~~~~ -main.cpp:3010:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3010 | font2->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "GRAPHICS, MODELS, SOUND & MUSIC", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3011:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3011 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "THOMAS A. DREXL", col2); - | ^~~~~~~~~~~~~~~~~ -main.cpp:3015:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3015 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "SPECIAL THANKS TO...", col); - | ^~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3016:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3016 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "LENS FLARES & FURTHER DEBUGGING", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3017:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3017 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "PIOTR PAWLOW", col2); - | ^~~~~~~~~~~~~~ -main.cpp:3018:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3018 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "MOUSE INTERFACE & LANDSCAPE IMPROVEMENTS", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3019:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3019 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "LOURENS VEEN", col2); - | ^~~~~~~~~~~~~~ -main.cpp:3020:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3020 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "PUBLISHING & FURTHER GAME IDEAS", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3021:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3021 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "BERNHARD KAINDL", col2); - | ^~~~~~~~~~~~~~~~~ -main.cpp:3022:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3022 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "MOON TERRAIN", col); - | ^~~~~~~~~~~~~~ -g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include -I/usr/include -c -o common.o common.cpp +In file included from effects.h:28, + from aiobject.h:29, + from main.h:41, + from net.cpp:27: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ +maploader.cpp: In member function 'virtual void MissionCustom::start()': +maploader.cpp:871:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 871 | display ("Map has a valid bpp entry but seems to be corrupt", LOG_FATAL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from glland.h:32: +glland.cpp: In member function 'void GLLandscape::precalculate()': +glland.cpp:299:28: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] + 299 | int xm1 = GETCOORD(x - 1); + | ~~^~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +glland.cpp:300:28: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 300 | int xp1 = GETCOORD(x + 1); + | ~~^~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +glland.cpp:301:28: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] + 301 | int zm1 = GETCOORD(z - 1); + | ~~^~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +glland.cpp:302:28: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 302 | int zp1 = GETCOORD(z + 1); + | ~~^~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +glland.cpp: In member function 'void GLLandscape::drawQuadStrip(int, int, int, int)': +glland.cpp:889:30: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 889 | int xstep = GETCOORD(x + step); + | ~~^~~~~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +glland.cpp:890:27: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 890 | int y2 = GETCOORD(y + step); + | ~~^~~~~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +glland.cpp:897:29: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] + 897 | int y0 = GETCOORD(y - step); + | ~~^~~~~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +aiobject.cpp: In member function 'int DynamicObj::net_write()': +aiobject.cpp:36:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the source; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] + 36 | memcpy (&net [z], &tl->x, sizeof (&tl->x)); + | ^~~~~~~~~~~~~~~ +aiobject.cpp:38:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the source; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] + 38 | memcpy (&net [z], &tl->y, sizeof (&tl->y)); + | ^~~~~~~~~~~~~~~ +aiobject.cpp:40:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the source; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] + 40 | memcpy (&net [z], &tl->z, sizeof (&tl->z)); + | ^~~~~~~~~~~~~~~ +aiobject.cpp:42:27: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] + 42 | memcpy (&net [z], &phi, sizeof (&phi)); + | ^~~~~~~~~~~~~ +glland.cpp:968:32: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 968 | int xstep = GETCOORD(x + step); + | ~~^~~~~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +aiobject.cpp:44:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] + 44 | memcpy (&net [z], &theta, sizeof (&theta)); + | ^~~~~~~~~~~~~~~ +glland.cpp:969:32: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 969 | int ystep = GETCOORD(y + step); + | ~~^~~~~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +aiobject.cpp:46:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] + 46 | memcpy (&net [z], &gamma, sizeof (&gamma)); + | ^~~~~~~~~~~~~~~ +glland.cpp:970:33: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] + 970 | int ymstep = GETCOORD(y - step); + | ~~^~~~~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +aiobject.cpp: In member function 'void DynamicObj::net_read()': +aiobject.cpp:55:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the destination; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] + 55 | memcpy (&tl->x, &net [z], sizeof (&tl->x)); + | ^~~~~~~~~~~~~~~ +aiobject.cpp:57:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the destination; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] + 57 | memcpy (&tl->y, &net [z], sizeof (&tl->y)); + | ^~~~~~~~~~~~~~~ +aiobject.cpp:59:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the destination; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] + 59 | memcpy (&tl->z, &net [z], sizeof (&tl->z)); + | ^~~~~~~~~~~~~~~ +aiobject.cpp:61:27: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the destination; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] + 61 | memcpy (&phi, &net [z], sizeof (&phi)); + | ^~~~~~~~~~~~~ +aiobject.cpp:63:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the destination; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] + 63 | memcpy (&theta, &net [z], sizeof (&theta)); + | ^~~~~~~~~~~~~~~ +aiobject.cpp:65:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the destination; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] + 65 | memcpy (&gamma, &net [z], sizeof (&gamma)); + | ^~~~~~~~~~~~~~~ mission.cpp: In member function 'virtual void MissionTutorial1::draw()': mission.cpp:385:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 385 | font1->drawTextCentered (0, 7, -2.5, "LEAVE THE JOYSTICK CENTERED.", &textcolor); @@ -2657,39 +2719,15 @@ mission.cpp:386:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 386 | font1->drawTextCentered (0, 6, -2.5, "THE FIGHTER SHOULD FLY STRAIGHT ON.", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3023:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3023 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "NORBERT DREXL", col2); - | ^~~~~~~~~~~~~~~ mission.cpp:387:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 387 | font1->drawTextCentered (0, 5, -2.5, "IF NOT, RECALIBRATE YOUR JOYSTICK", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:391:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 391 | font1->drawTextCentered (0, 7, -2.5, "THE MENU OPTIONS/CONTROLS LETS YOU", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3024:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3024 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "PHYSICAL MODEL (ACTION) & COCKPIT IMPROVEMENTS", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3025:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3025 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "ARNE REINERS", col2); - | ^~~~~~~~~~~~~~ -main.cpp:3026:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3026 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "...AND THANKS TO ALL PEOPLE GIVING FEEDBACK AND ADVICE", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3031:66: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3031 | font1->drawTextCentered (0, (yt -= 10 * ydist) / fontzoom, zf, "***********************", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3032:66: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3032 | font1->drawTextCentered (0, (yt -= 10 * ydist) / fontzoom, zf, "DO YOU WANT TO CONTRIBUTE?", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3036:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3036 | font2->drawText (xf / fontzoom, (yt -= 4 * ydist) / fontzoom, zf, "LOTS OF THINGS ARE STILL NEEDED:", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:392:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 392 | font1->drawTextCentered (0, 6, -2.5, "DETERMINE THE INPUT DEVICE.", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3037:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3037 | font2->drawText (xf / fontzoom, (yt -= 2 * ydist) / fontzoom, zf, "- DRAW TEXTURES OF TREES, BUILDINGS, ETC", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:393:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 393 | font1->drawTextCentered (0, 5, -2.5, "CURRENTLY, THIS IS THE MOUSE", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2699,36 +2737,24 @@ mission.cpp:398:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 398 | font1->drawTextCentered (0, 6, -2.5, "DETERMINE THE INPUT DEVICE.", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3038:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3038 | font2->drawText (xf / fontzoom, (yt -= 2 * ydist) / fontzoom, zf, "- DESIGN 3D MODELS", col); - | ^~~~~~~~~~~~~~~~~~~~ mission.cpp:399:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 399 | font1->drawTextCentered (0, 5, -2.5, "CURRENTLY, THIS IS THE KEYBOARD", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:406:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 406 | font1->drawTextCentered (0, 7, -2.5, "MOVING THE JOYSTICK LEFT OR RIGHT", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3039:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3039 | font2->drawText (xf / fontzoom, (yt -= 2 * ydist) / fontzoom, zf, "- CREATE SOUNDTRACKS", col); - | ^~~~~~~~~~~~~~~~~~~~~~ mission.cpp:407:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 407 | font1->drawTextCentered (0, 6, -2.5, "WILL AFFECT THE AILERON.", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:408:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 408 | font1->drawTextCentered (0, 5, -2.5, "THUS YOU WILL ONLY ROLL", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3040:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3040 | font2->drawText (xf / fontzoom, (yt -= 2 * ydist) / fontzoom, zf, "- MAKE MISSION SUGGESTIONS", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:414:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 414 | font1->drawTextCentered (0, 7, -2.5, "THE MOUSE INTERFACE IS VERY EASY.", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:415:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 415 | font1->drawTextCentered (0, 6, -2.5, "ALWAYS POINT TO WHERE YOU WANT TO FLY.", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3041:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3041 | font2->drawText (xf / fontzoom, (yt -= 2 * ydist) / fontzoom, zf, "- GIVE FEEDBACK AND ADVICE", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:416:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 416 | font1->drawTextCentered (0, 5, -2.5, "YOU'LL HAVE TO MOVE THE MOUSE PERMANENTLY", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2765,52 +2791,43 @@ mission.cpp:443:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 443 | font1->drawTextCentered (0, 5, -2.5, "YOU'LL START TO FLY A LOOP", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp: In function 'void finish_display()': -main.cpp:3052:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3052 | font1->drawTextCentered (0, 12, -3, "CONGRATULATIONS!", col); - | ^~~~~~~~~~~~~~~~~~ mission.cpp:447:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 447 | font1->drawTextCentered (0, 7, -2.5, "MOVING RIGHT OR LEFT WILL AFFECT THE AILERON,", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3053:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3053 | font1->drawTextCentered (0, 10, -3, "THE WORLD HAS BEEN SAVED YET AGAIN.", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3054:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3054 | font1->drawTextCentered (0, 6, -3, "HOPE YOU HAD FUN PLAYING GL-117!", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:448:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 448 | font1->drawTextCentered (0, 6, -2.5, "MOVING UP OR DOWN WILL AFFECT THE ELEVATOR.", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:449:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 449 | font1->drawTextCentered (0, 5, -2.5, "THUS YOU CAN FLY ROLLS AND LOOPS", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3055:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3055 | font1->drawTextCentered (0, 4, -3, "THIS GAME HAS ORIGINALLY BEEN DEVELOPED AS PART", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:456:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 456 | font1->drawTextCentered (0, 7, -2.5, "IF YOUR JOYSTICK HAS A SO-CALLED \"RUDDER\",", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3056:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3056 | font1->drawTextCentered (0, 2, -3, "OF THE COURSE \"APPLICATIONS OF COMPUTER GRAPHICS\"", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:457:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 457 | font1->drawTextCentered (0, 6, -2.5, "YOU MAY ALTER THE FIGHTER'S RUDDER.", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +glland.cpp: In member function 'void GLLandscape::drawWaterTexturedQuad(int, int)': +glland.cpp:1524:27: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 1524 | int xstep = GETCOORD(xs + step); + | ~~~^~~~~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ mission.cpp:458:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 458 | font1->drawTextCentered (0, 5, -2.5, "YOU'LL SLIGHTLY FLY TO THE LEFT OR RIGHT", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +glland.cpp:1525:27: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 1525 | int ystep = GETCOORD(ys + step); + | ~~~^~~~~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ mission.cpp:462:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 462 | font1->drawTextCentered (0, 7, -2.5, "MOVING THE MOUSE SLIGHTLY LEFT OR RIGHT", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3057:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3057 | font1->drawTextCentered (0, 0, -3, "AT THE TECHNICAL UNIVERSITY OF MUNICH, GERMANY.", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:463:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 463 | font1->drawTextCentered (0, 6, -2.5, "WILL AFFECT THE RUDDER.", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3058:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3058 | font1->drawTextCentered (0, -2, -3, "IN FEBRUARY 2002 THE WORK WAS DONE AND I", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:467:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 467 | font1->drawTextCentered (0, 7, -2.5, "TO ALTER THE RUDDER", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~ @@ -2832,12 +2849,13 @@ mission.cpp:482:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 482 | font1->drawTextCentered (0, 6, -2.5, "YOUR THROTTLE (SPEED).", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3059:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3059 | font1->drawTextCentered (0, -4, -3, "PRESENTED THE PROTOTYPE OF A FLIGHT SIM,", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:483:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 483 | font1->drawTextCentered (0, 5, -2.5, "THERE IS NO WAY TO ENTIRELY STOP", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +objload.cpp: In constructor 'CFile::CFile(char*)': +objload.cpp:48:11: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 48 | fread (&data [z], 4096, sizeof (char), in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:490:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 490 | font1->drawTextCentered (0, 7, -2.5, "THE PREDEFINED JOYSTICK BUTTONS:", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2853,9 +2871,6 @@ mission.cpp:497:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 497 | font1->drawTextCentered (0, 6, -2.5, "RIGHT MOUSE BUTTON: FIRE MISSILE", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3060:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3060 | font1->drawTextCentered (0, -6, -3, "YET WITHOUT TEXTURES, JOYSTICK, SOUNDS, MUSIC,", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:498:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 498 | font1->drawTextCentered (0, 5, -2.5, "BUT YOU SHOULD REALLY PREFER THE KEYBOARD", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2865,25 +2880,12 @@ mission.cpp:509:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 509 | font1->drawTextCentered (0, 7, -2.5, "A SUMMARY OF COMMANDS CAN BE FOUND IN THE MENU.", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include -I/usr/include -c -o menu.o menu.cpp -main.cpp:3061:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3061 | font1->drawTextCentered (0, -8, -3, "NO CAMPAIGN!", col); - | ^~~~~~~~~~~~~~ -main.cpp:3062:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3062 | font1->drawTextCentered (0, -10, -3, "TWO MONTHS LATER THE FIRST RELEASE OF GL-117 WAS READY.", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3063:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3063 | font1->drawTextCentered (0, -12, -3, "FURTHER RELEASES FOLLOWED, FEEDBACK ARRIVED, AND", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:510:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 510 | font1->drawTextCentered (0, 6, -2.5, "\"ESC\" WILL SHOW THE MENU", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:511:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 511 | font1->drawTextCentered (0, 5, -2.5, "AND RETURN BACK TO THE ACTION", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3064:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3064 | font1->drawTextCentered (0, -14, -3, "PROGRAMMERS JOINED (LISTED IN THE CREDITS SECTION).", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:528:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 528 | font1->drawTextCentered (0, 7, -2.5, "LOOK AT THE RADAR ON THE BOTTOM OF YOUR SCREEN.", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2893,15 +2895,9 @@ mission.cpp:530:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 530 | font1->drawTextCentered (0, 5, -2.5, "AND A RED POINT (NOT TARGETED)", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3065:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3065 | font1->drawTextCentered (0, -16, -3, "SPECIAL THANKS TO JOSEF DREXL FOR THE MODELING IDEAS,", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:536:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 536 | font1->drawTextCentered (0, 7, -2.5, "YOU MAY TARGET AN ENEMY USING THE COOLIE HAT,", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3066:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3066 | font1->drawTextCentered (0, -18, -3, "AND THE UNIX AWARD GOES TO WOLFGANG HOMMEL ;-)", col); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:540:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 540 | font1->drawTextCentered (0, 5, -2.5, "THEN APPROACH!", &textcolor); | ^~~~~~~~~~~~~~~~ @@ -2917,10 +2913,6 @@ mission.cpp:554:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 554 | font1->drawTextCentered (0, 6, -2.5, "THIS TUTORIAL SUCCESSFULLY", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp: In function 'void quit_display()': -main.cpp:3075:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3075 | font1->drawTextCentered (0, 0, -2, "REALLY QUIT?", &menu_colwhite); - | ^~~~~~~~~~~~~~ mission.cpp: In member function 'virtual void MissionTutorial2::draw()': mission.cpp:649:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 649 | font1->drawTextCentered (0, 7, -2.5, "FIRSTLY, HAVE A LOOK AT YOUR MISSILES:", &textcolor); @@ -2937,6 +2929,10 @@ mission.cpp:659:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 659 | font1->drawTextCentered (0, 5, -2.5, "DIRECTION AND WATCH WHERE IT GOES.", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +glland.cpp: In member function 'void GLLandscape::draw(int, int)': +glland.cpp:2048:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2048 | display ("view exceeds ray casting blocks - not implemented", LOG_FATAL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:663:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 663 | font1->drawTextCentered (0, 7, -2.5, "THEN TRY A DF MISSILE BUT CAREFUL:", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -3007,12 +3003,36 @@ mission.cpp:760:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 760 | font1->drawTextCentered (0, 6, -2.5, "ELEVATION WHILE USING THE LOWEST/HIGHEST THRUST SETTINGS", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +glland.cpp:2540:61: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 2540 | int x2 = GETCOORD(xs+gridstep); + | ~~^~~~~~~~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +glland.cpp:2541:61: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 2541 | int y2 = GETCOORD(ys+gridstep); + | ~~^~~~~~~~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ mission.cpp:764:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 764 | font1->drawTextCentered (0, 7, -2.5, "IF YOU FLY A ROLL, THE LIFT WILL NOT OPPOSE THE THRUST", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:765:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 765 | font1->drawTextCentered (0, 6, -2.5, "AND YOU WILL LOSE HEIGHT. TRY!", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +glland.cpp:2566:41: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 2566 | int xstep = GETCOORD(xs + gridstep); + | ~~~^~~~~~~~~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +glland.cpp:2567:41: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 2567 | int ystep = GETCOORD(ys + gridstep); + | ~~~^~~~~~~~~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ mission.cpp:769:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 769 | font1->drawTextCentered (0, 7, -2.5, "IF YOU ROLL TO THE SIDE, THE LIFT WILL TEAR THE AIRCRAFT", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -3043,50 +3063,22 @@ mission.cpp:787:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 787 | font1->drawTextCentered (0, 6, -2.5, "THE TWO TRANSPORTERS AHEAD", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp: In function 'void game_display()': -main.cpp:3578:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3578 | font1->drawTextCentered (0, 0, -1.8, "PLEASE WAIT WHILE", &colorred); - | ^~~~~~~~~~~~~~~~~~~ -main.cpp:3579:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3579 | font1->drawTextCentered (0, -1, -1.8, "ADJUSTING QUALITY", &colorred); - | ^~~~~~~~~~~~~~~~~~~ -main.cpp:3585:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3585 | font1->drawTextCentered (0, -8, -2, "FPS TOO LOW", &colorred); - | ^~~~~~~~~~~~~ -main.cpp:3586:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3586 | font1->drawTextCentered (0, -9, -2, "TURN DOWN VIEW OR QUALITY", &colorred); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp: In member function 'virtual void MissionDogfight1::draw()': mission.cpp:907:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 907 | font1->drawTextCentered (0, 7, -2.5, "THAT WAS EASY", &textcolor); | ^~~~~~~~~~~~~~~ -main.cpp:3591:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3591 | font1->drawTextCentered (0, -8, -2, "FPS FAR TOO LOW", &colorred); - | ^~~~~~~~~~~~~~~~~ mission.cpp:908:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 908 | font1->drawTextCentered (0, 6, -2.5, "BUT CAN YOU HANDLE TWO ENEMIES?", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:913:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 913 | font1->drawTextCentered (0, 6, -2.5, "OK, LET'S TRY THREE ENEMIES", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3592:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3592 | font1->drawTextCentered (0, -9, -2, "SEE \"README\" OR \"FAQ\" FILES", &colorred); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3593:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3593 | font1->drawTextCentered (0, -10, -2, "HIT \"ESC\" AND 'Y' TO EXIT THE GAME", &colorred); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:924:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 924 | font1->drawTextCentered (0, 7, -2.5, "THERE IS AN ENEMY ATTACKING", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3249:9: warning: variable 'fac' set but not used [-Wunused-but-set-variable] - 3249 | float fac = view, zfac = view * 0.2; - | ^~~ mission.cpp:928:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 928 | font1->drawTextCentered (0, 5, -2.5, "SELECT A MISSILE", &textcolor); | ^~~~~~~~~~~~~~~~~~ -main.cpp:3249:21: warning: variable 'zfac' set but not used [-Wunused-but-set-variable] - 3249 | float fac = view, zfac = view * 0.2; - | ^~~~ mission.cpp:932:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 932 | font1->drawTextCentered (0, 7, -2.5, "CHOOSE A FRIEND-FOE (FF) MISSILE", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -3123,12 +3115,20 @@ mission.cpp:959:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 959 | font1->drawTextCentered (0, 7, -2.5, "THE COUNTER MEASURE ONLY HAD AN EFFECT,", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp: In member function 'bool AIObj::fireFlare(DynamicObj**, AIObj**)': +aiobject.cpp:1735:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 1735 | display ("Missile to flare", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~ mission.cpp:960:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 960 | font1->drawTextCentered (0, 6, -2.5, "IF THE DISPLAYS STOP BLINKING", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp:964:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 964 | font1->drawTextCentered (0, 7, -2.5, "A LITTLE TARGETING HINT:", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp: In member function 'bool AIObj::fireChaff(DynamicObj**, AIObj**)': +aiobject.cpp:1781:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 1781 | display ("Missile to chaff", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~ mission.cpp: In member function 'virtual void MissionFreeFlight1::draw()': mission.cpp:1079:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1079 | font1->drawTextCentered (0, 6, -2.5, "TRANSPORTERS RESPAWNING", &textcolor); @@ -3136,44 +3136,31 @@ mission.cpp:1084:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1084 | font1->drawTextCentered (0, 6, -2.5, "TRANSPORTERS RESPAWNING", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -aiobject.cpp: In member function 'int DynamicObj::net_write()': -aiobject.cpp:36:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the source; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] - 36 | memcpy (&net [z], &tl->x, sizeof (&tl->x)); - | ^~~~~~~~~~~~~~~ -aiobject.cpp:38:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the source; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] - 38 | memcpy (&net [z], &tl->y, sizeof (&tl->y)); - | ^~~~~~~~~~~~~~~ -aiobject.cpp:40:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the source; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] - 40 | memcpy (&net [z], &tl->z, sizeof (&tl->z)); - | ^~~~~~~~~~~~~~~ -aiobject.cpp:42:27: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] - 42 | memcpy (&net [z], &phi, sizeof (&phi)); - | ^~~~~~~~~~~~~ -aiobject.cpp:44:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] - 44 | memcpy (&net [z], &theta, sizeof (&theta)); - | ^~~~~~~~~~~~~~~ -aiobject.cpp:46:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] - 46 | memcpy (&net [z], &gamma, sizeof (&gamma)); - | ^~~~~~~~~~~~~~~ -aiobject.cpp: In member function 'void DynamicObj::net_read()': -aiobject.cpp:55:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the destination; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] - 55 | memcpy (&tl->x, &net [z], sizeof (&tl->x)); - | ^~~~~~~~~~~~~~~ -aiobject.cpp:57:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the destination; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] - 57 | memcpy (&tl->y, &net [z], sizeof (&tl->y)); - | ^~~~~~~~~~~~~~~ -aiobject.cpp:59:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the destination; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] - 59 | memcpy (&tl->z, &net [z], sizeof (&tl->z)); - | ^~~~~~~~~~~~~~~ -aiobject.cpp:61:27: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the destination; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] - 61 | memcpy (&phi, &net [z], sizeof (&phi)); - | ^~~~~~~~~~~~~ -aiobject.cpp:63:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the destination; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] - 63 | memcpy (&theta, &net [z], sizeof (&theta)); - | ^~~~~~~~~~~~~~~ -aiobject.cpp:65:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the destination; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] - 65 | memcpy (&gamma, &net [z], sizeof (&gamma)); - | ^~~~~~~~~~~~~~~ +aiobject.cpp: In member function 'void AIObj::aiAction(Uint32, AIObj**, AIObj**, DynamicObj**, DynamicObj**, DynamicObj**)': +aiobject.cpp:2449:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2449 | display ("Manoever: Vertical climb", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp:2656:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2656 | display ("Manoever: Immelmann", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp:2661:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2661 | display ("Manoever: Immelmann", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp:2668:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2668 | display ("Manoever: Roll", LOG_ALL); + | ^~~~~~~~~~~~~~~~ +aiobject.cpp:2676:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2676 | display ("Manoever: Turn", LOG_ALL); + | ^~~~~~~~~~~~~~~~ +aiobject.cpp:2683:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2683 | display ("Manoever: Height change", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp:2714:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2714 | display ("Manoever: Immelmann", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp:2719:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2719 | display ("Manoever: Immelmann", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~ mission.cpp: In member function 'virtual void MissionWaves1::draw()': mission.cpp:1803:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1803 | font1->drawTextCentered (0, 6, -2.5, "NEXT WAVE - YOU ARE FULLY REPAIRED", &textcolor); @@ -3181,6 +3168,502 @@ mission.cpp:1808:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1808 | font1->drawTextCentered (0, 6, -2.5, "NEXT WAVE - YOU ARE FULLY REPAIRED", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp:2726:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2726 | display ("Manoever: Roll", LOG_ALL); + | ^~~~~~~~~~~~~~~~ +aiobject.cpp:2734:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2734 | display ("Manoever: Turn", LOG_ALL); + | ^~~~~~~~~~~~~~~~ +aiobject.cpp:2741:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2741 | display ("Manoever: Height change", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp: In member function 'virtual void MissionTest2::draw()': +mission.cpp:1984:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 1984 | font1->drawTextCentered (0, 4, -2, "ALMOST! GET CLEARLY BEHIND HIM!", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp: In member function 'virtual void MissionDogfight2::draw()': +mission.cpp:2240:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2240 | font1->drawTextCentered (0, 7, -3, "MORE ENEMIES ENTERING THE REGION", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp: In member function 'virtual void MissionDefend1::draw()': +mission.cpp:2984:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2984 | font1->drawTextCentered (0, 7, -3, "MORE TANKS ARE ATTACKING", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp: In member function 'virtual void MissionDogfight3::draw()': +mission.cpp:3090:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3090 | font1->drawTextCentered (0, 7, -3, "BOMBERS ARE ENTERING THE REGION", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp: In member function 'virtual void MissionMultiDogfight1::draw()': +mission.cpp:4394:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 4394 | font1->drawTextCentered (0, 0, -1, "DOGFIGHT"); + | ^~~~~~~~~~ +In file included from effects.h:28, + from effects.cpp:29: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ +In file included from effects.h:28, + from aiobject.h:29, + from main.h:41, + from main.cpp:38: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ +In file included from effects.h:28, + from aiobject.h:29, + from main.h:41, + from cockpit.cpp:29: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ +main.cpp: In function 'int game_levelInit()': +main.cpp:669:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 669 | display ("Could not startup mission", LOG_ERROR); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from effects.h:28, + from aiobject.h:29, + from main.h:41, + from menu.cpp:27: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ +main.cpp: In function 'void switch_mission(int)': +main.cpp:1188:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 1188 | display ("Could not init mission", LOG_ERROR); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +cockpit.cpp: In member function 'void Cockpit::drawHeading()': +cockpit.cpp:463:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 463 | font1->drawText (xf - 0.5, yf - 2.0, zf, "S", &color); + | ^~~ +cockpit.cpp:465:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 465 | font1->drawText (xf - 0.5, yf - 2.0, zf, "E", &color); + | ^~~ +cockpit.cpp:467:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 467 | font1->drawText (xf - 0.5, yf - 2.0, zf, "N", &color); + | ^~~ +cockpit.cpp:469:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 469 | font1->drawText (xf - 0.5, yf - 2.0, zf, "W", &color); + | ^~~ +main.cpp: In function 'void drawQuads(CColor*)': +main.cpp:1864:18: warning: variable 'yf' set but not used [-Wunused-but-set-variable] + 1864 | float zf = -3, yf; + | ^~ +main.cpp: In function 'void pleaseWait()': +main.cpp:1974:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 1974 | font1->drawTextCentered (0, -0.5, -1.5, "PLEASE WAIT...", &colorwhite); + | ^~~~~~~~~~~~~~~~ +main.cpp: In function 'void stats_key(unsigned char, int, int)': +main.cpp:1983:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 1983 | display ("Initing new mission", LOG_MOST); + | ^~~~~~~~~~~~~~~~~~~~~ +main.cpp: In function 'char* getModelText(int)': +main.cpp:2083:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2083 | return "THE FALCON IS A NIMBLE AND\nFAST FIGHTER PROVIDING\nBOTH AIR-AIR AND\nAIR-GROUND-MISSILES."; + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:2085:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2085 | return "THE HAWK IS A TYPICAL\nALLROUNDER AND DESIGNED\nFOR GROUND ATTACKS."; + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:2087:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2087 | return "THE HAWK II IS A ..."; + | ^~~~~~~~~~~~~~~~~~~~~~ +main.cpp:2088:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2088 | return "NO INFO"; + | ^~~~~~~~~ +main.cpp: In function 'char* getModelName(int)': +main.cpp:2094:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2094 | return "GL-16 FALCON"; + | ^~~~~~~~~~~~~~ +main.cpp:2096:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2096 | return "GL-22 HAWK"; + | ^~~~~~~~~~~~ +main.cpp:2098:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2098 | return "GL-23 HAWK II"; + | ^~~~~~~~~~~~~~~ +main.cpp:2100:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2100 | return "GL-15 REDARROW"; + | ^~~~~~~~~~~~~~~~ +main.cpp:2102:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2102 | return "GL-117 PHOENIX"; + | ^~~~~~~~~~~~~~~~ +main.cpp:2104:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2104 | return "GL-50 STORM"; + | ^~~~~~~~~~~~~ +main.cpp:2106:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2106 | return "CROW"; + | ^~~~~~ +main.cpp:2108:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2108 | return "BUZZARD"; + | ^~~~~~~~~ +main.cpp:2110:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2110 | return "SWALLOW"; + | ^~~~~~~~~ +main.cpp:2112:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2112 | return "BLACKBIRD"; + | ^~~~~~~~~~~ +main.cpp:2114:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2114 | return "AIR-AIR MISSILE PACK"; + | ^~~~~~~~~~~~~~~~~~~~~~ +main.cpp:2116:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2116 | return "AIR-GROUND MISSILE PACK"; + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:2118:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2118 | return "DUMB FIRE MISSILE PACK"; + | ^~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:2119:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2119 | return "NO INFO"; + | ^~~~~~~~~ +main.cpp: In function 'void mission_display()': +main.cpp:2280:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2280 | font1->drawText (textx / fontscale, texty / fontscale, -2, "BRIEFING:", col); + | ^~~~~~~~~~~ +main.cpp:2286:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2286 | font1->drawText (xstats / fontscale, ystats / fontscale, -2, "STATUS:", col); + | ^~~~~~~~~ +main.cpp:2288:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2288 | font1->drawText (xstatstab / fontscale, ystats / fontscale, -2, "SUCCESS", colorstd); + | ^~~~~~~~~ +main.cpp:2290:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2290 | font1->drawText (xstatstab / fontscale, ystats / fontscale, -2, "FAILED", colorstd); + | ^~~~~~~~ +main.cpp:2292:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2292 | font1->drawText (xstatstab / fontscale, ystats / fontscale, -2, "EMPTY", colorstd); + | ^~~~~~~ +main.cpp:2296:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2296 | font1->drawText (xstats / fontscale, texty / fontscale, -2, "SCORE:", col); + | ^~~~~~~~ +main.cpp:2302:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2302 | font1->drawText (xstats / fontscale, texty / fontscale, -2, "KILLS:", col); + | ^~~~~~~~ +main.cpp:2310:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2310 | font1->drawText (xstats / fontscale, texty / fontscale, -2, "SCORE:", col); + | ^~~~~~~~ +main.cpp:2311:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2311 | font1->drawText (xstatstab / fontscale, texty / fontscale, -2, "TRAINING", col); + | ^~~~~~~~~~ +main.cpp:2314:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2314 | font1->drawText (textx / fontscale, piloty / fontscale, -2, "PILOTS:", col); + | ^~~~~~~~~ +main.cpp:2327:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2327 | font1->drawText (textx / fontscale, -1 / fontscale, -2, "CHOOSE FIGHTER:", col); + | ^~~~~~~~~~~~~~~~~ +main.cpp:2328:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2328 | font1->drawText (xstats / fontscale, -1 / fontscale, -2, "CHOOSE WEAPON PACK:", col); + | ^~~~~~~~~~~~~~~~~~~~~ +main.cpp: In function 'void create_display()': +main.cpp:2382:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2382 | font1->drawTextCentered (0, 9, -1.5, "CREATE GAME"); + | ^~~~~~~~~~~~~ +main.cpp:2385:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2385 | font1->drawTextScaled (-2, -12, -2, "BACK", colorstd, -missionmenutimer * 5); + | ^~~~~~ +main.cpp:2387:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2387 | font1->drawText (-2, -12, -2, "BACK"); + | ^~~~~~ +main.cpp: In function 'void join_display()': +main.cpp:2426:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2426 | font1->drawTextCentered (0, 9, -1.5, "JOIN GAME"); + | ^~~~~~~~~~~ +main.cpp:2429:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2429 | font1->drawTextScaled (-2, -12, -2, "BACK", colorstd, -missionmenutimer * 5); + | ^~~~~~ +main.cpp:2431:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2431 | font1->drawText (-2, -12, -2, "BACK"); + | ^~~~~~ +main.cpp: In function 'void game_quit()': +main.cpp:2583:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2583 | pilots->save (dirs->getSaves ("pilots")); + | ^~~~~~~~ +main.cpp:2584:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2584 | display ("Pilots saved", LOG_MOST); + | ^~~~~~~~~~~~~~ +main.cpp: In function 'void stats_display()': +main.cpp:2700:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2700 | font1->drawTextCentered (0, 7, -2, "SUCCESS", &colorblue); + | ^~~~~~~~~ +main.cpp:2704:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2704 | font1->drawTextCentered (0, 7, -2, "FAILED", &colorred); + | ^~~~~~~~ +main.cpp:2707:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2707 | font1->drawText (xf1, yf, zf, "SCORE:", color); + | ^~~~~~~~ +main.cpp:2712:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2712 | font1->drawText (xf1, yf, zf, "DIFFICULTY:", color); + | ^~~~~~~~~~~~~ +main.cpp:2713:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2713 | if (mission->difficulty == 0) font1->drawText (xf2, yf, zf, "EASY", color); + | ^~~~~~ +main.cpp:2714:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2714 | else if (mission->difficulty == 1) font1->drawText (xf2, yf, zf, "NORMAL", color); + | ^~~~~~~~ +main.cpp:2715:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2715 | else if (mission->difficulty == 2) font1->drawText (xf2, yf, zf, "HARD", color); + | ^~~~~~ +main.cpp:2716:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2716 | if (mission->difficulty == 0) font1->drawText (xf3, yf, zf, "-25", color); + | ^~~~~ +main.cpp:2717:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2717 | else if (mission->difficulty == 1) font1->drawText (xf3, yf, zf, "+25", color); + | ^~~~~ +main.cpp:2718:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2718 | else if (mission->difficulty == 2) font1->drawText (xf3, yf, zf, "+75", color); + | ^~~~~ +main.cpp:2721:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2721 | font1->drawText (xf1, yf, zf, "FLIGHT MODEL:", color); + | ^~~~~~~~~~~~~~~ +main.cpp:2722:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2722 | if (!fplayer->realism) font1->drawText (xf2, yf, zf, "ACTION", color); + | ^~~~~~~~ +main.cpp:2723:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2723 | else font1->drawText (xf2, yf, zf, "SIM", color); + | ^~~~~ +main.cpp:2724:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2724 | if (!fplayer->realism) font1->drawText (xf3, yf, zf, "-25", color); + | ^~~~~ +main.cpp:2725:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2725 | else font1->drawText (xf3, yf, zf, "+25", color); + | ^~~~~ +main.cpp:2731:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2731 | font1->drawText (xf1, yf, zf, "TIME BONUS:", color); + | ^~~~~~~~~~~~~ +main.cpp:2738:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2738 | font1->drawText (xf1, yf, zf, "SHIELD BONUS:", color); + | ^~~~~~~~~~~~~~~ +main.cpp:2744:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2744 | font1->drawText (xf1, yf, zf, "KILLS:", color); + | ^~~~~~~~ +main.cpp:2782:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2782 | font1->drawTextCentered (0, yf, zf, "PROMOTED TO", color); + | ^~~~~~~~~~~~~ +main.cpp: In function 'int selectMouse(int, int, int, int, int, bool)': +main.cpp:2893:7: warning: variable 'pick' set but not used [-Wunused-but-set-variable] + 2893 | int pick [100]; + | ^~~~ +main.cpp: In function 'void pause_display()': +main.cpp:2938:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2938 | font1->drawText (-3, -1, -1, "PAUSED", &colorwhite); + | ^~~~~~~~ +main.cpp: In function 'void credits_display()': +main.cpp:3009:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3009 | font2->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "GAME PROGRAMMING,", col); + | ^~~~~~~~~~~~~~~~~~~ +main.cpp:3010:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3010 | font2->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "GRAPHICS, MODELS, SOUND & MUSIC", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3011:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3011 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "THOMAS A. DREXL", col2); + | ^~~~~~~~~~~~~~~~~ +main.cpp:3015:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3015 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "SPECIAL THANKS TO...", col); + | ^~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3016:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3016 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "LENS FLARES & FURTHER DEBUGGING", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3017:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3017 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "PIOTR PAWLOW", col2); + | ^~~~~~~~~~~~~~ +main.cpp:3018:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3018 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "MOUSE INTERFACE & LANDSCAPE IMPROVEMENTS", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3019:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3019 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "LOURENS VEEN", col2); + | ^~~~~~~~~~~~~~ +main.cpp:3020:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3020 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "PUBLISHING & FURTHER GAME IDEAS", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3021:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3021 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "BERNHARD KAINDL", col2); + | ^~~~~~~~~~~~~~~~~ +main.cpp:3022:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3022 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "MOON TERRAIN", col); + | ^~~~~~~~~~~~~~ +main.cpp:3023:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3023 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "NORBERT DREXL", col2); + | ^~~~~~~~~~~~~~~ +main.cpp:3024:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3024 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "PHYSICAL MODEL (ACTION) & COCKPIT IMPROVEMENTS", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3025:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3025 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "ARNE REINERS", col2); + | ^~~~~~~~~~~~~~ +main.cpp:3026:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3026 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "...AND THANKS TO ALL PEOPLE GIVING FEEDBACK AND ADVICE", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3031:66: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3031 | font1->drawTextCentered (0, (yt -= 10 * ydist) / fontzoom, zf, "***********************", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3032:66: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3032 | font1->drawTextCentered (0, (yt -= 10 * ydist) / fontzoom, zf, "DO YOU WANT TO CONTRIBUTE?", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3036:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3036 | font2->drawText (xf / fontzoom, (yt -= 4 * ydist) / fontzoom, zf, "LOTS OF THINGS ARE STILL NEEDED:", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3037:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3037 | font2->drawText (xf / fontzoom, (yt -= 2 * ydist) / fontzoom, zf, "- DRAW TEXTURES OF TREES, BUILDINGS, ETC", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3038:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3038 | font2->drawText (xf / fontzoom, (yt -= 2 * ydist) / fontzoom, zf, "- DESIGN 3D MODELS", col); + | ^~~~~~~~~~~~~~~~~~~~ +main.cpp:3039:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3039 | font2->drawText (xf / fontzoom, (yt -= 2 * ydist) / fontzoom, zf, "- CREATE SOUNDTRACKS", col); + | ^~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3040:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3040 | font2->drawText (xf / fontzoom, (yt -= 2 * ydist) / fontzoom, zf, "- MAKE MISSION SUGGESTIONS", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3041:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3041 | font2->drawText (xf / fontzoom, (yt -= 2 * ydist) / fontzoom, zf, "- GIVE FEEDBACK AND ADVICE", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp: In function 'void finish_display()': +main.cpp:3052:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3052 | font1->drawTextCentered (0, 12, -3, "CONGRATULATIONS!", col); + | ^~~~~~~~~~~~~~~~~~ +main.cpp:3053:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3053 | font1->drawTextCentered (0, 10, -3, "THE WORLD HAS BEEN SAVED YET AGAIN.", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3054:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3054 | font1->drawTextCentered (0, 6, -3, "HOPE YOU HAD FUN PLAYING GL-117!", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3055:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3055 | font1->drawTextCentered (0, 4, -3, "THIS GAME HAS ORIGINALLY BEEN DEVELOPED AS PART", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3056:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3056 | font1->drawTextCentered (0, 2, -3, "OF THE COURSE \"APPLICATIONS OF COMPUTER GRAPHICS\"", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3057:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3057 | font1->drawTextCentered (0, 0, -3, "AT THE TECHNICAL UNIVERSITY OF MUNICH, GERMANY.", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3058:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3058 | font1->drawTextCentered (0, -2, -3, "IN FEBRUARY 2002 THE WORK WAS DONE AND I", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3059:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3059 | font1->drawTextCentered (0, -4, -3, "PRESENTED THE PROTOTYPE OF A FLIGHT SIM,", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3060:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3060 | font1->drawTextCentered (0, -6, -3, "YET WITHOUT TEXTURES, JOYSTICK, SOUNDS, MUSIC,", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3061:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3061 | font1->drawTextCentered (0, -8, -3, "NO CAMPAIGN!", col); + | ^~~~~~~~~~~~~~ +main.cpp:3062:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3062 | font1->drawTextCentered (0, -10, -3, "TWO MONTHS LATER THE FIRST RELEASE OF GL-117 WAS READY.", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3063:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3063 | font1->drawTextCentered (0, -12, -3, "FURTHER RELEASES FOLLOWED, FEEDBACK ARRIVED, AND", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3064:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3064 | font1->drawTextCentered (0, -14, -3, "PROGRAMMERS JOINED (LISTED IN THE CREDITS SECTION).", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3065:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3065 | font1->drawTextCentered (0, -16, -3, "SPECIAL THANKS TO JOSEF DREXL FOR THE MODELING IDEAS,", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3066:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3066 | font1->drawTextCentered (0, -18, -3, "AND THE UNIX AWARD GOES TO WOLFGANG HOMMEL ;-)", col); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp: In function 'void quit_display()': +main.cpp:3075:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3075 | font1->drawTextCentered (0, 0, -2, "REALLY QUIT?", &menu_colwhite); + | ^~~~~~~~~~~~~~ +main.cpp: In function 'void game_display()': +main.cpp:3578:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3578 | font1->drawTextCentered (0, 0, -1.8, "PLEASE WAIT WHILE", &colorred); + | ^~~~~~~~~~~~~~~~~~~ +main.cpp:3579:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3579 | font1->drawTextCentered (0, -1, -1.8, "ADJUSTING QUALITY", &colorred); + | ^~~~~~~~~~~~~~~~~~~ +main.cpp:3585:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3585 | font1->drawTextCentered (0, -8, -2, "FPS TOO LOW", &colorred); + | ^~~~~~~~~~~~~ +main.cpp:3586:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3586 | font1->drawTextCentered (0, -9, -2, "TURN DOWN VIEW OR QUALITY", &colorred); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3591:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3591 | font1->drawTextCentered (0, -8, -2, "FPS FAR TOO LOW", &colorred); + | ^~~~~~~~~~~~~~~~~ +main.cpp:3592:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3592 | font1->drawTextCentered (0, -9, -2, "SEE \"README\" OR \"FAQ\" FILES", &colorred); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3593:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3593 | font1->drawTextCentered (0, -10, -2, "HIT \"ESC\" AND 'Y' TO EXIT THE GAME", &colorred); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3249:9: warning: variable 'fac' set but not used [-Wunused-but-set-variable] + 3249 | float fac = view, zfac = view * 0.2; + | ^~~ +main.cpp:3249:21: warning: variable 'zfac' set but not used [-Wunused-but-set-variable] + 3249 | float fac = view, zfac = view * 0.2; + | ^~~~ +maploader.cpp: In member function 'int MissionCustom::parseMapData()': +maploader.cpp:251:42: warning: '%s' directive writing up to 1023 bytes into a region of size 1006 [-Wformat-overflow=] + 251 | sprintf (buf, "Invalid attribute %s", attr); + | ^~ ~~~~ +In file included from /usr/include/stdio.h:970, + from maploader.cpp:26: +In function 'int sprintf(char*, const char*, ...)', + inlined from 'int MissionCustom::parseMapData()' at maploader.cpp:251:17: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 19 and 1042 bytes into a destination of size 1024 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +maploader.cpp: In member function 'int MissionCustom::parseMapData()': +maploader.cpp:120:27: warning: '%s' directive writing up to 1023 bytes into a region of size between 1006 and 1016 [-Wformat-overflow=] + 120 | sprintf (buf, "Line %d: %s", file_getLine (), msg); + | ^~ +...... + 252 | error (buf); + | ~~~ +In function 'int sprintf(char*, const char*, ...)', + inlined from 'void MissionCustom::error(char*)' at maploader.cpp:120:11, + inlined from 'int MissionCustom::parseMapData()' at maploader.cpp:252:15: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 9 and 1042 bytes into a destination of size 1024 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +maploader.cpp: In member function 'int MissionCustom::parseMapData()': +maploader.cpp:226:42: warning: '%s' directive writing up to 1023 bytes into a region of size 1006 [-Wformat-overflow=] + 226 | sprintf (buf, "Invalid attribute %s", attr); + | ^~ ~~~~ +In function 'int sprintf(char*, const char*, ...)', + inlined from 'int MissionCustom::parseMapData()' at maploader.cpp:226:17: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 19 and 1042 bytes into a destination of size 1024 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ +maploader.cpp: In member function 'int MissionCustom::parseMapData()': +maploader.cpp:120:27: warning: '%s' directive writing up to 1023 bytes into a region of size between 1006 and 1016 [-Wformat-overflow=] + 120 | sprintf (buf, "Line %d: %s", file_getLine (), msg); + | ^~ +...... + 227 | error (buf); + | ~~~ +In function 'int sprintf(char*, const char*, ...)', + inlined from 'void MissionCustom::error(char*)' at maploader.cpp:120:11, + inlined from 'int MissionCustom::parseMapData()' at maploader.cpp:227:15: +/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 9 and 1042 bytes into a destination of size 1024 + 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 31 | __glibc_objsize (__s), __fmt, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 32 | __va_arg_pack ()); + | ~~~~~~~~~~~~~~~~~ main.cpp: In function 'void myFirstInit()': main.cpp:4298:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4298 | display ("Creating calculation tables", LOG_ALL); @@ -3206,10 +3689,6 @@ main.cpp:4310:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4310 | texredsand = gl->genTextureTGA (dirs->getTextures ("redsand1.tga"), 0, 0, 1, false); | ^~~~~~~~~~~~~~ -mission.cpp: In member function 'virtual void MissionTest2::draw()': -mission.cpp:1984:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 1984 | font1->drawTextCentered (0, 4, -2, "ALMOST! GET CLEARLY BEHIND HIM!", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4311:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4311 | texredstone = gl->genTextureTGA (dirs->getTextures ("redstone2.tga"), 0, 0, 1, false); | ^~~~~~~~~~~~~~~ @@ -3297,10 +3776,6 @@ main.cpp:4339:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4339 | texmedals = gl->genTextureTGA (dirs->getTextures ("medals.tga"), 0, 0, 0, true); | ^~~~~~~~~~~~ -mission.cpp: In member function 'virtual void MissionDogfight2::draw()': -mission.cpp:2240:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2240 | font1->drawTextCentered (0, 7, -3, "MORE ENEMIES ENTERING THE REGION", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4340:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4340 | texclouds1 = gl->genTextureTGA (dirs->getTextures ("clouds1.tga"), 0, -1, 1, true); | ^~~~~~~~~~~~~ @@ -3394,10 +3869,6 @@ main.cpp:4373:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4373 | model_figf.setName ("PHOENIX"); | ^~~~~~~~~ -mission.cpp: In member function 'virtual void MissionDefend1::draw()': -mission.cpp:2984:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2984 | font1->drawTextCentered (0, 7, -3, "MORE TANKS ARE ATTACKING", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4374:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4374 | display (" * gl-14.3ds", LOG_ALL); | ^~~~~~~~~~~~~~ @@ -3410,10 +3881,6 @@ main.cpp:4377:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4377 | display (" * gl-29.3ds", LOG_ALL); | ^~~~~~~~~~~~~~ -mission.cpp: In member function 'virtual void MissionDogfight3::draw()': -mission.cpp:3090:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3090 | font1->drawTextCentered (0, 7, -3, "BOMBERS ARE ENTERING THE REGION", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4378:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4378 | g_Load3ds.Import3DS (&model_figh, dirs->getModels ("gl-29.3ds")); | ^~~~~~~~~~~ @@ -3459,14 +3926,6 @@ main.cpp:4397:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4397 | g_Load3ds.Import3DS (&model_cannon1b, dirs->getModels ("cannon1b.3ds")); | ^~~~~~~~~~~~~~ -aiobject.cpp: In member function 'bool AIObj::fireFlare(DynamicObj**, AIObj**)': -aiobject.cpp:1735:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 1735 | display ("Missile to flare", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~ -aiobject.cpp: In member function 'bool AIObj::fireChaff(DynamicObj**, AIObj**)': -aiobject.cpp:1781:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 1781 | display ("Missile to chaff", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~ main.cpp:4401:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4401 | display (" * cannon2.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~~ @@ -3584,10 +4043,6 @@ main.cpp:4472:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4472 | g_Load3ds.Import3DS (&model_flarak1, dirs->getModels ("flarak1.3ds")); | ^~~~~~~~~~~~~ -aiobject.cpp: In member function 'void AIObj::aiAction(Uint32, AIObj**, AIObj**, DynamicObj**, DynamicObj**, DynamicObj**)': -aiobject.cpp:2449:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2449 | display ("Manoever: Vertical climb", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4473:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4473 | model_flarak1.setName ("SAM"); | ^~~~~ @@ -3609,10 +4064,6 @@ main.cpp:4479:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4479 | model_tent1.setName ("TENT"); | ^~~~~~ -mission.cpp: In member function 'virtual void MissionMultiDogfight1::draw()': -mission.cpp:4394:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 4394 | font1->drawTextCentered (0, 0, -1, "DOGFIGHT"); - | ^~~~~~~~~~ main.cpp:4480:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4480 | display (" * gl-117.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~ @@ -3685,11 +4136,6 @@ main.cpp:4505:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4505 | display (" * pickup2.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~~ -In file included from effects.h:28, - from effects.cpp:29: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ main.cpp:4506:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4506 | g_Load3ds.Import3DS (&model_pickup2, dirs->getModels ("pickup2.3ds")); | ^~~~~~~~~~~~~ @@ -3753,9 +4199,6 @@ main.cpp:4529:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4529 | display (" * radar.3ds", LOG_ALL); | ^~~~~~~~~~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ main.cpp:4530:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4530 | g_Load3ds.Import3DS (&model_radar, dirs->getModels ("radar.3ds")); | ^~~~~~~~~~~ @@ -3765,36 +4208,6 @@ main.cpp:4532:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4532 | display (" * mine1.3ds", LOG_ALL); | ^~~~~~~~~~~~~~ -aiobject.cpp:2656:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2656 | display ("Manoever: Immelmann", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~ -aiobject.cpp:2661:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2661 | display ("Manoever: Immelmann", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~ -aiobject.cpp:2668:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2668 | display ("Manoever: Roll", LOG_ALL); - | ^~~~~~~~~~~~~~~~ -aiobject.cpp:2676:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2676 | display ("Manoever: Turn", LOG_ALL); - | ^~~~~~~~~~~~~~~~ -aiobject.cpp:2683:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2683 | display ("Manoever: Height change", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -aiobject.cpp:2714:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2714 | display ("Manoever: Immelmann", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~ -aiobject.cpp:2719:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2719 | display ("Manoever: Immelmann", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~ -aiobject.cpp:2726:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2726 | display ("Manoever: Roll", LOG_ALL); - | ^~~~~~~~~~~~~~~~ -aiobject.cpp:2734:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2734 | display ("Manoever: Turn", LOG_ALL); - | ^~~~~~~~~~~~~~~~ -aiobject.cpp:2741:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2741 | display ("Manoever: Height change", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4533:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4533 | g_Load3ds.Import3DS (&model_mine1, dirs->getModels ("mine1.3ds")); | ^~~~~~~~~~~ @@ -3858,7 +4271,13 @@ main.cpp:4602:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4602 | textitle = gl->genTextureTGA (dirs->getTextures ("patents.tga"), 0, 0, 0, true); | ^~~~~~~~~~~~~ -g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include -I/usr/include -c -o fileloader.o fileloader.cpp +3ds.cpp: In member function 'void CLoad3DS::ReadUVCoordinates(CObject*, Chunk*)': +3ds.cpp:506:10: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] + 506 | delete p; + | ^ +3ds.cpp:499:51: note: returned from 'void* operator new [](long unsigned int)' + 499 | CVector2 *p = new CVector2 [object->numTexVertex]; + | ^ In file included from aiobject.h:27: main.cpp: In function 'void init_display()': common.h:52:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] @@ -3867,7 +4286,6 @@ main.cpp:4718:33: note: in expansion of macro 'VERSIONSTRING' 4718 | font2->drawText (20, -20, -3, VERSIONSTRING, &color); | ^~~~~~~~~~~~~ -g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include -I/usr/include -c -o maploader.o maploader.cpp main.cpp: In function 'void myTimerFunc(int)': main.cpp:5220:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5220 | display ("Out of sync", LOG_ERROR); @@ -3948,26 +4366,20 @@ main.cpp:6046:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 6046 | ((Label *) controlsmenu [2]->components [z])->setText ("A 5"); | ^~~~~ -3ds.cpp: In constructor 'BinaryFile::BinaryFile(char*)': -3ds.cpp:59:9: warning: variable 'tmp' set but not used [-Wunused-but-set-variable] - 59 | int tmp; - | ^~~ main.cpp: In function 'void callbackFullscreen(Component*, int)': main.cpp:6308:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 6308 | if (wantfullscreen) ((Label *) optmenu [0]->components [18])->setText ("YES"); | ^~~~~ -3ds.cpp: In member function 'void CLoad3DS::ProcessNextChunk(CModel*, Chunk*)': -3ds.cpp:274:16: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CObject'; use assignment or value-initialization instead [-Wclass-memaccess] - 274 | memset (&newObject, 0, sizeof (CObject)); - | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:6309:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 6309 | else ((Label *) optmenu [0]->components [18])->setText ("NO"); | ^~~~ -In file included from 3ds.h:27, - from 3ds.cpp:32: -model.h:188:7: note: 'class CObject' declared here - 188 | class CObject - | ^~~~~~~ +3ds.cpp: In member function 'void CLoad3DS::ReadVertices(CObject*, Chunk*)': +3ds.cpp:535:10: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] + 535 | delete p; + | ^ +3ds.cpp:518:50: note: returned from 'void* operator new [](long unsigned int)' + 518 | CVector3 *p = new CVector3 [object->numVertices]; + | ^ main.cpp: In function 'void createMenu()': main.cpp:6571:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 6571 | button = new Button ("DELETE (RIGHT MB)"); @@ -3975,13 +4387,6 @@ main.cpp:6578:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 6578 | button = new Button ("ADD"); | ^~~~~ -3ds.cpp: In member function 'void CLoad3DS::ReadVertices(CObject*, Chunk*)': -3ds.cpp:516:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CVertex'; use assignment or value-initialization instead [-Wclass-memaccess] - 516 | memset (object->vertex, 0, sizeof (CVertex) * object->numVertices); - | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -model.h:113:7: note: 'class CVertex' declared here - 113 | class CVertex - | ^~~~~~~ main.cpp:6634:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 6634 | button = new Button ("FIGHTER INFO"); | ^~~~~~~~~~~~~~ @@ -4045,35 +4450,9 @@ main.cpp:6977:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 6977 | label = new Label ("CAMERA: \t F1...F8"); | ^~~~~~~~~~~~~~~~~~~~~~~ -In file included from glland.h:32: -glland.cpp: In member function 'void GLLandscape::precalculate()': -glland.cpp:299:28: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] - 299 | int xm1 = GETCOORD(x - 1); - | ~~^~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ main.cpp:7020:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7020 | button = new Button ("LOAD DEFAULTS"); | ^~~~~~~~~~~~~~~ -glland.cpp:300:28: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 300 | int xp1 = GETCOORD(x + 1); - | ~~^~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp:301:28: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] - 301 | int zm1 = GETCOORD(z - 1); - | ~~^~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp:302:28: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 302 | int zp1 = GETCOORD(z + 1); - | ~~^~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ main.cpp:7033:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7033 | button = new Button ("SENSITIVITY"); | ^~~~~~~~~~~~~ @@ -4140,14 +4519,6 @@ main.cpp:7382:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7382 | button = new Button (" CONTINUE"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -common.cpp: In function 'void display(char*, int)': -common.cpp:47:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 47 | if ((display_out = fopen (dirs->getSaves ("logfile.txt"), "wt")) != NULL) - | ^~~~~~~~~~~~~ -common.cpp: In function 'void error_outofmemory()': -common.cpp:62:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 62 | display ("Out of memory", LOG_FATAL); - | ^~~~~~~~~~~~~~~ main.cpp: In function 'int main(int, char**)': main.cpp:7421:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7421 | display ("Getting directory locations", LOG_ALL); @@ -4170,13 +4541,6 @@ main.cpp:7538:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7538 | display ("Creating sound system", LOG_ALL); | ^~~~~~~~~~~~~~~~~~~~~~~ -glland.cpp: In member function 'void GLLandscape::drawQuadStrip(int, int, int, int)': -glland.cpp:889:30: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 889 | int xstep = GETCOORD(x + step); - | ~~^~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ main.cpp:7545:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7545 | display ("Playing startup music", LOG_ALL); | ^~~~~~~~~~~~~~~~~~~~~~~ @@ -4192,358 +4556,6 @@ main.cpp:7592:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7592 | display ("Entering SDL main loop (GLUT emulation)", LOG_ALL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -glland.cpp:890:27: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 890 | int y2 = GETCOORD(y + step); - | ~~^~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp:897:29: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] - 897 | int y0 = GETCOORD(y - step); - | ~~^~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp:968:32: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 968 | int xstep = GETCOORD(x + step); - | ~~^~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp:969:32: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 969 | int ystep = GETCOORD(y + step); - | ~~^~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp:970:33: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] - 970 | int ymstep = GETCOORD(y - step); - | ~~^~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp: In member function 'void GLLandscape::drawWaterTexturedQuad(int, int)': -glland.cpp:1524:27: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 1524 | int xstep = GETCOORD(xs + step); - | ~~~^~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp:1525:27: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 1525 | int ystep = GETCOORD(ys + step); - | ~~~^~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp: In member function 'void GLLandscape::draw(int, int)': -glland.cpp:2048:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2048 | display ("view exceeds ray casting blocks - not implemented", LOG_FATAL); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from effects.h:28, - from aiobject.h:29, - from main.h:41, - from cockpit.cpp:29: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ -glland.cpp:2540:61: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 2540 | int x2 = GETCOORD(xs+gridstep); - | ~~^~~~~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp:2541:61: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 2541 | int y2 = GETCOORD(ys+gridstep); - | ~~^~~~~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp:2566:41: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 2566 | int xstep = GETCOORD(xs + gridstep); - | ~~~^~~~~~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp:2567:41: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 2567 | int ystep = GETCOORD(ys + gridstep); - | ~~~^~~~~~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -cockpit.cpp: In member function 'void Cockpit::drawHeading()': -cockpit.cpp:463:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 463 | font1->drawText (xf - 0.5, yf - 2.0, zf, "S", &color); - | ^~~ -cockpit.cpp:465:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 465 | font1->drawText (xf - 0.5, yf - 2.0, zf, "E", &color); - | ^~~ -cockpit.cpp:467:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 467 | font1->drawText (xf - 0.5, yf - 2.0, zf, "N", &color); - | ^~~ -cockpit.cpp:469:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 469 | font1->drawText (xf - 0.5, yf - 2.0, zf, "W", &color); - | ^~~ -objload.cpp: In constructor 'CFile::CFile(char*)': -objload.cpp:48:11: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 48 | fread (&data [z], 4096, sizeof (char), in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp: At global scope: -main.cpp:5153:13: warning: 'void myIdleFunc()' defined but not used [-Wunused-function] - 5153 | static void myIdleFunc () - | ^~~~~~~~~~ -In file included from effects.h:28, - from aiobject.h:29, - from main.h:41, - from menu.cpp:27: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ -In file included from effects.h:28, - from aiobject.h:29, - from maploader.h:27, - from maploader.cpp:30: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ -3ds.cpp: In member function 'void CLoad3DS::ReadUVCoordinates(CObject*, Chunk*)': -3ds.cpp:506:10: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] - 506 | delete p; - | ^ -3ds.cpp:499:51: note: returned from 'void* operator new [](long unsigned int)' - 499 | CVector2 *p = new CVector2 [object->numTexVertex]; - | ^ -maploader.cpp: In member function 'void MapLoader::readMapFile()': -maploader.cpp:57:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 57 | if (!file_open (dirs->getMaps ("maps.txt"))) - | ^~~~~~~~~~ -maploader.cpp: In constructor 'MapLoader::MapLoader()': -maploader.cpp:73:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 73 | file_setWhitespace (" \t\r\n"); - | ^~~~~~~~~ -maploader.cpp:74:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 74 | file_addComment ("#", "\n"); - | ^~~ -maploader.cpp:74:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 74 | file_addComment ("#", "\n"); - | ^~~~ -maploader.cpp:75:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 75 | file_setQuotes ("\"'´`"); - | ^~~~~~~ -maploader.cpp: In member function 'int MissionCustom::readAttribute(char*, char*, char*)': -maploader.cpp:145:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 145 | error ("Assignment symbol '=' is missing"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:152:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 152 | error ("Unexpected end of file"); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp: In member function 'int MissionCustom::synchronize()': -maploader.cpp:163:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 163 | if (!file_find ("\n")) return 0; - | ^~~~ -maploader.cpp: In member function 'int MissionCustom::parseMapData()': -maploader.cpp:235:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 235 | error ("Heading value must be an integer"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:259:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 259 | error ("Time value must be an integer in [0...24]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:266:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 266 | error ("Time value must be an integer in [0...24]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:300:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 300 | error ("Only 32 bpp TGA files are valid"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:313:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 313 | error ("Scaleheight value must be a float number in [0...1]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:320:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 320 | error ("Scaleheight value must be a float number in [0...1]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:333:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 333 | error ("Tree needs a number suffix like \"Tree2\" with number in [1...3]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:339:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 339 | error ("Tree value must be an integer in [0...100]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:345:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 345 | error ("Tree value must be an integer in [0...100]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp: In member function 'int MissionCustom::parseObjectData()': -maploader.cpp:369:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 369 | error ("Too many objects defined"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:426:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 426 | error ("Party value must be an integer"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:437:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 437 | error ("Level value must be an integer in [0...10]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:443:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 443 | error ("Level value must be an integer in [0...10]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:451:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 451 | error ("X value must be a float number"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:462:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 462 | error ("Y value must be a float number"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:473:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 473 | error ("Inittime value must be a float number"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:485:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 485 | error ("Critical value must be an integer"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp: In member function 'int MissionCustom::parseTextData()': -maploader.cpp:511:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 511 | error ("Too many text blocks"); - | ^~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:530:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 530 | error ("Starttime value must be a float number"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:542:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 542 | error ("Delay value must be a float number"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp: In member function 'int MissionCustom::parseRelCoords()': -maploader.cpp:576:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 576 | error ("No object defined yet: coords origin could not be set"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:587:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 587 | error ("No object defined yet: coords origin could not be set"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:608:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 608 | error ("Quadrant value must be an integer in [1...16]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:614:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 614 | error ("Quadrant value must be an integer in [1...16]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp: In member function 'int MissionCustom::parseInfoData()': -maploader.cpp:657:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 657 | error ("Pilot needs a number suffix like \"Pilot5\" with number in [1...maxpilots]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:664:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 664 | error ("Invalid pilot name"); - | ^~~~~~~~~~~~~~~~~~~~ -maploader.cpp:677:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 677 | error ("Fighter needs a number suffix like \"Fighter1\" with number in [1...3]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:689:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 689 | error ("Invalid fighter type"); - | ^~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:698:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 698 | error ("Weapon needs a number suffix like \"Weapon\" with number in [1...3]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:707:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 707 | error ("Invalid weapon type"); - | ^~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:715:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 715 | error ("Maxtime value must be a float number"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp: In member function 'void MissionCustom::init()': -maploader.cpp:741:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 741 | error ("Could not open map file"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp: In member function 'virtual void MissionCustom::start()': -maploader.cpp:871:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 871 | display ("Map has a valid bpp entry but seems to be corrupt", LOG_FATAL); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -3ds.cpp: In member function 'void CLoad3DS::ReadVertices(CObject*, Chunk*)': -3ds.cpp:535:10: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] - 535 | delete p; - | ^ -3ds.cpp:518:50: note: returned from 'void* operator new [](long unsigned int)' - 518 | CVector3 *p = new CVector3 [object->numVertices]; - | ^ -main.cpp: In function 'void proceedFire()': -main.cpp:4762:17: warning: iteration 256 invokes undefined behavior [-Waggressive-loop-optimizations] - 4762 | int h = heat [yind] [i2]; - | ^ -main.cpp:4757:21: note: within this loop - 4757 | for (i2 = 0; i2 < maxfx + 1; i2 ++) - | ~~~^~~~~~~~~~~ -maploader.cpp: In member function 'int MissionCustom::parseMapData()': -maploader.cpp:251:42: warning: '%s' directive writing up to 1023 bytes into a region of size 1006 [-Wformat-overflow=] - 251 | sprintf (buf, "Invalid attribute %s", attr); - | ^~ ~~~~ -In file included from /usr/include/stdio.h:970, - from maploader.cpp:26: -In function 'int sprintf(char*, const char*, ...)', - inlined from 'int MissionCustom::parseMapData()' at maploader.cpp:251:17: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 19 and 1042 bytes into a destination of size 1024 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -maploader.cpp: In member function 'int MissionCustom::parseMapData()': -maploader.cpp:120:27: warning: '%s' directive writing up to 1023 bytes into a region of size between 1006 and 1016 [-Wformat-overflow=] - 120 | sprintf (buf, "Line %d: %s", file_getLine (), msg); - | ^~ -...... - 252 | error (buf); - | ~~~ -In function 'int sprintf(char*, const char*, ...)', - inlined from 'void MissionCustom::error(char*)' at maploader.cpp:120:11, - inlined from 'int MissionCustom::parseMapData()' at maploader.cpp:252:15: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 9 and 1042 bytes into a destination of size 1024 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -maploader.cpp: In member function 'int MissionCustom::parseMapData()': -maploader.cpp:226:42: warning: '%s' directive writing up to 1023 bytes into a region of size 1006 [-Wformat-overflow=] - 226 | sprintf (buf, "Invalid attribute %s", attr); - | ^~ ~~~~ -In function 'int sprintf(char*, const char*, ...)', - inlined from 'int MissionCustom::parseMapData()' at maploader.cpp:226:17: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 19 and 1042 bytes into a destination of size 1024 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -maploader.cpp: In member function 'int MissionCustom::parseMapData()': -maploader.cpp:120:27: warning: '%s' directive writing up to 1023 bytes into a region of size between 1006 and 1016 [-Wformat-overflow=] - 120 | sprintf (buf, "Line %d: %s", file_getLine (), msg); - | ^~ -...... - 227 | error (buf); - | ~~~ -In function 'int sprintf(char*, const char*, ...)', - inlined from 'void MissionCustom::error(char*)' at maploader.cpp:120:11, - inlined from 'int MissionCustom::parseMapData()' at maploader.cpp:227:15: -/usr/include/x86_64-linux-gnu/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 9 and 1042 bytes into a destination of size 1024 - 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 31 | __glibc_objsize (__s), __fmt, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 32 | __va_arg_pack ()); - | ~~~~~~~~~~~~~~~~~ -model.cpp: In member function 'void CSphere::init(float, int, float, float, float, int)': -model.cpp:1398:89: warning: 'p[1]' may be used uninitialized [-Wmaybe-uninitialized] - 1398 | co->quad [co->numQuads ++].setVertices (&co->vertex [p [0]], &co->vertex [p [1]], &co->vertex [p [2]], &co->vertex [p [3]]); - | ~~~~^ -model.cpp:1358:7: note: 'p[1]' was declared here - 1358 | int p [4]; - | ^ -model.cpp:1398:110: warning: 'p[2]' may be used uninitialized [-Wmaybe-uninitialized] - 1398 | co->quad [co->numQuads ++].setVertices (&co->vertex [p [0]], &co->vertex [p [1]], &co->vertex [p [2]], &co->vertex [p [3]]); - | ~~~~^ -model.cpp:1358:7: note: 'p[2]' was declared here - 1358 | int p [4]; - | ^ maploader.cpp: In member function 'int MissionCustom::parseObjectData()': maploader.cpp:418:42: warning: '%s' directive writing up to 1023 bytes into a region of size 1006 [-Wformat-overflow=] 418 | sprintf (buf, "Invalid attribute %s", attr); @@ -4557,19 +4569,10 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -model.cpp: In member function 'void CSpherePart::init(float, int, float)': -model.cpp:1532:100: warning: 'p[1]' may be used uninitialized [-Wmaybe-uninitialized] - 1532 | else co->triangle [co->numTriangles ++].setVertices (&co->vertex [p [0]], &co->vertex [p [1]], &co->vertex [p [3]]); - | ~~~~^ -model.cpp:1501:7: note: 'p[1]' was declared here - 1501 | int p [4]; - | ^ -model.cpp:1536:108: warning: 'p[2]' may be used uninitialized [-Wmaybe-uninitialized] - 1536 | co->quad [co->numQuads ++].setVertices (&co->vertex [p [0]], &co->vertex [p [1]], &co->vertex [p [2]], &co->vertex [p [3]]); - | ~~~~^ -model.cpp:1501:7: note: 'p[2]' was declared here - 1501 | int p [4]; - | ^ +main.cpp: At global scope: +main.cpp:5153:13: warning: 'void myIdleFunc()' defined but not used [-Wunused-function] + 5153 | static void myIdleFunc () + | ^~~~~~~~~~ maploader.cpp: In member function 'int MissionCustom::parseRelCoords()': maploader.cpp:600:42: warning: '%s' directive writing up to 1023 bytes into a region of size 1006 [-Wformat-overflow=] 600 | sprintf (buf, "Invalid attribute %s", attr); @@ -4660,6 +4663,39 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ +main.cpp: In function 'void proceedFire()': +main.cpp:4762:17: warning: iteration 256 invokes undefined behavior [-Waggressive-loop-optimizations] + 4762 | int h = heat [yind] [i2]; + | ^ +main.cpp:4757:21: note: within this loop + 4757 | for (i2 = 0; i2 < maxfx + 1; i2 ++) + | ~~~^~~~~~~~~~~ +model.cpp: In member function 'void CSphere::init(float, int, float, float, float, int)': +model.cpp:1398:89: warning: 'p[1]' may be used uninitialized [-Wmaybe-uninitialized] + 1398 | co->quad [co->numQuads ++].setVertices (&co->vertex [p [0]], &co->vertex [p [1]], &co->vertex [p [2]], &co->vertex [p [3]]); + | ~~~~^ +model.cpp:1358:7: note: 'p[1]' was declared here + 1358 | int p [4]; + | ^ +model.cpp:1398:110: warning: 'p[2]' may be used uninitialized [-Wmaybe-uninitialized] + 1398 | co->quad [co->numQuads ++].setVertices (&co->vertex [p [0]], &co->vertex [p [1]], &co->vertex [p [2]], &co->vertex [p [3]]); + | ~~~~^ +model.cpp:1358:7: note: 'p[2]' was declared here + 1358 | int p [4]; + | ^ +model.cpp: In member function 'void CSpherePart::init(float, int, float)': +model.cpp:1532:100: warning: 'p[1]' may be used uninitialized [-Wmaybe-uninitialized] + 1532 | else co->triangle [co->numTriangles ++].setVertices (&co->vertex [p [0]], &co->vertex [p [1]], &co->vertex [p [3]]); + | ~~~~^ +model.cpp:1501:7: note: 'p[1]' was declared here + 1501 | int p [4]; + | ^ +model.cpp:1536:108: warning: 'p[2]' may be used uninitialized [-Wmaybe-uninitialized] + 1536 | co->quad [co->numQuads ++].setVertices (&co->vertex [p [0]], &co->vertex [p [1]], &co->vertex [p [2]], &co->vertex [p [3]]); + | ~~~~^ +model.cpp:1501:7: note: 'p[2]' was declared here + 1501 | int p [4]; + | ^ g++ -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include -I/usr/include -Wl,-z,relro -lm -lGL -lGLU -lglut -o gl-117 main.o gl.o model.o 3ds.o audio.o land.o glland.o aiobject.o effects.o vertexarray.o net.o mathtab.o dirs.o objload.o pilots.o loader_tga.o object.o conf.o mission.o cockpit.o common.o menu.o fileloader.o maploader.o -L/usr/X11R6/lib -L/usr/lib -L/usr/lib -lGL -lGLU -lglut -lSDL -lSDLmain -lSDL_mixer make[3]: Leaving directory '/build/reproducible-path/gl-117-1.3.2/src' make[3]: Entering directory '/build/reproducible-path/gl-117-1.3.2' @@ -4667,7 +4703,7 @@ make[2]: Leaving directory '/build/reproducible-path/gl-117-1.3.2' make[1]: Leaving directory '/build/reproducible-path/gl-117-1.3.2' dh_auto_test - make -j20 check "TESTSUITEFLAGS=-j20 --verbose" VERBOSE=1 + make -j42 check "TESTSUITEFLAGS=-j42 --verbose" VERBOSE=1 make[1]: Entering directory '/build/reproducible-path/gl-117-1.3.2' Making check in src make[2]: Entering directory '/build/reproducible-path/gl-117-1.3.2/src' @@ -4679,13 +4715,13 @@ create-stamp debian/debhelper-build-stamp dh_prep dh_auto_install - make -j20 install DESTDIR=/build/reproducible-path/gl-117-1.3.2/debian/tmp AM_UPDATE_INFO_DIR=no + make -j42 install DESTDIR=/build/reproducible-path/gl-117-1.3.2/debian/tmp AM_UPDATE_INFO_DIR=no make[1]: Entering directory '/build/reproducible-path/gl-117-1.3.2' Making install in src make[2]: Entering directory '/build/reproducible-path/gl-117-1.3.2/src' make[3]: Entering directory '/build/reproducible-path/gl-117-1.3.2/src' - /usr/bin/mkdir -p '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/games' make[3]: Nothing to be done for 'install-data-am'. + /usr/bin/mkdir -p '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/games' /usr/bin/install -c gl-117 '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/games' make[3]: Leaving directory '/build/reproducible-path/gl-117-1.3.2/src' make[2]: Leaving directory '/build/reproducible-path/gl-117-1.3.2/src' @@ -4696,11 +4732,11 @@ /usr/bin/mkdir -p '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/music' /usr/bin/mkdir -p '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/sounds' /usr/bin/mkdir -p '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/textures' + /usr/bin/install -c -m 644 music/ambient.s3m music/dark.s3m music/electro.s3m music/loser.s3m music/softtec.s3m music/standby.s3m music/stars.s3m music/winner.s3m '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/music' /usr/bin/install -c -m 644 models/aster1.3ds models/barrier.3ds models/base1.3ds models/cannon1.3ds models/cannon1b.3ds models/cannon2.3ds models/cannon2b.3ds models/chaff1.3ds models/container1.3ds models/depot1.3ds models/egg.3ds models/flak2.3ds models/flarak1.3ds models/flare1.3ds models/gl-117.3ds models/gl-14.3ds models/gl-14b.3ds models/gl-14c.3ds models/gl-14d.3ds models/gl-15.3ds models/gl-16.3ds models/gl-21.3ds models/gl-21b.3ds models/gl-29.3ds models/gl-50.3ds models/hall1.3ds models/hall2.3ds models/house1.3ds models/mine1.3ds models/missile1.3ds models/missile2.3ds models/missile3.3ds models/missile4.3ds models/missile5.3ds models/missile6.3ds models/missile7.3ds models/missile8.3ds models/oilrig.3ds models/pickup1.3ds models/pickup2.3ds '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/models' /usr/bin/install -c -m 644 sounds/beep1.wav sounds/beep2.wav sounds/cannon1.wav sounds/chaff1.wav sounds/click1.wav sounds/explode1.wav sounds/hit1.wav sounds/missile1.wav sounds/plane1.wav sounds/thunder1.wav '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/sounds' - /usr/bin/install -c -m 644 music/ambient.s3m music/dark.s3m music/electro.s3m music/loser.s3m music/softtec.s3m music/standby.s3m music/stars.s3m music/winner.s3m '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/music' - /usr/bin/install -c -m 644 models/radar.3ds models/rubble.3ds models/ship1.3ds models/ship2.3ds models/tank1.3ds models/tank2.3ds models/tent1.3ds models/tent4.3ds models/transp1.3ds models/transp2.3ds models/transp4.3ds models/trsam.3ds models/truck1.3ds models/truck2.3ds models/wall.3ds '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/models' /usr/bin/install -c -m 644 textures/arrow.tga textures/aster1_n.tga textures/barrier_.tga textures/base1_no.tga textures/cactus1.tga textures/cactusu1.tga textures/camoufl.tga textures/chaff_ch.tga textures/clouds1.tga textures/clouds2.tga textures/clouds3.tga textures/cross.tga textures/cross2.tga textures/depot_fr.tga textures/eagle_gr.tga textures/earth.tga textures/egg_chec.tga textures/flare1.tga textures/flare2.tga textures/flare3.tga textures/flare4.tga textures/flare_ch.tga textures/font1.tga textures/font2.tga textures/gl-14_c2.tga textures/gl-14_ch.tga textures/gl-14b_c.tga textures/gl-14b_d.tga textures/gl-14c_c.tga textures/gl-14c_d.tga textures/gl-14d_c.tga textures/gl-14d_d.tga textures/gl-15_c2.tga textures/gl-15_ch.tga textures/gl-16_c2.tga textures/gl-16_ch.tga textures/gl-21_c2.tga textures/gl-21_ch.tga textures/gl-21b_c.tga textures/gl-21b_d.tga '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/textures' + /usr/bin/install -c -m 644 models/radar.3ds models/rubble.3ds models/ship1.3ds models/ship2.3ds models/tank1.3ds models/tank2.3ds models/tent1.3ds models/tent4.3ds models/transp1.3ds models/transp2.3ds models/transp4.3ds models/trsam.3ds models/truck1.3ds models/truck2.3ds models/wall.3ds '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/models' /usr/bin/install -c -m 644 textures/gl-29_ch.tga textures/gl-50_c2.tga textures/gl-50_ch.tga textures/glitter.tga textures/grass1.tga textures/gravel1.tga textures/greendrk.tga textures/greenlit.tga textures/greygrid.tga textures/hall1b_g.tga textures/hall2b_c.tga textures/house_s1.tga textures/medals.tga textures/moon1.tga textures/oilrig_c.tga textures/oilrig_c2.tga textures/panzer1_.tga textures/panzer2_.tga textures/patents.tga textures/radar1.tga textures/radar2.tga textures/ranks.tga textures/redsand1.tga textures/redstone2.tga textures/rocks1.tga textures/roof.tga textures/sand1.tga textures/ship2_fr.tga textures/ship_fra.tga textures/smoke1.tga textures/smoke2.tga textures/smoke3.tga textures/sun2.tga textures/tent1_no.tga textures/tent4_fr.tga textures/title.tga textures/transp2_.tga textures/transp4_.tga textures/tree1.tga textures/tree2.tga '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/textures' /usr/bin/install -c -m 644 textures/tree3.tga textures/tree4.tga textures/tree5.tga textures/treeu1.tga textures/treeu2.tga textures/treeu3.tga textures/treeu4.tga textures/treeu5.tga textures/water1.tga textures/wheel.tga '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/textures' make[3]: Leaving directory '/build/reproducible-path/gl-117-1.3.2' @@ -4724,8 +4760,8 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'gl-117-dbgsym' in '../gl-117-dbgsym_1.3.2-4_amd64.deb'. dpkg-deb: building package 'gl-117' in '../gl-117_1.3.2-4_amd64.deb'. +dpkg-deb: building package 'gl-117-dbgsym' in '../gl-117-dbgsym_1.3.2-4_amd64.deb'. dpkg-deb: building package 'gl-117-data' in '../gl-117-data_1.3.2-4_all.deb'. dpkg-genbuildinfo --build=binary -O../gl-117_1.3.2-4_amd64.buildinfo dpkg-genchanges --build=binary -O../gl-117_1.3.2-4_amd64.changes @@ -4734,12 +4770,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/1807576/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1807576/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/3011061 and its subdirectories -I: Current time: Wed Feb 26 23:30:26 -12 2025 -I: pbuilder-time-stamp: 1740655826 +I: removing directory /srv/workspace/pbuilder/1807576 and its subdirectories +I: Current time: Thu Apr 2 07:54:57 +14 2026 +I: pbuilder-time-stamp: 1775066097