Diff of the two buildlogs: -- --- b1/build.log 2024-11-16 00:23:27.943391357 +0000 +++ b2/build.log 2024-11-16 00:24:59.331243260 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Nov 15 12:22:01 -12 2024 -I: pbuilder-time-stamp: 1731716521 +I: Current time: Fri Dec 19 20:46:29 +14 2025 +I: pbuilder-time-stamp: 1766126789 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -28,54 +28,86 @@ dpkg-source: info: applying hardening.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/29881/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/128112/tmp/hooks/D01_modify_environment starting +debug: Running on ionos6-i386. +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 Dec 19 06:46 /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/128112/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/128112/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='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=11 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='i386' + 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]="32" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.2.32(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=21 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='0999c0ddc2564284ae0a04594f221647' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - 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='29881' - PS1='# ' - PS2='> ' + INVOCATION_ID=01e6cf22ba2b46ec8a031aa637449549 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=128112 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.VEhrIAp1/pbuilderrc_k5ev --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.VEhrIAp1/b1 --logfile b1/build.log gl-117_1.3.2-4.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://46.16.76.132:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.VEhrIAp1/pbuilderrc_qtxJ --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.VEhrIAp1/b2 --logfile b2/build.log gl-117_1.3.2-4.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://213.165.73.152:3128 I: uname -a - Linux ionos12-i386 6.1.0-27-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.115-1 (2024-11-01) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-27-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.115-1 (2024-11-01) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 4 21:30 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/29881/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 4 2024 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/128112/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -351,7 +383,7 @@ Get: 228 http://deb.debian.org/debian unstable/main i386 libsdl1.2-dev i386 1.2.68-2+b1 [64.6 kB] Get: 229 http://deb.debian.org/debian unstable/main i386 libvorbis-dev i386 1.3.7-2+b1 [329 kB] Get: 230 http://deb.debian.org/debian unstable/main i386 libsdl-mixer1.2-dev i386 1.2.12-19 [104 kB] -Fetched 115 MB in 2s (57.1 MB/s) +Fetched 115 MB in 2s (50.5 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.12-minimal:i386. (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 ... 19952 files and directories currently installed.) @@ -1100,8 +1132,8 @@ Setting up tzdata (2024b-3) ... Current default time zone: 'Etc/UTC' -Local time is now: Sat Nov 16 00:22:46 UTC 2024. -Universal Time is now: Sat Nov 16 00:22:46 UTC 2024. +Local time is now: Fri Dec 19 06:47:20 UTC 2025. +Universal Time is now: Fri Dec 19 06:47:20 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libxcb-present0:i386 (1.17.0-2+b1) ... @@ -1311,7 +1343,11 @@ fakeroot is already the newest version (1.36-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/128112/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/128112/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 @@ -1434,7 +1470,7 @@ config.status: executing depfiles commands make[1]: Leaving directory '/build/reproducible-path/gl-117-1.3.2' dh_auto_build - make -j11 + make -j21 make[1]: Entering directory '/build/reproducible-path/gl-117-1.3.2' make all-recursive make[2]: Entering directory '/build/reproducible-path/gl-117-1.3.2' @@ -1451,6 +1487,16 @@ 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 -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o effects.o effects.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 -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o vertexarray.o vertexarray.cpp g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o net.o net.cpp +g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o mathtab.o mathtab.cpp +g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -Wformat -Werror=format-security -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 -Wformat -Werror=format-security -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 -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o pilots.o pilots.cpp +g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o loader_tga.o loader_tga.cpp +g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o object.o object.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 -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o conf.o conf.cpp +g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o mission.o mission.cpp +g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -Wformat -Werror=format-security -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 -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o common.o common.cpp audio.cpp: In constructor 'SoundSystem::SoundSystem()': audio.cpp:229:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 229 | display ("Using SDL_mixer", LOG_MOST); @@ -1534,29 +1580,9 @@ 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 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 effects.h:28, - from aiobject.h:29, - from glland.h:30, - from glland.cpp:26: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ +loader_tga.cpp:42:1: warning: multi-line comment [-Wcomment] + 42 | //#define WRITE_RGBA(p, r, g, b, a) \ + | ^ In file included from land.cpp:31: land.cpp: In member function 'void Landscape::convolveGauss(int, int, int)': land.cpp:95:39: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] @@ -1587,48 +1613,603 @@ 1042 | if (f [i - 1] [i2] == ROCKS && f [i + 1] [i2] == ROCKS || land.cpp:1046:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 1046 | if (f [i - 1] [i2] == GLACIER && f [i + 1] [i2] == GLACIER || +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; + | ^ +conf.cpp:151:8: note: 'res' declared here + 151 | char res [256]; + | ^~~ +In file included from effects.h:28, + from aiobject.h:29, + from glland.h:30, + from glland.cpp:26: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ land.cpp: In member function 'int Landscape::calcLake(int, int, short unsigned int, int, int)': land.cpp:1074:17: warning: variable 'w' set but not used [-Wunused-but-set-variable] 1074 | int i, i2, n, w, timeout = 0; | ^ -land.cpp: In member function 'void Landscape::calcWoods(int)': -land.cpp:1384:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] - 1384 | if (isWoods (f [i - 1] [i2]) && isWoods (f [i + 1] [i2]) || - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o mathtab.o mathtab.cpp +conf.cpp: In function 'void save_config()': +conf.cpp:204:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 204 | char *confname = dirs->getSaves ("conf"); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ +conf.cpp:210:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 210 | display ("Could not save configuration", LOG_ERROR); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:214:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 214 | cf->writeText ("# Configuration\n"); + | ^~~~~~~~~~~~~~~~~~~ +conf.cpp:215:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 215 | cf->writeText ("# Some possible width x height values for fullscreen mode:"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:216:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 216 | cf->writeText ("# 640x480, 800x600, 1024x768, 1152x864, 1280x768, 1280x960, 1280x1024"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:217:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 217 | cf->write (" width", wantwidth); + | ^~~~~~~~ +conf.cpp:218:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 218 | cf->write (" height", wantheight); + | ^~~~~~~~~ +conf.cpp:219:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 219 | cf->writeText ("# Possible bits per pixel values (color depth):"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:220:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 220 | cf->writeText ("# 8 (not recommended), 16, 24, 32"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:221:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 221 | cf->write (" bpp", bpp); + | ^~~~~~ +conf.cpp:222:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 222 | cf->writeText ("# Try to go fullscreen = 1, game in window = 0"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:223:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 223 | cf->write (" fullscreen", wantfullscreen); + | ^~~~~~~~~~~~~ +conf.cpp:224:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 224 | cf->writeText ("# Quality: 0=software rendered up to 5=best (default=2)"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +vertexarray.cpp: In member function 'void VertexArray::reallocData()': +vertexarray.cpp:160:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 160 | display ("Out of memory", LOG_FATAL); + | ^~~~~~~~~~~~~~~ +conf.cpp:225:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 225 | cf->write (" quality", quality); + | ^~~~~~~~~~ +conf.cpp:226:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 226 | cf->writeText ("# Far clipping plane: 20..100 (default=50)"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:227:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 227 | cf->write (" view", (int) view); + | ^~~~~~~ +conf.cpp:228:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 228 | cf->writeText ("# Dithering: 0=off, 1=on (default=1)"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:229:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 229 | cf->write (" dithering", dithering); + | ^~~~~~~~~~~~ +conf.cpp:230:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 230 | cf->writeText ("# Antialiasing: 0=off, 1=on (default=1)"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:231:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 231 | cf->write (" antialiasing", antialiasing); + | ^~~~~~~~~~~~~~~ +conf.cpp:232:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 232 | cf->writeText ("# Special effects: 0=off, 1=on (default=1)"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:233:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 233 | cf->write (" specialeffects", specialeffects); + | ^~~~~~~~~~~~~~~~~ +conf.cpp:234:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 234 | cf->writeText ("# Dynamic lighting: 0=off, 1=on (default=1)"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:235:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 235 | cf->write (" dynamiclighting", dynamiclighting); + | ^~~~~~~~~~~~~~~~~~ +conf.cpp:237:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 237 | cf->writeText ("# Sound volume: 0..100 (default=100) per cent"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:238:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 238 | cf->write (" sound", (int) volumesound); + | ^~~~~~~~ +conf.cpp:239:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 239 | cf->writeText ("# Music volume: 0..100 (default=100) per cent"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:240:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 240 | cf->write (" music", (int) volumemusic); + | ^~~~~~~~ +conf.cpp:242:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 242 | cf->writeText ("# Piloting controls: 0=keyboard, 1=mouse easy, 2=joystick"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:243:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 243 | cf->write (" controls", controls); + | ^~~~~~~~~~~ +conf.cpp:244:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 244 | cf->writeText ("# Difficulty level: 0=easy, 1=medium, 2=hard"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:245:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 245 | cf->write (" difficulty", difficulty); + | ^~~~~~~~~~~~~ +conf.cpp:246:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 246 | cf->writeText ("# Brightness: -50..50 per cent (default=0)"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:247:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 247 | cf->write (" brightness", brightness); + | ^~~~~~~~~~~~~ +conf.cpp:248:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 248 | cf->writeText ("# Physics: 0=action, 1=realistic"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:249:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 249 | cf->write (" physics", physics); + | ^~~~~~~~~~ +conf.cpp:250:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 250 | cf->writeText ("\n# This file is meant to give sensible startup settings"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:251:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 251 | cf->writeText ("# as graphic cards and drivers may differ some 100 times in speed"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:252:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 252 | cf->writeText ("\n# To get back to default settings, just delete this file!"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp: In function 'void save_saveconfig()': +conf.cpp:261:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 261 | char *confname = dirs->getSaves ("saveconf"); + | ^~~~~~~~~~ +conf.cpp:267:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 267 | display ("Could not save working graphics mode configuration", LOG_ERROR); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:271:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 271 | cf->writeText ("# Working backup configuration\n"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:272:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 272 | cf->writeText ("# Do not edit this file. It is only used to restore a broken configuration!"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:273:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 273 | cf->write (" width", width); + | ^~~~~~~~ +conf.cpp:274:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 274 | cf->write (" height", height); + | ^~~~~~~~~ +conf.cpp:275:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 275 | cf->write (" bpp", bpp); + | ^~~~~~ +conf.cpp:276:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 276 | cf->write (" fullscreen", fullscreen); + | ^~~~~~~~~~~~~ +conf.cpp: In function 'int load_config()': +conf.cpp:286:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 286 | char *confname = dirs->getSaves ("conf"); + | ^~~~~~ +conf.cpp:297:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 297 | str = cf->getString (ret, "width"); + | ^~~~~~~ +conf.cpp:306:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 306 | str = cf->getString (ret, "height"); + | ^~~~~~~~ +conf.cpp:315:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 315 | str = cf->getString (ret, "bpp"); + | ^~~~~ +conf.cpp:323:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 323 | str = cf->getString (ret, "fullscreen"); + | ^~~~~~~~~~~~ +conf.cpp:331:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 331 | str = cf->getString (ret, "quality"); + | ^~~~~~~~~ +conf.cpp:339:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 339 | str = cf->getString (ret, "view"); + | ^~~~~~ +conf.cpp:353:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 353 | str = cf->getString (ret, "dithering"); + | ^~~~~~~~~~~ +conf.cpp:357:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 357 | str = cf->getString (ret, "antialiasing"); + | ^~~~~~~~~~~~~~ +conf.cpp:361:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 361 | str = cf->getString (ret, "specialeffects"); + | ^~~~~~~~~~~~~~~~ +conf.cpp:365:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 365 | str = cf->getString (ret, "dynamiclighting"); + | ^~~~~~~~~~~~~~~~~ +conf.cpp:370:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 370 | str = cf->getString (ret, "sound"); + | ^~~~~~~ +conf.cpp:378:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 378 | str = cf->getString (ret, "music"); + | ^~~~~~~ +conf.cpp:387:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 387 | str = cf->getString (ret, "controls"); + | ^~~~~~~~~~ +conf.cpp:395:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 395 | str = cf->getString (ret, "difficulty"); + | ^~~~~~~~~~~~ +conf.cpp:403:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 403 | str = cf->getString (ret, "brightness"); + | ^~~~~~~~~~~~ +conf.cpp:411:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 411 | str = cf->getString (ret, "physics"); + | ^~~~~~~~~ +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"); + | ^~~~~~~~~~ +conf.cpp:439:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 439 | str = cf->getString (ret, "savewidth"); + | ^~~~~~~~~~~ +conf.cpp:447:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 447 | str = cf->getString (ret, "saveheight"); + | ^~~~~~~~~~~~ +conf.cpp:455:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 455 | str = cf->getString (ret, "savebpp"); + | ^~~~~~~~~ +conf.cpp:463:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 463 | str = cf->getString (ret, "savefullscreen"); + | ^~~~~~~~~~~~~~~~ +conf.cpp: In function 'void save_configInterface()': +conf.cpp:485:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 485 | char *confname = dirs->getSaves ("conf.interface"); + | ^~~~~~~~~~~~~~~~ +conf.cpp:491:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 491 | display ("Could not save interface configuration", LOG_ERROR); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:494:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 494 | cf->writeText ("# Interface configuration\n"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:495:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 495 | cf->writeText ("# ---------------------------------------------------------------------"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effects.h:28, - from effects.cpp:29: + from aiobject.h:29, + from aiobject.cpp:26: object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); | ^~~~~~ +conf.cpp:496:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 496 | cf->writeText ("# Keyboard section"); + | ^~~~~~~~~~~~~~~~~~~~ +conf.cpp:497:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 497 | cf->writeText ("# ---------------------------------------------------------------------\n"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:498:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 498 | cf->writeText ("# Use ASCII-Code values or letters to remap"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:499:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 499 | cf->writeText ("# 8=BACKSPACE, 13=ENTER, 32=SPACE, 65=A...90=Z (NOT case sensitive)"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:500:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 500 | cf->write (" key_firecannon", (int) key_firecannon); + | ^~~~~~~~~~~~~~~~~ +conf.cpp:501:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 501 | cf->write (" key_firemissile", (int) key_firemissile); + | ^~~~~~~~~~~~~~~~~~ +conf.cpp:502:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 502 | cf->write (" key_dropflare", (int) key_dropflare); + | ^~~~~~~~~~~~~~~~ +conf.cpp:503:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 503 | cf->write (" key_dropchaff", (int) key_dropchaff); + | ^~~~~~~~~~~~~~~~ effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' 164 | void drawGL (CVector3 *tl, CVector3 *textl); | ^~~~~~ +conf.cpp:504:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 504 | cf->write (" key_selectmissile", (int) key_selectmissile); + | ^~~~~~~~~~~~~~~~~~~~ +conf.cpp:505:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 505 | cf->writeText ("# Target nearest enemy with priority for enemies in front of you"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:506:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 506 | cf->write (" key_targetnearest", (int) key_targetnearest); + | ^~~~~~~~~~~~~~~~~~~~ +conf.cpp:507:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 507 | cf->writeText ("# Target next enemy who has locked you"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:508:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 508 | cf->write (" key_targetlocking", (int) key_targetlocking); + | ^~~~~~~~~~~~~~~~~~~~ +conf.cpp:509:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 509 | cf->write (" key_targetnext", (int) key_targetnext); + | ^~~~~~~~~~~~~~~~~ +land.cpp: In member function 'void Landscape::calcWoods(int)': +land.cpp:1384:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] + 1384 | if (isWoods (f [i - 1] [i2]) && isWoods (f [i + 1] [i2]) || + | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:510:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 510 | cf->write (" key_targetprevious", (int) key_targetprevious); + | ^~~~~~~~~~~~~~~~~~~~~ +conf.cpp:511:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 511 | cf->write (" key_incthrust", (int) key_thrustup); + | ^~~~~~~~~~~~~~~~ +conf.cpp:512:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 512 | cf->write (" key_decthrust", (int) key_thrustdown); + | ^~~~~~~~~~~~~~~~ +conf.cpp:513:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 513 | cf->writeText ("# All other piloting keys (CURSORS, PGUP/DN) are fixed."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:514:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 514 | cf->writeText ("\n# ---------------------------------------------------------------------"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:515:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 515 | cf->writeText ("# Mouse section"); + | ^~~~~~~~~~~~~~~~~ +conf.cpp:516:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 516 | cf->writeText ("# ---------------------------------------------------------------------\n"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:517:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 517 | cf->writeText ("# Sensitivity: 70...200%, 70%=full screen area, 200%=max sensitivity"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:518:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 518 | cf->write (" mouse_sensitivity", (int) mouse_sensitivity); + | ^~~~~~~~~~~~~~~~~~~~ +conf.cpp:519:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 519 | cf->writeText ("# Reverse y-axis: 0 (no) or 1 (yes)"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:520:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 520 | cf->write (" mouse_reverse", (int) mouse_reverse); + | ^~~~~~~~~~~~~~~~ +conf.cpp:521:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 521 | cf->writeText ("# Relative coordinates: 0 (no) or 1 (yes)"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:522:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 522 | cf->write (" mouse_relative", (int) mouse_relative); + | ^~~~~~~~~~~~~~~~~ +conf.cpp:523:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 523 | cf->writeText ("# Auto rudder on x-axis, dead area for rolls: 0...100"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:524:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 524 | cf->write (" mouse_autorudder", (int) mouse_autorudder); + | ^~~~~~~~~~~~~~~~~~~ +conf.cpp:525:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 525 | cf->writeText ("\n# Buttons: 1=Left, 2=Middle, 3=Right"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:530:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 530 | cf->write (" mouse_firecannon", mousebutton); + | ^~~~~~~~~~~~~~~~~~~ +conf.cpp:534:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 534 | cf->write (" mouse_firemissile", mousebutton); + | ^~~~~~~~~~~~~~~~~~~~ +conf.cpp:538:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 538 | cf->write (" mouse_selectmissile", mousebutton); + | ^~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:539:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 539 | cf->writeText ("\n# ---------------------------------------------------------------------"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:540:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 540 | cf->writeText ("# Joystick section"); + | ^~~~~~~~~~~~~~~~~~~~ +conf.cpp:541:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 541 | cf->writeText ("# ---------------------------------------------------------------------\n"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:542:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 542 | cf->writeText ("# The number of axes, buttons, and the coolie hat depends on your joystick!"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:543:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 543 | cf->writeText ("# Numbers start with A=first joystick, B=second joystick...J=10th joystick"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:544:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 544 | cf->writeText ("# followed by a number to identify axes, buttons, and coolie hat\n"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:545:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 545 | cf->writeText ("# Axis: 0...MAX-1 (maybe 0=aileron 1=elevator 2=throttle 3=rudder)"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:546:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 546 | writeJoystick (cf, " joystick_aileron", joystick_aileron); + | ^~~~~~~~~~~~~~~~~~~ +conf.cpp:547:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 547 | writeJoystick (cf, " joystick_elevator", joystick_elevator); + | ^~~~~~~~~~~~~~~~~~~~ +conf.cpp:548:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 548 | writeJoystick (cf, " joystick_throttle", joystick_throttle); + | ^~~~~~~~~~~~~~~~~~~~ +conf.cpp:549:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 549 | writeJoystick (cf, " joystick_rudder", joystick_rudder); + | ^~~~~~~~~~~~~~~~~~ +conf.cpp:550:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 550 | writeJoystick (cf, " joystick_view_x", joystick_view_x); + | ^~~~~~~~~~~~~~~~~~ +conf.cpp:551:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 551 | writeJoystick (cf, " joystick_view_y", joystick_view_y); + | ^~~~~~~~~~~~~~~~~~ +conf.cpp:552:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 552 | cf->writeText ("\n# Buttons: 0...MAX-1, Coolie: 100=Right, 101=Up, 102=Left, 103=Down"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:553:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 553 | writeJoystick (cf, " joystick_firecannon", joystick_firecannon); + | ^~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:554:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 554 | writeJoystick (cf, " joystick_firemissile", joystick_firemissile); + | ^~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:555:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 555 | cf->writeText ("# Dropping chaff AND flare may be preferred"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:556:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 556 | writeJoystick (cf, " joystick_dropflare", joystick_dropflare); + | ^~~~~~~~~~~~~~~~~~~~~ +conf.cpp:557:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 557 | writeJoystick (cf, " joystick_dropchaff", joystick_dropchaff); + | ^~~~~~~~~~~~~~~~~~~~~ +conf.cpp:558:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 558 | writeJoystick (cf, " joystick_selectmissile", joystick_selectmissile); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:559:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 559 | writeJoystick (cf, " joystick_targetnearest", joystick_targetnearest); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:560:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 560 | writeJoystick (cf, " joystick_targetlocking", joystick_targetlocking); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:561:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 561 | writeJoystick (cf, " joystick_targetnext", joystick_targetnext); + | ^~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:562:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 562 | writeJoystick (cf, " joystick_targetprevious", joystick_targetprevious); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:563:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 563 | writeJoystick (cf, " joystick_incthrust", joystick_thrustup); + | ^~~~~~~~~~~~~~~~~~~~~ +conf.cpp:564:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 564 | writeJoystick (cf, " joystick_decthrust", joystick_thrustdown); + | ^~~~~~~~~~~~~~~~~~~~~ +conf.cpp:565:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 565 | cf->writeText ("\n# This file is meant to give sensible custom interface settings"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:566:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 566 | cf->writeText ("\n# To get back to default settings, just delete this file!"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp: In function 'int load_configInterface()': +conf.cpp:605:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 605 | char *confname = dirs->getSaves ("conf.interface"); + | ^~~~~~~~~~~~~~~~ +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"); + | ^~~~~~~~~ +conf.cpp:610:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 610 | str = cf->getString (ret, "key_firecannon"); + | ^~~~~~~~~~~~~~~~ +conf.cpp:613:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 613 | str = cf->getString (ret, "key_firemissile"); + | ^~~~~~~~~~~~~~~~~ +conf.cpp:616:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 616 | str = cf->getString (ret, "key_dropchaff"); + | ^~~~~~~~~~~~~~~ +conf.cpp:619:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 619 | str = cf->getString (ret, "key_dropflare"); + | ^~~~~~~~~~~~~~~ +conf.cpp:622:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 622 | str = cf->getString (ret, "key_selectmissile"); + | ^~~~~~~~~~~~~~~~~~~ +conf.cpp:625:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 625 | str = cf->getString (ret, "key_targetnearest"); + | ^~~~~~~~~~~~~~~~~~~ +conf.cpp:628:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 628 | str = cf->getString (ret, "key_targetlocking"); + | ^~~~~~~~~~~~~~~~~~~ +conf.cpp:631:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 631 | str = cf->getString (ret, "key_targetnext"); + | ^~~~~~~~~~~~~~~~ +conf.cpp:634:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 634 | str = cf->getString (ret, "key_targetprevious"); + | ^~~~~~~~~~~~~~~~~~~~ +conf.cpp:637:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 637 | str = cf->getString (ret, "key_incthrust"); + | ^~~~~~~~~~~~~~~ +conf.cpp:640:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 640 | str = cf->getString (ret, "key_decthrust"); + | ^~~~~~~~~~~~~~~ +conf.cpp:643:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 643 | str = cf->getString (ret, "mouse_sensitivity"); + | ^~~~~~~~~~~~~~~~~~~ +conf.cpp:651:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 651 | str = cf->getString (ret, "mouse_reverse"); + | ^~~~~~~~~~~~~~~ +conf.cpp:657:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 657 | str = cf->getString (ret, "mouse_relative"); + | ^~~~~~~~~~~~~~~~ +conf.cpp:663:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 663 | str = cf->getString (ret, "mouse_autorudder"); + | ^~~~~~~~~~~~~~~~~~ +conf.cpp:672:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 672 | str = cf->getString (ret, "mouse_firecannon"); + | ^~~~~~~~~~~~~~~~~~ +conf.cpp:681:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 681 | str = cf->getString (ret, "mouse_firemissile"); + | ^~~~~~~~~~~~~~~~~~~ +conf.cpp:690:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 690 | str = cf->getString (ret, "mouse_selectmissile"); + | ^~~~~~~~~~~~~~~~~~~~~ +conf.cpp:699:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 699 | str = cf->getString (ret, "joystick_aileron"); + | ^~~~~~~~~~~~~~~~~~ +conf.cpp:702:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 702 | str = cf->getString (ret, "joystick_elevator"); + | ^~~~~~~~~~~~~~~~~~~ +conf.cpp:705:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 705 | str = cf->getString (ret, "joystick_throttle"); + | ^~~~~~~~~~~~~~~~~~~ +conf.cpp:708:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 708 | str = cf->getString (ret, "joystick_rudder"); + | ^~~~~~~~~~~~~~~~~ +conf.cpp:711:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 711 | str = cf->getString (ret, "joystick_view_x"); + | ^~~~~~~~~~~~~~~~~ +conf.cpp:714:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 714 | str = cf->getString (ret, "joystick_view_y"); + | ^~~~~~~~~~~~~~~~~ +conf.cpp:717:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 717 | str = cf->getString (ret, "joystick_firecannon"); + | ^~~~~~~~~~~~~~~~~~~~~ +dirs.cpp:230:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 230 | append (textures, "textures"); + | ^~~~~~~~~~ +conf.cpp:720:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 720 | str = cf->getString (ret, "joystick_firemissile"); + | ^~~~~~~~~~~~~~~~~~~~~~ +dirs.cpp:231:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 231 | append (music, "music"); + | ^~~~~~~ +dirs.cpp:232:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 232 | append (sound, "sounds"); + | ^~~~~~~~ +dirs.cpp:233:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 233 | append (models, "models"); + | ^~~~~~~~ +dirs.cpp:234:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 234 | append (maps, "maps"); + | ^~~~~~ +conf.cpp:723:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 723 | str = cf->getString (ret, "joystick_dropchaff"); + | ^~~~~~~~~~~~~~~~~~~~ +conf.cpp:726:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 726 | str = cf->getString (ret, "joystick_dropflare"); + | ^~~~~~~~~~~~~~~~~~~~ +conf.cpp:729:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 729 | str = cf->getString (ret, "joystick_selectmissile"); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:732:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 732 | str = cf->getString (ret, "joystick_targetnearest"); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:735:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 735 | str = cf->getString (ret, "joystick_targetlocking"); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:738:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 738 | str = cf->getString (ret, "joystick_targetnext"); + | ^~~~~~~~~~~~~~~~~~~~~ +conf.cpp:741:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 741 | str = cf->getString (ret, "joystick_targetprevious"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +conf.cpp:744:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 744 | str = cf->getString (ret, "joystick_incthrust"); + | ^~~~~~~~~~~~~~~~~~~~ +conf.cpp:747:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 747 | str = cf->getString (ret, "joystick_decthrust"); + | ^~~~~~~~~~~~~~~~~~~~ +dirs.cpp: In constructor 'Dirs::Dirs(char*)': +dirs.cpp:131:12: warning: ignoring return value of 'char* getcwd(char*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] + 131 | getcwd (cwd, 4096); // get current working directory + | ~~~~~~~^~~~~~~~~~~ In file included from effects.h:28, - from aiobject.h:29, - from main.h:41, - from net.cpp:27: + from 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); | ^~~~~~ -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 main.h:41, @@ -1639,61 +2220,33 @@ 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; - | ^~~ +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); + | ^~~~~~~~~~~~~~~ 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)); | ^~~~~~~~~~~~~~~ -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) - | ^ -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 - | ^~~~~~~ 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)); | ^~~~~~~~~~~~~~~ -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) - | ^ 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)); | ^~~~~~~~~~~~~~~ -glland.cpp:302:28: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 302 | int zp1 = GETCOORD(z + 1); - | ~~^~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ aiobject.cpp: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)); | ^~~~~~~~~~~~~~~ @@ -1720,50 +2273,6 @@ main.cpp:669:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 669 | display ("Could not startup mission", LOG_ERROR); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 - | ^~~~~~~ -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) - | ^ 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); @@ -1772,27 +2281,22 @@ main.cpp:1864:18: warning: variable 'yf' set but not used [-Wunused-but-set-variable] 1864 | float zf = -3, yf; | ^~ -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) - | ^ +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: In function 'void pleaseWait()': main.cpp:1974:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1974 | font1->drawTextCentered (0, -0.5, -1.5, "PLEASE WAIT...", &colorwhite); | ^~~~~~~~~~~~~~~~ -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: 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); | ^~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp: In member function 'bool AIObj::fireChaff(DynamicObj**, AIObj**)': +aiobject.cpp:1781:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 1781 | display ("Missile to chaff", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~ main.cpp: In function 'char* getModelText(int)': main.cpp:2083:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2083 | return "THE FALCON IS A NIMBLE AND\nFAST FIGHTER PROVIDING\nBOTH AIR-AIR AND\nAIR-GROUND-MISSILES."; @@ -1828,10 +2332,6 @@ main.cpp:2106:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2106 | return "CROW"; | ^~~~~~ -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:2108:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2108 | return "BUZZARD"; | ^~~~~~~~~ @@ -1853,10 +2353,6 @@ main.cpp:2119:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2119 | return "NO INFO"; | ^~~~~~~~~ -aiobject.cpp: In member function 'bool AIObj::fireChaff(DynamicObj**, AIObj**)': -aiobject.cpp:1781:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 1781 | display ("Missile to chaff", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~ main.cpp: In function 'void mission_display()': main.cpp:2280:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2280 | font1->drawText (textx / fontscale, texty / fontscale, -2, "BRIEFING:", col); @@ -1914,18 +2410,14 @@ main.cpp:2431:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2431 | font1->drawText (-2, -12, -2, "BACK"); | ^~~~~~ -glland.cpp: In member function 'void GLLandscape::draw(int, int)': -glland.cpp:2048:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2048 | display ("view exceeds ray casting blocks - not implemented", LOG_FATAL); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp: In function 'void game_quit()': -main.cpp:2583:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2583 | pilots->save (dirs->getSaves ("pilots")); - | ^~~~~~~~ aiobject.cpp: In member function 'void AIObj::aiAction(Uint32, AIObj**, AIObj**, DynamicObj**, DynamicObj**, DynamicObj**)': aiobject.cpp:2449:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2449 | display ("Manoever: Vertical climb", LOG_ALL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +main.cpp: In function 'void game_quit()': +main.cpp:2583:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2583 | pilots->save (dirs->getSaves ("pilots")); + | ^~~~~~~~ main.cpp:2584:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2584 | display ("Pilots saved", LOG_MOST); | ^~~~~~~~~~~~~~ @@ -1933,18 +2425,27 @@ main.cpp:2700:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2700 | font1->drawTextCentered (0, 7, -2, "SUCCESS", &colorblue); | ^~~~~~~~~ +aiobject.cpp:2656:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2656 | display ("Manoever: Immelmann", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~ main.cpp:2704:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2704 | font1->drawTextCentered (0, 7, -2, "FAILED", &colorred); | ^~~~~~~~ main.cpp:2707:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2707 | font1->drawText (xf1, yf, zf, "SCORE:", color); | ^~~~~~~~ +aiobject.cpp:2661:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2661 | display ("Manoever: Immelmann", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~ main.cpp:2712:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2712 | font1->drawText (xf1, yf, zf, "DIFFICULTY:", color); | ^~~~~~~~~~~~~ main.cpp:2713:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2713 | if (mission->difficulty == 0) font1->drawText (xf2, yf, zf, "EASY", color); | ^~~~~~ +aiobject.cpp:2668:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2668 | display ("Manoever: Roll", LOG_ALL); + | ^~~~~~~~~~~~~~~~ main.cpp:2714:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2714 | else if (mission->difficulty == 1) font1->drawText (xf2, yf, zf, "NORMAL", color); | ^~~~~~~~ @@ -1954,6 +2455,12 @@ main.cpp:2716:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2716 | if (mission->difficulty == 0) font1->drawText (xf3, yf, zf, "-25", color); | ^~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:2717:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2717 | else if (mission->difficulty == 1) font1->drawText (xf3, yf, zf, "+25", color); | ^~~~~ @@ -1969,54 +2476,39 @@ 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); | ^~~~~ +aiobject.cpp:2714:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2714 | display ("Manoever: Immelmann", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~ main.cpp:2724:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2724 | if (!fplayer->realism) font1->drawText (xf3, yf, zf, "-25", color); | ^~~~~ main.cpp:2725:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2725 | else font1->drawText (xf3, yf, zf, "+25", color); | ^~~~~ +aiobject.cpp:2719:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2719 | display ("Manoever: Immelmann", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~ main.cpp:2731:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2731 | font1->drawText (xf1, yf, zf, "TIME BONUS:", color); | ^~~~~~~~~~~~~ -aiobject.cpp:2656:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2656 | display ("Manoever: Immelmann", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~ -aiobject.cpp:2661:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2661 | display ("Manoever: Immelmann", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp:2726:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2726 | display ("Manoever: Roll", LOG_ALL); + | ^~~~~~~~~~~~~~~~ main.cpp:2738:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2738 | font1->drawText (xf1, yf, zf, "SHIELD BONUS:", color); | ^~~~~~~~~~~~~~~ +aiobject.cpp:2734:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2734 | display ("Manoever: Turn", LOG_ALL); + | ^~~~~~~~~~~~~~~~ main.cpp:2744:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2744 | font1->drawText (xf1, yf, zf, "KILLS:", color); | ^~~~~~~~ -aiobject.cpp: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:2741:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2741 | display ("Manoever: Height change", LOG_ALL); | ^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:2782:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2782 | font1->drawTextCentered (0, yf, zf, "PROMOTED TO", color); | ^~~~~~~~~~~~~ -aiobject.cpp:2714:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2714 | display ("Manoever: Immelmann", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~ -aiobject.cpp:2719:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2719 | display ("Manoever: Immelmann", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~ -aiobject.cpp:2726:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2726 | display ("Manoever: Roll", LOG_ALL); - | ^~~~~~~~~~~~~~~~ -aiobject.cpp:2734:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2734 | display ("Manoever: Turn", LOG_ALL); - | ^~~~~~~~~~~~~~~~ -aiobject.cpp:2741:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2741 | display ("Manoever: Height change", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int selectMouse(int, int, int, int, int, bool)': main.cpp:2893:7: warning: variable 'pick' set but not used [-Wunused-but-set-variable] 2893 | int pick [100]; @@ -2029,24 +2521,12 @@ main.cpp:3009:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3009 | font2->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "GAME PROGRAMMING,", col); | ^~~~~~~~~~~~~~~~~~~ -glland.cpp:2540:61: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 2540 | int x2 = GETCOORD(xs+gridstep); - | ~~^~~~~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ main.cpp:3010:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3010 | font2->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "GRAPHICS, MODELS, SOUND & MUSIC", col); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:3011:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3011 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "THOMAS A. DREXL", col2); | ^~~~~~~~~~~~~~~~~ -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:3015:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3015 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "SPECIAL THANKS TO...", col); | ^~~~~~~~~~~~~~~~~~~~~~ @@ -2062,21 +2542,9 @@ main.cpp:3019:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3019 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "LOURENS VEEN", col2); | ^~~~~~~~~~~~~~ -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) - | ^ main.cpp:3020:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3020 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "PUBLISHING & FURTHER GAME IDEAS", col); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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:3021:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3021 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "BERNHARD KAINDL", col2); | ^~~~~~~~~~~~~~~~~ @@ -2116,7 +2584,6 @@ main.cpp:3040:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3040 | font2->drawText (xf / fontzoom, (yt -= 2 * ydist) / fontzoom, zf, "- MAKE MISSION SUGGESTIONS", col); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o dirs.o dirs.cpp main.cpp:3041:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3041 | font2->drawText (xf / fontzoom, (yt -= 2 * ydist) / fontzoom, zf, "- GIVE FEEDBACK AND ADVICE", col); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2198,7 +2665,16 @@ 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 -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o objload.o objload.cpp +In file included from effects.h:28, + from aiobject.h:29, + from mission.h:28, + from mission.cpp:28: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ main.cpp: In function 'void myFirstInit()': main.cpp:4298:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4298 | display ("Creating calculation tables", LOG_ALL); @@ -2398,9 +2874,19 @@ main.cpp:4371:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4371 | display (" * gl-14b.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~ +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:4372:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4372 | g_Load3ds.Import3DS (&model_figf, dirs->getModels ("gl-14b.3ds")); | ^~~~~~~~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ main.cpp:4373:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4373 | model_figf.setName ("PHOENIX"); | ^~~~~~~~~ @@ -2422,9 +2908,35 @@ main.cpp:4379:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4379 | model_figh.setName ("BLACKBIRD"); | ^~~~~~~~~~~ +In file included from glland.h:32: +glland.cpp: In member function 'void GLLandscape::precalculate()': +glland.cpp:299:28: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] + 299 | int xm1 = GETCOORD(x - 1); + | ~~^~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ main.cpp:4381:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4381 | display (" * gl-50.3ds", LOG_ALL); | ^~~~~~~~~~~~~~ +glland.cpp:300:28: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 300 | int xp1 = GETCOORD(x + 1); + | ~~^~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +glland.cpp:301:28: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] + 301 | int zm1 = GETCOORD(z - 1); + | ~~^~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +glland.cpp:302:28: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 302 | int zp1 = GETCOORD(z + 1); + | ~~^~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ main.cpp:4382:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4382 | g_Load3ds.Import3DS (&model_figi, dirs->getModels ("gl-50.3ds")); | ^~~~~~~~~~~ @@ -2665,24 +3177,80 @@ main.cpp:4503:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4503 | g_Load3ds.Import3DS (&model_pickup1, dirs->getModels ("pickup1.3ds")); | ^~~~~~~~~~~~~ +pilots.cpp: In member function 'char* TeamPilot::getRank()': +pilots.cpp:55:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 55 | if (ranking == 0) return "AIRMAN BASIC"; + | ^~~~~~~~~~~~~~ +pilots.cpp:56:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 56 | else if (ranking == 1) return "AIRMAN"; + | ^~~~~~~~ main.cpp:4504:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4504 | model_pickup1.setName ("PICKUP"); | ^~~~~~~~ +pilots.cpp:57:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 57 | else if (ranking == 2) return "AIRMAN 1ST CLASS"; + | ^~~~~~~~~~~~~~~~~~ +pilots.cpp:58:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 58 | else if (ranking == 3) return "2ND LIEUTNANT"; + | ^~~~~~~~~~~~~~~ main.cpp:4505:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4505 | display (" * pickup2.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~~ +pilots.cpp:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 59 | else if (ranking == 4) return "1ST LIEUTNANT"; + | ^~~~~~~~~~~~~~~ +pilots.cpp:60:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 60 | else if (ranking == 5) return "CAPTAIN"; + | ^~~~~~~~~ +pilots.cpp:61:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 61 | else if (ranking == 6) return "MAJOR"; + | ^~~~~~~ +pilots.cpp:62:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 62 | else if (ranking == 7) return "COLONEL"; + | ^~~~~~~~~ main.cpp:4506:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4506 | g_Load3ds.Import3DS (&model_pickup2, dirs->getModels ("pickup2.3ds")); | ^~~~~~~~~~~~~ +pilots.cpp:63:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 63 | else return "GENERAL"; + | ^~~~~~~~~ main.cpp:4507:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4507 | model_pickup2.setName ("PICKUP"); | ^~~~~~~~ +pilots.cpp: In member function 'char* TeamPilot::getShortRank()': +pilots.cpp:68:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 68 | if (ranking == 0) return "AB"; + | ^~~~ +pilots.cpp:69:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 69 | else if (ranking == 1) return "ARM"; + | ^~~~~ main.cpp:4508:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4508 | display (" * tank2.3ds", LOG_ALL); | ^~~~~~~~~~~~~~ +pilots.cpp:70:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 70 | else if (ranking == 2) return "A1C"; + | ^~~~~ +pilots.cpp:71:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 71 | else if (ranking == 3) return "2ND LT"; + | ^~~~~~~~ +pilots.cpp:72:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 72 | else if (ranking == 4) return "1ST LT"; + | ^~~~~~~~ +pilots.cpp:73:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 73 | else if (ranking == 5) return "CAPT"; + | ^~~~~~ main.cpp:4509:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4509 | g_Load3ds.Import3DS (&model_tank2, dirs->getModels ("tank2.3ds")); | ^~~~~~~~~~~ +pilots.cpp:74:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 74 | else if (ranking == 6) return "MAJ"; + | ^~~~~ +pilots.cpp:75:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 75 | else if (ranking == 7) return "COL"; + | ^~~~~ +pilots.cpp:76:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 76 | else return "GEN"; + | ^~~~~ main.cpp:4510:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4510 | model_tank2.setName ("PANTHER"); | ^~~~~~~~~ @@ -2806,6 +3374,40 @@ 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); | ^~~~~~~~~~~~~ +pilots.cpp: In member function 'void Pilot::load()': +pilots.cpp:140:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 140 | tp [0] = new TeamPilot (5, "PRIMETIME", 200, 100, 150, 20); + | ^~~~~~~~~~~ +pilots.cpp:141:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 141 | tp [1] = new TeamPilot (1, "HEPTARGON", 80, 220, 300, 1); + | ^~~~~~~~~~~ +pilots.cpp:142:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 142 | tp [2] = new TeamPilot (2, "KARA", 180, 160, 50, 4); + | ^~~~~~ +pilots.cpp:143:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 143 | tp [3] = new TeamPilot (6, "SHARK", 70, 90, 120, 22); + | ^~~~~~~ +pilots.cpp:144:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 144 | tp [4] = new TeamPilot (3, "BOSS", 250, 180, 80, 10); + | ^~~~~~ +pilots.cpp:145:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 145 | tp [5] = new TeamPilot (2, "DR DOOM", 320, 210, 20, 2); + | ^~~~~~~~~ +pilots.cpp:146:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 146 | tp [6] = new TeamPilot (4, "SHADOW", 130, 200, 320, 15); + | ^~~~~~~~ +pilots.cpp:147:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 147 | tp [7] = new TeamPilot (7, "MATRIX", 40, 80, 180, 25); + | ^~~~~~~~ +pilots.cpp:148:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 148 | tp [8] = new TeamPilot (1, "FIREBIRD", 250, 140, 100, 1); + | ^~~~~~~~~~ +pilots.cpp:149:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 149 | tp [9] = new TeamPilot (4, "THUNDER", 150, 170, 60, 18); + | ^~~~~~~~~ +pilots.cpp:150:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 150 | tp [10] = new TeamPilot (0, "PLAYER", 0, 0, 0, 0); + | ^~~~~~~~ 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] @@ -2814,10 +3416,73 @@ main.cpp:4718:33: note: in expansion of macro 'VERSIONSTRING' 4718 | font2->drawText (20, -20, -3, VERSIONSTRING, &color); | ^~~~~~~~~~~~~ +pilots.cpp:158:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 158 | display ("Could not load pilot", LOG_WARN); + | ^~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp: In member function 'void Pilot::save()': +pilots.cpp:185:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 185 | display ("Could not write pilot", LOG_WARN); + | ^~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp: In member function 'char* Pilot::getRank()': +pilots.cpp:212:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 212 | { ranking = 0; return "AIRMAN BASIC"; } + | ^~~~~~~~~~~~~~ +pilots.cpp:214:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 214 | { ranking = 1; return "AIRMAN"; } + | ^~~~~~~~ +pilots.cpp:216:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 216 | { ranking = 2; return "AIRMAN 1ST CLASS"; } + | ^~~~~~~~~~~~~~~~~~ +pilots.cpp:218:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 218 | { ranking = 3; return "2ND LIEUTNANT"; } + | ^~~~~~~~~~~~~~~ +pilots.cpp:220:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 220 | { ranking = 4; return "1ST LIEUTNANT"; } + | ^~~~~~~~~~~~~~~ +pilots.cpp:222:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 222 | { ranking = 5; return "CAPTAIN"; } + | ^~~~~~~~~ +pilots.cpp:224:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 224 | { ranking = 6; return "MAJOR"; } + | ^~~~~~~ +pilots.cpp:226:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 226 | { ranking = 7; return "COLONEL"; } + | ^~~~~~~~~ +pilots.cpp:228:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 228 | { ranking = 8; return "GENERAL"; } + | ^~~~~~~~~ +pilots.cpp: In member function 'char* Pilot::getShortRank()': +pilots.cpp:254:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 254 | { ranking = 0; return "AB"; } + | ^~~~ main.cpp: In function 'void myTimerFunc(int)': main.cpp:5220:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5220 | display ("Out of sync", LOG_ERROR); | ^~~~~~~~~~~~~ +pilots.cpp:256:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 256 | { ranking = 1; return "AMN"; } + | ^~~~~ +pilots.cpp:258:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 258 | { ranking = 2; return "A1C"; } + | ^~~~~ +pilots.cpp:260:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 260 | { ranking = 3; return "2ND LT"; } + | ^~~~~~~~ +pilots.cpp:262:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 262 | { ranking = 4; return "1ST LT"; } + | ^~~~~~~~ +pilots.cpp:264:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 264 | { ranking = 5; return "CAPT"; } + | ^~~~~~ +pilots.cpp:266:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 266 | { ranking = 6; return "MAJ"; } + | ^~~~~ +pilots.cpp:268:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 268 | { ranking = 7; return "COL"; } + | ^~~~~ +pilots.cpp:270:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 270 | { ranking = 8; return "GEN"; } + | ^~~~~ main.cpp: In function 'void config_test(int, char**)': main.cpp:5577:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5577 | display ("No configuration file found. Testing...", LOG_MOST); @@ -2825,9 +3490,16 @@ main.cpp:5587:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5587 | display ("Using SDL and GLUT", LOG_MOST); | ^~~~~~~~~~~~~~~~~~~~ +pilots.cpp: In member function 'void PilotList::load(char*)': +pilots.cpp:296:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 296 | display ("Could not load saves/pilots", LOG_WARN); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:5616:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5616 | display ("No working display modes found! Try editing the file conf yourself. You may not be able to play this game.", LOG_FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:298:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 298 | add ("PLAYER"); + | ^~~~~~~~ main.cpp: In function 'void viewParameters()': main.cpp:5635:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5635 | display (" ", LOG_NONE); @@ -2844,6 +3516,10 @@ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp: In member function 'void PilotList::save(char*)': +pilots.cpp:325:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 325 | display ("Could not write saves/pilots", LOG_WARN); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2863,10 +3539,69 @@ main.cpp:5679:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5679 | display ("Invalid command line parameter", LOG_FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +glland.cpp: 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) + | ^ main.cpp: In function 'void callbackJoystickAxis(Component*, int)': main.cpp:5824:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5824 | la->setText ("N/A"); | ^~~~~ +pilots.cpp: In member function 'void TeamPilot::load(FILE*)': +pilots.cpp:97:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 97 | fread (&ranking, sizeof (int), 1, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:99:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 99 | fread (&len, sizeof (int), 1, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:101:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 101 | fread (name, sizeof (char), len, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:102:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 102 | fread (&intelligence, sizeof (int), 1, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:103:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 103 | fread (&precision, sizeof (int), 1, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:104:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 104 | fread (&aggressivity, sizeof (int), 1, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:105:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 105 | fread (&fighterkills, sizeof (int), 1, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 setpilotstext()': 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"); @@ -2882,6 +3617,37 @@ 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: In member function 'void Pilot::load()': +pilots.cpp:162:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 162 | fread (saveversion, sizeof (char), strlen (SAVEVERSION), in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:163:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 163 | fread (mission_state, sizeof (int), maxpilotdata, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:164:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 164 | fread (mission_time, sizeof (int), maxpilotdata, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:165:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 165 | fread (mission_fighterkills, sizeof (int), maxpilotdata, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:166:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 166 | fread (mission_shipkills, sizeof (int), maxpilotdata, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:167:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 167 | fread (mission_tankkills, sizeof (int), maxpilotdata, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:168:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 168 | fread (mission_otherkills, sizeof (int), maxpilotdata, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:169:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 169 | fread (mission_shield, sizeof (int), maxpilotdata, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:170:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 170 | fread (mission_points, sizeof (int), maxpilotdata, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:171:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 171 | fread (mission_score, sizeof (int), maxpilotdata, in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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"); | ^~~~~ @@ -2894,6 +3660,13 @@ 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: In member function 'void PilotList::load(char*)': +pilots.cpp:301:9: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 301 | fgets (buf, 16, in); + | ~~~~~~^~~~~~~~~~~~~ +pilots.cpp:303:9: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 303 | fgets (buf, 16, in); + | ~~~~~~^~~~~~~~~~~~~ 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"); @@ -2944,7 +3717,7 @@ main.cpp:6862:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 6862 | button = new Button ("SOUND VOLUME"); | ^~~~~~~~~~~~~~ -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 -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o pilots.o pilots.cpp +g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o menu.o menu.cpp main.cpp:6875:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 6875 | button = new Button ("MUSIC VOLUME"); | ^~~~~~~~~~~~~~ @@ -2978,6 +3751,19 @@ main.cpp:7033:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7033 | button = new Button ("SENSITIVITY"); | ^~~~~~~~~~~~~ +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:7045:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7045 | button = new Button ("REVERSE"); | ^~~~~~~~~ @@ -3078,849 +3864,50 @@ 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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -main.cpp: At global scope: -main.cpp:5153:13: warning: 'void myIdleFunc()' defined but not used [-Wunused-function] - 5153 | static void myIdleFunc () - | ^~~~~~~~~~ -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 - | ~~~~~~~^~~~~~~~~~~ -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 -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o loader_tga.o loader_tga.cpp -In file included from effects.h:28, - from aiobject.h:29, - from mission.h:28, - from pilots.cpp:31: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ -pilots.cpp: In member function 'char* TeamPilot::getRank()': -pilots.cpp:55:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 55 | if (ranking == 0) return "AIRMAN BASIC"; - | ^~~~~~~~~~~~~~ -pilots.cpp:56:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 56 | else if (ranking == 1) return "AIRMAN"; - | ^~~~~~~~ -pilots.cpp:57:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 57 | else if (ranking == 2) return "AIRMAN 1ST CLASS"; - | ^~~~~~~~~~~~~~~~~~ -pilots.cpp:58:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 58 | else if (ranking == 3) return "2ND LIEUTNANT"; - | ^~~~~~~~~~~~~~~ -pilots.cpp:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 59 | else if (ranking == 4) return "1ST LIEUTNANT"; - | ^~~~~~~~~~~~~~~ -pilots.cpp:60:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 60 | else if (ranking == 5) return "CAPTAIN"; - | ^~~~~~~~~ -pilots.cpp:61:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 61 | else if (ranking == 6) return "MAJOR"; - | ^~~~~~~ -pilots.cpp:62:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 62 | else if (ranking == 7) return "COLONEL"; - | ^~~~~~~~~ -pilots.cpp:63:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 63 | else return "GENERAL"; - | ^~~~~~~~~ -pilots.cpp: In member function 'char* TeamPilot::getShortRank()': -pilots.cpp:68:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 68 | if (ranking == 0) return "AB"; - | ^~~~ -pilots.cpp:69:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 69 | else if (ranking == 1) return "ARM"; - | ^~~~~ -pilots.cpp:70:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 70 | else if (ranking == 2) return "A1C"; - | ^~~~~ -pilots.cpp:71:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 71 | else if (ranking == 3) return "2ND LT"; - | ^~~~~~~~ -pilots.cpp:72:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 72 | else if (ranking == 4) return "1ST LT"; - | ^~~~~~~~ -pilots.cpp:73:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 73 | else if (ranking == 5) return "CAPT"; - | ^~~~~~ -pilots.cpp:74:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 74 | else if (ranking == 6) return "MAJ"; - | ^~~~~ -pilots.cpp:75:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 75 | else if (ranking == 7) return "COL"; - | ^~~~~ -pilots.cpp:76:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 76 | else return "GEN"; - | ^~~~~ -pilots.cpp: In member function 'void Pilot::load()': -pilots.cpp:140:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 140 | tp [0] = new TeamPilot (5, "PRIMETIME", 200, 100, 150, 20); - | ^~~~~~~~~~~ -pilots.cpp:141:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 141 | tp [1] = new TeamPilot (1, "HEPTARGON", 80, 220, 300, 1); - | ^~~~~~~~~~~ -3ds.cpp: In member function 'void CLoad3DS::ReadUVCoordinates(CObject*, Chunk*)': -3ds.cpp:506:10: warning: 'void operator delete(void*, 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 [](unsigned int)' - 499 | CVector2 *p = new CVector2 [object->numTexVertex]; - | ^ -pilots.cpp:142:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 142 | tp [2] = new TeamPilot (2, "KARA", 180, 160, 50, 4); - | ^~~~~~ -pilots.cpp:143:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 143 | tp [3] = new TeamPilot (6, "SHARK", 70, 90, 120, 22); - | ^~~~~~~ -pilots.cpp:144:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 144 | tp [4] = new TeamPilot (3, "BOSS", 250, 180, 80, 10); - | ^~~~~~ -pilots.cpp:145:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 145 | tp [5] = new TeamPilot (2, "DR DOOM", 320, 210, 20, 2); - | ^~~~~~~~~ -pilots.cpp:146:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 146 | tp [6] = new TeamPilot (4, "SHADOW", 130, 200, 320, 15); - | ^~~~~~~~ -pilots.cpp:147:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 147 | tp [7] = new TeamPilot (7, "MATRIX", 40, 80, 180, 25); - | ^~~~~~~~ -pilots.cpp:148:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 148 | tp [8] = new TeamPilot (1, "FIREBIRD", 250, 140, 100, 1); - | ^~~~~~~~~~ -pilots.cpp:149:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 149 | tp [9] = new TeamPilot (4, "THUNDER", 150, 170, 60, 18); - | ^~~~~~~~~ -pilots.cpp:150:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 150 | tp [10] = new TeamPilot (0, "PLAYER", 0, 0, 0, 0); - | ^~~~~~~~ -pilots.cpp:158:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 158 | display ("Could not load pilot", LOG_WARN); - | ^~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp: In member function 'void Pilot::save()': -pilots.cpp:185:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 185 | display ("Could not write pilot", LOG_WARN); - | ^~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp: In member function 'char* Pilot::getRank()': -pilots.cpp:212:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 212 | { ranking = 0; return "AIRMAN BASIC"; } - | ^~~~~~~~~~~~~~ -pilots.cpp:214:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 214 | { ranking = 1; return "AIRMAN"; } - | ^~~~~~~~ -pilots.cpp:216:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 216 | { ranking = 2; return "AIRMAN 1ST CLASS"; } - | ^~~~~~~~~~~~~~~~~~ -pilots.cpp:218:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 218 | { ranking = 3; return "2ND LIEUTNANT"; } - | ^~~~~~~~~~~~~~~ -pilots.cpp:220:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 220 | { ranking = 4; return "1ST LIEUTNANT"; } - | ^~~~~~~~~~~~~~~ -pilots.cpp:222:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 222 | { ranking = 5; return "CAPTAIN"; } - | ^~~~~~~~~ -pilots.cpp:224:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 224 | { ranking = 6; return "MAJOR"; } - | ^~~~~~~ -pilots.cpp:226:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 226 | { ranking = 7; return "COLONEL"; } - | ^~~~~~~~~ -pilots.cpp:228:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 228 | { ranking = 8; return "GENERAL"; } - | ^~~~~~~~~ -pilots.cpp: In member function 'char* Pilot::getShortRank()': -pilots.cpp:254:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 254 | { ranking = 0; return "AB"; } - | ^~~~ -pilots.cpp:256:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 256 | { ranking = 1; return "AMN"; } - | ^~~~~ -pilots.cpp:258:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 258 | { ranking = 2; return "A1C"; } - | ^~~~~ -pilots.cpp:260:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 260 | { ranking = 3; return "2ND LT"; } - | ^~~~~~~~ -pilots.cpp:262:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 262 | { ranking = 4; return "1ST LT"; } - | ^~~~~~~~ -pilots.cpp:264:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 264 | { ranking = 5; return "CAPT"; } - | ^~~~~~ -pilots.cpp:266:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 266 | { ranking = 6; return "MAJ"; } - | ^~~~~ -pilots.cpp:268:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 268 | { ranking = 7; return "COL"; } - | ^~~~~ -pilots.cpp:270:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 270 | { ranking = 8; return "GEN"; } - | ^~~~~ -pilots.cpp: In member function 'void PilotList::load(char*)': -pilots.cpp:296:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 296 | display ("Could not load saves/pilots", LOG_WARN); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:298:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 298 | add ("PLAYER"); - | ^~~~~~~~ -pilots.cpp: In member function 'void PilotList::save(char*)': -pilots.cpp:325:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 325 | display ("Could not write saves/pilots", LOG_WARN); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp: In member function 'void TeamPilot::load(FILE*)': -pilots.cpp:97:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 97 | fread (&ranking, sizeof (int), 1, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:99:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 99 | fread (&len, sizeof (int), 1, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:101:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 101 | fread (name, sizeof (char), len, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:102:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 102 | fread (&intelligence, sizeof (int), 1, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:103:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 103 | fread (&precision, sizeof (int), 1, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:104:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 104 | fread (&aggressivity, sizeof (int), 1, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:105:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 105 | fread (&fighterkills, sizeof (int), 1, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp: In member function 'void Pilot::load()': -pilots.cpp:162:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 162 | fread (saveversion, sizeof (char), strlen (SAVEVERSION), in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:163:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 163 | fread (mission_state, sizeof (int), maxpilotdata, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:164:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 164 | fread (mission_time, sizeof (int), maxpilotdata, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:165:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 165 | fread (mission_fighterkills, sizeof (int), maxpilotdata, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:166:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 166 | fread (mission_shipkills, sizeof (int), maxpilotdata, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:167:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 167 | fread (mission_tankkills, sizeof (int), maxpilotdata, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:168:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 168 | fread (mission_otherkills, sizeof (int), maxpilotdata, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:169:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 169 | fread (mission_shield, sizeof (int), maxpilotdata, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:170:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 170 | fread (mission_points, sizeof (int), maxpilotdata, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:171:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 171 | fread (mission_score, sizeof (int), maxpilotdata, in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp: In member function 'void PilotList::load(char*)': -pilots.cpp:301:9: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 301 | fgets (buf, 16, in); - | ~~~~~~^~~~~~~~~~~~~ -pilots.cpp:303:9: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 303 | fgets (buf, 16, in); - | ~~~~~~^~~~~~~~~~~~~ -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: In member function 'void CLoad3DS::ReadVertices(CObject*, Chunk*)': -3ds.cpp:535:10: warning: 'void operator delete(void*, unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] - 535 | delete p; - | ^ -3ds.cpp:518:50: note: returned from 'void* operator new [](unsigned int)' - 518 | CVector3 *p = new CVector3 [object->numVertices]; - | ^ -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 -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o object.o object.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 ++) - | ~~~^~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~ -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 -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o conf.o conf.cpp -g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o mission.o mission.cpp -g++ -I. -I.. -I. -I.. -DDATADIR='"/usr/share/games"' -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -g -O2 -ffile-prefix-map=/build/reproducible-path/gl-117-1.3.2=. -fstack-protector-strong -Wformat -Werror=format-security -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 -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o common.o common.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; - | ^ -conf.cpp:151:8: note: 'res' declared here - 151 | char res [256]; - | ^~~ -conf.cpp: In function 'void save_config()': -conf.cpp:204:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 204 | char *confname = dirs->getSaves ("conf"); - | ^~~~~~ -conf.cpp:210:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 210 | display ("Could not save configuration", LOG_ERROR); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:214:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 214 | cf->writeText ("# Configuration\n"); - | ^~~~~~~~~~~~~~~~~~~ -conf.cpp:215:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 215 | cf->writeText ("# Some possible width x height values for fullscreen mode:"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:216:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 216 | cf->writeText ("# 640x480, 800x600, 1024x768, 1152x864, 1280x768, 1280x960, 1280x1024"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:217:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 217 | cf->write (" width", wantwidth); - | ^~~~~~~~ -conf.cpp:218:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 218 | cf->write (" height", wantheight); - | ^~~~~~~~~ -conf.cpp:219:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 219 | cf->writeText ("# Possible bits per pixel values (color depth):"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:220:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 220 | cf->writeText ("# 8 (not recommended), 16, 24, 32"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:221:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 221 | cf->write (" bpp", bpp); - | ^~~~~~ -conf.cpp:222:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 222 | cf->writeText ("# Try to go fullscreen = 1, game in window = 0"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:223:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 223 | cf->write (" fullscreen", wantfullscreen); - | ^~~~~~~~~~~~~ -conf.cpp:224:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 224 | cf->writeText ("# Quality: 0=software rendered up to 5=best (default=2)"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:225:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 225 | cf->write (" quality", quality); - | ^~~~~~~~~~ -conf.cpp:226:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 226 | cf->writeText ("# Far clipping plane: 20..100 (default=50)"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:227:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 227 | cf->write (" view", (int) view); - | ^~~~~~~ -conf.cpp:228:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 228 | cf->writeText ("# Dithering: 0=off, 1=on (default=1)"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:229:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 229 | cf->write (" dithering", dithering); - | ^~~~~~~~~~~~ -conf.cpp:230:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 230 | cf->writeText ("# Antialiasing: 0=off, 1=on (default=1)"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:231:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 231 | cf->write (" antialiasing", antialiasing); - | ^~~~~~~~~~~~~~~ -conf.cpp:232:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 232 | cf->writeText ("# Special effects: 0=off, 1=on (default=1)"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:233:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 233 | cf->write (" specialeffects", specialeffects); - | ^~~~~~~~~~~~~~~~~ -conf.cpp:234:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 234 | cf->writeText ("# Dynamic lighting: 0=off, 1=on (default=1)"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:235:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 235 | cf->write (" dynamiclighting", dynamiclighting); - | ^~~~~~~~~~~~~~~~~~ -conf.cpp:237:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 237 | cf->writeText ("# Sound volume: 0..100 (default=100) per cent"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:238:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 238 | cf->write (" sound", (int) volumesound); - | ^~~~~~~~ -conf.cpp:239:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 239 | cf->writeText ("# Music volume: 0..100 (default=100) per cent"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:240:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 240 | cf->write (" music", (int) volumemusic); - | ^~~~~~~~ -conf.cpp:242:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 242 | cf->writeText ("# Piloting controls: 0=keyboard, 1=mouse easy, 2=joystick"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:243:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 243 | cf->write (" controls", controls); - | ^~~~~~~~~~~ -conf.cpp:244:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 244 | cf->writeText ("# Difficulty level: 0=easy, 1=medium, 2=hard"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:245:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 245 | cf->write (" difficulty", difficulty); - | ^~~~~~~~~~~~~ -conf.cpp:246:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 246 | cf->writeText ("# Brightness: -50..50 per cent (default=0)"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:247:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 247 | cf->write (" brightness", brightness); - | ^~~~~~~~~~~~~ -conf.cpp:248:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 248 | cf->writeText ("# Physics: 0=action, 1=realistic"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:249:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 249 | cf->write (" physics", physics); - | ^~~~~~~~~~ -conf.cpp:250:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 250 | cf->writeText ("\n# This file is meant to give sensible startup settings"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:251:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 251 | cf->writeText ("# as graphic cards and drivers may differ some 100 times in speed"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:252:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 252 | cf->writeText ("\n# To get back to default settings, just delete this file!"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp: In function 'void save_saveconfig()': -conf.cpp:261:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 261 | char *confname = dirs->getSaves ("saveconf"); - | ^~~~~~~~~~ -conf.cpp:267:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 267 | display ("Could not save working graphics mode configuration", LOG_ERROR); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:271:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 271 | cf->writeText ("# Working backup configuration\n"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:272:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 272 | cf->writeText ("# Do not edit this file. It is only used to restore a broken configuration!"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:273:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 273 | cf->write (" width", width); - | ^~~~~~~~ -conf.cpp:274:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 274 | cf->write (" height", height); - | ^~~~~~~~~ -conf.cpp:275:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 275 | cf->write (" bpp", bpp); - | ^~~~~~ -conf.cpp:276:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 276 | cf->write (" fullscreen", fullscreen); - | ^~~~~~~~~~~~~ -conf.cpp: In function 'int load_config()': -conf.cpp:286:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 286 | char *confname = dirs->getSaves ("conf"); - | ^~~~~~ -conf.cpp:297:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 297 | str = cf->getString (ret, "width"); - | ^~~~~~~ -conf.cpp:306:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 306 | str = cf->getString (ret, "height"); - | ^~~~~~~~ -conf.cpp:315:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 315 | str = cf->getString (ret, "bpp"); - | ^~~~~ -conf.cpp:323:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 323 | str = cf->getString (ret, "fullscreen"); - | ^~~~~~~~~~~~ -conf.cpp:331:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 331 | str = cf->getString (ret, "quality"); - | ^~~~~~~~~ -conf.cpp:339:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 339 | str = cf->getString (ret, "view"); - | ^~~~~~ -conf.cpp:353:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 353 | str = cf->getString (ret, "dithering"); - | ^~~~~~~~~~~ -conf.cpp:357:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 357 | str = cf->getString (ret, "antialiasing"); - | ^~~~~~~~~~~~~~ -conf.cpp:361:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 361 | str = cf->getString (ret, "specialeffects"); - | ^~~~~~~~~~~~~~~~ -conf.cpp:365:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 365 | str = cf->getString (ret, "dynamiclighting"); - | ^~~~~~~~~~~~~~~~~ -conf.cpp:370:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 370 | str = cf->getString (ret, "sound"); - | ^~~~~~~ -conf.cpp:378:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 378 | str = cf->getString (ret, "music"); - | ^~~~~~~ -conf.cpp:387:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 387 | str = cf->getString (ret, "controls"); - | ^~~~~~~~~~ -conf.cpp:395:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 395 | str = cf->getString (ret, "difficulty"); - | ^~~~~~~~~~~~ -conf.cpp:403:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 403 | str = cf->getString (ret, "brightness"); - | ^~~~~~~~~~~~ -conf.cpp:411:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 411 | str = cf->getString (ret, "physics"); - | ^~~~~~~~~ -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"); - | ^~~~~~~~~~ -conf.cpp:439:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 439 | str = cf->getString (ret, "savewidth"); - | ^~~~~~~~~~~ -conf.cpp:447:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 447 | str = cf->getString (ret, "saveheight"); - | ^~~~~~~~~~~~ -conf.cpp:455:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 455 | str = cf->getString (ret, "savebpp"); - | ^~~~~~~~~ -conf.cpp:463:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 463 | str = cf->getString (ret, "savefullscreen"); - | ^~~~~~~~~~~~~~~~ -conf.cpp: In function 'void save_configInterface()': -conf.cpp:485:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 485 | char *confname = dirs->getSaves ("conf.interface"); - | ^~~~~~~~~~~~~~~~ -conf.cpp:491:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 491 | display ("Could not save interface configuration", LOG_ERROR); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:494:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 494 | cf->writeText ("# Interface configuration\n"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:495:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 495 | cf->writeText ("# ---------------------------------------------------------------------"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:496:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 496 | cf->writeText ("# Keyboard section"); - | ^~~~~~~~~~~~~~~~~~~~ -conf.cpp:497:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 497 | cf->writeText ("# ---------------------------------------------------------------------\n"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:498:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 498 | cf->writeText ("# Use ASCII-Code values or letters to remap"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:499:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 499 | cf->writeText ("# 8=BACKSPACE, 13=ENTER, 32=SPACE, 65=A...90=Z (NOT case sensitive)"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:500:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 500 | cf->write (" key_firecannon", (int) key_firecannon); - | ^~~~~~~~~~~~~~~~~ -conf.cpp:501:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 501 | cf->write (" key_firemissile", (int) key_firemissile); - | ^~~~~~~~~~~~~~~~~~ -conf.cpp:502:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 502 | cf->write (" key_dropflare", (int) key_dropflare); - | ^~~~~~~~~~~~~~~~ -conf.cpp:503:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 503 | cf->write (" key_dropchaff", (int) key_dropchaff); - | ^~~~~~~~~~~~~~~~ -conf.cpp:504:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 504 | cf->write (" key_selectmissile", (int) key_selectmissile); - | ^~~~~~~~~~~~~~~~~~~~ -conf.cpp:505:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 505 | cf->writeText ("# Target nearest enemy with priority for enemies in front of you"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:506:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 506 | cf->write (" key_targetnearest", (int) key_targetnearest); - | ^~~~~~~~~~~~~~~~~~~~ -conf.cpp:507:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 507 | cf->writeText ("# Target next enemy who has locked you"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:508:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 508 | cf->write (" key_targetlocking", (int) key_targetlocking); - | ^~~~~~~~~~~~~~~~~~~~ -conf.cpp:509:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 509 | cf->write (" key_targetnext", (int) key_targetnext); - | ^~~~~~~~~~~~~~~~~ -conf.cpp:510:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 510 | cf->write (" key_targetprevious", (int) key_targetprevious); - | ^~~~~~~~~~~~~~~~~~~~~ -conf.cpp:511:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 511 | cf->write (" key_incthrust", (int) key_thrustup); - | ^~~~~~~~~~~~~~~~ -conf.cpp:512:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 512 | cf->write (" key_decthrust", (int) key_thrustdown); - | ^~~~~~~~~~~~~~~~ -conf.cpp:513:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 513 | cf->writeText ("# All other piloting keys (CURSORS, PGUP/DN) are fixed."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:514:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 514 | cf->writeText ("\n# ---------------------------------------------------------------------"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:515:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 515 | cf->writeText ("# Mouse section"); - | ^~~~~~~~~~~~~~~~~ -conf.cpp:516:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 516 | cf->writeText ("# ---------------------------------------------------------------------\n"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:517:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 517 | cf->writeText ("# Sensitivity: 70...200%, 70%=full screen area, 200%=max sensitivity"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:518:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 518 | cf->write (" mouse_sensitivity", (int) mouse_sensitivity); - | ^~~~~~~~~~~~~~~~~~~~ -conf.cpp:519:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 519 | cf->writeText ("# Reverse y-axis: 0 (no) or 1 (yes)"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:520:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 520 | cf->write (" mouse_reverse", (int) mouse_reverse); - | ^~~~~~~~~~~~~~~~ -conf.cpp:521:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 521 | cf->writeText ("# Relative coordinates: 0 (no) or 1 (yes)"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:522:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 522 | cf->write (" mouse_relative", (int) mouse_relative); - | ^~~~~~~~~~~~~~~~~ -conf.cpp:523:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 523 | cf->writeText ("# Auto rudder on x-axis, dead area for rolls: 0...100"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:524:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 524 | cf->write (" mouse_autorudder", (int) mouse_autorudder); - | ^~~~~~~~~~~~~~~~~~~ -conf.cpp:525:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 525 | cf->writeText ("\n# Buttons: 1=Left, 2=Middle, 3=Right"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:530:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 530 | cf->write (" mouse_firecannon", mousebutton); - | ^~~~~~~~~~~~~~~~~~~ -conf.cpp:534:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 534 | cf->write (" mouse_firemissile", mousebutton); - | ^~~~~~~~~~~~~~~~~~~~ -conf.cpp:538:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 538 | cf->write (" mouse_selectmissile", mousebutton); - | ^~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:539:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 539 | cf->writeText ("\n# ---------------------------------------------------------------------"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:540:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 540 | cf->writeText ("# Joystick section"); - | ^~~~~~~~~~~~~~~~~~~~ -conf.cpp:541:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 541 | cf->writeText ("# ---------------------------------------------------------------------\n"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:542:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 542 | cf->writeText ("# The number of axes, buttons, and the coolie hat depends on your joystick!"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:543:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 543 | cf->writeText ("# Numbers start with A=first joystick, B=second joystick...J=10th joystick"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:544:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 544 | cf->writeText ("# followed by a number to identify axes, buttons, and coolie hat\n"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:545:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 545 | cf->writeText ("# Axis: 0...MAX-1 (maybe 0=aileron 1=elevator 2=throttle 3=rudder)"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:546:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 546 | writeJoystick (cf, " joystick_aileron", joystick_aileron); - | ^~~~~~~~~~~~~~~~~~~ -conf.cpp:547:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 547 | writeJoystick (cf, " joystick_elevator", joystick_elevator); - | ^~~~~~~~~~~~~~~~~~~~ -conf.cpp:548:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 548 | writeJoystick (cf, " joystick_throttle", joystick_throttle); - | ^~~~~~~~~~~~~~~~~~~~ -conf.cpp:549:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 549 | writeJoystick (cf, " joystick_rudder", joystick_rudder); - | ^~~~~~~~~~~~~~~~~~ -conf.cpp:550:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 550 | writeJoystick (cf, " joystick_view_x", joystick_view_x); - | ^~~~~~~~~~~~~~~~~~ -conf.cpp:551:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 551 | writeJoystick (cf, " joystick_view_y", joystick_view_y); - | ^~~~~~~~~~~~~~~~~~ -conf.cpp:552:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 552 | cf->writeText ("\n# Buttons: 0...MAX-1, Coolie: 100=Right, 101=Up, 102=Left, 103=Down"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:553:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 553 | writeJoystick (cf, " joystick_firecannon", joystick_firecannon); - | ^~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:554:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 554 | writeJoystick (cf, " joystick_firemissile", joystick_firemissile); - | ^~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:555:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 555 | cf->writeText ("# Dropping chaff AND flare may be preferred"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:556:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 556 | writeJoystick (cf, " joystick_dropflare", joystick_dropflare); - | ^~~~~~~~~~~~~~~~~~~~~ -conf.cpp:557:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 557 | writeJoystick (cf, " joystick_dropchaff", joystick_dropchaff); - | ^~~~~~~~~~~~~~~~~~~~~ -conf.cpp:558:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 558 | writeJoystick (cf, " joystick_selectmissile", joystick_selectmissile); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:559:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 559 | writeJoystick (cf, " joystick_targetnearest", joystick_targetnearest); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:560:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 560 | writeJoystick (cf, " joystick_targetlocking", joystick_targetlocking); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:561:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 561 | writeJoystick (cf, " joystick_targetnext", joystick_targetnext); - | ^~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:562:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 562 | writeJoystick (cf, " joystick_targetprevious", joystick_targetprevious); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:563:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 563 | writeJoystick (cf, " joystick_incthrust", joystick_thrustup); - | ^~~~~~~~~~~~~~~~~~~~~ -conf.cpp:564:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 564 | writeJoystick (cf, " joystick_decthrust", joystick_thrustdown); - | ^~~~~~~~~~~~~~~~~~~~~ -conf.cpp:565:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 565 | cf->writeText ("\n# This file is meant to give sensible custom interface settings"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:566:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 566 | cf->writeText ("\n# To get back to default settings, just delete this file!"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp: In function 'int load_configInterface()': -conf.cpp:605:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 605 | char *confname = dirs->getSaves ("conf.interface"); - | ^~~~~~~~~~~~~~~~ -conf.cpp:610:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 610 | str = cf->getString (ret, "key_firecannon"); - | ^~~~~~~~~~~~~~~~ -conf.cpp:613:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 613 | str = cf->getString (ret, "key_firemissile"); - | ^~~~~~~~~~~~~~~~~ -conf.cpp:616:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 616 | str = cf->getString (ret, "key_dropchaff"); - | ^~~~~~~~~~~~~~~ -conf.cpp:619:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 619 | str = cf->getString (ret, "key_dropflare"); - | ^~~~~~~~~~~~~~~ -conf.cpp:622:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 622 | str = cf->getString (ret, "key_selectmissile"); - | ^~~~~~~~~~~~~~~~~~~ -conf.cpp:625:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 625 | str = cf->getString (ret, "key_targetnearest"); - | ^~~~~~~~~~~~~~~~~~~ -conf.cpp:628:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 628 | str = cf->getString (ret, "key_targetlocking"); - | ^~~~~~~~~~~~~~~~~~~ -conf.cpp:631:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 631 | str = cf->getString (ret, "key_targetnext"); - | ^~~~~~~~~~~~~~~~ -conf.cpp:634:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 634 | str = cf->getString (ret, "key_targetprevious"); - | ^~~~~~~~~~~~~~~~~~~~ -conf.cpp:637:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 637 | str = cf->getString (ret, "key_incthrust"); - | ^~~~~~~~~~~~~~~ -conf.cpp:640:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 640 | str = cf->getString (ret, "key_decthrust"); - | ^~~~~~~~~~~~~~~ -conf.cpp:643:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 643 | str = cf->getString (ret, "mouse_sensitivity"); - | ^~~~~~~~~~~~~~~~~~~ -conf.cpp:651:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 651 | str = cf->getString (ret, "mouse_reverse"); - | ^~~~~~~~~~~~~~~ -conf.cpp:657:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 657 | str = cf->getString (ret, "mouse_relative"); - | ^~~~~~~~~~~~~~~~ -conf.cpp:663:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 663 | str = cf->getString (ret, "mouse_autorudder"); - | ^~~~~~~~~~~~~~~~~~ -conf.cpp:672:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 672 | str = cf->getString (ret, "mouse_firecannon"); - | ^~~~~~~~~~~~~~~~~~ -conf.cpp:681:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 681 | str = cf->getString (ret, "mouse_firemissile"); - | ^~~~~~~~~~~~~~~~~~~ -conf.cpp:690:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 690 | str = cf->getString (ret, "mouse_selectmissile"); - | ^~~~~~~~~~~~~~~~~~~~~ -conf.cpp:699:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 699 | str = cf->getString (ret, "joystick_aileron"); - | ^~~~~~~~~~~~~~~~~~ -conf.cpp:702:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 702 | str = cf->getString (ret, "joystick_elevator"); - | ^~~~~~~~~~~~~~~~~~~ -conf.cpp:705:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 705 | str = cf->getString (ret, "joystick_throttle"); - | ^~~~~~~~~~~~~~~~~~~ -conf.cpp:708:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 708 | str = cf->getString (ret, "joystick_rudder"); - | ^~~~~~~~~~~~~~~~~ -conf.cpp:711:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 711 | str = cf->getString (ret, "joystick_view_x"); - | ^~~~~~~~~~~~~~~~~ -conf.cpp:714:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 714 | str = cf->getString (ret, "joystick_view_y"); - | ^~~~~~~~~~~~~~~~~ -conf.cpp:717:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 717 | str = cf->getString (ret, "joystick_firecannon"); - | ^~~~~~~~~~~~~~~~~~~~~ -conf.cpp:720:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 720 | str = cf->getString (ret, "joystick_firemissile"); - | ^~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:723:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 723 | str = cf->getString (ret, "joystick_dropchaff"); - | ^~~~~~~~~~~~~~~~~~~~ -conf.cpp:726:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 726 | str = cf->getString (ret, "joystick_dropflare"); - | ^~~~~~~~~~~~~~~~~~~~ -conf.cpp:729:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 729 | str = cf->getString (ret, "joystick_selectmissile"); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:732:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 732 | str = cf->getString (ret, "joystick_targetnearest"); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:735:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 735 | str = cf->getString (ret, "joystick_targetlocking"); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:738:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 738 | str = cf->getString (ret, "joystick_targetnext"); - | ^~~~~~~~~~~~~~~~~~~~~ -conf.cpp:741:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 741 | str = cf->getString (ret, "joystick_targetprevious"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:744:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 744 | str = cf->getString (ret, "joystick_incthrust"); - | ^~~~~~~~~~~~~~~~~~~~ -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 -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o menu.o menu.cpp +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -Wformat -Werror=format-security -I/usr/include -I/usr/include -c -o fileloader.o fileloader.cpp +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) + | ^ +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 + | ^~~~~~~ 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) @@ -3929,53 +3916,15 @@ common.cpp:62:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 62 | display ("Out of memory", LOG_FATAL); | ^~~~~~~~~~~~~~~ -In file included from effects.h:28, - from aiobject.h:29, - from mission.h:28, - from mission.cpp:28: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ 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 -Wformat -Werror=format-security -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 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); - | ^~~~~~ -model.cpp: In member function 'void CSphere::init(float, int, float, float, float, int)': -model.cpp:1398:89: warning: 'p[1]' may be used uninitialized [-Wmaybe-uninitialized] - 1398 | co->quad [co->numQuads ++].setVertices (&co->vertex [p [0]], &co->vertex [p [1]], &co->vertex [p [2]], &co->vertex [p [3]]); - | ~~~~^ -model.cpp:1358:7: note: 'p[1]' was declared here - 1358 | int p [4]; - | ^ -model.cpp:1398:110: warning: 'p[2]' may be used uninitialized [-Wmaybe-uninitialized] - 1398 | co->quad [co->numQuads ++].setVertices (&co->vertex [p [0]], &co->vertex [p [1]], &co->vertex [p [2]], &co->vertex [p [3]]); - | ~~~~^ -model.cpp:1358:7: note: 'p[2]' was declared here - 1358 | int p [4]; - | ^ -cockpit.cpp: In member function 'void Cockpit::drawHeading()': -cockpit.cpp:463:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 463 | font1->drawText (xf - 0.5, yf - 2.0, zf, "S", &color); - | ^~~ -cockpit.cpp:465:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 465 | font1->drawText (xf - 0.5, yf - 2.0, zf, "E", &color); - | ^~~ -cockpit.cpp:467:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 467 | font1->drawText (xf - 0.5, yf - 2.0, zf, "N", &color); - | ^~~ -cockpit.cpp:469:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 469 | font1->drawText (xf - 0.5, yf - 2.0, zf, "W", &color); - | ^~~ +main.cpp: At global scope: +main.cpp:5153:13: warning: 'void myIdleFunc()' defined but not used [-Wunused-function] + 5153 | static void myIdleFunc () + | ^~~~~~~~~~ +objload.cpp: In constructor 'CFile::CFile(char*)': +objload.cpp:48:11: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 48 | fread (&data [z], 4096, sizeof (char), in); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mission.cpp: In member function 'virtual void MissionTutorial1::draw()': mission.cpp:385:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 385 | font1->drawTextCentered (0, 7, -2.5, "LEAVE THE JOYSTICK CENTERED.", &textcolor); @@ -4088,6 +4037,16 @@ mission.cpp:475:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 475 | font1->drawTextCentered (0, 7, -2.5, "YOUR JOYSTICK HAS ALSO A THROTTLE", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from effects.h:28, + from aiobject.h:29, + from main.h:41, + from cockpit.cpp:29: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ mission.cpp:476:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 476 | font1->drawTextCentered (0, 6, -2.5, "TO SPEEDUP OR DECELERATE.", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -4118,6 +4077,10 @@ mission.cpp:497:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 497 | font1->drawTextCentered (0, 6, -2.5, "RIGHT MOUSE BUTTON: FIRE MISSILE", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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; + | ^~~ mission.cpp:498:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 498 | font1->drawTextCentered (0, 5, -2.5, "BUT YOU SHOULD REALLY PREFER THE KEYBOARD", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -4179,6 +4142,15 @@ mission.cpp:663:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 663 | font1->drawTextCentered (0, 7, -2.5, "THEN TRY A DF MISSILE BUT CAREFUL:", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 + | ^~~~~~~ mission.cpp:664:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 664 | font1->drawTextCentered (0, 6, -2.5, "IT IS QUITE 'DUMB' AND WILL FLY STRAIGHT AHEAD.", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -4213,6 +4185,19 @@ mission.cpp:737:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 737 | font1->drawTextCentered (0, 6, -2.5, "CHANGE THE THRUST TO GAIN OR LOSE SPEED", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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:741:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 741 | font1->drawTextCentered (0, 7, -2.5, "DRAG IS THE RETARDING FORCE THAT LIMITS THE AIRCRAFT'S", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -4234,6 +4219,13 @@ mission.cpp:753:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 753 | font1->drawTextCentered (0, 7, -2.5, "THE LIFT FORCE DEPENDS ON THE SPEED:", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 + | ^~~~~~~ mission.cpp:754:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 754 | font1->drawTextCentered (0, 6, -2.5, "LOW SPEED WILL CAUSE THE AIRPLANE TO DIVE,", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -4313,9 +4305,19 @@ mission.cpp:939:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 939 | font1->drawTextCentered (0, 6, -2.5, "THE RECTANGULAR LOCK AROUND THE ENEMY", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~ mission.cpp:940:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 940 | font1->drawTextCentered (0, 5, -2.5, "APPEARS YELLOW", &textcolor); | ^~~~~~~~~~~~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ mission.cpp:944:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 944 | font1->drawTextCentered (0, 7, -2.5, "CHECK THE CHAFF/FLARE DISPLAYS.", &textcolor); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -4374,29 +4376,6 @@ mission.cpp:4394:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4394 | font1->drawTextCentered (0, 0, -1, "DOGFIGHT"); | ^~~~~~~~~~ -model.cpp: In member function 'void CSpherePart::init(float, int, float)': -model.cpp:1532:100: warning: 'p[1]' may be used uninitialized [-Wmaybe-uninitialized] - 1532 | else co->triangle [co->numTriangles ++].setVertices (&co->vertex [p [0]], &co->vertex [p [1]], &co->vertex [p [3]]); - | ~~~~^ -model.cpp:1501:7: note: 'p[1]' was declared here - 1501 | int p [4]; - | ^ -model.cpp:1536:108: warning: 'p[2]' may be used uninitialized [-Wmaybe-uninitialized] - 1536 | co->quad [co->numQuads ++].setVertices (&co->vertex [p [0]], &co->vertex [p [1]], &co->vertex [p [2]], &co->vertex [p [3]]); - | ~~~~^ -model.cpp:1501:7: note: 'p[2]' was declared here - 1501 | int p [4]; - | ^ -In file included from effects.h:28, - from aiobject.h:29, - from main.h:41, - from menu.cpp:27: -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, @@ -4407,6 +4386,13 @@ effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' 164 | void drawGL (CVector3 *tl, CVector3 *textl); | ^~~~~~ +main.cpp: In function 'void proceedFire()': +main.cpp:4762:17: warning: iteration 256 invokes undefined behavior [-Waggressive-loop-optimizations] + 4762 | int h = heat [yind] [i2]; + | ^ +main.cpp:4757:21: note: within this loop + 4757 | for (i2 = 0; i2 < maxfx + 1; i2 ++) + | ~~~^~~~~~~~~~~ maploader.cpp: In member function 'void MapLoader::readMapFile()': maploader.cpp:57:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 57 | if (!file_open (dirs->getMaps ("maps.txt"))) @@ -4537,10 +4523,34 @@ maploader.cpp:741:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 741 | error ("Could not open map file"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~ maploader.cpp: In member function 'virtual void MissionCustom::start()': maploader.cpp:871:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 871 | display ("Map has a valid bpp entry but seems to be corrupt", LOG_FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +3ds.cpp: In member function 'void CLoad3DS::ReadUVCoordinates(CObject*, Chunk*)': +3ds.cpp:506:10: warning: 'void operator delete(void*, 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 [](unsigned int)' + 499 | CVector2 *p = new CVector2 [object->numTexVertex]; + | ^ +3ds.cpp: In member function 'void CLoad3DS::ReadVertices(CObject*, Chunk*)': +3ds.cpp:535:10: warning: 'void operator delete(void*, unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] + 535 | delete p; + | ^ +3ds.cpp:518:50: note: returned from 'void* operator new [](unsigned int)' + 518 | CVector3 *p = new CVector3 [object->numVertices]; + | ^ maploader.cpp: In member function 'int MissionCustom::parseMapData()': maploader.cpp:251:42: warning: '%s' directive writing up to 1023 bytes into a region of size 1006 [-Wformat-overflow=] 251 | sprintf (buf, "Invalid attribute %s", attr); @@ -4603,6 +4613,19 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ +model.cpp: In member function 'void CSphere::init(float, int, float, float, float, int)': +model.cpp:1398:89: warning: 'p[1]' may be used uninitialized [-Wmaybe-uninitialized] + 1398 | co->quad [co->numQuads ++].setVertices (&co->vertex [p [0]], &co->vertex [p [1]], &co->vertex [p [2]], &co->vertex [p [3]]); + | ~~~~^ +model.cpp:1358:7: note: 'p[1]' was declared here + 1358 | int p [4]; + | ^ +model.cpp:1398:110: warning: 'p[2]' may be used uninitialized [-Wmaybe-uninitialized] + 1398 | co->quad [co->numQuads ++].setVertices (&co->vertex [p [0]], &co->vertex [p [1]], &co->vertex [p [2]], &co->vertex [p [3]]); + | ~~~~^ +model.cpp:1358:7: note: 'p[2]' was declared here + 1358 | int p [4]; + | ^ maploader.cpp: In member function 'int MissionCustom::parseObjectData()': maploader.cpp:418:42: warning: '%s' directive writing up to 1023 bytes into a region of size 1006 [-Wformat-overflow=] 418 | sprintf (buf, "Invalid attribute %s", attr); @@ -4616,6 +4639,19 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ +model.cpp: In member function 'void CSpherePart::init(float, int, float)': +model.cpp:1532:100: warning: 'p[1]' may be used uninitialized [-Wmaybe-uninitialized] + 1532 | else co->triangle [co->numTriangles ++].setVertices (&co->vertex [p [0]], &co->vertex [p [1]], &co->vertex [p [3]]); + | ~~~~^ +model.cpp:1501:7: note: 'p[1]' was declared here + 1501 | int p [4]; + | ^ +model.cpp:1536:108: warning: 'p[2]' may be used uninitialized [-Wmaybe-uninitialized] + 1536 | co->quad [co->numQuads ++].setVertices (&co->vertex [p [0]], &co->vertex [p [1]], &co->vertex [p [2]], &co->vertex [p [3]]); + | ~~~~^ +model.cpp:1501:7: note: 'p[2]' was declared here + 1501 | int p [4]; + | ^ maploader.cpp: In member function 'int MissionCustom::parseRelCoords()': maploader.cpp:600:42: warning: '%s' directive writing up to 1023 bytes into a region of size 1006 [-Wformat-overflow=] 600 | sprintf (buf, "Invalid attribute %s", attr); @@ -4713,7 +4749,7 @@ make[2]: Leaving directory '/build/reproducible-path/gl-117-1.3.2' make[1]: Leaving directory '/build/reproducible-path/gl-117-1.3.2' dh_auto_test - make -j11 check "TESTSUITEFLAGS=-j11 --verbose" VERBOSE=1 + make -j21 check "TESTSUITEFLAGS=-j21 --verbose" VERBOSE=1 make[1]: Entering directory '/build/reproducible-path/gl-117-1.3.2' Making check in src make[2]: Entering directory '/build/reproducible-path/gl-117-1.3.2/src' @@ -4728,7 +4764,7 @@ dh_testroot dh_prep dh_auto_install - make -j11 install DESTDIR=/build/reproducible-path/gl-117-1.3.2/debian/tmp AM_UPDATE_INFO_DIR=no + make -j21 install DESTDIR=/build/reproducible-path/gl-117-1.3.2/debian/tmp AM_UPDATE_INFO_DIR=no make[1]: Entering directory '/build/reproducible-path/gl-117-1.3.2' Making install in src make[2]: Entering directory '/build/reproducible-path/gl-117-1.3.2/src' @@ -4746,10 +4782,10 @@ /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 music/ambient.s3m music/dark.s3m music/electro.s3m music/loser.s3m music/softtec.s3m music/standby.s3m music/stars.s3m music/winner.s3m '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/music' /usr/bin/install -c -m 644 sounds/beep1.wav sounds/beep2.wav sounds/cannon1.wav sounds/chaff1.wav sounds/click1.wav sounds/explode1.wav sounds/hit1.wav sounds/missile1.wav sounds/plane1.wav sounds/thunder1.wav '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/sounds' - /usr/bin/install -c -m 644 models/aster1.3ds models/barrier.3ds models/base1.3ds models/cannon1.3ds models/cannon1b.3ds models/cannon2.3ds models/cannon2b.3ds models/chaff1.3ds models/container1.3ds models/depot1.3ds models/egg.3ds models/flak2.3ds models/flarak1.3ds models/flare1.3ds models/gl-117.3ds models/gl-14.3ds models/gl-14b.3ds models/gl-14c.3ds models/gl-14d.3ds models/gl-15.3ds models/gl-16.3ds models/gl-21.3ds models/gl-21b.3ds models/gl-29.3ds models/gl-50.3ds models/hall1.3ds models/hall2.3ds models/house1.3ds models/mine1.3ds models/missile1.3ds models/missile2.3ds models/missile3.3ds models/missile4.3ds models/missile5.3ds models/missile6.3ds models/missile7.3ds models/missile8.3ds models/oilrig.3ds models/pickup1.3ds models/pickup2.3ds '/build/reproducible-path/gl-117-1.3.2/debian/tmp/usr/share/games/gl-117/models' /usr/bin/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/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 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' @@ -4773,8 +4809,8 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'gl-117' in '../gl-117_1.3.2-4_i386.deb'. dpkg-deb: building package 'gl-117-dbgsym' in '../gl-117-dbgsym_1.3.2-4_i386.deb'. +dpkg-deb: building package 'gl-117' in '../gl-117_1.3.2-4_i386.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_i386.buildinfo dpkg-genchanges --build=binary -O../gl-117_1.3.2-4_i386.changes @@ -4783,12 +4819,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/128112/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/128112/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/29881 and its subdirectories -I: Current time: Fri Nov 15 12:23:27 -12 2024 -I: pbuilder-time-stamp: 1731716607 +I: removing directory /srv/workspace/pbuilder/128112 and its subdirectories +I: Current time: Fri Dec 19 20:47:57 +14 2025 +I: pbuilder-time-stamp: 1766126877