Diff of the two buildlogs: -- --- b1/build.log 2025-01-28 22:32:13.860674968 +0000 +++ b2/build.log 2025-01-28 22:33:24.633497009 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Jan 28 10:30:37 -12 2025 -I: pbuilder-time-stamp: 1738103437 +I: Current time: Tue Mar 3 18:55:17 +14 2026 +I: pbuilder-time-stamp: 1772513717 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -24,52 +24,84 @@ dpkg-source: info: applying hardening.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/544665/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/667093/tmp/hooks/D01_modify_environment starting +debug: Running on codethink03-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Mar 3 04:55 /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/667093/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/667093/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='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='f2b31db4944a4fd2a1c693c2bad65444' - 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='544665' - PS1='# ' - PS2='> ' + INVOCATION_ID=65f64de4675a45cfb2ca9aba50106ca9 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-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=667093 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.SHvLqXDz/pbuilderrc_AYMt --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.SHvLqXDz/b1 --logfile b1/build.log gl-117_1.3.2-4.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.SHvLqXDz/pbuilderrc_oRdh --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.SHvLqXDz/b2 --logfile b2/build.log gl-117_1.3.2-4.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink04-arm64 6.1.0-30-cloud-arm64 #1 SMP Debian 6.1.124-1 (2025-01-12) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-30-cloud-arm64 #1 SMP Debian 6.1.124-1 (2025-01-12) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/544665/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/667093/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -338,7 +370,7 @@ Get: 221 http://deb.debian.org/debian trixie/main arm64 libsdl1.2-dev arm64 1.2.68-2+b2 [64.7 kB] Get: 222 http://deb.debian.org/debian trixie/main arm64 libvorbis-dev arm64 1.3.7-2+b1 [320 kB] Get: 223 http://deb.debian.org/debian trixie/main arm64 libsdl-mixer1.2-dev arm64 1.2.12-19 [97.8 kB] -Fetched 103 MB in 1s (145 MB/s) +Fetched 103 MB in 0s (238 MB/s) Preconfiguring packages ... Selecting previously unselected package libpython3.13-minimal:arm64. (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 ... 19969 files and directories currently installed.) @@ -1057,8 +1089,8 @@ Setting up tzdata (2024b-6) ... Current default time zone: 'Etc/UTC' -Local time is now: Tue Jan 28 22:31:08 UTC 2025. -Universal Time is now: Tue Jan 28 22:31:08 UTC 2025. +Local time is now: Tue Mar 3 04:55:47 UTC 2026. +Universal Time is now: Tue Mar 3 04:55:47 UTC 2026. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libxcb-present0:arm64 (1.17.0-2+b1) ... @@ -1268,7 +1300,11 @@ fakeroot is already the newest version (1.37-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/reproducible-path/gl-117-1.3.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../gl-117_1.3.2-4_source.changes +I: user script /srv/workspace/pbuilder/667093/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/667093/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/gl-117-1.3.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../gl-117_1.3.2-4_source.changes dpkg-buildpackage: info: source package gl-117 dpkg-buildpackage: info: source version 1.3.2-4 dpkg-buildpackage: info: source distribution unstable @@ -1492,10 +1528,6 @@ 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); - | ^~~~~~~~~~~~~~~ In file included from effects.h:28, from aiobject.h:29, from glland.h:30, @@ -1544,6 +1576,194 @@ land.cpp:1384:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 1384 | if (isWoods (f [i - 1] [i2]) && isWoods (f [i + 1] [i2]) || | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~ +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 + | ^~~~~~~ +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 + | ^~~~~~~ +model.cpp: In member function 'void CModel::addMaterial(CMaterial*)': +model.cpp:573:32: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CMaterial'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] + 573 | if (material != NULL) memcpy (this->material [numMaterials], material, sizeof (CMaterial)); + | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from model.cpp:32: +model.h:170:7: note: 'class CMaterial' declared here + 170 | class CMaterial + | ^~~~~~~~~ +model.cpp: In member function 'void CModel::addObject(CObject*)': +model.cpp:581:30: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CObject'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] + 581 | if (object != NULL) memcpy (this->object [numObjects], object, sizeof (CObject)); + | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +model.h:188:7: note: 'class CObject' declared here + 188 | class CObject + | ^~~~~~~ +In file included from effects.h:28, + from aiobject.h:29, + from aiobject.cpp:26: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ +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) + | ^ +glland.cpp: In member function 'void GLLandscape::draw(int, int)': +glland.cpp:2048:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2048 | display ("view exceeds ray casting blocks - not implemented", LOG_FATAL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +glland.cpp:2540:61: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 2540 | int x2 = GETCOORD(xs+gridstep); + | ~~^~~~~~~~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +glland.cpp:2541:61: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 2541 | int y2 = GETCOORD(ys+gridstep); + | ~~^~~~~~~~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +glland.cpp:2566:41: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 2566 | int xstep = GETCOORD(xs + gridstep); + | ~~~^~~~~~~~~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +glland.cpp:2567:41: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 2567 | int ystep = GETCOORD(ys + gridstep); + | ~~~^~~~~~~~~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +In file included from effects.h:28, + from aiobject.h:29, + from main.h:41, + from net.cpp:27: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ +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 -mbranch-protection=standard -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 -mbranch-protection=standard -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 -mbranch-protection=standard -I/usr/include -I/usr/include -c -o pilots.o pilots.cpp +aiobject.cpp: In member function 'int DynamicObj::net_write()': +aiobject.cpp:36:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the source; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] + 36 | memcpy (&net [z], &tl->x, sizeof (&tl->x)); + | ^~~~~~~~~~~~~~~ +aiobject.cpp:38:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the source; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] + 38 | memcpy (&net [z], &tl->y, sizeof (&tl->y)); + | ^~~~~~~~~~~~~~~ +aiobject.cpp:40:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the source; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] + 40 | memcpy (&net [z], &tl->z, sizeof (&tl->z)); + | ^~~~~~~~~~~~~~~ +aiobject.cpp:42:27: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] + 42 | memcpy (&net [z], &phi, sizeof (&phi)); + | ^~~~~~~~~~~~~ +aiobject.cpp:44:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] + 44 | memcpy (&net [z], &theta, sizeof (&theta)); + | ^~~~~~~~~~~~~~~ +aiobject.cpp:46:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] + 46 | memcpy (&net [z], &gamma, sizeof (&gamma)); + | ^~~~~~~~~~~~~~~ +aiobject.cpp: In member function 'void DynamicObj::net_read()': +aiobject.cpp:55:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the destination; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] + 55 | memcpy (&tl->x, &net [z], sizeof (&tl->x)); + | ^~~~~~~~~~~~~~~ In file included from effects.h:28, from aiobject.h:29, from main.h:41, @@ -1551,39 +1771,118 @@ 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); | ^~~~~~ +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)); + | ^~~~~~~~~~~~~~~ +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 + | ~~~~~~~^~~~~~~~~~~ effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' 164 | void drawGL (CVector3 *tl, CVector3 *textl); | ^~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~ +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 -mbranch-protection=standard -I/usr/include -I/usr/include -c -o loader_tga.o loader_tga.cpp +aiobject.cpp: In member function 'void AIObj::aiAction(Uint32, AIObj**, AIObj**, DynamicObj**, DynamicObj**, DynamicObj**)': +aiobject.cpp:2449:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2449 | display ("Manoever: Vertical climb", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp:2656:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2656 | display ("Manoever: Immelmann", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp:2661:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2661 | display ("Manoever: Immelmann", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int game_levelInit()': main.cpp:669:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 669 | display ("Could not startup mission", LOG_ERROR); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp: In function 'void switch_mission(int)': -main.cpp:1188:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 1188 | display ("Could not init mission", LOG_ERROR); - | ^~~~~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp:2668:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2668 | display ("Manoever: Roll", LOG_ALL); + | ^~~~~~~~~~~~~~~~ +aiobject.cpp:2676:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2676 | display ("Manoever: Turn", LOG_ALL); + | ^~~~~~~~~~~~~~~~ +aiobject.cpp:2683:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2683 | display ("Manoever: Height change", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp:2714:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2714 | display ("Manoever: Immelmann", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp:2719:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2719 | display ("Manoever: Immelmann", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp:2726:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2726 | display ("Manoever: Roll", LOG_ALL); + | ^~~~~~~~~~~~~~~~ +aiobject.cpp:2734:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2734 | display ("Manoever: Turn", LOG_ALL); + | ^~~~~~~~~~~~~~~~ +aiobject.cpp:2741:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2741 | display ("Manoever: Height change", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effects.h:28, - from aiobject.h:29, - from aiobject.cpp:26: + from effects.cpp:29: object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); | ^~~~~~ effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' 164 | void drawGL (CVector3 *tl, CVector3 *textl); | ^~~~~~ -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 - | ^~~~~~~ +main.cpp: In function 'void switch_mission(int)': +main.cpp:1188:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 1188 | display ("Could not init mission", LOG_ERROR); + | ^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void drawQuads(CColor*)': main.cpp:1864:18: warning: variable 'yf' set but not used [-Wunused-but-set-variable] 1864 | float zf = -3, yf; @@ -1592,6 +1891,13 @@ main.cpp:1974:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1974 | font1->drawTextCentered (0, -0.5, -1.5, "PLEASE WAIT...", &colorwhite); | ^~~~~~~~~~~~~~~~ +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 stats_key(unsigned char, int, int)': main.cpp:1983:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1983 | display ("Initing new mission", LOG_MOST); @@ -1634,13 +1940,6 @@ main.cpp:2108:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2108 | return "BUZZARD"; | ^~~~~~~~~ -3ds.cpp: In member function 'void CLoad3DS::ReadVertices(CObject*, Chunk*)': -3ds.cpp:516:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CVertex'; use assignment or value-initialization instead [-Wclass-memaccess] - 516 | memset (object->vertex, 0, sizeof (CVertex) * object->numVertices); - | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -model.h:113:7: note: 'class CVertex' declared here - 113 | class CVertex - | ^~~~~~~ main.cpp:2110:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2110 | return "SWALLOW"; | ^~~~~~~~~ @@ -1727,6 +2026,9 @@ main.cpp:2700:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2700 | font1->drawTextCentered (0, 7, -2, "SUCCESS", &colorblue); | ^~~~~~~~~ +loader_tga.cpp:42:1: warning: multi-line comment [-Wcomment] + 42 | //#define WRITE_RGBA(p, r, g, b, a) \ + | ^ main.cpp:2704:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2704 | font1->drawTextCentered (0, 7, -2, "FAILED", &colorred); | ^~~~~~~~ @@ -1754,12 +2056,19 @@ main.cpp:2718:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2718 | else if (mission->difficulty == 2) font1->drawText (xf3, yf, zf, "+75", color); | ^~~~~ +3ds.cpp: In member function 'void CLoad3DS::ReadVertices(CObject*, Chunk*)': +3ds.cpp:535:10: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] + 535 | delete p; + | ^ main.cpp:2721:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2721 | font1->drawText (xf1, yf, zf, "FLIGHT MODEL:", color); | ^~~~~~~~~~~~~~~ main.cpp:2722:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2722 | if (!fplayer->realism) font1->drawText (xf2, yf, zf, "ACTION", color); | ^~~~~~~~ +3ds.cpp:518:50: note: returned from 'void* operator new [](long unsigned int)' + 518 | CVector3 *p = new CVector3 [object->numVertices]; + | ^ main.cpp:2723:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2723 | else font1->drawText (xf2, yf, zf, "SIM", color); | ^~~~~ @@ -1937,11 +2246,11 @@ main.cpp:3249:21: warning: variable 'zfac' set but not used [-Wunused-but-set-variable] 3249 | float fac = view, zfac = view * 0.2; | ^~~~ -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 -mbranch-protection=standard -I/usr/include -I/usr/include -c -o dirs.o dirs.cpp 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 -mbranch-protection=standard -I/usr/include -I/usr/include -c -o object.o object.cpp main.cpp:4301:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4301 | display ("Creating advanced OpenGL methods", LOG_ALL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2068,12 +2377,19 @@ main.cpp:4345:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4345 | texarrow = gl->genTextureTGA (dirs->getTextures ("arrow.tga"), 0, -1, 0, true); | ^~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~ main.cpp:4347:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4347 | display ("Loading Fonts", LOG_ALL); | ^~~~~~~~~~~~~~~ main.cpp:4348:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4348 | font1 = new Font (dirs->getTextures ("font1.tga"), 32, '!', 64); | ^~~~~~~~~~~ +loader_tga.cpp:217:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 217 | display ("Out of memory", LOG_FATAL); + | ^~~~~~~~~~~~~~~ main.cpp:4350:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4350 | font2 = new Font (dirs->getTextures ("font2.tga"), 32, '!', 64); | ^~~~~~~~~~~ @@ -2116,6 +2432,10 @@ main.cpp:4364:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4364 | model_figc.setName ("HAWK II"); | ^~~~~~~~~ +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:4365:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4365 | display (" * gl-21b.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~ @@ -2545,32 +2865,6 @@ main.cpp:4602:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4602 | textitle = gl->genTextureTGA (dirs->getTextures ("patents.tga"), 0, 0, 0, true); | ^~~~~~~~~~~~~ -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) - | ^ 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] @@ -2609,12 +2903,22 @@ main.cpp:5639:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5639 | display ("-v: Display version string and quit", LOG_NONE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~ main.cpp:5640:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5640 | display ("-dLEVEL: Set debug LEVEL to 0=silent...5=log all", LOG_NONE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:5641:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5641 | display (" ", LOG_NONE); | ^~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ main.cpp: In function 'void checkargs(int, char**)': main.cpp:5657:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5657 | display ("Invalid debug level", LOG_FATAL); @@ -2636,454 +2940,10 @@ main.cpp:5889:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5889 | ((Label *) submenu [0]->components [i + 2])->setText ("N/A"); | ^~~~~ -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) - | ^ main.cpp: In function 'void callbackPilotsAdd(Component*, int)': main.cpp:5902:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5902 | ((EditField *) submenu [0]->components [9])->setText (""); | ^~ -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) - | ^ -main.cpp: In function 'void callbackDefaultsJoystick(Component*, int)': -main.cpp:6036:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6036 | ((Label *) controlsmenu [2]->components [z])->setText ("A 0"); - | ^~~~~ -model.cpp: In member function 'void CModel::addMaterial(CMaterial*)': -model.cpp:573:32: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CMaterial'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] - 573 | if (material != NULL) memcpy (this->material [numMaterials], material, sizeof (CMaterial)); - | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from model.cpp:32: -model.h:170:7: note: 'class CMaterial' declared here - 170 | class CMaterial - | ^~~~~~~~~ -main.cpp:6038:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6038 | ((Label *) controlsmenu [2]->components [z])->setText ("A 1"); - | ^~~~~ -main.cpp:6040:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6040 | ((Label *) controlsmenu [2]->components [z])->setText ("A 2"); - | ^~~~~ -model.cpp: In member function 'void CModel::addObject(CObject*)': -model.cpp:581:30: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of non-trivially copyable type 'class CObject'; use copy-assignment or copy-initialization instead [-Wclass-memaccess] - 581 | if (object != NULL) memcpy (this->object [numObjects], object, sizeof (CObject)); - | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -model.h:188:7: note: 'class CObject' declared here - 188 | class CObject - | ^~~~~~~ -main.cpp:6042:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6042 | ((Label *) controlsmenu [2]->components [z])->setText ("A 3"); - | ^~~~~ -main.cpp:6044:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 6044 | ((Label *) controlsmenu [2]->components [z])->setText ("A 4"); - | ^~~~~ -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"); - | ^~~~~~~~~~~~~~ -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) - | ^ -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"); - | ^~~~~~~~~~~~ -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: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"); - | ^~~~~~~~~~~~~~~~~~~~~~~ -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"); - | ^~~~~~~~~~ -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) - | ^ -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"); - | ^~~~~~~~ -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: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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from effects.h:28, - from effects.cpp:29: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ -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 -mbranch-protection=standard -I/usr/include -I/usr/include -c -o objload.o objload.cpp -aiobject.cpp: In member function 'int DynamicObj::net_write()': -aiobject.cpp:36:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the source; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] - 36 | memcpy (&net [z], &tl->x, sizeof (&tl->x)); - | ^~~~~~~~~~~~~~~ -aiobject.cpp:38:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the source; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] - 38 | memcpy (&net [z], &tl->y, sizeof (&tl->y)); - | ^~~~~~~~~~~~~~~ -aiobject.cpp:40:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the source; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] - 40 | memcpy (&net [z], &tl->z, sizeof (&tl->z)); - | ^~~~~~~~~~~~~~~ -aiobject.cpp:42:27: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] - 42 | memcpy (&net [z], &phi, sizeof (&phi)); - | ^~~~~~~~~~~~~ -aiobject.cpp:44:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] - 44 | memcpy (&net [z], &theta, sizeof (&theta)); - | ^~~~~~~~~~~~~~~ -aiobject.cpp:46:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the source; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] - 46 | memcpy (&net [z], &gamma, sizeof (&gamma)); - | ^~~~~~~~~~~~~~~ -aiobject.cpp: In member function 'void DynamicObj::net_read()': -aiobject.cpp:55:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the destination; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] - 55 | memcpy (&tl->x, &net [z], sizeof (&tl->x)); - | ^~~~~~~~~~~~~~~ -aiobject.cpp:57:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the destination; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] - 57 | memcpy (&tl->y, &net [z], sizeof (&tl->y)); - | ^~~~~~~~~~~~~~~ -aiobject.cpp:59:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same pointer type 'float*' as the destination; expected 'float' or an explicit length [-Wsizeof-pointer-memaccess] - 59 | memcpy (&tl->z, &net [z], sizeof (&tl->z)); - | ^~~~~~~~~~~~~~~ -aiobject.cpp:61:27: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the destination; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] - 61 | memcpy (&phi, &net [z], sizeof (&phi)); - | ^~~~~~~~~~~~~ -aiobject.cpp:63:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the destination; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] - 63 | memcpy (&theta, &net [z], sizeof (&theta)); - | ^~~~~~~~~~~~~~~ -aiobject.cpp:65:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the destination; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] - 65 | memcpy (&gamma, &net [z], sizeof (&gamma)); - | ^~~~~~~~~~~~~~~ -aiobject.cpp: In member function '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: At global scope: -main.cpp:5153:13: warning: 'void myIdleFunc()' defined but not used [-Wunused-function] - 5153 | static void myIdleFunc () - | ^~~~~~~~~~ -aiobject.cpp: In member function 'bool AIObj::fireChaff(DynamicObj**, AIObj**)': -aiobject.cpp:1781:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 1781 | display ("Missile to chaff", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~ -aiobject.cpp: In member function 'void AIObj::aiAction(Uint32, AIObj**, AIObj**, DynamicObj**, DynamicObj**, DynamicObj**)': -aiobject.cpp:2449:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2449 | display ("Manoever: Vertical climb", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -aiobject.cpp:2656:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2656 | display ("Manoever: Immelmann", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~ -aiobject.cpp:2661:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2661 | display ("Manoever: Immelmann", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~ -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 -mbranch-protection=standard -I/usr/include -I/usr/include -c -o pilots.o pilots.cpp -aiobject.cpp:2668:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2668 | display ("Manoever: Roll", LOG_ALL); - | ^~~~~~~~~~~~~~~~ -aiobject.cpp:2676:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2676 | display ("Manoever: Turn", LOG_ALL); - | ^~~~~~~~~~~~~~~~ -aiobject.cpp:2683:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2683 | display ("Manoever: Height change", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -aiobject.cpp:2714:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2714 | display ("Manoever: Immelmann", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~ -aiobject.cpp:2719:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2719 | display ("Manoever: Immelmann", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~ -aiobject.cpp:2726:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2726 | display ("Manoever: Roll", LOG_ALL); - | ^~~~~~~~~~~~~~~~ -aiobject.cpp:2734:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2734 | display ("Manoever: Turn", LOG_ALL); - | ^~~~~~~~~~~~~~~~ -aiobject.cpp:2741:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2741 | display ("Manoever: Height change", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from effects.h:28, - from aiobject.h:29, - from main.h:41, - from net.cpp:27: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ -dirs.cpp: In constructor 'Dirs::Dirs(char*)': -dirs.cpp:141:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 141 | p = mystrtok (p, (int) (path + pathlen - p), ":"); - | ^~~ -dirs.cpp:158:71: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 158 | p = mystrtok (p + strlen (p) + 1, (int) (path + pathlen - p), ":"); - | ^~~ -dirs.cpp:161:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 161 | display ("Binary file has no context to the data files.", LOG_FATAL); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -dirs.cpp:185:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 185 | display ("Binary file has no context to the data files.", LOG_FATAL); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -dirs.cpp:194:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 194 | append (saves, ".gl-117"); - | ^~~~~~~~~ -dirs.cpp:230:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 230 | append (textures, "textures"); - | ^~~~~~~~~~ -dirs.cpp:231:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 231 | append (music, "music"); - | ^~~~~~~ -dirs.cpp:232:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 232 | append (sound, "sounds"); - | ^~~~~~~~ -dirs.cpp:233:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 233 | append (models, "models"); - | ^~~~~~~~ -dirs.cpp:234:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 234 | append (maps, "maps"); - | ^~~~~~ -dirs.cpp: In constructor 'Dirs::Dirs(char*)': -dirs.cpp:131:12: warning: ignoring return value of 'char* getcwd(char*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] - 131 | getcwd (cwd, 4096); // get current working directory - | ~~~~~~~^~~~~~~~~~~ -In file included from effects.h:28, - from aiobject.h:29, - from 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"; @@ -3140,32 +3000,50 @@ pilots.cpp:76:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 76 | else return "GEN"; | ^~~~~ +main.cpp: In function 'void callbackDefaultsJoystick(Component*, int)': +main.cpp:6036:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6036 | ((Label *) controlsmenu [2]->components [z])->setText ("A 0"); + | ^~~~~ 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); | ^~~~~~~~~~~ +main.cpp:6038:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6038 | ((Label *) controlsmenu [2]->components [z])->setText ("A 1"); + | ^~~~~ 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); | ^~~~~~ +main.cpp:6040:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6040 | ((Label *) controlsmenu [2]->components [z])->setText ("A 2"); + | ^~~~~ 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); | ^~~~~~ -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 -mbranch-protection=standard -I/usr/include -I/usr/include -c -o loader_tga.o loader_tga.cpp +main.cpp:6042:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6042 | ((Label *) controlsmenu [2]->components [z])->setText ("A 3"); + | ^~~~~ 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); | ^~~~~~~~ +main.cpp:6044:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 6044 | ((Label *) controlsmenu [2]->components [z])->setText ("A 4"); + | ^~~~~ 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); | ^~~~~~~~ +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"); + | ^~~~~ 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); | ^~~~~~~~~~ @@ -3210,6 +3088,10 @@ pilots.cpp:228:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 228 | { ranking = 8; return "GENERAL"; } | ^~~~~~~~~ +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"); + | ^~~~~ 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"; } @@ -3271,6 +3153,9 @@ 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); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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"); + | ^~~~ 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); @@ -3309,47 +3194,189 @@ 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); | ~~~~~~^~~~~~~~~~~~~ -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 ++) - | ~~~^~~~~~~~~~~ -loader_tga.cpp:42:1: warning: multi-line comment [-Wcomment] - 42 | //#define WRITE_RGBA(p, r, g, b, a) \ - | ^ -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 -mbranch-protection=standard -I/usr/include -I/usr/include -c -o object.o object.cpp +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"); + | ^~~~~~~~~~~~~~~~~~~~~~~ +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 -mbranch-protection=standard -I/usr/include -I/usr/include -c -o conf.o conf.cpp -3ds.cpp: In member function 'void CLoad3DS::ReadUVCoordinates(CObject*, Chunk*)': -3ds.cpp:506:10: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] - 506 | delete p; - | ^ -3ds.cpp:499:51: note: returned from 'void* operator new [](long unsigned int)' - 499 | CVector2 *p = new CVector2 [object->numTexVertex]; - | ^ -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); - | ^~~~~~~~~~~~~~~ -3ds.cpp: In member function 'void CLoad3DS::ReadVertices(CObject*, Chunk*)': -3ds.cpp:535:10: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] - 535 | delete p; - | ^ -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); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -3ds.cpp:518:50: note: returned from 'void* operator new [](long unsigned int)' - 518 | CVector3 *p = new CVector3 [object->numVertices]; - | ^ +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 -mbranch-protection=standard -I/usr/include -I/usr/include -c -o mission.o mission.cpp +main.cpp: At global scope: +main.cpp:5153:13: warning: 'void myIdleFunc()' defined but not used [-Wunused-function] + 5153 | static void myIdleFunc () + | ^~~~~~~~~~ +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 -mbranch-protection=standard -I/usr/include -I/usr/include -c -o cockpit.o cockpit.cpp 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; @@ -3552,7 +3579,6 @@ conf.cpp:411:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 411 | str = cf->getString (ret, "physics"); | ^~~~~~~~~ -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 -mbranch-protection=standard -I/usr/include -I/usr/include -c -o mission.o mission.cpp 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"); @@ -3874,8 +3900,19 @@ conf.cpp:747:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 747 | str = cf->getString (ret, "joystick_decthrust"); | ^~~~~~~~~~~~~~~~~~~~ -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 -mbranch-protection=standard -I/usr/include -I/usr/include -c -o cockpit.o cockpit.cpp g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -I/usr/include -I/usr/include -c -o common.o common.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 ++) + | ~~~^~~~~~~~~~~ +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); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 -mbranch-protection=standard -I/usr/include -I/usr/include -c -o menu.o menu.cpp In file included from effects.h:28, from aiobject.h:29, from mission.h:28, @@ -3886,8 +3923,6 @@ 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 -mbranch-protection=standard -I/usr/include -I/usr/include -c -o menu.o menu.cpp -g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -I/usr/include -I/usr/include -c -o fileloader.o fileloader.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) @@ -3896,6 +3931,57 @@ 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:90: 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:111: 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]; + | ^ +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); + | ^~~~~~ +cockpit.cpp: In member function 'void Cockpit::drawHeading()': +cockpit.cpp:463:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 463 | font1->drawText (xf - 0.5, yf - 2.0, zf, "S", &color); + | ^~~ +cockpit.cpp:465:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 465 | font1->drawText (xf - 0.5, yf - 2.0, zf, "E", &color); + | ^~~ +cockpit.cpp:467:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 467 | font1->drawText (xf - 0.5, yf - 2.0, zf, "N", &color); + | ^~~ +cockpit.cpp:469:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 469 | font1->drawText (xf - 0.5, yf - 2.0, zf, "W", &color); + | ^~~ +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 -mbranch-protection=standard -I/usr/include -I/usr/include -c -o fileloader.o fileloader.cpp +model.cpp: In member function 'void CSpherePart::init(float, int, float)': +model.cpp:1532:101: 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:109: warning: 'p[2]' may be used uninitialized [-Wmaybe-uninitialized] + 1536 | co->quad [co->numQuads ++].setVertices (&co->vertex [p [0]], &co->vertex [p [1]], &co->vertex [p [2]], &co->vertex [p [3]]); + | ^ +model.cpp:1501:7: note: 'p[2]' was declared here + 1501 | int p [4]; + | ^ +g++ -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 -mbranch-protection=standard -I/usr/include -I/usr/include -c -o maploader.o maploader.cpp 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); @@ -4093,10 +4179,6 @@ mission.cpp:658:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 658 | font1->drawTextCentered (0, 6, -2.5, "IS LOCKED (YELLOW), SHOOT THE AGM AT ANY", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -model.cpp: In member function 'void CSphere::init(float, int, float, float, float, int)': -model.cpp:1398:90: 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]]); - | ^ mission.cpp:659:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 659 | font1->drawTextCentered (0, 5, -2.5, "DIRECTION AND WATCH WHERE IT GOES.", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -4164,18 +4246,9 @@ mission.cpp:755:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 755 | font1->drawTextCentered (0, 5, -2.5, "AT HIGH SPEED IT WILL EVEN CLIMB", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -model.cpp:1358:7: note: 'p[1]' was declared here - 1358 | int p [4]; - | ^ mission.cpp:759:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 759 | font1->drawTextCentered (0, 7, -2.5, "NOW TRY THIS EFFECT BY FLYING STRAIGHT AHEAD AT 0 DEGREE", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -model.cpp:1398:111: 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:760:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 760 | font1->drawTextCentered (0, 6, -2.5, "ELEVATION WHILE USING THE LOWEST/HIGHEST THRUST SETTINGS", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -4280,7 +4353,16 @@ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~ -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 -mbranch-protection=standard -I/usr/include -I/usr/include -c -o maploader.o maploader.cpp +In file included from effects.h:28, + from aiobject.h:29, + from main.h:41, + from menu.cpp:27: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ mission.cpp: In member function 'virtual void 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); @@ -4292,20 +4374,10 @@ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ mission.cpp: In member function 'virtual void MissionDefend1::draw()': mission.cpp:2984:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2984 | font1->drawTextCentered (0, 7, -3, "MORE TANKS ARE ATTACKING", &textcolor); @@ -4314,46 +4386,10 @@ mission.cpp:3090:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3090 | font1->drawTextCentered (0, 7, -3, "BOMBERS ARE ENTERING THE REGION", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cockpit.cpp: In member function 'void Cockpit::drawHeading()': -cockpit.cpp:463:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 463 | font1->drawText (xf - 0.5, yf - 2.0, zf, "S", &color); - | ^~~ -cockpit.cpp:465:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 465 | font1->drawText (xf - 0.5, yf - 2.0, zf, "E", &color); - | ^~~ -cockpit.cpp:467:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 467 | font1->drawText (xf - 0.5, yf - 2.0, zf, "N", &color); - | ^~~ -cockpit.cpp:469:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 469 | font1->drawText (xf - 0.5, yf - 2.0, zf, "W", &color); - | ^~~ mission.cpp: In member function 'virtual void MissionMultiDogfight1::draw()': mission.cpp:4394:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4394 | font1->drawTextCentered (0, 0, -1, "DOGFIGHT"); | ^~~~~~~~~~ -model.cpp: In member function 'void CSpherePart::init(float, int, float)': -model.cpp:1532:101: 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:109: 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: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ In file included from effects.h:28, from aiobject.h:29, from maploader.h:27, @@ -4690,8 +4726,8 @@ Making install in src make[2]: Entering directory '/build/reproducible-path/gl-117-1.3.2/src' make[3]: Entering directory '/build/reproducible-path/gl-117-1.3.2/src' - /usr/bin/mkdir -p '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/games' make[3]: Nothing to be done for 'install-data-am'. + /usr/bin/mkdir -p '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/games' /usr/bin/install -c gl-117 '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/games' make[3]: Leaving directory '/build/reproducible-path/gl-117-1.3.2/src' make[2]: Leaving directory '/build/reproducible-path/gl-117-1.3.2/src' @@ -4700,13 +4736,13 @@ make[3]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/models' /usr/bin/mkdir -p '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/music' - /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/mkdir -p '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/sounds' - /usr/bin/install -c -m 644 models/aster1.3ds models/barrier.3ds models/base1.3ds models/cannon1.3ds models/cannon1b.3ds models/cannon2.3ds models/cannon2b.3ds models/chaff1.3ds models/container1.3ds models/depot1.3ds models/egg.3ds models/flak2.3ds models/flarak1.3ds models/flare1.3ds models/gl-117.3ds models/gl-14.3ds models/gl-14b.3ds models/gl-14c.3ds models/gl-14d.3ds models/gl-15.3ds models/gl-16.3ds models/gl-21.3ds models/gl-21b.3ds models/gl-29.3ds models/gl-50.3ds models/hall1.3ds models/hall2.3ds models/house1.3ds models/mine1.3ds models/missile1.3ds models/missile2.3ds models/missile3.3ds models/missile4.3ds models/missile5.3ds models/missile6.3ds models/missile7.3ds models/missile8.3ds models/oilrig.3ds models/pickup1.3ds models/pickup2.3ds '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/models' - /usr/bin/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 sounds/beep1.wav sounds/beep2.wav sounds/cannon1.wav sounds/chaff1.wav sounds/click1.wav sounds/explode1.wav sounds/hit1.wav sounds/missile1.wav sounds/plane1.wav sounds/thunder1.wav '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/sounds' - /usr/bin/install -c -m 644 models/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/mkdir -p '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/textures' + /usr/bin/install -c -m 644 models/aster1.3ds models/barrier.3ds models/base1.3ds models/cannon1.3ds models/cannon1b.3ds models/cannon2.3ds models/cannon2b.3ds models/chaff1.3ds models/container1.3ds models/depot1.3ds models/egg.3ds models/flak2.3ds models/flarak1.3ds models/flare1.3ds models/gl-117.3ds models/gl-14.3ds models/gl-14b.3ds models/gl-14c.3ds models/gl-14d.3ds models/gl-15.3ds models/gl-16.3ds models/gl-21.3ds models/gl-21b.3ds models/gl-29.3ds models/gl-50.3ds models/hall1.3ds models/hall2.3ds models/house1.3ds models/mine1.3ds models/missile1.3ds models/missile2.3ds models/missile3.3ds models/missile4.3ds models/missile5.3ds models/missile6.3ds models/missile7.3ds models/missile8.3ds models/oilrig.3ds models/pickup1.3ds models/pickup2.3ds '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/models' /usr/bin/install -c -m 644 textures/arrow.tga textures/aster1_n.tga textures/barrier_.tga textures/base1_no.tga textures/cactus1.tga textures/cactusu1.tga textures/camoufl.tga textures/chaff_ch.tga textures/clouds1.tga textures/clouds2.tga textures/clouds3.tga textures/cross.tga textures/cross2.tga textures/depot_fr.tga textures/eagle_gr.tga textures/earth.tga textures/egg_chec.tga textures/flare1.tga textures/flare2.tga textures/flare3.tga textures/flare4.tga textures/flare_ch.tga textures/font1.tga textures/font2.tga textures/gl-14_c2.tga textures/gl-14_ch.tga textures/gl-14b_c.tga textures/gl-14b_d.tga textures/gl-14c_c.tga textures/gl-14c_d.tga textures/gl-14d_c.tga textures/gl-14d_d.tga textures/gl-15_c2.tga textures/gl-15_ch.tga textures/gl-16_c2.tga textures/gl-16_ch.tga textures/gl-21_c2.tga textures/gl-21_ch.tga textures/gl-21b_c.tga textures/gl-21b_d.tga '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/textures' + /usr/bin/install -c -m 644 models/radar.3ds models/rubble.3ds models/ship1.3ds models/ship2.3ds models/tank1.3ds models/tank2.3ds models/tent1.3ds models/tent4.3ds models/transp1.3ds models/transp2.3ds models/transp4.3ds models/trsam.3ds models/truck1.3ds models/truck2.3ds models/wall.3ds '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/models' /usr/bin/install -c -m 644 textures/gl-29_ch.tga textures/gl-50_c2.tga textures/gl-50_ch.tga textures/glitter.tga textures/grass1.tga textures/gravel1.tga textures/greendrk.tga textures/greenlit.tga textures/greygrid.tga textures/hall1b_g.tga textures/hall2b_c.tga textures/house_s1.tga textures/medals.tga textures/moon1.tga textures/oilrig_c.tga textures/oilrig_c2.tga textures/panzer1_.tga textures/panzer2_.tga textures/patents.tga textures/radar1.tga textures/radar2.tga textures/ranks.tga textures/redsand1.tga textures/redstone2.tga textures/rocks1.tga textures/roof.tga textures/sand1.tga textures/ship2_fr.tga textures/ship_fra.tga textures/smoke1.tga textures/smoke2.tga textures/smoke3.tga textures/sun2.tga textures/tent1_no.tga textures/tent4_fr.tga textures/title.tga textures/transp2_.tga textures/transp4_.tga textures/tree1.tga textures/tree2.tga '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/textures' /usr/bin/install -c -m 644 textures/tree3.tga textures/tree4.tga textures/tree5.tga textures/treeu1.tga textures/treeu2.tga textures/treeu3.tga textures/treeu4.tga textures/treeu5.tga textures/water1.tga textures/wheel.tga '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/textures' make[3]: Leaving directory '/build/reproducible-path/gl-117-1.3.2' @@ -4734,8 +4770,8 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'gl-117-dbgsym' in '../gl-117-dbgsym_1.3.2-4_arm64.deb'. dpkg-deb: building package 'gl-117' in '../gl-117_1.3.2-4_arm64.deb'. +dpkg-deb: building package 'gl-117-dbgsym' in '../gl-117-dbgsym_1.3.2-4_arm64.deb'. dpkg-deb: building package 'gl-117-data' in '../gl-117-data_1.3.2-4_all.deb'. dpkg-genbuildinfo --build=binary -O../gl-117_1.3.2-4_arm64.buildinfo dpkg-genchanges --build=binary -O../gl-117_1.3.2-4_arm64.changes @@ -4744,12 +4780,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/667093/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/667093/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/544665 and its subdirectories -I: Current time: Tue Jan 28 10:32:12 -12 2025 -I: pbuilder-time-stamp: 1738103532 +I: removing directory /srv/workspace/pbuilder/667093 and its subdirectories +I: Current time: Tue Mar 3 18:56:23 +14 2026 +I: pbuilder-time-stamp: 1772513783