Diff of the two buildlogs: -- --- b1/build.log 2025-03-12 14:37:12.540911908 +0000 +++ b2/build.log 2025-03-12 14:42:08.275689909 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Apr 14 08:58:59 -12 2026 -I: pbuilder-time-stamp: 1776200339 +I: Current time: Thu Mar 13 04:37:17 +14 2025 +I: pbuilder-time-stamp: 1741790237 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-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/4056226/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1753902/tmp/hooks/D01_modify_environment starting +debug: Running on ionos11-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 Mar 12 14:37 /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/1753902/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1753902/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=42 ' - DISTRIBUTION='unstable' - 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=20 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='e171e7add8404e54a092fa885d8a337e' - 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='4056226' - PS1='# ' - PS2='> ' + INVOCATION_ID=8737a67050f648598588f2d0c8ed90d4 + 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=1753902 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.XPg7cy10/pbuilderrc_iK3h --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.XPg7cy10/b1 --logfile b1/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+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152: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.XPg7cy10/pbuilderrc_9PqX --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.XPg7cy10/b2 --logfile b2/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-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos5-amd64 6.12.12+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.12-1~bpo12+1 (2025-02-23) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-31-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Mar 4 2025 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/4056226/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Mar 4 11:20 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1753902/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -344,7 +376,7 @@ Get: 227 http://deb.debian.org/debian unstable/main amd64 libsdl1.2-dev amd64 1.2.68-3 [64.4 kB] Get: 228 http://deb.debian.org/debian unstable/main amd64 libvorbis-dev amd64 1.3.7-2+b1 [326 kB] Get: 229 http://deb.debian.org/debian unstable/main amd64 libsdl-mixer1.2-dev amd64 1.2.12-19+b1 [97.9 kB] -Fetched 114 MB in 11s (10.6 MB/s) +Fetched 114 MB in 4s (27.5 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 ... 19783 files and directories currently installed.) @@ -1086,8 +1118,8 @@ Setting up tzdata (2025a-2) ... Current default time zone: 'Etc/UTC' -Local time is now: Tue Apr 14 20:59:49 UTC 2026. -Universal Time is now: Tue Apr 14 20:59:49 UTC 2026. +Local time is now: Wed Mar 12 14:40:00 UTC 2025. +Universal Time is now: Wed Mar 12 14:40:00 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libxcb-present0:amd64 (1.17.0-2+b1) ... @@ -1298,7 +1330,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/1753902/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/1753902/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 @@ -1423,7 +1459,7 @@ config.status: executing depfiles commands make[1]: Leaving directory '/build/reproducible-path/gl-117-1.3.2' dh_auto_build - make -j42 + make -j20 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' @@ -1449,10 +1485,6 @@ 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) \ | ^ @@ -1478,10 +1510,6 @@ audio.cpp:272:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 272 | music1 = Mix_LoadMUS (dirs->getMusic ("ambient.s3m")); | ^~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~ audio.cpp:280:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 280 | music1 = Mix_LoadMUS (dirs->getMusic ("standby.s3m")); | ^~~~~~~~~~~~~ @@ -1512,23 +1540,287 @@ audio.cpp:318:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 318 | wavebeep1 = new WaveFile (dirs->getSounds ("beep1.wav")); | ^~~~~~~~~~~ +audio.cpp:319:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 319 | wavechaff1 = new WaveFile (dirs->getSounds ("chaff1.wav")); + | ^~~~~~~~~~~~ +audio.cpp:320:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 320 | wavebeep2 = new WaveFile (dirs->getSounds ("beep2.wav")); + | ^~~~~~~~~~~ +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")); + | ^~~~~~~~~~ +audio.cpp:445:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 445 | music1 = Mix_LoadMUS (dirs->getMusic ("winner.s3m")); + | ^~~~~~~~~~~~ +audio.cpp:448:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 448 | music1 = Mix_LoadMUS (dirs->getMusic ("loser.s3m")); + | ^~~~~~~~~~~ +audio.cpp:451:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 451 | music1 = Mix_LoadMUS (dirs->getMusic ("standby.s3m")); + | ^~~~~~~~~~~~~ +audio.cpp:454:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 454 | music1 = Mix_LoadMUS (dirs->getMusic ("electro.s3m")); + | ^~~~~~~~~~~~~ +audio.cpp:457:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 457 | music1 = Mix_LoadMUS (dirs->getMusic ("stars.s3m")); + | ^~~~~~~~~~~ +audio.cpp:460:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 460 | music1 = Mix_LoadMUS (dirs->getMusic ("softtec.s3m")); + | ^~~~~~~~~~~~~ +audio.cpp:463:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 463 | music1 = Mix_LoadMUS (dirs->getMusic ("ambient.s3m")); + | ^~~~~~~~~~~~~ +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"; + | ^~~~~ +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); + | ^~~~~~ +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); + | ^~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~ +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"; } + | ^~~~~~~~ +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); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:99:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 99 | fread (&len, sizeof (int), 1, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:101:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 101 | fread (name, sizeof (char), len, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:102:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 102 | fread (&intelligence, sizeof (int), 1, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:103:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 103 | fread (&precision, sizeof (int), 1, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:104:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 104 | fread (&aggressivity, sizeof (int), 1, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:105:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 105 | fread (&fighterkills, sizeof (int), 1, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp: In member function 'void Pilot::load()': +pilots.cpp:162:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 162 | fread (saveversion, sizeof (char), strlen (SAVEVERSION), in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:163:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 163 | fread (mission_state, sizeof (int), maxpilotdata, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:164:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 164 | fread (mission_time, sizeof (int), maxpilotdata, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:165:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 165 | fread (mission_fighterkills, sizeof (int), maxpilotdata, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:166:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 166 | fread (mission_shipkills, sizeof (int), maxpilotdata, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:167:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 167 | fread (mission_tankkills, sizeof (int), maxpilotdata, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:168:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 168 | fread (mission_otherkills, sizeof (int), maxpilotdata, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:169:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 169 | fread (mission_shield, sizeof (int), maxpilotdata, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:170:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 170 | fread (mission_points, sizeof (int), maxpilotdata, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:171:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 171 | fread (mission_score, sizeof (int), maxpilotdata, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp: In member function 'void PilotList::load(char*)': +pilots.cpp:301:9: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 301 | fgets (buf, 16, in); + | ~~~~~~^~~~~~~~~~~~~ +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); + | ~~~~~~^~~~~~~~~~~~~ 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; | ^ -audio.cpp:319:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 319 | wavechaff1 = new WaveFile (dirs->getSounds ("chaff1.wav")); - | ^~~~~~~~~~~~ conf.cpp:151:8: note: 'res' declared here 151 | char res [256]; | ^~~ -audio.cpp:320:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 320 | wavebeep2 = new WaveFile (dirs->getSounds ("beep2.wav")); - | ^~~~~~~~~~~ -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) - | ^~~~~~~~~~~~~ +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); + | ^~~~~~ 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"); @@ -1542,10 +1834,6 @@ conf.cpp:215:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 215 | cf->writeText ("# Some possible width x height values for fullscreen mode:"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~ conf.cpp:216:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 216 | cf->writeText ("# 640x480, 800x600, 1024x768, 1152x864, 1280x768, 1280x960, 1280x1024"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1630,52 +1918,27 @@ conf.cpp:245:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 245 | cf->write (" difficulty", difficulty); | ^~~~~~~~~~~~~ -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")); - | ^~~~~~~~~~ conf.cpp:246:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 246 | cf->writeText ("# Brightness: -50..50 per cent (default=0)"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ conf.cpp:247:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 247 | cf->write (" brightness", brightness); | ^~~~~~~~~~~~~ -audio.cpp:445:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 445 | music1 = Mix_LoadMUS (dirs->getMusic ("winner.s3m")); - | ^~~~~~~~~~~~ conf.cpp:248:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 248 | cf->writeText ("# Physics: 0=action, 1=realistic"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ conf.cpp:249:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 249 | cf->write (" physics", physics); | ^~~~~~~~~~ -audio.cpp:448:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 448 | music1 = Mix_LoadMUS (dirs->getMusic ("loser.s3m")); - | ^~~~~~~~~~~ conf.cpp:250:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 250 | cf->writeText ("\n# This file is meant to give sensible startup settings"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -audio.cpp:451:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 451 | music1 = Mix_LoadMUS (dirs->getMusic ("standby.s3m")); - | ^~~~~~~~~~~~~ conf.cpp:251:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 251 | cf->writeText ("# as graphic cards and drivers may differ some 100 times in speed"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -audio.cpp:454:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 454 | music1 = Mix_LoadMUS (dirs->getMusic ("electro.s3m")); - | ^~~~~~~~~~~~~ -audio.cpp:457:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 457 | music1 = Mix_LoadMUS (dirs->getMusic ("stars.s3m")); - | ^~~~~~~~~~~ -audio.cpp:460:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 460 | music1 = Mix_LoadMUS (dirs->getMusic ("softtec.s3m")); - | ^~~~~~~~~~~~~ -audio.cpp:463:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 463 | music1 = Mix_LoadMUS (dirs->getMusic ("ambient.s3m")); - | ^~~~~~~~~~~~~ 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"); @@ -1769,16 +2032,6 @@ conf.cpp:463:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 463 | str = cf->getString (ret, "savefullscreen"); | ^~~~~~~~~~~~~~~~ -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_configInterface()': conf.cpp:485:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 485 | char *confname = dirs->getSaves ("conf.interface"); @@ -1840,10 +2093,6 @@ conf.cpp:511:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 511 | cf->write (" key_incthrust", (int) key_thrustup); | ^~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~ conf.cpp:512:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 512 | cf->write (" key_decthrust", (int) key_thrustdown); | ^~~~~~~~~~~~~~~~ @@ -1853,6 +2102,10 @@ conf.cpp:514:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 514 | cf->writeText ("\n# ---------------------------------------------------------------------"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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:515:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 515 | cf->writeText ("# Mouse section"); | ^~~~~~~~~~~~~~~~~ @@ -1862,9 +2115,6 @@ conf.cpp:517:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 517 | cf->writeText ("# Sensitivity: 70...200%, 70%=full screen area, 200%=max sensitivity"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -loader_tga.cpp:217:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 217 | display ("Out of memory", LOG_FATAL); - | ^~~~~~~~~~~~~~~ conf.cpp:518:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 518 | cf->write (" mouse_sensitivity", (int) mouse_sensitivity); | ^~~~~~~~~~~~~~~~~~~~ @@ -1943,10 +2193,6 @@ conf.cpp:553:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 553 | writeJoystick (cf, " joystick_firecannon", joystick_firecannon); | ^~~~~~~~~~~~~~~~~~~~~~ -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:554:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 554 | writeJoystick (cf, " joystick_firemissile", joystick_firemissile); | ^~~~~~~~~~~~~~~~~~~~~~~ @@ -1986,6 +2232,37 @@ 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!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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"); + | ^~~~~~ 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"); @@ -2014,89 +2291,37 @@ conf.cpp:631:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 631 | str = cf->getString (ret, "key_targetnext"); | ^~~~~~~~~~~~~~~~ -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:634:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 634 | str = cf->getString (ret, "key_targetprevious"); | ^~~~~~~~~~~~~~~~~~~~ -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:637:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 637 | str = cf->getString (ret, "key_incthrust"); | ^~~~~~~~~~~~~~~ -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"; - | ^~~~~~~~~ conf.cpp:640:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 640 | str = cf->getString (ret, "key_decthrust"); | ^~~~~~~~~~~~~~~ -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"; - | ^~~~~~~~~ conf.cpp:643:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 643 | str = cf->getString (ret, "mouse_sensitivity"); | ^~~~~~~~~~~~~~~~~~~ -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"; - | ^~~~~ conf.cpp:651:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 651 | str = cf->getString (ret, "mouse_reverse"); | ^~~~~~~~~~~~~~~ -pilots.cpp:70:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 70 | else if (ranking == 2) return "A1C"; - | ^~~~~ conf.cpp:657:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 657 | str = cf->getString (ret, "mouse_relative"); | ^~~~~~~~~~~~~~~~ -pilots.cpp:71:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 71 | else if (ranking == 3) return "2ND LT"; - | ^~~~~~~~ conf.cpp:663:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 663 | str = cf->getString (ret, "mouse_autorudder"); | ^~~~~~~~~~~~~~~~~~ -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"; - | ^~~~~~ +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 + | ~~~~~~~^~~~~~~~~~~ conf.cpp:672:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 672 | str = cf->getString (ret, "mouse_firecannon"); | ^~~~~~~~~~~~~~~~~~ -pilots.cpp:74:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 74 | else if (ranking == 6) return "MAJ"; - | ^~~~~ conf.cpp:681:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 681 | str = cf->getString (ret, "mouse_firemissile"); | ^~~~~~~~~~~~~~~~~~~ -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:690:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 690 | str = cf->getString (ret, "mouse_selectmissile"); | ^~~~~~~~~~~~~~~~~~~~~ @@ -2133,10 +2358,6 @@ conf.cpp:729:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 729 | str = cf->getString (ret, "joystick_selectmissile"); | ^~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~ conf.cpp:732:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 732 | str = cf->getString (ret, "joystick_targetnearest"); | ^~~~~~~~~~~~~~~~~~~~~~~~ @@ -2146,261 +2367,36 @@ conf.cpp:738:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 738 | str = cf->getString (ret, "joystick_targetnext"); | ^~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~ conf.cpp:741:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 741 | str = cf->getString (ret, "joystick_targetprevious"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ conf.cpp:744:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 744 | str = cf->getString (ret, "joystick_incthrust"); | ^~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~ conf.cpp:747:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 747 | str = cf->getString (ret, "joystick_decthrust"); | ^~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~ -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); - | ^~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~ -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"; } - | ^~~~~~~~ -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: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"; } - | ^~~~~~~ -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: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"; } - | ^~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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"; } - | ^~~~~ -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: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"; } - | ^~~~~~~~ -dirs.cpp:194:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 194 | append (saves, ".gl-117"); - | ^~~~~~~~~ -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"; } - | ^~~~~ -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"); - | ^~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 '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); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:99:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 99 | fread (&len, sizeof (int), 1, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:101:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 101 | fread (name, sizeof (char), len, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:102:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 102 | fread (&intelligence, sizeof (int), 1, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:103:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 103 | fread (&precision, sizeof (int), 1, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:104:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 104 | fread (&aggressivity, sizeof (int), 1, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:105:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 105 | fread (&fighterkills, sizeof (int), 1, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp: In member function 'void Pilot::load()': -pilots.cpp:162:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 162 | fread (saveversion, sizeof (char), strlen (SAVEVERSION), in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:163:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 163 | fread (mission_state, sizeof (int), maxpilotdata, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:164:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 164 | fread (mission_time, sizeof (int), maxpilotdata, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:165:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 165 | fread (mission_fighterkills, sizeof (int), maxpilotdata, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:166:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 166 | fread (mission_shipkills, sizeof (int), maxpilotdata, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:167:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 167 | fread (mission_tankkills, sizeof (int), maxpilotdata, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:168:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 168 | fread (mission_otherkills, sizeof (int), maxpilotdata, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:169:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 169 | fread (mission_shield, sizeof (int), maxpilotdata, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:170:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 170 | fread (mission_points, sizeof (int), maxpilotdata, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:171:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 171 | fread (mission_score, sizeof (int), maxpilotdata, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp: In member function 'void PilotList::load(char*)': -pilots.cpp:301:9: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 301 | fgets (buf, 16, in); - | ~~~~~~^~~~~~~~~~~~~ -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); - | ~~~~~~^~~~~~~~~~~~~ -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); - | ^~~~~~ +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 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); - | ^~~~~~ -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; - | ^~~ -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 - | ^~~~~~~ -In file included from effects.h:28, - from effects.cpp: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); | ^~~~~~ -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 - | ^~~~~~~ In file included from effects.h:28, from aiobject.h:29, from main.h:41, @@ -2411,95 +2407,14 @@ 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); - | ^~~~~~ -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); - | ^~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~ -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); - | ^~~~~~ -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 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); | ^~~~~~~~~~~~~~~~~~~~~~~~ -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)); - | ^~~~~~~~~~~~~~~ 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; @@ -2581,26 +2496,12 @@ 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); | ^~~~~~~~ -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) - | ^ 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); | ^~~~~~~~ -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) - | ^ 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); | ^~~~~~~~ @@ -2636,10 +2537,6 @@ 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); | ^~~~~~ -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:2431:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2431 | font1->drawText (-2, -12, -2, "BACK"); | ^~~~~~ @@ -2647,6 +2544,20 @@ main.cpp:2583:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2583 | pilots->save (dirs->getSaves ("pilots")); | ^~~~~~~~ +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) + | ^ main.cpp:2584:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2584 | display ("Pilots saved", LOG_MOST); | ^~~~~~~~~~~~~~ @@ -2675,6 +2586,10 @@ 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); | ^~~~~ +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: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); | ^~~~~ @@ -2712,14 +2627,19 @@ main.cpp:2893:7: warning: variable 'pick' set but not used [-Wunused-but-set-variable] 2893 | int pick [100]; | ^~~~ +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 + | ^~~~~~~ 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); | ^~~~~~~~ -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) - | ^ 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); @@ -2754,33 +2674,27 @@ 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 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); | ^~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~ +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); + | ^~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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) - | ^ -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:3031:66: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3031 | font1->drawTextCentered (0, (yt -= 10 * ydist) / fontzoom, zf, "***********************", col); | ^~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2793,6 +2707,13 @@ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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: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); | ^~~~~~~~~~~~~~~~~~~~ @@ -2812,14 +2733,9 @@ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 || 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -land.cpp:1046:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses] - 1046 | if (f [i - 1] [i2] == GLACIER && f [i + 1] [i2] == GLACIER || 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2860,14 +2776,20 @@ 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); | ^~~~~~~~~~~~~~ -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; - | ^ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +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) + | ^ +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); + | ^~~~~~ 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); @@ -2881,10 +2803,6 @@ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -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]) || - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~ @@ -2900,193 +2818,24 @@ main.cpp:3249:21: warning: variable 'zfac' set but not used [-Wunused-but-set-variable] 3249 | float fac = view, zfac = view * 0.2; | ^~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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: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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -aiobject.cpp:2726:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2726 | display ("Manoever: Roll", LOG_ALL); - | ^~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -aiobject.cpp:2734:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2734 | display ("Manoever: Turn", LOG_ALL); - | ^~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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: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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:397:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 397 | font1->drawTextCentered (0, 7, -2.5, "THE MENU OPTIONS/CONTROLS LETS YOU", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:420:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 420 | font1->drawTextCentered (0, 7, -2.5, "THE REVERTED MOUSE IS FOR REAL GAMERS ONLY.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:421:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 421 | font1->drawTextCentered (0, 6, -2.5, "THE STANDARD MOUSE INTERFACE MAY BE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:422:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 422 | font1->drawTextCentered (0, 5, -2.5, "EASIER TO LEARN", &textcolor); - | ^~~~~~~~~~~~~~~~~ -mission.cpp:426:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 426 | font1->drawTextCentered (0, 7, -2.5, "MOUSE RELATIVE IS A LOT OF WORK.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:427:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 427 | font1->drawTextCentered (0, 6, -2.5, "ONLY THE RELATIVE MOUSE COORDINATES (MOVING)", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:428:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 428 | font1->drawTextCentered (0, 5, -2.5, "WILL HAVE AN EFFECT", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~ -mission.cpp:433:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 433 | font1->drawTextCentered (0, 7, -2.5, "THE KEYBOARD INTERFACE IS NOT THAT EASY.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:434:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 434 | font1->drawTextCentered (0, 6, -2.5, "USING THE MOUSE IS STRONLY RECOMMENDED", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:441:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 441 | font1->drawTextCentered (0, 7, -2.5, "MOVING UP OR DOWN WILL AFFECT", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:442:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 442 | font1->drawTextCentered (0, 6, -2.5, "THE ELEVATOR.", &textcolor); - | ^~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~ -mission.cpp:468:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 468 | font1->drawTextCentered (0, 6, -2.5, "USE THE KEYS PGUP AND PGDN", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:475:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 475 | font1->drawTextCentered (0, 7, -2.5, "YOUR JOYSTICK HAS ALSO A THROTTLE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:476:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 476 | font1->drawTextCentered (0, 6, -2.5, "TO SPEEDUP OR DECELERATE.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:477:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 477 | font1->drawTextCentered (0, 5, -2.5, "THERE IS NO WAY TO ENTIRELY STOP", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:481:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 481 | font1->drawTextCentered (0, 7, -2.5, "USE THE KEYS '1' THROUGH '9' TO ALTER", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:491:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 491 | font1->drawTextCentered (0, 6, -2.5, "FIRE CANNON, DROP CHAFF/FLARE,", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:492:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 492 | font1->drawTextCentered (0, 5, -2.5, "FIRE MISSILE, CHOOSE MISSILE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:496:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 496 | font1->drawTextCentered (0, 7, -2.5, "LEFT MOUSE BUTTON: FIRE CANNON", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:502:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 502 | font1->drawTextCentered (0, 6, -2.5, "NOW, LETS HAVE A LOOK AT SOME IMPORTANT KEYS", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 +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 || +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 +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; + | ^ 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); @@ -3094,21 +2843,9 @@ main.cpp:4301:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4301 | display ("Creating advanced OpenGL methods", LOG_ALL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:529:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 529 | font1->drawTextCentered (0, 6, -2.5, "THERE ARE ENEMIES REPRESENTED BY A YELLOW POINT (TARGETED)", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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:4305:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4305 | display ("Loading textures", LOG_ALL); | ^~~~~~~~~~~~~~~~~~ -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:4306:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4306 | texgrass = gl->genTextureTGA (dirs->getTextures ("grass1.tga"), 0, 0, 1, false); | ^~~~~~~~~~~~ @@ -3121,18 +2858,12 @@ main.cpp:4309:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4309 | texsand = gl->genTextureTGA (dirs->getTextures ("sand1.tga"), 0, 0, 1, false); | ^~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~ -mission.cpp:544:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 544 | font1->drawTextCentered (0, 7, -2.5, "YOU MAY TARGET AN ENEMY PRESSING", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4312:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4312 | texgravel1 = gl->genTextureTGA (dirs->getTextures ("gravel1.tga"), 0, 0, 1, false); | ^~~~~~~~~~~~~ @@ -3145,9 +2876,6 @@ main.cpp:4315:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4315 | textreeu = gl->genTextureTGA (dirs->getTextures ("treeu1.tga"), 0, -1, 1, true); | ^~~~~~~~~~~~ -mission.cpp:548:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 548 | font1->drawTextCentered (0, 5, -2.5, "THEN APPROACH!", &textcolor); - | ^~~~~~~~~~~~~~~~ main.cpp:4316:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4316 | textree2 = gl->genTextureTGA (dirs->getTextures ("tree2.tga"), 0, -1, 1, true); | ^~~~~~~~~~~ @@ -3160,18 +2888,12 @@ main.cpp:4319:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4319 | textreeu3 = gl->genTextureTGA (dirs->getTextures ("treeu3.tga"), 0, 3, 1, true); | ^~~~~~~~~~~~ -mission.cpp:553:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 553 | font1->drawTextCentered (0, 7, -2.5, "SHOOT THE TARGETS TO COMPLETE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4320:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4320 | textree4 = gl->genTextureTGA (dirs->getTextures ("tree4.tga"), 0, 3, 1, true); | ^~~~~~~~~~~ main.cpp:4321:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4321 | textreeu4 = gl->genTextureTGA (dirs->getTextures ("treeu4.tga"), 0, 3, 1, true); | ^~~~~~~~~~~~ -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:4322:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4322 | textree5 = gl->genTextureTGA (dirs->getTextures ("tree5.tga"), 0, -1, 1, true); | ^~~~~~~~~~~ @@ -3205,6 +2927,10 @@ main.cpp:4332:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4332 | texflare1 = gl->genTextureTGA (dirs->getTextures ("flare1.tga"), 1, -1, 0, true); | ^~~~~~~~~~~~ +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]) || + | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4333:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4333 | texflare2 = gl->genTextureTGA (dirs->getTextures ("flare2.tga"), 1, -1, 0, true); | ^~~~~~~~~~~~ @@ -3247,16 +2973,9 @@ main.cpp:4347:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4347 | display ("Loading Fonts", LOG_ALL); | ^~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4348:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4348 | font1 = new Font (dirs->getTextures ("font1.tga"), 32, '!', 64); | ^~~~~~~~~~~ -mission.cpp:653:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 653 | font1->drawTextCentered (0, 5, -2.5, "AGM (AIR-GROUND-MISSILE) AND DF (DUMB FIRE)", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4350:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4350 | font2 = new Font (dirs->getTextures ("font2.tga"), 32, '!', 64); | ^~~~~~~~~~~ @@ -3266,9 +2985,6 @@ main.cpp:4353:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4353 | display (" * gl-16.3ds", LOG_ALL); | ^~~~~~~~~~~~~~ -mission.cpp:657:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 657 | font1->drawTextCentered (0, 7, -2.5, "LET'S USE THE AGM: AS SOON AS THE TARGET", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4354:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4354 | g_Load3ds.Import3DS (&model_fig, dirs->getModels ("gl-16.3ds")); | ^~~~~~~~~~~ @@ -3278,9 +2994,6 @@ main.cpp:4356:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4356 | display (" * gl-15.3ds", LOG_ALL); | ^~~~~~~~~~~~~~ -mission.cpp:658:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 658 | font1->drawTextCentered (0, 6, -2.5, "IS LOCKED (YELLOW), SHOOT THE AGM AT ANY", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4357:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4357 | g_Load3ds.Import3DS (&model_figa, dirs->getModels ("gl-15.3ds")); | ^~~~~~~~~~~ @@ -3290,9 +3003,6 @@ main.cpp:4359:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4359 | display (" * gl-14c.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4360:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4360 | g_Load3ds.Import3DS (&model_figb, dirs->getModels ("gl-14c.3ds")); | ^~~~~~~~~~~~ @@ -3305,9 +3015,6 @@ main.cpp:4363:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4363 | g_Load3ds.Import3DS (&model_figc, dirs->getModels ("gl-14d.3ds")); | ^~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4364:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4364 | model_figc.setName ("HAWK II"); | ^~~~~~~~~ @@ -3317,9 +3024,6 @@ main.cpp:4366:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4366 | g_Load3ds.Import3DS (&model_figd, dirs->getModels ("gl-21b.3ds")); | ^~~~~~~~~~~~ -mission.cpp:664:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 664 | font1->drawTextCentered (0, 6, -2.5, "IT IS QUITE 'DUMB' AND WILL FLY STRAIGHT AHEAD.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4367:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4367 | model_figd.setName ("BUZZARD"); | ^~~~~~~~~ @@ -3332,9 +3036,6 @@ main.cpp:4370:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4370 | model_fige.setName ("CROW"); | ^~~~~~ -mission.cpp:668:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 668 | font1->drawTextCentered (0, 6, -2.5, "HOWEVER, DF MISSILES WILL CAUSE MUCH MORE DAMAGE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4371:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4371 | display (" * gl-14b.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~ @@ -3347,9 +3048,6 @@ main.cpp:4374:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4374 | display (" * gl-14.3ds", LOG_ALL); | ^~~~~~~~~~~~~~ -mission.cpp:672:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 672 | font1->drawTextCentered (0, 6, -2.5, "NOW, BLOW UP THE TWO TANKS", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4375:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4375 | g_Load3ds.Import3DS (&model_figg, dirs->getModels ("gl-14.3ds")); | ^~~~~~~~~~~ @@ -3392,25 +3090,15 @@ main.cpp:4389:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4389 | model_figu.setName ("TRANSPORT"); | ^~~~~~~~~~~ -mission.cpp: In member function 'virtual void MissionTutorial3::draw()': -mission.cpp:724:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 724 | font1->drawTextCentered (0, 7, -2.5, "THE MENU OPTIONS/CONTROLS LETS YOU DEFINE DIFFICULTY", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4393:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4393 | display (" * cannon1.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~~ main.cpp:4394:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4394 | g_Load3ds.Import3DS (&model_cannon1, dirs->getModels ("cannon1.3ds")); | ^~~~~~~~~~~~~ -mission.cpp:725:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 725 | font1->drawTextCentered (0, 6, -2.5, "AND REALISM. CHANGING THESE SETTINGS WILL ONLY HAVE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4396:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4396 | display (" * cannon1b.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~~~ -mission.cpp:726:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 726 | font1->drawTextCentered (0, 5, -2.5, "EFFECT ON THE NEXT MISSION YOU START", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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")); | ^~~~~~~~~~~~~~ @@ -3420,63 +3108,77 @@ main.cpp:4402:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4402 | g_Load3ds.Import3DS (&model_cannon2, dirs->getModels ("cannon2.3ds")); | ^~~~~~~~~~~~~ -mission.cpp:730:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 730 | font1->drawTextCentered (0, 7, -2.5, "APART FROM YOUR CURRENT PHYSICS SETTINGS", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:731:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 731 | font1->drawTextCentered (0, 6, -2.5, "LET'S USE THE SIMULATION MODEL AND DISCUSS", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4416:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4416 | display (" * cannon2b.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~~~ main.cpp:4417:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4417 | g_Load3ds.Import3DS (&model_cannon2b, dirs->getModels ("cannon2b.3ds")); | ^~~~~~~~~~~~~~ -mission.cpp:732:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 732 | font1->drawTextCentered (0, 5, -2.5, "THE FOUR FORCES THRUST, DRAG, LIFT, AND WEIGHT", &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)); + | ^~~~~~~~~~~~~ main.cpp:4434:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4434 | display (" * flare1.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~ -mission.cpp:736:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 736 | font1->drawTextCentered (0, 7, -2.5, "THRUST IS FORWARD FORCE CREATED BY THE ENGINES.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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)); + | ^~~~~~~~~~~~~~~ main.cpp:4435:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4435 | g_Load3ds.Import3DS (&model_flare1, dirs->getModels ("flare1.3ds")); | ^~~~~~~~~~~~ -mission.cpp:737:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 737 | font1->drawTextCentered (0, 6, -2.5, "CHANGE THE THRUST TO GAIN OR LOSE SPEED", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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)); + | ^~~~~~~~~~~~~~~ main.cpp:4436:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4436 | model_flare1.setName ("FLARE"); | ^~~~~~~ -mission.cpp:741:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 741 | font1->drawTextCentered (0, 7, -2.5, "DRAG IS THE RETARDING FORCE THAT LIMITS THE AIRCRAFT'S", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4439:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4439 | display (" * chaff1.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~ +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)); + | ^~~~~~~~~~~~~~~ main.cpp:4440:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4440 | g_Load3ds.Import3DS (&model_chaff1, dirs->getModels ("chaff1.3ds")); | ^~~~~~~~~~~~ +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)); + | ^~~~~~~~~~~~~~~ main.cpp:4441:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4441 | model_chaff1.setName ("CHAFF"); | ^~~~~~~ -mission.cpp:742:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 742 | font1->drawTextCentered (0, 6, -2.5, "SPEED. IT IS MAINLY CAUSED BY THE AIRCRAFT'S STRUCTURE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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)); + | ^~~~~~~~~~~~~~~ main.cpp:4444:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4444 | display (" * missile1.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~~~ +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)); + | ^~~~~~~~~~~~~ main.cpp:4445:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4445 | g_Load3ds.Import3DS (&model_missile1, dirs->getModels ("missile1.3ds")); | ^~~~~~~~~~~~~~ -mission.cpp:743:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 743 | font1->drawTextCentered (0, 5, -2.5, "THAT PROTUDES INTO THE WIND", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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)); + | ^~~~~~~~~~~~~~~ main.cpp:4446:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4446 | model_missile1.setName ("AAM HS MK1"); | ^~~~~~~~~~~~ +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)); + | ^~~~~~~~~~~~~~~ main.cpp:4447:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4447 | display (" * missile2.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~~~ @@ -3486,18 +3188,12 @@ main.cpp:4449:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4449 | model_missile2.setName ("AAM HS MK2"); | ^~~~~~~~~~~~ -mission.cpp:747:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 747 | font1->drawTextCentered (0, 7, -2.5, "LIFT IS THE UPWARD FORCE CREATED BY THE AIRFLOW THAT PASSES", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4450:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4450 | display (" * missile3.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~~~ main.cpp:4451:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4451 | g_Load3ds.Import3DS (&model_missile3, dirs->getModels ("missile3.3ds")); | ^~~~~~~~~~~~~~ -mission.cpp:748:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 748 | font1->drawTextCentered (0, 6, -2.5, "OVER THE WINGS. IN STRAIGHT UNACCELERATED FLIGHT, IT", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4452:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4452 | model_missile3.setName ("AAM HS MK3"); | ^~~~~~~~~~~~ @@ -3507,9 +3203,6 @@ main.cpp:4454:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4454 | g_Load3ds.Import3DS (&model_missile4, dirs->getModels ("missile4.3ds")); | ^~~~~~~~~~~~~~ -mission.cpp:749:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 749 | font1->drawTextCentered (0, 5, -2.5, "COMPENSATES THE WEIGHT AND YOUR FIGHTER WON'T CLIMB OR DIVE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4455:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4455 | model_missile4.setName ("AGM MK1"); | ^~~~~~~~~ @@ -3519,27 +3212,18 @@ main.cpp:4457:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4457 | g_Load3ds.Import3DS (&model_missile5, dirs->getModels ("missile5.3ds")); | ^~~~~~~~~~~~~~ -mission.cpp:753:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 753 | font1->drawTextCentered (0, 7, -2.5, "THE LIFT FORCE DEPENDS ON THE SPEED:", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4458:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4458 | model_missile5.setName ("AGM MK2"); | ^~~~~~~~~ main.cpp:4459:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4459 | display (" * missile6.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~~~ -mission.cpp:754:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 754 | font1->drawTextCentered (0, 6, -2.5, "LOW SPEED WILL CAUSE THE AIRPLANE TO DIVE,", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4460:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4460 | g_Load3ds.Import3DS (&model_missile6, dirs->getModels ("missile6.3ds")); | ^~~~~~~~~~~~~~ main.cpp:4461:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4461 | model_missile6.setName ("DFM"); | ^~~~~ -mission.cpp:755:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 755 | font1->drawTextCentered (0, 5, -2.5, "AT HIGH SPEED IT WILL EVEN CLIMB", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4462:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4462 | display (" * missile7.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~~~ @@ -3552,18 +3236,12 @@ main.cpp:4465:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4465 | display (" * missile8.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~~~ -mission.cpp:759:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 759 | font1->drawTextCentered (0, 7, -2.5, "NOW TRY THIS EFFECT BY FLYING STRAIGHT AHEAD AT 0 DEGREE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4466:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4466 | g_Load3ds.Import3DS (&model_missile8, dirs->getModels ("missile8.3ds")); | ^~~~~~~~~~~~~~ main.cpp:4467:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4467 | model_missile8.setName ("AAM FF MK2"); | ^~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4468:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4468 | display (" * flak2.3ds", LOG_ALL); | ^~~~~~~~~~~~~~ @@ -3573,18 +3251,12 @@ main.cpp:4470:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4470 | model_flak1.setName ("SA CANNON"); | ^~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4471:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4471 | display (" * flarak1.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~~ 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")); | ^~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4473:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4473 | model_flarak1.setName ("SAM"); | ^~~~~ @@ -3597,78 +3269,48 @@ main.cpp:4476:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4476 | model_ship1.setName ("CRUISER"); | ^~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4477:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4477 | display (" * tent1.3ds", LOG_ALL); | ^~~~~~~~~~~~~~ main.cpp:4478:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4478 | g_Load3ds.Import3DS (&model_tent1, dirs->getModels ("tent1.3ds")); | ^~~~~~~~~~~ -mission.cpp:770:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 770 | font1->drawTextCentered (0, 6, -2.5, "FROM STRAIGHT FLIGHT TO A DIAGONAL DIRECTION WHILE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4479:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4479 | model_tent1.setName ("TENT"); | ^~~~~~ main.cpp:4480:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4480 | display (" * gl-117.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~ -mission.cpp:771:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 771 | font1->drawTextCentered (0, 5, -2.5, "LOSING HEIGHT. TRY!", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~ main.cpp:4481:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4481 | g_Load3ds.Import3DS (&model_gl117, dirs->getModels ("gl-117.3ds")); | ^~~~~~~~~~~~ main.cpp:4483:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4483 | display (" * tank1.3ds", LOG_ALL); | ^~~~~~~~~~~~~~ -mission.cpp:775:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 775 | font1->drawTextCentered (0, 7, -2.5, "THE OVERALL FORCE IS GAINED BY ADDING THE FOUR FORCES.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4484:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4484 | g_Load3ds.Import3DS (&model_tank1, dirs->getModels ("tank1.3ds")); | ^~~~~~~~~~~ -mission.cpp:776:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 776 | font1->drawTextCentered (0, 6, -2.5, "IT IS MEASURED IN 'G' WITH 1G MEANING THE EARTH'S GRAVITY", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4485:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4485 | model_tank1.setName ("WIESEL"); | ^~~~~~~~ main.cpp:4487:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4487 | display (" * container1.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~~~~~ -mission.cpp:780:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 780 | font1->drawTextCentered (0, 7, -2.5, "YOU ARE MOSTLY OPPOSED TO MORE THAN ONLY 1G. BE CAREFUL:", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4488:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4488 | g_Load3ds.Import3DS (&model_container1, dirs->getModels ("container1.3ds")); | ^~~~~~~~~~~~~~~~ -mission.cpp:781:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 781 | font1->drawTextCentered (0, 6, -2.5, "9G OR MORE MAY LEAD TO A BLACKOUT,", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4489:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4489 | model_container1.setName ("CONTAINER"); | ^~~~~~~~~~~ -mission.cpp:782:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 782 | font1->drawTextCentered (0, 5, -2.5, "AT LESS THAN -3G THE BLOOD WILL SHOOT INTO YOUR HEAD", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4490:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4490 | display (" * ship2.3ds", LOG_ALL); | ^~~~~~~~~~~~~~ main.cpp:4491:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4491 | g_Load3ds.Import3DS (&model_ship2, dirs->getModels ("ship2.3ds")); | ^~~~~~~~~~~ -mission.cpp:786:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 786 | font1->drawTextCentered (0, 7, -2.5, "NOW ROLL ON THE BACK AND GET RID OF", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4492:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4492 | model_ship2.setName ("LIGHT DESTROYER"); | ^~~~~~~~~~~~~~~~~ -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:4493:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4493 | display (" * truck1.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~ @@ -3750,85 +3392,42 @@ main.cpp:4520:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4520 | model_hall2.setName ("HALL"); | ^~~~~~ -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:4521:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4521 | display (" * oilrig.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4522:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4522 | g_Load3ds.Import3DS (&model_oilrig, dirs->getModels ("oilrig.3ds")); | ^~~~~~~~~~~~ -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:4523:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4523 | model_oilrig.setName ("OILRIG"); | ^~~~~~~~ main.cpp:4525:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4525 | display (" * egg.3ds", LOG_ALL); | ^~~~~~~~~~~~ -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:4526:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4526 | g_Load3ds.Import3DS (&model_egg, dirs->getModels ("egg.3ds")); | ^~~~~~~~~ -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:4528:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4528 | model_egg.setName ("COMPLEX"); | ^~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4529:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4529 | display (" * radar.3ds", LOG_ALL); | ^~~~~~~~~~~~~~ -mission.cpp:933:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 933 | font1->drawTextCentered (0, 6, -2.5, "WHICH DETECTS ENEMIES BY RADAR.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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")); | ^~~~~~~~~~~ -mission.cpp:934:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 934 | font1->drawTextCentered (0, 5, -2.5, "SHOOT AS EARLY AS POSSIBLE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4531:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4531 | model_radar.setName ("RADAR"); | ^~~~~~~ -mission.cpp:938:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 938 | font1->drawTextCentered (0, 7, -2.5, "YOU CAN ONLY FIRE MISSILES WHEN", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4532:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4532 | display (" * mine1.3ds", LOG_ALL); | ^~~~~~~~~~~~~~ -mission.cpp:939:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 939 | font1->drawTextCentered (0, 6, -2.5, "THE RECTANGULAR LOCK AROUND THE ENEMY", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:940:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 940 | font1->drawTextCentered (0, 5, -2.5, "APPEARS YELLOW", &textcolor); - | ^~~~~~~~~~~~~~~~ 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")); | ^~~~~~~~~~~ -mission.cpp:944:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 944 | font1->drawTextCentered (0, 7, -2.5, "CHECK THE CHAFF/FLARE DISPLAYS.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4534:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4534 | model_mine1.setName ("MINE"); | ^~~~~~ -mission.cpp:945:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 945 | font1->drawTextCentered (0, 6, -2.5, "IF THEY START BLINKING, AN ENEMY HAS", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:946:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 946 | font1->drawTextCentered (0, 5, -2.5, "FIRED A MISSILE TO GET YOU DOWN", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4535:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4535 | display (" * aster1.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~ @@ -3838,12 +3437,6 @@ main.cpp:4537:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4537 | model_aster1.setName ("ASTEROID"); | ^~~~~~~~~~ -mission.cpp:950:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 950 | font1->drawTextCentered (0, 7, -2.5, "CHAFF IS A DECOY FOR RADAR SEEKING MISSILES,", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:951:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 951 | font1->drawTextCentered (0, 6, -2.5, "FLARES PROTECT FROM INFRARED MISSILES", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4538:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4538 | display (" * base1.3ds", LOG_ALL); | ^~~~~~~~~~~~~~ @@ -3853,21 +3446,12 @@ main.cpp:4540:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4540 | model_base1.setName ("MOON BASE"); | ^~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4541:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4541 | display (" * barrier.3ds", 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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4542:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4542 | g_Load3ds.Import3DS (&model_barrier1, dirs->getModels ("barrier.3ds")); | ^~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4543:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4543 | model_barrier1.setName ("MOON BASE"); | ^~~~~~~~~~~ @@ -3901,13 +3485,6 @@ 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); | ^~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ 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] @@ -3962,16 +3539,9 @@ main.cpp:5669:16: note: in expansion of macro 'VERSIONSTRING' 5669 | display (VERSIONSTRING, LOG_NONE); | ^~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:5679:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5679 | display ("Invalid command line parameter", LOG_FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void callbackJoystickAxis(Component*, int)': main.cpp:5824:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5824 | la->setText ("N/A"); @@ -3984,10 +3554,6 @@ main.cpp:5902:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5902 | ((EditField *) submenu [0]->components [9])->setText (""); | ^~ -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: In function 'void callbackDefaultsJoystick(Component*, int)': main.cpp:6036:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 6036 | ((Label *) controlsmenu [2]->components [z])->setText ("A 0"); @@ -4014,10 +3580,6 @@ 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"); | ^~~~ -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: 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)"); @@ -4028,6 +3590,21 @@ main.cpp:6634:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 6634 | button = new Button ("FIGHTER INFO"); | ^~~~~~~~~~~~~~ +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)); + | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from model.cpp:32: +model.h:170:7: note: 'class CMaterial' declared here + 170 | class CMaterial + | ^~~~~~~~~ +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)); + | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +model.h:188:7: note: 'class CObject' declared here + 188 | class CObject + | ^~~~~~~ main.cpp:6686:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 6686 | button = new Button ("PILOTS RANKING"); | ^~~~~~~~~~~~~~~~ @@ -4103,10 +3680,6 @@ main.cpp:7071:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7071 | button = new Button ("AUTORUDDER"); | ^~~~~~~~~~~~ -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:7106:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7106 | button = new Button ("LOAD DEFAULTS"); | ^~~~~~~~~~~~~~~ @@ -4125,10 +3698,6 @@ main.cpp:7165:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7165 | button = new Button ("VIEW X"); | ^~~~~~~~ -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:7176:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7176 | button = new Button ("VIEW Y"); | ^~~~~~~~ @@ -4202,45 +3771,72 @@ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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"); - | ^~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ 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: + 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); | ^~~~~~ +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 effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' 164 | void drawGL (CVector3 *tl, CVector3 *textl); | ^~~~~~ -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)); - | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from model.cpp:32: -model.h:170:7: note: 'class CMaterial' declared here - 170 | class CMaterial - | ^~~~~~~~~ -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)); - | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -model.h:188:7: note: 'class CObject' declared here - 188 | class CObject - | ^~~~~~~ +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); + | ^~~ 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] @@ -4267,6 +3863,535 @@ 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) + | ^ +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) + | ^~~~~~~~~~~~~ +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) + | ^ +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: At global scope: +main.cpp:5153:13: warning: 'void myIdleFunc()' defined but not used [-Wunused-function] + 5153 | static void myIdleFunc () + | ^~~~~~~~~~ +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) + | ^ +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); + | ^~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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) + | ^ +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: 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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:397:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 397 | font1->drawTextCentered (0, 7, -2.5, "THE MENU OPTIONS/CONTROLS LETS YOU", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:420:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 420 | font1->drawTextCentered (0, 7, -2.5, "THE REVERTED MOUSE IS FOR REAL GAMERS ONLY.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:421:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 421 | font1->drawTextCentered (0, 6, -2.5, "THE STANDARD MOUSE INTERFACE MAY BE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:422:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 422 | font1->drawTextCentered (0, 5, -2.5, "EASIER TO LEARN", &textcolor); + | ^~~~~~~~~~~~~~~~~ +mission.cpp:426:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 426 | font1->drawTextCentered (0, 7, -2.5, "MOUSE RELATIVE IS A LOT OF WORK.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:427:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 427 | font1->drawTextCentered (0, 6, -2.5, "ONLY THE RELATIVE MOUSE COORDINATES (MOVING)", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:428:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 428 | font1->drawTextCentered (0, 5, -2.5, "WILL HAVE AN EFFECT", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~ +mission.cpp:433:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 433 | font1->drawTextCentered (0, 7, -2.5, "THE KEYBOARD INTERFACE IS NOT THAT EASY.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:434:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 434 | font1->drawTextCentered (0, 6, -2.5, "USING THE MOUSE IS STRONLY RECOMMENDED", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:441:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 441 | font1->drawTextCentered (0, 7, -2.5, "MOVING UP OR DOWN WILL AFFECT", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:442:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 442 | font1->drawTextCentered (0, 6, -2.5, "THE ELEVATOR.", &textcolor); + | ^~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~ +mission.cpp:468:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 468 | font1->drawTextCentered (0, 6, -2.5, "USE THE KEYS PGUP AND PGDN", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:475:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 475 | font1->drawTextCentered (0, 7, -2.5, "YOUR JOYSTICK HAS ALSO A THROTTLE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:476:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 476 | font1->drawTextCentered (0, 6, -2.5, "TO SPEEDUP OR DECELERATE.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:477:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 477 | font1->drawTextCentered (0, 5, -2.5, "THERE IS NO WAY TO ENTIRELY STOP", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:481:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 481 | font1->drawTextCentered (0, 7, -2.5, "USE THE KEYS '1' THROUGH '9' TO ALTER", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:491:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 491 | font1->drawTextCentered (0, 6, -2.5, "FIRE CANNON, DROP CHAFF/FLARE,", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:492:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 492 | font1->drawTextCentered (0, 5, -2.5, "FIRE MISSILE, CHOOSE MISSILE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:496:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 496 | font1->drawTextCentered (0, 7, -2.5, "LEFT MOUSE BUTTON: FIRE CANNON", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:502:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 502 | font1->drawTextCentered (0, 6, -2.5, "NOW, LETS HAVE A LOOK AT SOME IMPORTANT KEYS", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:529:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 529 | font1->drawTextCentered (0, 6, -2.5, "THERE ARE ENEMIES REPRESENTED BY A YELLOW POINT (TARGETED)", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~ +mission.cpp:544:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 544 | font1->drawTextCentered (0, 7, -2.5, "YOU MAY TARGET AN ENEMY PRESSING", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:548:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 548 | font1->drawTextCentered (0, 5, -2.5, "THEN APPROACH!", &textcolor); + | ^~~~~~~~~~~~~~~~ +mission.cpp:553:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 553 | font1->drawTextCentered (0, 7, -2.5, "SHOOT THE TARGETS TO COMPLETE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:653:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 653 | font1->drawTextCentered (0, 5, -2.5, "AGM (AIR-GROUND-MISSILE) AND DF (DUMB FIRE)", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:657:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 657 | font1->drawTextCentered (0, 7, -2.5, "LET'S USE THE AGM: AS SOON AS THE TARGET", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:658:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 658 | font1->drawTextCentered (0, 6, -2.5, "IS LOCKED (YELLOW), SHOOT THE AGM AT ANY", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:664:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 664 | font1->drawTextCentered (0, 6, -2.5, "IT IS QUITE 'DUMB' AND WILL FLY STRAIGHT AHEAD.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:668:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 668 | font1->drawTextCentered (0, 6, -2.5, "HOWEVER, DF MISSILES WILL CAUSE MUCH MORE DAMAGE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:672:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 672 | font1->drawTextCentered (0, 6, -2.5, "NOW, BLOW UP THE TWO TANKS", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp: In member function 'virtual void MissionTutorial3::draw()': +mission.cpp:724:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 724 | font1->drawTextCentered (0, 7, -2.5, "THE MENU OPTIONS/CONTROLS LETS YOU DEFINE DIFFICULTY", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:725:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 725 | font1->drawTextCentered (0, 6, -2.5, "AND REALISM. CHANGING THESE SETTINGS WILL ONLY HAVE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:726:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 726 | font1->drawTextCentered (0, 5, -2.5, "EFFECT ON THE NEXT MISSION YOU START", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:730:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 730 | font1->drawTextCentered (0, 7, -2.5, "APART FROM YOUR CURRENT PHYSICS SETTINGS", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:731:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 731 | font1->drawTextCentered (0, 6, -2.5, "LET'S USE THE SIMULATION MODEL AND DISCUSS", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:732:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 732 | font1->drawTextCentered (0, 5, -2.5, "THE FOUR FORCES THRUST, DRAG, LIFT, AND WEIGHT", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:736:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 736 | font1->drawTextCentered (0, 7, -2.5, "THRUST IS FORWARD FORCE CREATED BY THE ENGINES.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:737:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 737 | font1->drawTextCentered (0, 6, -2.5, "CHANGE THE THRUST TO GAIN OR LOSE SPEED", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:741:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 741 | font1->drawTextCentered (0, 7, -2.5, "DRAG IS THE RETARDING FORCE THAT LIMITS THE AIRCRAFT'S", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:742:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 742 | font1->drawTextCentered (0, 6, -2.5, "SPEED. IT IS MAINLY CAUSED BY THE AIRCRAFT'S STRUCTURE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:743:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 743 | font1->drawTextCentered (0, 5, -2.5, "THAT PROTUDES INTO THE WIND", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:747:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 747 | font1->drawTextCentered (0, 7, -2.5, "LIFT IS THE UPWARD FORCE CREATED BY THE AIRFLOW THAT PASSES", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:748:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 748 | font1->drawTextCentered (0, 6, -2.5, "OVER THE WINGS. IN STRAIGHT UNACCELERATED FLIGHT, IT", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:749:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 749 | font1->drawTextCentered (0, 5, -2.5, "COMPENSATES THE WEIGHT AND YOUR FIGHTER WON'T CLIMB OR DIVE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:753:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 753 | font1->drawTextCentered (0, 7, -2.5, "THE LIFT FORCE DEPENDS ON THE SPEED:", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:754:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 754 | font1->drawTextCentered (0, 6, -2.5, "LOW SPEED WILL CAUSE THE AIRPLANE TO DIVE,", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:755:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 755 | font1->drawTextCentered (0, 5, -2.5, "AT HIGH SPEED IT WILL EVEN CLIMB", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:759:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 759 | font1->drawTextCentered (0, 7, -2.5, "NOW TRY THIS EFFECT BY FLYING STRAIGHT AHEAD AT 0 DEGREE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:770:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 770 | font1->drawTextCentered (0, 6, -2.5, "FROM STRAIGHT FLIGHT TO A DIAGONAL DIRECTION WHILE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:771:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 771 | font1->drawTextCentered (0, 5, -2.5, "LOSING HEIGHT. TRY!", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~ +mission.cpp:775:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 775 | font1->drawTextCentered (0, 7, -2.5, "THE OVERALL FORCE IS GAINED BY ADDING THE FOUR FORCES.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:776:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 776 | font1->drawTextCentered (0, 6, -2.5, "IT IS MEASURED IN 'G' WITH 1G MEANING THE EARTH'S GRAVITY", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:780:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 780 | font1->drawTextCentered (0, 7, -2.5, "YOU ARE MOSTLY OPPOSED TO MORE THAN ONLY 1G. BE CAREFUL:", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:781:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 781 | font1->drawTextCentered (0, 6, -2.5, "9G OR MORE MAY LEAD TO A BLACKOUT,", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:782:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 782 | font1->drawTextCentered (0, 5, -2.5, "AT LESS THAN -3G THE BLOOD WILL SHOOT INTO YOUR HEAD", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:786:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 786 | font1->drawTextCentered (0, 7, -2.5, "NOW ROLL ON THE BACK AND GET RID OF", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:933:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 933 | font1->drawTextCentered (0, 6, -2.5, "WHICH DETECTS ENEMIES BY RADAR.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:934:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 934 | font1->drawTextCentered (0, 5, -2.5, "SHOOT AS EARLY AS POSSIBLE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:938:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 938 | font1->drawTextCentered (0, 7, -2.5, "YOU CAN ONLY FIRE MISSILES WHEN", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:939:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 939 | font1->drawTextCentered (0, 6, -2.5, "THE RECTANGULAR LOCK AROUND THE ENEMY", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:940:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 940 | font1->drawTextCentered (0, 5, -2.5, "APPEARS YELLOW", &textcolor); + | ^~~~~~~~~~~~~~~~ +mission.cpp:944:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 944 | font1->drawTextCentered (0, 7, -2.5, "CHECK THE CHAFF/FLARE DISPLAYS.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:945:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 945 | font1->drawTextCentered (0, 6, -2.5, "IF THEY START BLINKING, AN ENEMY HAS", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:946:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 946 | font1->drawTextCentered (0, 5, -2.5, "FIRED A MISSILE TO GET YOU DOWN", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:950:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 950 | font1->drawTextCentered (0, 7, -2.5, "CHAFF IS A DECOY FOR RADAR SEEKING MISSILES,", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:951:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 951 | font1->drawTextCentered (0, 6, -2.5, "FLARES PROTECT FROM INFRARED MISSILES", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +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 ++) + | ~~~^~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~ +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 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); + | ^~~~~~ 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"))) @@ -4284,6 +4409,13 @@ maploader.cpp:75:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 75 | file_setQuotes ("\"'´`"); | ^~~~~~~ +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 '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"); @@ -4295,53 +4427,16 @@ maploader.cpp:163:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 163 | if (!file_find ("\n")) return 0; | ^~~~ -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) - | ^ 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"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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) - | ^ 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]"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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) - | ^ 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]"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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) - | ^ 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"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -4395,23 +4490,10 @@ 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"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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) - | ^ 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"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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) - | ^ 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"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -4447,49 +4529,10 @@ maploader.cpp:741:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 741 | error ("Could not open map file"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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) - | ^ -main.cpp: At global scope: -main.cpp:5153:13: warning: 'void myIdleFunc()' defined but not used [-Wunused-function] - 5153 | static void myIdleFunc () - | ^~~~~~~~~~ -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]; - | ^ 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; @@ -4497,13 +4540,6 @@ 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); @@ -4566,6 +4602,19 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); @@ -4579,6 +4628,19 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]; + | ^ 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); @@ -4669,32 +4731,6 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]; - | ^ -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' @@ -4702,7 +4738,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 -j42 check "TESTSUITEFLAGS=-j42 --verbose" VERBOSE=1 + make -j20 check "TESTSUITEFLAGS=-j20 --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' @@ -4714,13 +4750,13 @@ create-stamp debian/debhelper-build-stamp dh_prep dh_auto_install - make -j42 install DESTDIR=/build/reproducible-path/gl-117-1.3.2/debian/tmp AM_UPDATE_INFO_DIR=no + make -j20 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' -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' +make[3]: Nothing to be done for 'install-data-am'. /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' @@ -4731,11 +4767,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 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 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 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 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 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/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 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' @@ -4759,9 +4795,9 @@ dh_gencontrol dh_md5sums dh_builddeb -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-deb: building package 'gl-117' in '../gl-117_1.3.2-4_amd64.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 dpkg-genchanges: info: binary-only upload (no source code included) @@ -4769,12 +4805,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/1753902/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1753902/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/4056226 and its subdirectories -I: Current time: Tue Apr 14 09:00:11 -12 2026 -I: pbuilder-time-stamp: 1776200411 +I: removing directory /srv/workspace/pbuilder/1753902 and its subdirectories +I: Current time: Thu Mar 13 04:42:07 +14 2025 +I: pbuilder-time-stamp: 1741790527