Diff of the two buildlogs: -- --- b1/build.log 2025-10-09 16:12:43.772941182 +0000 +++ b2/build.log 2025-10-09 16:16:08.825164695 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu Oct 9 04:09:30 -12 2025 -I: pbuilder-time-stamp: 1760026170 +I: Current time: Thu Nov 12 12:35:45 +14 2026 +I: pbuilder-time-stamp: 1794436545 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/2501761/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2925082/tmp/hooks/D01_modify_environment starting +debug: Running on infom02-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 Nov 11 22:36 /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/2925082/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2925082/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=12 ' - 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]="3" [2]="3" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.3.3(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=16 ' + 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='8b4c08295ca744179904606aaa24104a' - 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='2501761' - PS1='# ' - PS2='> ' + INVOCATION_ID=07595abdd7684d04b098122b190f6a64 + 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=2925082 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.JIdGdYpF/pbuilderrc_LV4z --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.JIdGdYpF/b1 --logfile b1/build.log gl-117_1.3.2-5.dsc' - SUDO_GID='109' - SUDO_HOME='/var/lib/jenkins' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' + 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.JIdGdYpF/pbuilderrc_eh8S --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.JIdGdYpF/b2 --logfile b2/build.log gl-117_1.3.2-5.dsc' + SUDO_GID=109 + SUDO_HOME=/var/lib/jenkins + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' I: uname -a - Linux infom01-amd64 6.12.48+deb13-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.12.48+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 10 12:30 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/2501761/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 10 2025 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/2925082/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -346,7 +378,7 @@ Get: 229 http://deb.debian.org/debian unstable/main amd64 libsdl1.2-dev amd64 1.2.68-3 [64.4 kB] Get: 230 http://deb.debian.org/debian unstable/main amd64 libvorbis-dev amd64 1.3.7-3 [325 kB] Get: 231 http://deb.debian.org/debian unstable/main amd64 libsdl-mixer1.2-dev amd64 1.2.12-19+b1 [97.9 kB] -Fetched 108 MB in 4s (24.3 MB/s) +Fetched 108 MB in 10s (10.7 MB/s) Preconfiguring packages ... Selecting previously unselected package libexpat1: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 ... 19856 files and directories currently installed.) @@ -1094,8 +1126,8 @@ Setting up tzdata (2025b-5) ... Current default time zone: 'Etc/UTC' -Local time is now: Thu Oct 9 16:12:13 UTC 2025. -Universal Time is now: Thu Oct 9 16:12:13 UTC 2025. +Local time is now: Wed Nov 11 22:38:28 UTC 2026. +Universal Time is now: Wed Nov 11 22:38:28 UTC 2026. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libxcb-present0:amd64 (1.17.0-2+b1) ... @@ -1308,7 +1340,11 @@ fakeroot is already the newest version (1.37.1.2-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-5_source.changes +I: user script /srv/workspace/pbuilder/2925082/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/2925082/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-5_source.changes dpkg-buildpackage: info: source package gl-117 dpkg-buildpackage: info: source version 1.3.2-5 dpkg-buildpackage: info: source distribution unstable @@ -1433,7 +1469,7 @@ config.status: executing depfiles commands make[1]: Leaving directory '/build/reproducible-path/gl-117-1.3.2' dh_auto_build - make -j12 + make -j16 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' @@ -1451,22 +1487,196 @@ 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 vertexarray.o vertexarray.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 net.o net.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 mathtab.o mathtab.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 dirs.o dirs.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 objload.o objload.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 pilots.o pilots.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 loader_tga.o loader_tga.cpp +loader_tga.cpp:42:1: warning: multi-line comment [-Wcomment] + 42 | //#define WRITE_RGBA(p, r, g, b, a) \ + | ^ +vertexarray.cpp: In member function 'void VertexArray::reallocData()': +vertexarray.cpp:160:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 160 | display ("Out of memory", LOG_FATAL); + | ^~~~~~~~~~~~~~~ +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"; } + | ^~~~~~~~~~~~~~~~~~ audio.cpp: In constructor 'SoundSystem::SoundSystem()': audio.cpp:229:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 229 | display ("Using SDL_mixer", LOG_MOST); | ^~~~~~~~~~~~~~~~~ +pilots.cpp:218:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 218 | { ranking = 3; return "2ND LIEUTNANT"; } + | ^~~~~~~~~~~~~~~ audio.cpp:232:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 232 | display ("Unable to open audio device", LOG_ERROR); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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"; } + | ^~~~~~~~~ audio.cpp:240:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 240 | music1 = Mix_LoadMUS (dirs->getMusic ("winner.s3m")); | ^~~~~~~~~~~~ +pilots.cpp:228:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 228 | { ranking = 8; return "GENERAL"; } + | ^~~~~~~~~ audio.cpp:248:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 248 | music1 = Mix_LoadMUS (dirs->getMusic ("loser.s3m")); | ^~~~~~~~~~~ +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"; } + | ^~~~~~ audio.cpp:256:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 256 | music1 = Mix_LoadMUS (dirs->getMusic ("dark.s3m")); | ^~~~~~~~~~ +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"; } + | ^~~~~ audio.cpp:264:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 264 | music1 = Mix_LoadMUS (dirs->getMusic ("stars.s3m")); | ^~~~~~~~~~~ @@ -1476,12 +1686,23 @@ audio.cpp:280:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 280 | music1 = Mix_LoadMUS (dirs->getMusic ("standby.s3m")); | ^~~~~~~~~~~~~ +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"); + | ^~~~~~~~ audio.cpp:288:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 288 | music1 = Mix_LoadMUS (dirs->getMusic ("electro.s3m")); | ^~~~~~~~~~~~~ audio.cpp:296:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 296 | music1 = Mix_LoadMUS (dirs->getMusic ("softtec.s3m")); | ^~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ audio.cpp:306:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 306 | waveexplosion1 = new WaveFile (dirs->getSounds ("explode1.wav")); | ^~~~~~~~~~~~~~ @@ -1509,6 +1730,66 @@ audio.cpp:320:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 320 | wavebeep2 = new WaveFile (dirs->getSounds ("beep2.wav")); | ^~~~~~~~~~~ +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); + | ~~~~~~^~~~~~~~~~~~~ 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")); @@ -1534,9 +1815,16 @@ audio.cpp:463:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 463 | 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); +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 land.cpp:31: land.cpp: In member function 'void Landscape::convolveGauss(int, int, int)': @@ -1552,6 +1840,41 @@ land.h:50:22: note: in definition of macro 'GETCOORD' 50 | #define GETCOORD(x) (x & MAXX_MASK) | ^ +dirs.cpp: In constructor 'Dirs::Dirs(char*)': +dirs.cpp:141:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 141 | p = mystrtok (p, (int) (path + pathlen - p), ":"); + | ^~~ +dirs.cpp:158:71: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 158 | p = mystrtok (p + strlen (p) + 1, (int) (path + pathlen - p), ":"); + | ^~~ +dirs.cpp:161:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 161 | display ("Binary file has no context to the data files.", LOG_FATAL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +dirs.cpp:185:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 185 | display ("Binary file has no context to the data files.", LOG_FATAL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +dirs.cpp:194:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 194 | append (saves, ".gl-117"); + | ^~~~~~~~~ +dirs.cpp:230:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 230 | append (textures, "textures"); + | ^~~~~~~~~~ +dirs.cpp:231:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 231 | append (music, "music"); + | ^~~~~~~ +dirs.cpp:232:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 232 | append (sound, "sounds"); + | ^~~~~~~~ +dirs.cpp:233:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 233 | append (models, "models"); + | ^~~~~~~~ +dirs.cpp:234:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 234 | append (maps, "maps"); + | ^~~~~~ +dirs.cpp: In constructor 'Dirs::Dirs(char*)': +dirs.cpp:131:12: warning: ignoring return value of 'char* getcwd(char*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] + 131 | getcwd (cwd, 4096); // get current working directory + | ~~~~~~~^~~~~~~~~~~ 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) @@ -1576,31 +1899,14 @@ land.cpp:1384:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 1384 | if (isWoods (f [i - 1] [i2]) && isWoods (f [i + 1] [i2]) || | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 object.o object.cpp 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 - | ^~~~~~~ -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 dirs.o dirs.cpp -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 glland.h:30, - from glland.cpp:26: + 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); | ^~~~~~ @@ -1622,10 +1928,26 @@ model.h:188:7: note: 'class CObject' declared here 188 | class CObject | ^~~~~~~ +3ds.cpp: In member function 'void CLoad3DS::ProcessNextChunk(CModel*, Chunk*)': +3ds.cpp:274:16: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CObject'; use assignment or value-initialization instead [-Wclass-memaccess] + 274 | memset (&newObject, 0, sizeof (CObject)); + | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from 3ds.h:27, + from 3ds.cpp:32: +model.h:188:7: note: 'class CObject' declared here + 188 | class CObject + | ^~~~~~~ +3ds.cpp: In member function 'void CLoad3DS::ReadVertices(CObject*, Chunk*)': +3ds.cpp:516:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CVertex'; use assignment or value-initialization instead [-Wclass-memaccess] + 516 | memset (object->vertex, 0, sizeof (CVertex) * object->numVertices); + | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +model.h:113:7: note: 'class CVertex' declared here + 113 | class CVertex + | ^~~~~~~ In file included from effects.h:28, from aiobject.h:29, - from main.h:41, - from net.cpp:27: + from glland.h:30, + from glland.cpp:26: object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); | ^~~~~~ @@ -1634,11 +1956,14 @@ | ^~~~~~ In file included from effects.h:28, from aiobject.h:29, - from aiobject.cpp:26: + 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); | ^~~~~~ -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 objload.o objload.cpp +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 effects.cpp:29: object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] @@ -1647,148 +1972,10 @@ effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' 164 | void drawGL (CVector3 *tl, CVector3 *textl); | ^~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ -In file included from glland.h:32: -glland.cpp: In member function 'void GLLandscape::precalculate()': -glland.cpp:299:28: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] - 299 | int xm1 = GETCOORD(x - 1); - | ~~^~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp:300:28: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 300 | int xp1 = GETCOORD(x + 1); - | ~~^~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp:301:28: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] - 301 | int zm1 = GETCOORD(z - 1); - | ~~^~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp:302:28: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 302 | int zp1 = GETCOORD(z + 1); - | ~~^~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp: In member function 'void GLLandscape::drawQuadStrip(int, int, int, int)': -glland.cpp:889:30: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 889 | int xstep = GETCOORD(x + step); - | ~~^~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp:890:27: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 890 | int y2 = GETCOORD(y + step); - | ~~^~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp:897:29: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] - 897 | int y0 = GETCOORD(y - step); - | ~~^~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp:968:32: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 968 | int xstep = GETCOORD(x + step); - | ~~^~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp:969:32: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 969 | int ystep = GETCOORD(y + step); - | ~~^~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp:970:33: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] - 970 | int ymstep = GETCOORD(y - step); - | ~~^~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp: In member function 'void GLLandscape::drawWaterTexturedQuad(int, int)': -glland.cpp:1524:27: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 1524 | int xstep = GETCOORD(xs + step); - | ~~~^~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -glland.cpp:1525:27: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 1525 | int ystep = GETCOORD(ys + step); - | ~~~^~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -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"); - | ^~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 - | ~~~~~~~^~~~~~~~~~~ -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); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effects.h:28, from aiobject.h:29, from main.h:41, @@ -1799,46 +1986,7 @@ effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' 164 | void drawGL (CVector3 *tl, CVector3 *textl); | ^~~~~~ -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)); - | ^~~~~~~~~~~~~~~ -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 pilots.o pilots.cpp -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)); - | ^~~~~~~~~~~~~~~ -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 loader_tga.o loader_tga.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 conf.o conf.cpp 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); @@ -1915,6 +2063,7 @@ main.cpp:2119:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2119 | return "NO INFO"; | ^~~~~~~~~ +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 main.cpp: In function 'void mission_display()': main.cpp:2280:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2280 | font1->drawText (textx / fontscale, texty / fontscale, -2, "BRIEFING:", col); @@ -2034,9 +2183,48 @@ main.cpp:2744:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2744 | font1->drawText (xf1, yf, zf, "KILLS:", color); | ^~~~~~~~ +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)); + | ^~~~~~~~~~~~~~~ +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 +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)); + | ^~~~~~~~~~~~~~~ main.cpp:2782:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2782 | font1->drawTextCentered (0, yf, zf, "PROMOTED TO", color); | ^~~~~~~~~~~~~ +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 'int selectMouse(int, int, int, int, int, bool)': main.cpp:2893:7: warning: variable 'pick' set but not used [-Wunused-but-set-variable] 2893 | int pick [100]; @@ -2058,7 +2246,6 @@ main.cpp:3015:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3015 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "SPECIAL THANKS TO...", col); | ^~~~~~~~~~~~~~~~~~~~~~ -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 object.o object.cpp main.cpp:3016:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3016 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "LENS FLARES & FURTHER DEBUGGING", col); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2074,10 +2261,6 @@ main.cpp:3020:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3020 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "PUBLISHING & FURTHER GAME IDEAS", col); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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:3021:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3021 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "BERNHARD KAINDL", col2); | ^~~~~~~~~~~~~~~~~ @@ -2096,10 +2279,6 @@ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); | ^~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2174,6 +2353,69 @@ main.cpp:3075:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3075 | font1->drawTextCentered (0, 0, -2, "REALLY QUIT?", &menu_colwhite); | ^~~~~~~~~~~~~~ +main.cpp: In function 'void game_display()': +main.cpp:3578:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3578 | font1->drawTextCentered (0, 0, -1.8, "PLEASE WAIT WHILE", &colorred); + | ^~~~~~~~~~~~~~~~~~~ +main.cpp:3579:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3579 | font1->drawTextCentered (0, -1, -1.8, "ADJUSTING QUALITY", &colorred); + | ^~~~~~~~~~~~~~~~~~~ +main.cpp:3585:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3585 | font1->drawTextCentered (0, -8, -2, "FPS TOO LOW", &colorred); + | ^~~~~~~~~~~~~ +main.cpp:3586:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3586 | font1->drawTextCentered (0, -9, -2, "TURN DOWN VIEW OR QUALITY", &colorred); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3591:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3591 | font1->drawTextCentered (0, -8, -2, "FPS FAR TOO LOW", &colorred); + | ^~~~~~~~~~~~~~~~~ +main.cpp:3592:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3592 | font1->drawTextCentered (0, -9, -2, "SEE \"README\" OR \"FAQ\" FILES", &colorred); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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:3593:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3593 | font1->drawTextCentered (0, -10, -2, "HIT \"ESC\" AND 'Y' TO EXIT THE GAME", &colorred); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:3249:9: warning: variable 'fac' set but not used [-Wunused-but-set-variable] + 3249 | float fac = view, zfac = view * 0.2; + | ^~~ +main.cpp:3249:21: warning: variable 'zfac' set but not used [-Wunused-but-set-variable] + 3249 | float fac = view, zfac = view * 0.2; + | ^~~~ +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); + | ^~~~~~~~~~~~~~~~~~ +In file included from glland.h:32: +glland.cpp: In member function 'void GLLandscape::precalculate()': +glland.cpp:299:28: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] + 299 | int xm1 = GETCOORD(x - 1); + | ~~^~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +glland.cpp:300:28: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 300 | int xp1 = GETCOORD(x + 1); + | ~~^~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +glland.cpp:301:28: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] + 301 | int zm1 = GETCOORD(z - 1); + | ~~^~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +glland.cpp:302:28: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 302 | int zp1 = GETCOORD(z + 1); + | ~~^~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ 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); @@ -2208,41 +2450,6 @@ aiobject.cpp:2741:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2741 | display ("Manoever: Height change", LOG_ALL); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp: In function 'void game_display()': -main.cpp:3578:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3578 | font1->drawTextCentered (0, 0, -1.8, "PLEASE WAIT WHILE", &colorred); - | ^~~~~~~~~~~~~~~~~~~ -main.cpp:3579:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3579 | font1->drawTextCentered (0, -1, -1.8, "ADJUSTING QUALITY", &colorred); - | ^~~~~~~~~~~~~~~~~~~ -main.cpp:3585:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3585 | font1->drawTextCentered (0, -8, -2, "FPS TOO LOW", &colorred); - | ^~~~~~~~~~~~~ -main.cpp:3586:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3586 | font1->drawTextCentered (0, -9, -2, "TURN DOWN VIEW OR QUALITY", &colorred); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3591:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3591 | font1->drawTextCentered (0, -8, -2, "FPS FAR TOO LOW", &colorred); - | ^~~~~~~~~~~~~~~~~ -main.cpp:3592:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3592 | font1->drawTextCentered (0, -9, -2, "SEE \"README\" OR \"FAQ\" FILES", &colorred); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3593:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3593 | font1->drawTextCentered (0, -10, -2, "HIT \"ESC\" AND 'Y' TO EXIT THE GAME", &colorred); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:3249:9: warning: variable 'fac' set but not used [-Wunused-but-set-variable] - 3249 | float fac = view, zfac = view * 0.2; - | ^~~ -main.cpp:3249:21: warning: variable 'zfac' set but not used [-Wunused-but-set-variable] - 3249 | float fac = view, zfac = view * 0.2; - | ^~~~ -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]; - | ^ 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); @@ -2292,6 +2499,7 @@ main.cpp:4318:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4318 | textree3 = gl->genTextureTGA (dirs->getTextures ("tree3.tga"), 0, 3, 1, true); | ^~~~~~~~~~~ +g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include -I/usr/include -c -o menu.o menu.cpp 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); | ^~~~~~~~~~~~ @@ -2496,9 +2704,22 @@ main.cpp:4393:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4393 | display (" * cannon1.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~~ +glland.cpp: In member function 'void GLLandscape::drawQuadStrip(int, int, int, int)': +glland.cpp:889:30: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 889 | int xstep = GETCOORD(x + step); + | ~~^~~~~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ main.cpp:4394:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4394 | g_Load3ds.Import3DS (&model_cannon1, dirs->getModels ("cannon1.3ds")); | ^~~~~~~~~~~~~ +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) + | ^ main.cpp:4396:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4396 | display (" * cannon1b.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~~~ @@ -2511,6 +2732,12 @@ 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")); | ^~~~~~~~~~~~~ +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) + | ^ main.cpp:4416:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4416 | display (" * cannon2b.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~~~ @@ -2532,9 +2759,27 @@ 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")); | ^~~~~~~~~~~~ +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) + | ^ main.cpp:4441:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4441 | model_chaff1.setName ("CHAFF"); | ^~~~~~~ +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) + | ^ main.cpp:4444:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4444 | display (" * missile1.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~~~ @@ -2559,6 +2804,7 @@ 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")); | ^~~~~~~~~~~~~~ +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 main.cpp:4452:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4452 | model_missile3.setName ("AAM HS MK3"); | ^~~~~~~~~~~~ @@ -2850,6 +3096,19 @@ 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); | ^~~~~~~~~~~~~ +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 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] @@ -2862,6 +3121,10 @@ main.cpp:5220:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5220 | display ("Out of sync", LOG_ERROR); | ^~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void config_test(int, char**)': main.cpp:5577:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5577 | display ("No configuration file found. Testing...", LOG_MOST); @@ -2904,9 +3167,33 @@ main.cpp:5669:16: note: in expansion of macro 'VERSIONSTRING' 5669 | display (VERSIONSTRING, LOG_NONE); | ^~~~~~~~~~~~~ +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) + | ^ main.cpp:5679:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5679 | display ("Invalid command line parameter", LOG_FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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: 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"); @@ -2938,208 +3225,6 @@ main.cpp:6046:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 6046 | ((Label *) controlsmenu [2]->components [z])->setText ("A 5"); | ^~~~~ -main.cpp: In function 'void callbackFullscreen(Component*, int)': -main.cpp:6308:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6308 | if (wantfullscreen) ((Label *) optmenu [0]->components [18])->setText ("YES"); - | ^~~~~ -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"); - | ^~~~ -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)"); - | ^~~~~~~~~~~~~~~~~~~ -main.cpp:6578:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6578 | button = new Button ("ADD"); - | ^~~~~ -main.cpp:6634:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6634 | button = new Button ("FIGHTER INFO"); - | ^~~~~~~~~~~~~~ -main.cpp:6686:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6686 | button = new Button ("PILOTS RANKING"); - | ^~~~~~~~~~~~~~~~ -main.cpp:6728:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6728 | button = new Button ("QUALITY"); - | ^~~~~~~~~ -main.cpp:6740:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6740 | button = new Button ("VIEW"); - | ^~~~~~ -main.cpp:6752:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6752 | button = new Button ("DITHERING"); - | ^~~~~~~~~~~ -main.cpp:6765:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6765 | button = new Button ("ANTIALIASING"); - | ^~~~~~~~~~~~~~ -main.cpp:6778:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6778 | button = new Button ("SPECIAL EFFECTS"); - | ^~~~~~~~~~~~~~~~~ -main.cpp:6791:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6791 | button = new Button ("DYN LIGHTING"); - | ^~~~~~~~~~~~~~ -main.cpp:6804:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6804 | button = new Button ("BRIGHTNESS"); - | ^~~~~~~~~~~~ -main.cpp:6824:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6824 | button = new Button ("RESOLUTION"); - | ^~~~~~~~~~~~ -main.cpp:6836:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6836 | button = new Button ("FULLSCREEN"); - | ^~~~~~~~~~~~ -main.cpp:6862:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6862 | button = new Button ("SOUND VOLUME"); - | ^~~~~~~~~~~~~~ -main.cpp:6875:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6875 | button = new Button ("MUSIC VOLUME"); - | ^~~~~~~~~~~~~~ -main.cpp:6905:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6905 | button = new Button ("DIFFICULTY"); - | ^~~~~~~~~~~~ -main.cpp:6919:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6919 | button = new Button ("PHYSICS"); - | ^~~~~~~~~ -main.cpp:6932:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6932 | button = new Button ("CONTROLS"); - | ^~~~~~~~~~ -main.cpp:6957:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6957 | label = new Label ("ROLL: \t LEFT, RIGHT"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:6962:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6962 | label = new Label ("ELEVATOR: \t UP, DOWN"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:6967:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6967 | label = new Label ("RUDDER: \t LSHIFT+ROLL"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:6972:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6972 | label = new Label ("THROTTLE: \t 1...9"); - | ^~~~~~~~~~~~~~~~~~~~~~ -main.cpp:6977:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6977 | label = new Label ("CAMERA: \t F1...F8"); - | ^~~~~~~~~~~~~~~~~~~~~~~ -loader_tga.cpp:42:1: warning: multi-line comment [-Wcomment] - 42 | //#define WRITE_RGBA(p, r, g, b, a) \ - | ^ -main.cpp:7020:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7020 | button = new Button ("LOAD DEFAULTS"); - | ^~~~~~~~~~~~~~~ -main.cpp:7033:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7033 | button = new Button ("SENSITIVITY"); - | ^~~~~~~~~~~~~ -main.cpp:7045:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7045 | button = new Button ("REVERSE"); - | ^~~~~~~~~ -main.cpp:7058:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7058 | button = new Button ("RELATIVE"); - | ^~~~~~~~~~ -main.cpp:7071:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7071 | button = new Button ("AUTORUDDER"); - | ^~~~~~~~~~~~ -main.cpp:7106:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7106 | button = new Button ("LOAD DEFAULTS"); - | ^~~~~~~~~~~~~~~ -main.cpp:7121:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7121 | button = new Button ("AILERON"); - | ^~~~~~~~~ -main.cpp:7132:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7132 | button = new Button ("ELEVATOR"); - | ^~~~~~~~~~ -main.cpp:7143:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7143 | button = new Button ("THROTTLE"); - | ^~~~~~~~~~ -main.cpp:7154:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7154 | button = new Button ("RUDDER"); - | ^~~~~~~~ -main.cpp:7165:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7165 | button = new Button ("VIEW X"); - | ^~~~~~~~ -main.cpp:7176:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7176 | button = new Button ("VIEW Y"); - | ^~~~~~~~ -main.cpp:7212:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7212 | button = new Button ("LOAD DEFAULTS"); - | ^~~~~~~~~~~~~~~ -main.cpp:7232:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7232 | textfield = new TextField ("", yfstep - 0.1); - | ^~ -main.cpp:7266:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7266 | textfield = new TextField ("", yfstep - 0.1); - | ^~ -main.cpp:7271:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7271 | button = new Button ("<"); - | ^~~ -main.cpp:7275:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7275 | button = new Button (">"); - | ^~~ -main.cpp:7279:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7279 | textfield = new TextField ("", yfstep - 0.1); - | ^~ -main.cpp:7334:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7334 | button = new Button (" BACK TO MAIN MENU"); - | ^~~~~~~~~~~~~~~~~~~~ -main.cpp:7339:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7339 | button = new Button (" START MISSION"); - | ^~~~~~~~~~~~~~~~~~~ -main.cpp:7358:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7358 | button = new Button (" YES"); - | ^~~~~~~~~ -main.cpp:7363:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7363 | button = new Button (" NO"); - | ^~~~~~~~~ -main.cpp:7382:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7382 | button = new Button (" CONTINUE"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp: In function 'int main(int, char**)': -main.cpp:7421:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7421 | display ("Getting directory locations", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:7426:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7426 | display ("Creating new configuration", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:7444:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7444 | display ("Creating/Loading pilots list", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:7445:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7445 | pilots = new PilotList (dirs->getSaves ("pilots")); // look at pilots.h - | ^~~~~~~~ -main.cpp:7498:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7498 | display ("Using SDL and GLUT", LOG_MOST); - | ^~~~~~~~~~~~~~~~~~~~ -main.cpp:7533:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7533 | display ("Setting SDL caption", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~ -main.cpp:7538:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7538 | display ("Creating sound system", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:7545:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7545 | display ("Playing startup music", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:7551:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7551 | display ("Calling main initialization method", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp:7555:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7555 | display ("Querying joystick", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~ -main.cpp:7571:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 7571 | display ("No joystick found", LOG_MOST); - | ^~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 -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); - | ^~~~~~~~~~~~~~~ -main.cpp: At global scope: -main.cpp:5153:13: warning: 'void myIdleFunc()' defined but not used [-Wunused-function] - 5153 | static void myIdleFunc () - | ^~~~~~~~~~ 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; @@ -3147,10 +3232,17 @@ conf.cpp:151:8: note: 'res' declared here 151 | char res [256]; | ^~~ +main.cpp: In function 'void callbackFullscreen(Component*, int)': +main.cpp:6308:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6308 | if (wantfullscreen) ((Label *) optmenu [0]->components [18])->setText ("YES"); + | ^~~~~ 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"); | ^~~~~~ +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"); + | ^~~~ conf.cpp:210:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 210 | display ("Could not save configuration", LOG_ERROR); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -3269,9 +3361,16 @@ conf.cpp:261:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 261 | char *confname = dirs->getSaves ("saveconf"); | ^~~~~~~~~~ +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)"); + | ^~~~~~~~~~~~~~~~~~~ conf.cpp:267:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 267 | display ("Could not save working graphics mode configuration", LOG_ERROR); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:6578:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6578 | button = new Button ("ADD"); + | ^~~~~ conf.cpp:271:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 271 | cf->writeText ("# Working backup configuration\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -3297,6 +3396,9 @@ conf.cpp:297:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 297 | str = cf->getString (ret, "width"); | ^~~~~~~ +main.cpp:6634:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6634 | button = new Button ("FIGHTER INFO"); + | ^~~~~~~~~~~~~~ conf.cpp:306:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 306 | str = cf->getString (ret, "height"); | ^~~~~~~~ @@ -3318,16 +3420,15 @@ conf.cpp:357:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 357 | str = cf->getString (ret, "antialiasing"); | ^~~~~~~~~~~~~~ +main.cpp:6686:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6686 | button = new Button ("PILOTS RANKING"); + | ^~~~~~~~~~~~~~~~ conf.cpp:361:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 361 | str = cf->getString (ret, "specialeffects"); | ^~~~~~~~~~~~~~~~ conf.cpp:365:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 365 | str = cf->getString (ret, "dynamiclighting"); | ^~~~~~~~~~~~~~~~~ -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); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ conf.cpp:370:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 370 | str = cf->getString (ret, "sound"); | ^~~~~~~ @@ -3337,31 +3438,52 @@ conf.cpp:387:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 387 | str = cf->getString (ret, "controls"); | ^~~~~~~~~~ +main.cpp:6728:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6728 | button = new Button ("QUALITY"); + | ^~~~~~~~~ conf.cpp:395:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 395 | str = cf->getString (ret, "difficulty"); | ^~~~~~~~~~~~ conf.cpp:403:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 403 | str = cf->getString (ret, "brightness"); | ^~~~~~~~~~~~ +main.cpp:6740:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6740 | button = new Button ("VIEW"); + | ^~~~~~ conf.cpp:411:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 411 | str = cf->getString (ret, "physics"); | ^~~~~~~~~ +main.cpp:6752:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6752 | button = new Button ("DITHERING"); + | ^~~~~~~~~~~ conf.cpp: In function 'int load_saveconfig()': conf.cpp:428:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 428 | char *confname = dirs->getSaves ("saveconf"); | ^~~~~~~~~~ +main.cpp:6765:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6765 | button = new Button ("ANTIALIASING"); + | ^~~~~~~~~~~~~~ conf.cpp:439:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 439 | str = cf->getString (ret, "savewidth"); | ^~~~~~~~~~~ conf.cpp:447:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 447 | str = cf->getString (ret, "saveheight"); | ^~~~~~~~~~~~ +main.cpp:6778:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6778 | button = new Button ("SPECIAL EFFECTS"); + | ^~~~~~~~~~~~~~~~~ conf.cpp:455:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 455 | str = cf->getString (ret, "savebpp"); | ^~~~~~~~~ +main.cpp:6791:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6791 | button = new Button ("DYN LIGHTING"); + | ^~~~~~~~~~~~~~ conf.cpp:463:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 463 | str = cf->getString (ret, "savefullscreen"); | ^~~~~~~~~~~~~~~~ +main.cpp:6804:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6804 | button = new Button ("BRIGHTNESS"); + | ^~~~~~~~~~~~ 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"); @@ -3372,6 +3494,9 @@ conf.cpp:494:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 494 | cf->writeText ("# Interface configuration\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:6824:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6824 | button = new Button ("RESOLUTION"); + | ^~~~~~~~~~~~ conf.cpp:495:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 495 | cf->writeText ("# ---------------------------------------------------------------------"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -3381,6 +3506,9 @@ conf.cpp:497:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 497 | cf->writeText ("# ---------------------------------------------------------------------\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:6836:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6836 | button = new Button ("FULLSCREEN"); + | ^~~~~~~~~~~~ conf.cpp:498:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 498 | cf->writeText ("# Use ASCII-Code values or letters to remap"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -3396,6 +3524,9 @@ conf.cpp:502:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 502 | cf->write (" key_dropflare", (int) key_dropflare); | ^~~~~~~~~~~~~~~~ +main.cpp:6862:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6862 | button = new Button ("SOUND VOLUME"); + | ^~~~~~~~~~~~~~ conf.cpp:503:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 503 | cf->write (" key_dropchaff", (int) key_dropchaff); | ^~~~~~~~~~~~~~~~ @@ -3408,6 +3539,9 @@ conf.cpp:506:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 506 | cf->write (" key_targetnearest", (int) key_targetnearest); | ^~~~~~~~~~~~~~~~~~~~ +main.cpp:6875:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6875 | button = new Button ("MUSIC VOLUME"); + | ^~~~~~~~~~~~~~ conf.cpp:507:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 507 | cf->writeText ("# Target next enemy who has locked you"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -3423,6 +3557,9 @@ conf.cpp:511:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 511 | cf->write (" key_incthrust", (int) key_thrustup); | ^~~~~~~~~~~~~~~~ +main.cpp:6905:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6905 | button = new Button ("DIFFICULTY"); + | ^~~~~~~~~~~~ conf.cpp:512:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 512 | cf->write (" key_decthrust", (int) key_thrustdown); | ^~~~~~~~~~~~~~~~ @@ -3444,6 +3581,9 @@ conf.cpp:518:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 518 | cf->write (" mouse_sensitivity", (int) mouse_sensitivity); | ^~~~~~~~~~~~~~~~~~~~ +main.cpp:6919:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6919 | button = new Button ("PHYSICS"); + | ^~~~~~~~~ conf.cpp:519:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 519 | cf->writeText ("# Reverse y-axis: 0 (no) or 1 (yes)"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -3462,6 +3602,9 @@ conf.cpp:524:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 524 | cf->write (" mouse_autorudder", (int) mouse_autorudder); | ^~~~~~~~~~~~~~~~~~~ +main.cpp:6932:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6932 | button = new Button ("CONTROLS"); + | ^~~~~~~~~~ conf.cpp:525:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 525 | cf->writeText ("\n# Buttons: 1=Left, 2=Middle, 3=Right"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -3474,12 +3617,18 @@ conf.cpp:538:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 538 | cf->write (" mouse_selectmissile", mousebutton); | ^~~~~~~~~~~~~~~~~~~~~~ +main.cpp:6957:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6957 | label = new Label ("ROLL: \t LEFT, RIGHT"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ conf.cpp:539:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 539 | cf->writeText ("\n# ---------------------------------------------------------------------"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ conf.cpp:540:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 540 | cf->writeText ("# Joystick section"); | ^~~~~~~~~~~~~~~~~~~~ +main.cpp:6962:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6962 | label = new Label ("ELEVATOR: \t UP, DOWN"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ conf.cpp:541:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 541 | cf->writeText ("# ---------------------------------------------------------------------\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -3492,6 +3641,9 @@ conf.cpp:544:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 544 | cf->writeText ("# followed by a number to identify axes, buttons, and coolie hat\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:6967:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6967 | label = new Label ("RUDDER: \t LSHIFT+ROLL"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ conf.cpp:545:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 545 | cf->writeText ("# Axis: 0...MAX-1 (maybe 0=aileron 1=elevator 2=throttle 3=rudder)"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -3501,12 +3653,18 @@ conf.cpp:547:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 547 | writeJoystick (cf, " joystick_elevator", joystick_elevator); | ^~~~~~~~~~~~~~~~~~~~ +main.cpp:6972:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6972 | label = new Label ("THROTTLE: \t 1...9"); + | ^~~~~~~~~~~~~~~~~~~~~~ conf.cpp:548:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 548 | writeJoystick (cf, " joystick_throttle", joystick_throttle); | ^~~~~~~~~~~~~~~~~~~~ conf.cpp:549:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 549 | writeJoystick (cf, " joystick_rudder", joystick_rudder); | ^~~~~~~~~~~~~~~~~~ +main.cpp:6977:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6977 | label = new Label ("CAMERA: \t F1...F8"); + | ^~~~~~~~~~~~~~~~~~~~~~~ conf.cpp:550:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 550 | writeJoystick (cf, " joystick_view_x", joystick_view_x); | ^~~~~~~~~~~~~~~~~~ @@ -3540,12 +3698,18 @@ conf.cpp:560:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 560 | writeJoystick (cf, " joystick_targetlocking", joystick_targetlocking); | ^~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:7020:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7020 | button = new Button ("LOAD DEFAULTS"); + | ^~~~~~~~~~~~~~~ conf.cpp:561:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 561 | writeJoystick (cf, " joystick_targetnext", joystick_targetnext); | ^~~~~~~~~~~~~~~~~~~~~~ conf.cpp:562:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 562 | writeJoystick (cf, " joystick_targetprevious", joystick_targetprevious); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:7033:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7033 | button = new Button ("SENSITIVITY"); + | ^~~~~~~~~~~~~ conf.cpp:563:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 563 | writeJoystick (cf, " joystick_incthrust", joystick_thrustup); | ^~~~~~~~~~~~~~~~~~~~~ @@ -3555,9 +3719,18 @@ conf.cpp:565:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 565 | cf->writeText ("\n# This file is meant to give sensible custom interface settings"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:7045:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7045 | button = new Button ("REVERSE"); + | ^~~~~~~~~ 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!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:7058:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7058 | button = new Button ("RELATIVE"); + | ^~~~~~~~~~ +main.cpp:7071:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7071 | button = new Button ("AUTORUDDER"); + | ^~~~~~~~~~~~ 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"); @@ -3577,6 +3750,9 @@ conf.cpp:622:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 622 | str = cf->getString (ret, "key_selectmissile"); | ^~~~~~~~~~~~~~~~~~~ +main.cpp:7106:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7106 | button = new Button ("LOAD DEFAULTS"); + | ^~~~~~~~~~~~~~~ conf.cpp:625:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 625 | str = cf->getString (ret, "key_targetnearest"); | ^~~~~~~~~~~~~~~~~~~ @@ -3586,6 +3762,9 @@ conf.cpp:631:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 631 | str = cf->getString (ret, "key_targetnext"); | ^~~~~~~~~~~~~~~~ +main.cpp:7121:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7121 | button = new Button ("AILERON"); + | ^~~~~~~~~ conf.cpp:634:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 634 | str = cf->getString (ret, "key_targetprevious"); | ^~~~~~~~~~~~~~~~~~~~ @@ -3598,6 +3777,9 @@ conf.cpp:643:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 643 | str = cf->getString (ret, "mouse_sensitivity"); | ^~~~~~~~~~~~~~~~~~~ +main.cpp:7132:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7132 | button = new Button ("ELEVATOR"); + | ^~~~~~~~~~ conf.cpp:651:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 651 | str = cf->getString (ret, "mouse_reverse"); | ^~~~~~~~~~~~~~~ @@ -3607,12 +3789,18 @@ conf.cpp:663:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 663 | str = cf->getString (ret, "mouse_autorudder"); | ^~~~~~~~~~~~~~~~~~ +main.cpp:7143:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7143 | button = new Button ("THROTTLE"); + | ^~~~~~~~~~ conf.cpp:672:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 672 | str = cf->getString (ret, "mouse_firecannon"); | ^~~~~~~~~~~~~~~~~~ conf.cpp:681:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 681 | str = cf->getString (ret, "mouse_firemissile"); | ^~~~~~~~~~~~~~~~~~~ +main.cpp:7154:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7154 | button = new Button ("RUDDER"); + | ^~~~~~~~ conf.cpp:690:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 690 | str = cf->getString (ret, "mouse_selectmissile"); | ^~~~~~~~~~~~~~~~~~~~~ @@ -3622,6 +3810,9 @@ conf.cpp:702:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 702 | str = cf->getString (ret, "joystick_elevator"); | ^~~~~~~~~~~~~~~~~~~ +main.cpp:7165:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7165 | button = new Button ("VIEW X"); + | ^~~~~~~~ conf.cpp:705:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 705 | str = cf->getString (ret, "joystick_throttle"); | ^~~~~~~~~~~~~~~~~~~ @@ -3631,6 +3822,9 @@ conf.cpp:711:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 711 | str = cf->getString (ret, "joystick_view_x"); | ^~~~~~~~~~~~~~~~~ +main.cpp:7176:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7176 | button = new Button ("VIEW Y"); + | ^~~~~~~~ conf.cpp:714:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 714 | str = cf->getString (ret, "joystick_view_y"); | ^~~~~~~~~~~~~~~~~ @@ -3658,6 +3852,9 @@ conf.cpp:738:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 738 | str = cf->getString (ret, "joystick_targetnext"); | ^~~~~~~~~~~~~~~~~~~~~ +main.cpp:7212:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7212 | button = new Button ("LOAD DEFAULTS"); + | ^~~~~~~~~~~~~~~ conf.cpp:741:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 741 | str = cf->getString (ret, "joystick_targetprevious"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ @@ -3667,249 +3864,74 @@ conf.cpp:747:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 747 | str = cf->getString (ret, "joystick_decthrust"); | ^~~~~~~~~~~~~~~~~~~~ -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); - | ~~~~~~^~~~~~~~~~~~~ -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 -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 ++) - | ~~~^~~~~~~~~~~ +main.cpp:7232:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7232 | textfield = new TextField ("", yfstep - 0.1); + | ^~ +main.cpp:7266:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7266 | textfield = new TextField ("", yfstep - 0.1); + | ^~ +main.cpp:7271:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7271 | button = new Button ("<"); + | ^~~ +main.cpp:7275:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7275 | button = new Button (">"); + | ^~~ +main.cpp:7279:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7279 | textfield = new TextField ("", yfstep - 0.1); + | ^~ +main.cpp:7334:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7334 | button = new Button (" BACK TO MAIN MENU"); + | ^~~~~~~~~~~~~~~~~~~~ +main.cpp:7339:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7339 | button = new Button (" START MISSION"); + | ^~~~~~~~~~~~~~~~~~~ +main.cpp:7358:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7358 | button = new Button (" YES"); + | ^~~~~~~~~ +main.cpp:7363:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7363 | button = new Button (" NO"); + | ^~~~~~~~~ +main.cpp:7382:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7382 | button = new Button (" CONTINUE"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp: In function 'int main(int, char**)': +main.cpp:7421:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7421 | display ("Getting directory locations", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:7426:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7426 | display ("Creating new configuration", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:7444:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7444 | display ("Creating/Loading pilots list", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:7445:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7445 | pilots = new PilotList (dirs->getSaves ("pilots")); // look at pilots.h + | ^~~~~~~~ +main.cpp:7498:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7498 | display ("Using SDL and GLUT", LOG_MOST); + | ^~~~~~~~~~~~~~~~~~~~ +main.cpp:7533:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7533 | display ("Setting SDL caption", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~ +main.cpp:7538:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7538 | display ("Creating sound system", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:7545:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7545 | display ("Playing startup music", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:7551:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7551 | display ("Calling main initialization method", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp:7555:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7555 | display ("Querying joystick", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~ +main.cpp:7571:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 7571 | display ("No joystick found", LOG_MOST); + | ^~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 In file included from effects.h:28, from aiobject.h:29, from mission.h:28, @@ -3920,8 +3942,25 @@ effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' 164 | void drawGL (CVector3 *tl, CVector3 *textl); | ^~~~~~ -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 +common.cpp: In function 'void display(char*, int)': +common.cpp:47:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 47 | if ((display_out = fopen (dirs->getSaves ("logfile.txt"), "wt")) != NULL) + | ^~~~~~~~~~~~~ +common.cpp: In function 'void error_outofmemory()': +common.cpp:62:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 62 | display ("Out of memory", LOG_FATAL); + | ^~~~~~~~~~~~~~~ +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]; + | ^ +main.cpp: At global scope: +main.cpp:5153:13: warning: 'void myIdleFunc()' defined but not used [-Wunused-function] + 5153 | static void myIdleFunc () + | ^~~~~~~~~~ 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); @@ -4106,6 +4145,16 @@ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~ 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); @@ -4162,7 +4211,6 @@ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -4294,28 +4342,6 @@ 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 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); - | ^~~~~~ -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 -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); @@ -4329,27 +4355,17 @@ 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); | ^~~ -common.cpp: In function 'void display(char*, int)': -common.cpp:47:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 47 | if ((display_out = fopen (dirs->getSaves ("logfile.txt"), "wt")) != NULL) - | ^~~~~~~~~~~~~ -common.cpp: In function 'void error_outofmemory()': -common.cpp:62:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 62 | display ("Out of memory", LOG_FATAL); - | ^~~~~~~~~~~~~~~ -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]; - | ^ +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); @@ -4366,23 +4382,10 @@ mission.cpp:4394:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4394 | font1->drawTextCentered (0, 0, -1, "DOGFIGHT"); | ^~~~~~~~~~ -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]; - | ^ In file included from effects.h:28, from aiobject.h:29, - from main.h:41, - from menu.cpp:27: + 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); | ^~~~~~ @@ -4391,8 +4394,8 @@ | ^~~~~~ In file included from effects.h:28, from aiobject.h:29, - from maploader.h:27, - from maploader.cpp:30: + 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); | ^~~~~~ @@ -4533,6 +4536,13 @@ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); @@ -4595,6 +4605,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); @@ -4668,6 +4691,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 'void MissionCustom::init()': maploader.cpp:813:38: warning: '%s' directive writing up to 1023 bytes into a region of size 1010 [-Wformat-overflow=] 813 | sprintf (buf, "Unknown token %s", token); @@ -4705,7 +4741,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 -j12 check TESTSUITEFLAGS="-j12 --verbose" VERBOSE=1 + make -j16 check TESTSUITEFLAGS="-j16 --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' @@ -4717,7 +4753,7 @@ create-stamp debian/debhelper-build-stamp dh_prep dh_auto_install - make -j12 install DESTDIR=/build/reproducible-path/gl-117-1.3.2/debian/tmp AM_UPDATE_INFO_DIR=no + make -j16 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' @@ -4734,10 +4770,10 @@ /usr/bin/mkdir -p '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/music' /usr/bin/mkdir -p '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/sounds' /usr/bin/mkdir -p '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/textures' + /usr/bin/install -c -m 644 music/ambient.s3m music/dark.s3m music/electro.s3m music/loser.s3m music/softtec.s3m music/standby.s3m music/stars.s3m music/winner.s3m '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/music' /usr/bin/install -c -m 644 models/aster1.3ds models/barrier.3ds models/base1.3ds models/cannon1.3ds models/cannon1b.3ds models/cannon2.3ds models/cannon2b.3ds models/chaff1.3ds models/container1.3ds models/depot1.3ds models/egg.3ds models/flak2.3ds models/flarak1.3ds models/flare1.3ds models/gl-117.3ds models/gl-14.3ds models/gl-14b.3ds models/gl-14c.3ds models/gl-14d.3ds models/gl-15.3ds models/gl-16.3ds models/gl-21.3ds models/gl-21b.3ds models/gl-29.3ds models/gl-50.3ds models/hall1.3ds models/hall2.3ds models/house1.3ds models/mine1.3ds models/missile1.3ds models/missile2.3ds models/missile3.3ds models/missile4.3ds models/missile5.3ds models/missile6.3ds models/missile7.3ds models/missile8.3ds models/oilrig.3ds models/pickup1.3ds models/pickup2.3ds '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/models' /usr/bin/install -c -m 644 sounds/beep1.wav sounds/beep2.wav sounds/cannon1.wav sounds/chaff1.wav sounds/click1.wav sounds/explode1.wav sounds/hit1.wav sounds/missile1.wav sounds/plane1.wav sounds/thunder1.wav '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/sounds' /usr/bin/install -c -m 644 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 music/ambient.s3m music/dark.s3m music/electro.s3m music/loser.s3m music/softtec.s3m music/standby.s3m music/stars.s3m music/winner.s3m '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/music' /usr/bin/install -c -m 644 models/radar.3ds models/rubble.3ds models/ship1.3ds models/ship2.3ds models/tank1.3ds models/tank2.3ds models/tent1.3ds models/tent4.3ds models/transp1.3ds models/transp2.3ds models/transp4.3ds models/trsam.3ds models/truck1.3ds models/truck2.3ds models/wall.3ds '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/models' /usr/bin/install -c -m 644 textures/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' @@ -4763,8 +4799,8 @@ dh_md5sums dh_builddeb dpkg-deb: building package 'gl-117' in '../gl-117_1.3.2-5_amd64.deb'. -dpkg-deb: building package 'gl-117-data' in '../gl-117-data_1.3.2-5_all.deb'. dpkg-deb: building package 'gl-117-dbgsym' in '../gl-117-dbgsym_1.3.2-5_amd64.deb'. +dpkg-deb: building package 'gl-117-data' in '../gl-117-data_1.3.2-5_all.deb'. dpkg-genbuildinfo --build=binary -O../gl-117_1.3.2-5_amd64.buildinfo dpkg-genchanges --build=binary -O../gl-117_1.3.2-5_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -4772,12 +4808,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/2925082/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/2925082/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/2501761 and its subdirectories -I: Current time: Thu Oct 9 04:12:43 -12 2025 -I: pbuilder-time-stamp: 1760026363 +I: removing directory /srv/workspace/pbuilder/2925082 and its subdirectories +I: Current time: Thu Nov 12 12:39:08 +14 2026 +I: pbuilder-time-stamp: 1794436748