Diff of the two buildlogs: -- --- b1/build.log 2025-08-30 20:30:27.018920137 +0000 +++ b2/build.log 2025-08-30 20:32:05.635040011 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Oct 2 14:48:55 -12 2026 -I: pbuilder-time-stamp: 1790995735 +I: Current time: Sun Aug 31 10:30:28 +14 2025 +I: pbuilder-time-stamp: 1756585828 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/forky-reproducible-base.tgz] I: copying local configuration @@ -24,53 +24,85 @@ dpkg-source: info: applying hardening.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/379746/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/4150168/tmp/hooks/D01_modify_environment starting +debug: Running on ionos1-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Aug 30 20:30 /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/4150168/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/4150168/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' - DISTRIBUTION='forky' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=40 ' + DIRSTACK=() + DISTRIBUTION=forky + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='22906c64b9404e879cc1ef1d66529d20' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='379746' - PS1='# ' - PS2='> ' + INVOCATION_ID=a1596294603e4706891c23f8bc850357 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=4150168 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.QjLvlyQ9/pbuilderrc_FgXL --distribution forky --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.QjLvlyQ9/b1 --logfile b1/build.log gl-117_1.3.2-5.dsc' - SUDO_GID='111' - SUDO_HOME='/var/lib/jenkins' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.QjLvlyQ9/pbuilderrc_sPST --distribution forky --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.QjLvlyQ9/b2 --logfile b2/build.log gl-117_1.3.2-5.dsc' + SUDO_GID=110 + SUDO_HOME=/var/lib/jenkins + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos15-amd64 6.12.41+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.41-1 (2025-08-12) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.12.41+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.41-1 (2025-08-12) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 10 2025 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/379746/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 10 12:30 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/4150168/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -347,7 +379,7 @@ Get: 229 http://deb.debian.org/debian forky/main amd64 libsdl1.2-dev amd64 1.2.68-3 [64.4 kB] Get: 230 http://deb.debian.org/debian forky/main amd64 libvorbis-dev amd64 1.3.7-3 [325 kB] Get: 231 http://deb.debian.org/debian forky/main amd64 libsdl-mixer1.2-dev amd64 1.2.12-19+b1 [97.9 kB] -Fetched 108 MB in 23s (4653 kB/s) +Fetched 108 MB in 8s (13.0 MB/s) Preconfiguring packages ... Selecting previously unselected package libexpat1:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19897 files and directories currently installed.) @@ -1095,8 +1127,8 @@ Setting up tzdata (2025b-5) ... Current default time zone: 'Etc/UTC' -Local time is now: Sat Oct 3 02:52:27 UTC 2026. -Universal Time is now: Sat Oct 3 02:52:27 UTC 2026. +Local time is now: Sat Aug 30 20:31:39 UTC 2025. +Universal Time is now: Sat Aug 30 20:31:39 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libxcb-present0:amd64 (1.17.0-2+b1) ... @@ -1309,7 +1341,11 @@ fakeroot is already the newest version (1.37.1.2-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/reproducible-path/gl-117-1.3.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../gl-117_1.3.2-5_source.changes +I: user script /srv/workspace/pbuilder/4150168/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for forky +I: user script /srv/workspace/pbuilder/4150168/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/gl-117-1.3.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../gl-117_1.3.2-5_source.changes dpkg-buildpackage: info: source package gl-117 dpkg-buildpackage: info: source version 1.3.2-5 dpkg-buildpackage: info: source distribution unstable @@ -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 -j42 + make -j40 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' @@ -1467,10 +1503,6 @@ loader_tga.cpp:42:1: warning: multi-line comment [-Wcomment] 42 | //#define WRITE_RGBA(p, r, g, b, a) \ | ^ -vertexarray.cpp: In member function 'void VertexArray::reallocData()': -vertexarray.cpp:160:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 160 | display ("Out of memory", LOG_FATAL); - | ^~~~~~~~~~~~~~~ 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); @@ -1523,37 +1555,19 @@ audio.cpp:318:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 318 | wavebeep1 = new WaveFile (dirs->getSounds ("beep1.wav")); | ^~~~~~~~~~~ +loader_tga.cpp: In function 'unsigned char* tga_load(char*, int*, int*)': +loader_tga.cpp:198:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 198 | display ("Out of memory", LOG_FATAL); + | ^~~~~~~~~~~~~~~ audio.cpp:319:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 319 | wavechaff1 = new WaveFile (dirs->getSounds ("chaff1.wav")); | ^~~~~~~~~~~~ audio.cpp:320:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 320 | wavebeep2 = new WaveFile (dirs->getSounds ("beep2.wav")); | ^~~~~~~~~~~ -audio.cpp: In member function 'void SoundSystem::loadMusic(int)': -audio.cpp:442:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 442 | music1 = Mix_LoadMUS (dirs->getMusic ("dark.s3m")); - | ^~~~~~~~~~ -audio.cpp:445:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 445 | music1 = Mix_LoadMUS (dirs->getMusic ("winner.s3m")); - | ^~~~~~~~~~~~ -audio.cpp:448:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 448 | music1 = Mix_LoadMUS (dirs->getMusic ("loser.s3m")); - | ^~~~~~~~~~~ -audio.cpp:451:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 451 | music1 = Mix_LoadMUS (dirs->getMusic ("standby.s3m")); - | ^~~~~~~~~~~~~ -audio.cpp:454:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 454 | music1 = Mix_LoadMUS (dirs->getMusic ("electro.s3m")); - | ^~~~~~~~~~~~~ -audio.cpp:457:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 457 | music1 = Mix_LoadMUS (dirs->getMusic ("stars.s3m")); - | ^~~~~~~~~~~ -audio.cpp:460:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 460 | music1 = Mix_LoadMUS (dirs->getMusic ("softtec.s3m")); - | ^~~~~~~~~~~~~ -audio.cpp:463:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 463 | music1 = Mix_LoadMUS (dirs->getMusic ("ambient.s3m")); - | ^~~~~~~~~~~~~ +loader_tga.cpp:217:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 217 | display ("Out of memory", LOG_FATAL); + | ^~~~~~~~~~~~~~~ conf.cpp: 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; @@ -1589,6 +1603,10 @@ 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"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +loader_tga.cpp: In function 'DATA32* flip(DATA32*, int, int)': +loader_tga.cpp:438:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 438 | display ("Out of memory", LOG_FATAL); + | ^~~~~~~~~~~~~~~ conf.cpp:221:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 221 | cf->write (" bpp", bpp); | ^~~~~~ @@ -1598,21 +1616,46 @@ conf.cpp:223:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 223 | cf->write (" fullscreen", wantfullscreen); | ^~~~~~~~~~~~~ +audio.cpp: In member function 'void SoundSystem::loadMusic(int)': +audio.cpp:442:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 442 | music1 = Mix_LoadMUS (dirs->getMusic ("dark.s3m")); + | ^~~~~~~~~~ conf.cpp: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)"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +audio.cpp:445:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 445 | music1 = Mix_LoadMUS (dirs->getMusic ("winner.s3m")); + | ^~~~~~~~~~~~ conf.cpp:225:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 225 | cf->write (" quality", quality); | ^~~~~~~~~~ +audio.cpp:448:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 448 | music1 = Mix_LoadMUS (dirs->getMusic ("loser.s3m")); + | ^~~~~~~~~~~ conf.cpp:226:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 226 | cf->writeText ("# Far clipping plane: 20..100 (default=50)"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +audio.cpp:451:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 451 | music1 = Mix_LoadMUS (dirs->getMusic ("standby.s3m")); + | ^~~~~~~~~~~~~ +audio.cpp:454:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 454 | music1 = Mix_LoadMUS (dirs->getMusic ("electro.s3m")); + | ^~~~~~~~~~~~~ conf.cpp:227:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 227 | cf->write (" view", (int) view); | ^~~~~~~ +audio.cpp:457:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 457 | music1 = Mix_LoadMUS (dirs->getMusic ("stars.s3m")); + | ^~~~~~~~~~~ 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)"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +audio.cpp:460:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 460 | music1 = Mix_LoadMUS (dirs->getMusic ("softtec.s3m")); + | ^~~~~~~~~~~~~ +audio.cpp:463:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 463 | music1 = Mix_LoadMUS (dirs->getMusic ("ambient.s3m")); + | ^~~~~~~~~~~~~ conf.cpp:229:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 229 | cf->write (" dithering", dithering); | ^~~~~~~~~~~~ @@ -1711,19 +1754,9 @@ conf.cpp:297:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 297 | str = cf->getString (ret, "width"); | ^~~~~~~ -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); - | ^~~~~~ conf.cpp:306:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 306 | str = cf->getString (ret, "height"); | ^~~~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ conf.cpp:315:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 315 | str = cf->getString (ret, "bpp"); | ^~~~~ @@ -1748,6 +1781,16 @@ conf.cpp:365:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 365 | str = cf->getString (ret, "dynamiclighting"); | ^~~~~~~~~~~~~~~~~ +In file included from effects.h:28, + from aiobject.h:29, + from mission.h:28, + from pilots.cpp:31: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ conf.cpp:370:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 370 | str = cf->getString (ret, "sound"); | ^~~~~~~ @@ -1864,30 +1907,86 @@ conf.cpp:518:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 518 | cf->write (" mouse_sensitivity", (int) mouse_sensitivity); | ^~~~~~~~~~~~~~~~~~~~ +pilots.cpp: In member function 'char* TeamPilot::getRank()': +pilots.cpp:55:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 55 | if (ranking == 0) return "AIRMAN BASIC"; + | ^~~~~~~~~~~~~~ conf.cpp: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)"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:56:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 56 | else if (ranking == 1) return "AIRMAN"; + | ^~~~~~~~ +pilots.cpp:57:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 57 | else if (ranking == 2) return "AIRMAN 1ST CLASS"; + | ^~~~~~~~~~~~~~~~~~ conf.cpp:520:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 520 | cf->write (" mouse_reverse", (int) mouse_reverse); | ^~~~~~~~~~~~~~~~ +pilots.cpp:58:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 58 | else if (ranking == 3) return "2ND LIEUTNANT"; + | ^~~~~~~~~~~~~~~ +pilots.cpp:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 59 | else if (ranking == 4) return "1ST LIEUTNANT"; + | ^~~~~~~~~~~~~~~ conf.cpp:521:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 521 | cf->writeText ("# Relative coordinates: 0 (no) or 1 (yes)"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:60:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 60 | else if (ranking == 5) return "CAPTAIN"; + | ^~~~~~~~~ +pilots.cpp:61:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 61 | else if (ranking == 6) return "MAJOR"; + | ^~~~~~~ conf.cpp:522:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 522 | cf->write (" mouse_relative", (int) mouse_relative); | ^~~~~~~~~~~~~~~~~ +pilots.cpp:62:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 62 | else if (ranking == 7) return "COLONEL"; + | ^~~~~~~~~ +pilots.cpp:63:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 63 | else return "GENERAL"; + | ^~~~~~~~~ conf.cpp: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); | ^~~~~~~~~~~~~~~~~~~ +pilots.cpp: In member function 'char* TeamPilot::getShortRank()': +pilots.cpp:68:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 68 | if (ranking == 0) return "AB"; + | ^~~~ conf.cpp: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"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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"; + | ^~~~~~~~ conf.cpp:530:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 530 | cf->write (" mouse_firecannon", mousebutton); | ^~~~~~~~~~~~~~~~~~~ +pilots.cpp:73:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 73 | else if (ranking == 5) return "CAPT"; + | ^~~~~~ +pilots.cpp:74:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 74 | else if (ranking == 6) return "MAJ"; + | ^~~~~ +pilots.cpp:75:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 75 | else if (ranking == 7) return "COL"; + | ^~~~~ +pilots.cpp:76:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 76 | else return "GEN"; + | ^~~~~ conf.cpp:534:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 534 | cf->write (" mouse_firemissile", mousebutton); | ^~~~~~~~~~~~~~~~~~~~ @@ -1939,49 +2038,90 @@ conf.cpp:553:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 553 | writeJoystick (cf, " joystick_firecannon", joystick_firecannon); | ^~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp: In member function 'void Pilot::load()': +pilots.cpp:140:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 140 | tp [0] = new TeamPilot (5, "PRIMETIME", 200, 100, 150, 20); + | ^~~~~~~~~~~ conf.cpp:554:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 554 | writeJoystick (cf, " joystick_firemissile", joystick_firemissile); | ^~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:141:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 141 | tp [1] = new TeamPilot (1, "HEPTARGON", 80, 220, 300, 1); + | ^~~~~~~~~~~ conf.cpp:555:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 555 | cf->writeText ("# Dropping chaff AND flare may be preferred"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:142:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 142 | tp [2] = new TeamPilot (2, "KARA", 180, 160, 50, 4); + | ^~~~~~ conf.cpp: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); | ^~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:143:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 143 | tp [3] = new TeamPilot (6, "SHARK", 70, 90, 120, 22); + | ^~~~~~~ conf.cpp:558:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 558 | writeJoystick (cf, " joystick_selectmissile", joystick_selectmissile); | ^~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~ conf.cpp:559:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 559 | writeJoystick (cf, " joystick_targetnearest", joystick_targetnearest); | ^~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:145:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 145 | tp [5] = new TeamPilot (2, "DR DOOM", 320, 210, 20, 2); + | ^~~~~~~~~ conf.cpp:560:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 560 | writeJoystick (cf, " joystick_targetlocking", joystick_targetlocking); | ^~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:146:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 146 | tp [6] = new TeamPilot (4, "SHADOW", 130, 200, 320, 15); + | ^~~~~~~~ conf.cpp:561:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 561 | writeJoystick (cf, " joystick_targetnext", joystick_targetnext); | ^~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:147:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 147 | tp [7] = new TeamPilot (7, "MATRIX", 40, 80, 180, 25); + | ^~~~~~~~ conf.cpp:562:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 562 | writeJoystick (cf, " joystick_targetprevious", joystick_targetprevious); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:148:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 148 | tp [8] = new TeamPilot (1, "FIREBIRD", 250, 140, 100, 1); + | ^~~~~~~~~~ conf.cpp:563:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 563 | writeJoystick (cf, " joystick_incthrust", joystick_thrustup); | ^~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:149:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 149 | tp [9] = new TeamPilot (4, "THUNDER", 150, 170, 60, 18); + | ^~~~~~~~~ conf.cpp:564:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 564 | writeJoystick (cf, " joystick_decthrust", joystick_thrustdown); | ^~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:150:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 150 | tp [10] = new TeamPilot (0, "PLAYER", 0, 0, 0, 0); + | ^~~~~~~~ conf.cpp:565:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 565 | cf->writeText ("\n# This file is meant to give sensible custom interface settings"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ conf.cpp:566:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 566 | cf->writeText ("\n# To get back to default settings, just delete this file!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pilots.cpp:158:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 158 | display ("Could not load pilot", LOG_WARN); + | ^~~~~~~~~~~~~~~~~~~~~~ conf.cpp: In function 'int load_configInterface()': conf.cpp:605:36: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 605 | char *confname = dirs->getSaves ("conf.interface"); | ^~~~~~~~~~~~~~~~ +pilots.cpp: In member function 'void Pilot::save()': +pilots.cpp:185:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 185 | display ("Could not write pilot", LOG_WARN); + | ^~~~~~~~~~~~~~~~~~~~~~~ conf.cpp:610:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 610 | str = cf->getString (ret, "key_firecannon"); | ^~~~~~~~~~~~~~~~ @@ -2033,164 +2173,6 @@ 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"); - | ^~~~~~~~~~~~~~~~~~~~~ -pilots.cpp: In member function 'char* TeamPilot::getRank()': -pilots.cpp:55:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 55 | if (ranking == 0) return "AIRMAN BASIC"; - | ^~~~~~~~~~~~~~ -conf.cpp:720:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 720 | str = cf->getString (ret, "joystick_firemissile"); - | ^~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:56:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 56 | else if (ranking == 1) return "AIRMAN"; - | ^~~~~~~~ -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"); - | ^~~~~~~~~~~~~~~~~~~~ -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"; - | ^~~~~~~~~~~~~~~ -conf.cpp:729:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 729 | str = cf->getString (ret, "joystick_selectmissile"); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 59 | else if (ranking == 4) return "1ST LIEUTNANT"; - | ^~~~~~~~~~~~~~~ -conf.cpp:732:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 732 | str = cf->getString (ret, "joystick_targetnearest"); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:60:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 60 | else if (ranking == 5) return "CAPTAIN"; - | ^~~~~~~~~ -pilots.cpp:61:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 61 | else if (ranking == 6) return "MAJOR"; - | ^~~~~~~ -conf.cpp: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"); - | ^~~~~~~~~~~~~~~~~~~~~ -pilots.cpp:62:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 62 | else if (ranking == 7) return "COLONEL"; - | ^~~~~~~~~ -pilots.cpp:63:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 63 | else return "GENERAL"; - | ^~~~~~~~~ -conf.cpp:741:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 741 | str = cf->getString (ret, "joystick_targetprevious"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -conf.cpp:744:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 744 | str = cf->getString (ret, "joystick_incthrust"); - | ^~~~~~~~~~~~~~~~~~~~ -pilots.cpp: In member function 'char* TeamPilot::getShortRank()': -pilots.cpp:68:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 68 | if (ranking == 0) return "AB"; - | ^~~~ -conf.cpp:747:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 747 | str = cf->getString (ret, "joystick_decthrust"); - | ^~~~~~~~~~~~~~~~~~~~ -pilots.cpp:69:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 69 | else if (ranking == 1) return "ARM"; - | ^~~~~ -pilots.cpp:70:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 70 | else if (ranking == 2) return "A1C"; - | ^~~~~ -pilots.cpp:71:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 71 | else if (ranking == 3) return "2ND LT"; - | ^~~~~~~~ -pilots.cpp:72:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 72 | else if (ranking == 4) return "1ST LT"; - | ^~~~~~~~ -pilots.cpp:73:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 73 | else if (ranking == 5) return "CAPT"; - | ^~~~~~ -pilots.cpp:74:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 74 | else if (ranking == 6) return "MAJ"; - | ^~~~~ -pilots.cpp:75:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 75 | else if (ranking == 7) return "COL"; - | ^~~~~ -pilots.cpp:76:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 76 | else return "GEN"; - | ^~~~~ -pilots.cpp: In member function 'void Pilot::load()': -pilots.cpp:140:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 140 | tp [0] = new TeamPilot (5, "PRIMETIME", 200, 100, 150, 20); - | ^~~~~~~~~~~ -pilots.cpp:141:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 141 | tp [1] = new TeamPilot (1, "HEPTARGON", 80, 220, 300, 1); - | ^~~~~~~~~~~ -pilots.cpp:142:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 142 | tp [2] = new TeamPilot (2, "KARA", 180, 160, 50, 4); - | ^~~~~~ -pilots.cpp:143:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 143 | tp [3] = new TeamPilot (6, "SHARK", 70, 90, 120, 22); - | ^~~~~~~ -pilots.cpp:144:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 144 | tp [4] = new TeamPilot (3, "BOSS", 250, 180, 80, 10); - | ^~~~~~ -pilots.cpp:145:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 145 | tp [5] = new TeamPilot (2, "DR DOOM", 320, 210, 20, 2); - | ^~~~~~~~~ -pilots.cpp:146:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 146 | tp [6] = new TeamPilot (4, "SHADOW", 130, 200, 320, 15); - | ^~~~~~~~ -pilots.cpp:147:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 147 | tp [7] = new TeamPilot (7, "MATRIX", 40, 80, 180, 25); - | ^~~~~~~~ -pilots.cpp:148:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 148 | tp [8] = new TeamPilot (1, "FIREBIRD", 250, 140, 100, 1); - | ^~~~~~~~~~ -pilots.cpp:149:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 149 | tp [9] = new TeamPilot (4, "THUNDER", 150, 170, 60, 18); - | ^~~~~~~~~ -pilots.cpp:150:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 150 | tp [10] = new TeamPilot (0, "PLAYER", 0, 0, 0, 0); - | ^~~~~~~~ -pilots.cpp:158:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 158 | display ("Could not load pilot", LOG_WARN); - | ^~~~~~~~~~~~~~~~~~~~~~ -pilots.cpp: In member function 'void Pilot::save()': -pilots.cpp:185:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 185 | display ("Could not write pilot", LOG_WARN); - | ^~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~ 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"; } @@ -2201,6 +2183,9 @@ pilots.cpp:216:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 216 | { ranking = 2; return "AIRMAN 1ST CLASS"; } | ^~~~~~~~~~~~~~~~~~ +conf.cpp:690:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 690 | str = cf->getString (ret, "mouse_selectmissile"); + | ^~~~~~~~~~~~~~~~~~~~~ pilots.cpp:218:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 218 | { ranking = 3; return "2ND LIEUTNANT"; } | ^~~~~~~~~~~~~~~ @@ -2213,12 +2198,24 @@ pilots.cpp:224:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 224 | { ranking = 6; return "MAJOR"; } | ^~~~~~~ +conf.cpp:699:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 699 | str = cf->getString (ret, "joystick_aileron"); + | ^~~~~~~~~~~~~~~~~~ pilots.cpp:226:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 226 | { ranking = 7; return "COLONEL"; } | ^~~~~~~~~ pilots.cpp:228:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 228 | { ranking = 8; return "GENERAL"; } | ^~~~~~~~~ +conf.cpp: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"); + | ^~~~~~~~~~~~~~~~~ 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"; } @@ -2226,31 +2223,60 @@ pilots.cpp:256:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 256 | { ranking = 1; return "AMN"; } | ^~~~~ +conf.cpp:711:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 711 | str = cf->getString (ret, "joystick_view_x"); + | ^~~~~~~~~~~~~~~~~ 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"; } | ^~~~~~~~ +conf.cpp:714:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 714 | str = cf->getString (ret, "joystick_view_y"); + | ^~~~~~~~~~~~~~~~~ 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"; } | ^~~~~~ +conf.cpp:717:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 717 | str = cf->getString (ret, "joystick_firecannon"); + | ^~~~~~~~~~~~~~~~~~~~~ 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"; } | ^~~~~ +conf.cpp:720:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 720 | str = cf->getString (ret, "joystick_firemissile"); + | ^~~~~~~~~~~~~~~~~~~~~~ pilots.cpp:270:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 270 | { ranking = 8; return "GEN"; } | ^~~~~ -loader_tga.cpp: In function 'DATA32* flip(DATA32*, int, int)': -loader_tga.cpp:438:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 438 | display ("Out of memory", LOG_FATAL); - | ^~~~~~~~~~~~~~~ +conf.cpp: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"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ 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); @@ -2258,6 +2284,12 @@ pilots.cpp:298:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 298 | add ("PLAYER"); | ^~~~~~~~ +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"); + | ^~~~~~~~~~~~~~~~~~~~ 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); @@ -2322,6 +2354,15 @@ pilots.cpp:303:9: warning: ignoring return value of 'char* fgets(char*, int, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 303 | fgets (buf, 16, in); | ~~~~~~^~~~~~~~~~~~~ +In file included from effects.h:28, + from aiobject.h:29, + from aiobject.cpp:26: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ 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), ":"); @@ -2357,15 +2398,10 @@ 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 aiobject.cpp:26: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ +vertexarray.cpp: In member function 'void VertexArray::reallocData()': +vertexarray.cpp:160:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 160 | display ("Out of memory", LOG_FATAL); + | ^~~~~~~~~~~~~~~ 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) @@ -2376,62 +2412,59 @@ | ^~~~~~~~~~~~~~~ In file included from effects.h:28, from aiobject.h:29, - from glland.h:30, - from glland.cpp:26: + 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); | ^~~~~~ -In file included from land.cpp:31: -land.cpp: In member function 'void Landscape::convolveGauss(int, int, int)': -land.cpp:95:39: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 95 | mx = GETCOORD(x - MAXCORE / 2 + i); - | ~~~~~~~~~~~~~~~~^~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' 164 | void drawGL (CVector3 *tl, CVector3 *textl); | ^~~~~~ -land.cpp:107:41: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] - 107 | my = GETCOORD(y - MAXCORE / 2 + i); - | ~~~~~~~~~~~~~~~~^~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ +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; + | ^~~ +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 + | ^~~~~~~~~ +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)); + | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 3ds.h:27, + from 3ds.cpp:32: +model.h:188:7: note: 'class CObject' declared here + 188 | class CObject + | ^~~~~~~ +3ds.cpp: In member function 'void CLoad3DS::ReadVertices(CObject*, Chunk*)': +3ds.cpp:516:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CVertex'; use assignment or value-initialization instead [-Wclass-memaccess] + 516 | memset (object->vertex, 0, sizeof (CVertex) * object->numVertices); + | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +model.h:113:7: note: 'class CVertex' declared here + 113 | class CVertex + | ^~~~~~~ In file included from effects.h:28, from aiobject.h:29, - from mission.h:28, - from mission.cpp:28: + from glland.h:30, + from glland.cpp:26: object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); | ^~~~~~ effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' 164 | void drawGL (CVector3 *tl, CVector3 *textl); | ^~~~~~ -land.cpp: In member function 'void Landscape::genCanyonSurface(int)': -land.cpp:746:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] - 746 | if (h [i * step] [i2 * step] == 0) - | ^ -land.cpp: In member function 'void Landscape::genDesertSurface(int)': -land.cpp:907:43: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] - 907 | ha [i3] = h [i] [GETCOORD(i2 + i3 - range / 2)]; - | ~~~~~~~~^~~~~~~~~~~ -land.h:50:22: note: in definition of macro 'GETCOORD' - 50 | #define GETCOORD(x) (x & MAXX_MASK) - | ^ -land.cpp: In member function 'void Landscape::genRocks(int, int)': -land.cpp:1042:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses] - 1042 | if (f [i - 1] [i2] == ROCKS && f [i + 1] [i2] == ROCKS || -land.cpp:1046:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses] - 1046 | if (f [i - 1] [i2] == GLACIER && f [i + 1] [i2] == GLACIER || -land.cpp: In member function 'int Landscape::calcLake(int, int, short unsigned int, int, int)': -land.cpp:1074:17: warning: variable 'w' set but not used [-Wunused-but-set-variable] - 1074 | int i, i2, n, w, timeout = 0; - | ^ -land.cpp: In member function 'void Landscape::calcWoods(int)': -land.cpp:1384:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] - 1384 | if (isWoods (f [i - 1] [i2]) && isWoods (f [i + 1] [i2]) || - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 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)); @@ -2470,6 +2503,82 @@ aiobject.cpp:65:29: warning: argument to 'sizeof' in 'void* memcpy(void*, const void*, size_t)' call is the same expression as the destination; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess] 65 | memcpy (&gamma, &net [z], sizeof (&gamma)); | ^~~~~~~~~~~~~~~ +In file included from land.cpp:31: +land.cpp: In member function 'void Landscape::convolveGauss(int, int, int)': +land.cpp:95:39: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 95 | mx = GETCOORD(x - MAXCORE / 2 + i); + | ~~~~~~~~~~~~~~~~^~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +land.cpp:107:41: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] + 107 | my = GETCOORD(y - MAXCORE / 2 + i); + | ~~~~~~~~~~~~~~~~^~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +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); + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp: In member function 'bool AIObj::fireFlare(DynamicObj**, AIObj**)': +aiobject.cpp:1735:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 1735 | display ("Missile to flare", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~ +aiobject.cpp: In member function 'bool AIObj::fireChaff(DynamicObj**, AIObj**)': +aiobject.cpp:1781:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 1781 | display ("Missile to chaff", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~ +land.cpp: In member function 'void Landscape::genCanyonSurface(int)': +land.cpp:746:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] + 746 | if (h [i * step] [i2 * step] == 0) + | ^ +aiobject.cpp: In member function 'void AIObj::aiAction(Uint32, AIObj**, AIObj**, DynamicObj**, DynamicObj**, DynamicObj**)': +aiobject.cpp:2449:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2449 | display ("Manoever: Vertical climb", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +land.cpp: In member function 'void Landscape::genDesertSurface(int)': +land.cpp:907:43: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] + 907 | ha [i3] = h [i] [GETCOORD(i2 + i3 - range / 2)]; + | ~~~~~~~~^~~~~~~~~~~ +land.h:50:22: note: in definition of macro 'GETCOORD' + 50 | #define GETCOORD(x) (x & MAXX_MASK) + | ^ +aiobject.cpp:2656:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2656 | display ("Manoever: Immelmann", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp:2661:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2661 | display ("Manoever: Immelmann", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp:2668:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2668 | display ("Manoever: Roll", LOG_ALL); + | ^~~~~~~~~~~~~~~~ +aiobject.cpp:2676:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2676 | display ("Manoever: Turn", LOG_ALL); + | ^~~~~~~~~~~~~~~~ +aiobject.cpp:2683:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2683 | display ("Manoever: Height change", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp:2714:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2714 | display ("Manoever: Immelmann", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp:2719:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2719 | display ("Manoever: Immelmann", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~ +aiobject.cpp:2726:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2726 | display ("Manoever: Roll", LOG_ALL); + | ^~~~~~~~~~~~~~~~ +land.cpp: In member function 'void Landscape::genRocks(int, int)': +land.cpp:1042:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses] + 1042 | if (f [i - 1] [i2] == ROCKS && f [i + 1] [i2] == ROCKS || +aiobject.cpp:2734:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2734 | display ("Manoever: Turn", LOG_ALL); + | ^~~~~~~~~~~~~~~~ +land.cpp:1046:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses] + 1046 | if (f [i - 1] [i2] == GLACIER && f [i + 1] [i2] == GLACIER || +aiobject.cpp:2741:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2741 | display ("Manoever: Height change", LOG_ALL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from effects.h:28, from aiobject.h:29, from main.h:41, @@ -2480,6 +2589,14 @@ effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' 164 | void drawGL (CVector3 *tl, CVector3 *textl); | ^~~~~~ +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]) || + | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int game_levelInit()': main.cpp:669:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 669 | display ("Could not startup mission", LOG_ERROR); @@ -2500,10 +2617,6 @@ 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::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 '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."; @@ -2560,10 +2673,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); @@ -2621,6 +2730,10 @@ main.cpp:2431:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2431 | font1->drawText (-2, -12, -2, "BACK"); | ^~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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")); @@ -2628,6 +2741,60 @@ main.cpp:2584:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2584 | display ("Pilots saved", LOG_MOST); | ^~~~~~~~~~~~~~ +mission.cpp:386:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 386 | font1->drawTextCentered (0, 6, -2.5, "THE FIGHTER SHOULD FLY STRAIGHT ON.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:387:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 387 | font1->drawTextCentered (0, 5, -2.5, "IF NOT, RECALIBRATE YOUR JOYSTICK", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:391:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 391 | font1->drawTextCentered (0, 7, -2.5, "THE MENU OPTIONS/CONTROLS LETS YOU", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:392:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 392 | font1->drawTextCentered (0, 6, -2.5, "DETERMINE THE INPUT DEVICE.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:393:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 393 | font1->drawTextCentered (0, 5, -2.5, "CURRENTLY, THIS IS THE MOUSE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:397:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 397 | font1->drawTextCentered (0, 7, -2.5, "THE MENU OPTIONS/CONTROLS LETS YOU", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:398:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 398 | font1->drawTextCentered (0, 6, -2.5, "DETERMINE THE INPUT DEVICE.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:399:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 399 | font1->drawTextCentered (0, 5, -2.5, "CURRENTLY, THIS IS THE KEYBOARD", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:406:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 406 | font1->drawTextCentered (0, 7, -2.5, "MOVING THE JOYSTICK LEFT OR RIGHT", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:407:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 407 | font1->drawTextCentered (0, 6, -2.5, "WILL AFFECT THE AILERON.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:408:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 408 | font1->drawTextCentered (0, 5, -2.5, "THUS YOU WILL ONLY ROLL", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:414:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 414 | font1->drawTextCentered (0, 7, -2.5, "THE MOUSE INTERFACE IS VERY EASY.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:415:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 415 | font1->drawTextCentered (0, 6, -2.5, "ALWAYS POINT TO WHERE YOU WANT TO FLY.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:416:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 416 | font1->drawTextCentered (0, 5, -2.5, "YOU'LL HAVE TO MOVE THE MOUSE PERMANENTLY", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:420:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 420 | font1->drawTextCentered (0, 7, -2.5, "THE REVERTED MOUSE IS FOR REAL GAMERS ONLY.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:421:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 421 | font1->drawTextCentered (0, 6, -2.5, "THE STANDARD MOUSE INTERFACE MAY BE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:422:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 422 | font1->drawTextCentered (0, 5, -2.5, "EASIER TO LEARN", &textcolor); + | ^~~~~~~~~~~~~~~~~ +mission.cpp:426:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 426 | font1->drawTextCentered (0, 7, -2.5, "MOUSE RELATIVE IS A LOT OF WORK.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void stats_display()': main.cpp:2700:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2700 | font1->drawTextCentered (0, 7, -2, "SUCCESS", &colorblue); @@ -2635,9 +2802,15 @@ main.cpp:2704:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2704 | font1->drawTextCentered (0, 7, -2, "FAILED", &colorred); | ^~~~~~~~ +mission.cpp:427:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 427 | font1->drawTextCentered (0, 6, -2.5, "ONLY THE RELATIVE MOUSE COORDINATES (MOVING)", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:2707:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2707 | font1->drawText (xf1, yf, zf, "SCORE:", color); | ^~~~~~~~ +mission.cpp:428:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 428 | font1->drawTextCentered (0, 5, -2.5, "WILL HAVE AN EFFECT", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~ main.cpp:2712:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2712 | font1->drawText (xf1, yf, zf, "DIFFICULTY:", color); | ^~~~~~~~~~~~~ @@ -2647,55 +2820,117 @@ 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); | ^~~~~~~~ +mission.cpp:433:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 433 | font1->drawTextCentered (0, 7, -2.5, "THE KEYBOARD INTERFACE IS NOT THAT EASY.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:2715:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2715 | else if (mission->difficulty == 2) font1->drawText (xf2, yf, zf, "HARD", color); | ^~~~~~ main.cpp:2716:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2716 | if (mission->difficulty == 0) font1->drawText (xf3, yf, zf, "-25", color); | ^~~~~ +mission.cpp:434:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 434 | font1->drawTextCentered (0, 6, -2.5, "USING THE MOUSE IS STRONLY RECOMMENDED", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:2717:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2717 | else if (mission->difficulty == 1) font1->drawText (xf3, yf, zf, "+25", color); | ^~~~~ main.cpp:2718:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2718 | else if (mission->difficulty == 2) font1->drawText (xf3, yf, zf, "+75", color); | ^~~~~ +mission.cpp:441:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 441 | font1->drawTextCentered (0, 7, -2.5, "MOVING UP OR DOWN WILL AFFECT", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:2721:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2721 | font1->drawText (xf1, yf, zf, "FLIGHT MODEL:", color); | ^~~~~~~~~~~~~~~ main.cpp:2722:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2722 | if (!fplayer->realism) font1->drawText (xf2, yf, zf, "ACTION", color); | ^~~~~~~~ -In file included from effects.h:28, - from aiobject.h:29, - from main.h:41, - from cockpit.cpp:29: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ +mission.cpp:442:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 442 | font1->drawTextCentered (0, 6, -2.5, "THE ELEVATOR.", &textcolor); + | ^~~~~~~~~~~~~~~ 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); | ^~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ +mission.cpp:443:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 443 | font1->drawTextCentered (0, 5, -2.5, "YOU'LL START TO FLY A LOOP", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: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); | ^~~~~ +mission.cpp:447:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 447 | font1->drawTextCentered (0, 7, -2.5, "MOVING RIGHT OR LEFT WILL AFFECT THE AILERON,", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:448:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 448 | font1->drawTextCentered (0, 6, -2.5, "MOVING UP OR DOWN WILL AFFECT THE ELEVATOR.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~ +mission.cpp:449:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 449 | font1->drawTextCentered (0, 5, -2.5, "THUS YOU CAN FLY ROLLS AND LOOPS", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:2738:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2738 | font1->drawText (xf1, yf, zf, "SHIELD BONUS:", color); | ^~~~~~~~~~~~~~~ main.cpp:2744:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2744 | font1->drawText (xf1, yf, zf, "KILLS:", color); | ^~~~~~~~ +mission.cpp:456:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 456 | font1->drawTextCentered (0, 7, -2.5, "IF YOUR JOYSTICK HAS A SO-CALLED \"RUDDER\",", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:457:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 457 | font1->drawTextCentered (0, 6, -2.5, "YOU MAY ALTER THE FIGHTER'S RUDDER.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:458:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 458 | font1->drawTextCentered (0, 5, -2.5, "YOU'LL SLIGHTLY FLY TO THE LEFT OR RIGHT", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~ +mission.cpp:462:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 462 | font1->drawTextCentered (0, 7, -2.5, "MOVING THE MOUSE SLIGHTLY LEFT OR RIGHT", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:463:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 463 | font1->drawTextCentered (0, 6, -2.5, "WILL AFFECT THE RUDDER.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:467:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 467 | font1->drawTextCentered (0, 7, -2.5, "TO ALTER THE RUDDER", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~ +mission.cpp:468:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 468 | font1->drawTextCentered (0, 6, -2.5, "USE THE KEYS PGUP AND PGDN", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:475:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 475 | font1->drawTextCentered (0, 7, -2.5, "YOUR JOYSTICK HAS ALSO A THROTTLE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:476:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 476 | font1->drawTextCentered (0, 6, -2.5, "TO SPEEDUP OR DECELERATE.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:477:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 477 | font1->drawTextCentered (0, 5, -2.5, "THERE IS NO WAY TO ENTIRELY STOP", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:481:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 481 | font1->drawTextCentered (0, 7, -2.5, "USE THE KEYS '1' THROUGH '9' TO ALTER", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:482:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 482 | font1->drawTextCentered (0, 6, -2.5, "YOUR THROTTLE (SPEED).", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:483:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 483 | font1->drawTextCentered (0, 5, -2.5, "THERE IS NO WAY TO ENTIRELY STOP", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:490:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 490 | font1->drawTextCentered (0, 7, -2.5, "THE PREDEFINED JOYSTICK BUTTONS:", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:491:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 491 | font1->drawTextCentered (0, 6, -2.5, "FIRE CANNON, DROP CHAFF/FLARE,", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:492:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 492 | font1->drawTextCentered (0, 5, -2.5, "FIRE MISSILE, CHOOSE MISSILE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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]; @@ -2704,20 +2939,28 @@ main.cpp:2938:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2938 | font1->drawText (-3, -1, -1, "PAUSED", &colorwhite); | ^~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:496:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 496 | font1->drawTextCentered (0, 7, -2.5, "LEFT MOUSE BUTTON: FIRE CANNON", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void credits_display()': main.cpp:3009:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3009 | font2->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "GAME PROGRAMMING,", col); | ^~~~~~~~~~~~~~~~~~~ +mission.cpp:497:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 497 | font1->drawTextCentered (0, 6, -2.5, "RIGHT MOUSE BUTTON: FIRE MISSILE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~ +mission.cpp:502:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 502 | font1->drawTextCentered (0, 6, -2.5, "NOW, LETS HAVE A LOOK AT SOME IMPORTANT KEYS", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); | ^~~~~~~~~~~~~~~~~~~~~~ @@ -2727,42 +2970,78 @@ main.cpp:3017:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3017 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "PIOTR PAWLOW", col2); | ^~~~~~~~~~~~~~ +mission.cpp:509:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 509 | font1->drawTextCentered (0, 7, -2.5, "A SUMMARY OF COMMANDS CAN BE FOUND IN THE MENU.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:510:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 510 | font1->drawTextCentered (0, 6, -2.5, "\"ESC\" WILL SHOW THE MENU", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:3018:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3018 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "MOUSE INTERFACE & LANDSCAPE IMPROVEMENTS", col); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:511:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 511 | font1->drawTextCentered (0, 5, -2.5, "AND RETURN BACK TO THE ACTION", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:3019:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3019 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "LOURENS VEEN", col2); | ^~~~~~~~~~~~~~ main.cpp:3020:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3020 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "PUBLISHING & FURTHER GAME IDEAS", col); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:528:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 528 | font1->drawTextCentered (0, 7, -2.5, "LOOK AT THE RADAR ON THE BOTTOM OF YOUR SCREEN.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:529:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 529 | font1->drawTextCentered (0, 6, -2.5, "THERE ARE ENEMIES REPRESENTED BY A YELLOW POINT (TARGETED)", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:530:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 530 | font1->drawTextCentered (0, 5, -2.5, "AND A RED POINT (NOT TARGETED)", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: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); | ^~~~~~~~~~~~~~~~~ +mission.cpp:536:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 536 | font1->drawTextCentered (0, 7, -2.5, "YOU MAY TARGET AN ENEMY USING THE COOLIE HAT,", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:3022:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3022 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "MOON TERRAIN", col); | ^~~~~~~~~~~~~~ main.cpp:3023:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3023 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "NORBERT DREXL", col2); | ^~~~~~~~~~~~~~~ +mission.cpp:540:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 540 | font1->drawTextCentered (0, 5, -2.5, "THEN APPROACH!", &textcolor); + | ^~~~~~~~~~~~~~~~ main.cpp:3024:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3024 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "PHYSICAL MODEL (ACTION) & COCKPIT IMPROVEMENTS", col); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:544:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 544 | font1->drawTextCentered (0, 7, -2.5, "YOU MAY TARGET AN ENEMY PRESSING", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:3025:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3025 | font1->drawTextCentered (0, (yt -= 2 * ydist) / fontzoom, zf, "ARNE REINERS", col2); | ^~~~~~~~~~~~~~ main.cpp:3026:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3026 | font2->drawTextCentered (0, (yt -= 4 * ydist) / fontzoom, zf, "...AND THANKS TO ALL PEOPLE GIVING FEEDBACK AND ADVICE", col); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:548:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 548 | font1->drawTextCentered (0, 5, -2.5, "THEN APPROACH!", &textcolor); + | ^~~~~~~~~~~~~~~~ main.cpp:3031:66: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3031 | font1->drawTextCentered (0, (yt -= 10 * ydist) / fontzoom, zf, "***********************", col); | ^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:3032:66: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3032 | font1->drawTextCentered (0, (yt -= 10 * ydist) / fontzoom, zf, "DO YOU WANT TO CONTRIBUTE?", col); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:553:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 553 | font1->drawTextCentered (0, 7, -2.5, "SHOOT THE TARGETS TO COMPLETE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:3036:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3036 | font2->drawText (xf / fontzoom, (yt -= 4 * ydist) / fontzoom, zf, "LOTS OF THINGS ARE STILL NEEDED:", col); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:554:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 554 | font1->drawTextCentered (0, 6, -2.5, "THIS TUTORIAL SUCCESSFULLY", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:3037:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3037 | font2->drawText (xf / fontzoom, (yt -= 2 * ydist) / fontzoom, zf, "- DRAW TEXTURES OF TREES, BUILDINGS, ETC", col); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2818,106 +3097,224 @@ main.cpp:3064:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3064 | font1->drawTextCentered (0, -14, -3, "PROGRAMMERS JOINED (LISTED IN THE CREDITS SECTION).", col); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -aiobject.cpp:2656:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2656 | display ("Manoever: Immelmann", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~ main.cpp:3065:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3065 | font1->drawTextCentered (0, -16, -3, "SPECIAL THANKS TO JOSEF DREXL FOR THE MODELING IDEAS,", col); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -aiobject.cpp:2661:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2661 | display ("Manoever: Immelmann", LOG_ALL); - | ^~~~~~~~~~~~~~~~~~~~~ main.cpp:3066:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3066 | font1->drawTextCentered (0, -18, -3, "AND THE UNIX AWARD GOES TO WOLFGANG HOMMEL ;-)", col); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void quit_display()': main.cpp:3075:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3075 | font1->drawTextCentered (0, 0, -2, "REALLY QUIT?", &menu_colwhite); | ^~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp: In member function 'virtual void MissionTutorial2::draw()': +mission.cpp:649:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 649 | font1->drawTextCentered (0, 7, -2.5, "FIRSTLY, HAVE A LOOK AT YOUR MISSILES:", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:653:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 653 | font1->drawTextCentered (0, 5, -2.5, "AGM (AIR-GROUND-MISSILE) AND DF (DUMB FIRE)", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:657:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 657 | font1->drawTextCentered (0, 7, -2.5, "LET'S USE THE AGM: AS SOON AS THE TARGET", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:658:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 658 | font1->drawTextCentered (0, 6, -2.5, "IS LOCKED (YELLOW), SHOOT THE AGM AT ANY", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:659:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 659 | font1->drawTextCentered (0, 5, -2.5, "DIRECTION AND WATCH WHERE IT GOES.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:663:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 663 | font1->drawTextCentered (0, 7, -2.5, "THEN TRY A DF MISSILE BUT CAREFUL:", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:664:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 664 | font1->drawTextCentered (0, 6, -2.5, "IT IS QUITE 'DUMB' AND WILL FLY STRAIGHT AHEAD.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:668:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 668 | font1->drawTextCentered (0, 6, -2.5, "HOWEVER, DF MISSILES WILL CAUSE MUCH MORE DAMAGE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:672:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 672 | font1->drawTextCentered (0, 6, -2.5, "NOW, BLOW UP THE TWO TANKS", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp: In member function 'virtual void MissionTutorial3::draw()': +mission.cpp:724:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 724 | font1->drawTextCentered (0, 7, -2.5, "THE MENU OPTIONS/CONTROLS LETS YOU DEFINE DIFFICULTY", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:725:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 725 | font1->drawTextCentered (0, 6, -2.5, "AND REALISM. CHANGING THESE SETTINGS WILL ONLY HAVE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:726:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 726 | font1->drawTextCentered (0, 5, -2.5, "EFFECT ON THE NEXT MISSION YOU START", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:730:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 730 | font1->drawTextCentered (0, 7, -2.5, "APART FROM YOUR CURRENT PHYSICS SETTINGS", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:731:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 731 | font1->drawTextCentered (0, 6, -2.5, "LET'S USE THE SIMULATION MODEL AND DISCUSS", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:732:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 732 | font1->drawTextCentered (0, 5, -2.5, "THE FOUR FORCES THRUST, DRAG, LIFT, AND WEIGHT", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:736:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 736 | font1->drawTextCentered (0, 7, -2.5, "THRUST IS FORWARD FORCE CREATED BY THE ENGINES.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:737:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 737 | font1->drawTextCentered (0, 6, -2.5, "CHANGE THE THRUST TO GAIN OR LOSE SPEED", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:741:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 741 | font1->drawTextCentered (0, 7, -2.5, "DRAG IS THE RETARDING FORCE THAT LIMITS THE AIRCRAFT'S", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:742:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 742 | font1->drawTextCentered (0, 6, -2.5, "SPEED. IT IS MAINLY CAUSED BY THE AIRCRAFT'S STRUCTURE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void game_display()': main.cpp:3578:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3578 | font1->drawTextCentered (0, 0, -1.8, "PLEASE WAIT WHILE", &colorred); | ^~~~~~~~~~~~~~~~~~~ +mission.cpp:743:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 743 | font1->drawTextCentered (0, 5, -2.5, "THAT PROTUDES INTO THE WIND", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:3579:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3579 | font1->drawTextCentered (0, -1, -1.8, "ADJUSTING QUALITY", &colorred); | ^~~~~~~~~~~~~~~~~~~ main.cpp:3585:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3585 | font1->drawTextCentered (0, -8, -2, "FPS TOO LOW", &colorred); | ^~~~~~~~~~~~~ +mission.cpp:747:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 747 | font1->drawTextCentered (0, 7, -2.5, "LIFT IS THE UPWARD FORCE CREATED BY THE AIRFLOW THAT PASSES", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:748:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 748 | font1->drawTextCentered (0, 6, -2.5, "OVER THE WINGS. IN STRAIGHT UNACCELERATED FLIGHT, IT", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:3586:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3586 | font1->drawTextCentered (0, -9, -2, "TURN DOWN VIEW OR QUALITY", &colorred); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:749:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 749 | font1->drawTextCentered (0, 5, -2.5, "COMPENSATES THE WEIGHT AND YOUR FIGHTER WON'T CLIMB OR DIVE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:3591:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3591 | font1->drawTextCentered (0, -8, -2, "FPS FAR TOO LOW", &colorred); | ^~~~~~~~~~~~~~~~~ +mission.cpp:753:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 753 | font1->drawTextCentered (0, 7, -2.5, "THE LIFT FORCE DEPENDS ON THE SPEED:", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:3592:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3592 | font1->drawTextCentered (0, -9, -2, "SEE \"README\" OR \"FAQ\" FILES", &colorred); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:3593:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3593 | font1->drawTextCentered (0, -10, -2, "HIT \"ESC\" AND 'Y' TO EXIT THE GAME", &colorred); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:754:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 754 | font1->drawTextCentered (0, 6, -2.5, "LOW SPEED WILL CAUSE THE AIRPLANE TO DIVE,", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:3249:9: warning: variable 'fac' set but not used [-Wunused-but-set-variable] 3249 | float fac = view, zfac = view * 0.2; | ^~~ main.cpp:3249:21: warning: variable 'zfac' set but not used [-Wunused-but-set-variable] 3249 | float fac = view, zfac = view * 0.2; | ^~~~ -cockpit.cpp: In member function 'void Cockpit::drawHeading()': -cockpit.cpp:463:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 463 | font1->drawText (xf - 0.5, yf - 2.0, zf, "S", &color); - | ^~~ -cockpit.cpp:465:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 465 | font1->drawText (xf - 0.5, yf - 2.0, zf, "E", &color); - | ^~~ -cockpit.cpp:467:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 467 | font1->drawText (xf - 0.5, yf - 2.0, zf, "N", &color); - | ^~~ -cockpit.cpp:469:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 469 | font1->drawText (xf - 0.5, yf - 2.0, zf, "W", &color); - | ^~~ -objload.cpp: In constructor 'CFile::CFile(char*)': -objload.cpp:48:11: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 48 | fread (&data [z], 4096, sizeof (char), in); - | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -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 - | ^~~~~~~ +mission.cpp:755:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 755 | font1->drawTextCentered (0, 5, -2.5, "AT HIGH SPEED IT WILL EVEN CLIMB", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:759:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 759 | font1->drawTextCentered (0, 7, -2.5, "NOW TRY THIS EFFECT BY FLYING STRAIGHT AHEAD AT 0 DEGREE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:760:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 760 | font1->drawTextCentered (0, 6, -2.5, "ELEVATION WHILE USING THE LOWEST/HIGHEST THRUST SETTINGS", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:764:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 764 | font1->drawTextCentered (0, 7, -2.5, "IF YOU FLY A ROLL, THE LIFT WILL NOT OPPOSE THE THRUST", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:765:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 765 | font1->drawTextCentered (0, 6, -2.5, "AND YOU WILL LOSE HEIGHT. TRY!", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:769:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 769 | font1->drawTextCentered (0, 7, -2.5, "IF YOU ROLL TO THE SIDE, THE LIFT WILL TEAR THE AIRCRAFT", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:770:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 770 | font1->drawTextCentered (0, 6, -2.5, "FROM STRAIGHT FLIGHT TO A DIAGONAL DIRECTION WHILE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:771:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 771 | font1->drawTextCentered (0, 5, -2.5, "LOSING HEIGHT. TRY!", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~ +mission.cpp:775:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 775 | font1->drawTextCentered (0, 7, -2.5, "THE OVERALL FORCE IS GAINED BY ADDING THE FOUR FORCES.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:776:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 776 | font1->drawTextCentered (0, 6, -2.5, "IT IS MEASURED IN 'G' WITH 1G MEANING THE EARTH'S GRAVITY", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:780:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 780 | font1->drawTextCentered (0, 7, -2.5, "YOU ARE MOSTLY OPPOSED TO MORE THAN ONLY 1G. BE CAREFUL:", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:781:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 781 | font1->drawTextCentered (0, 6, -2.5, "9G OR MORE MAY LEAD TO A BLACKOUT,", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:782:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 782 | font1->drawTextCentered (0, 5, -2.5, "AT LESS THAN -3G THE BLOOD WILL SHOOT INTO YOUR HEAD", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:786:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 786 | font1->drawTextCentered (0, 7, -2.5, "NOW ROLL ON THE BACK AND GET RID OF", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:787:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 787 | font1->drawTextCentered (0, 6, -2.5, "THE TWO TRANSPORTERS AHEAD", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp: In member function 'virtual void MissionDogfight1::draw()': +mission.cpp:907:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 907 | font1->drawTextCentered (0, 7, -2.5, "THAT WAS EASY", &textcolor); + | ^~~~~~~~~~~~~~~ +mission.cpp:908:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 908 | font1->drawTextCentered (0, 6, -2.5, "BUT CAN YOU HANDLE TWO ENEMIES?", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:913:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 913 | font1->drawTextCentered (0, 6, -2.5, "OK, LET'S TRY THREE ENEMIES", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:924:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 924 | font1->drawTextCentered (0, 7, -2.5, "THERE IS AN ENEMY ATTACKING", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:928:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 928 | font1->drawTextCentered (0, 5, -2.5, "SELECT A MISSILE", &textcolor); + | ^~~~~~~~~~~~~~~~~~ +mission.cpp:932:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 932 | font1->drawTextCentered (0, 7, -2.5, "CHOOSE A FRIEND-FOE (FF) MISSILE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:933:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 933 | font1->drawTextCentered (0, 6, -2.5, "WHICH DETECTS ENEMIES BY RADAR.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:934:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 934 | font1->drawTextCentered (0, 5, -2.5, "SHOOT AS EARLY AS POSSIBLE", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:938:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 938 | font1->drawTextCentered (0, 7, -2.5, "YOU CAN ONLY FIRE MISSILES WHEN", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:939:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 939 | font1->drawTextCentered (0, 6, -2.5, "THE RECTANGULAR LOCK AROUND THE ENEMY", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:940:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 940 | font1->drawTextCentered (0, 5, -2.5, "APPEARS YELLOW", &textcolor); + | ^~~~~~~~~~~~~~~~ +mission.cpp:944:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 944 | font1->drawTextCentered (0, 7, -2.5, "CHECK THE CHAFF/FLARE DISPLAYS.", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:945:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 945 | font1->drawTextCentered (0, 6, -2.5, "IF THEY START BLINKING, AN ENEMY HAS", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:946:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 946 | font1->drawTextCentered (0, 5, -2.5, "FIRED A MISSILE TO GET YOU DOWN", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:950:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 950 | font1->drawTextCentered (0, 7, -2.5, "CHAFF IS A DECOY FOR RADAR SEEKING MISSILES,", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:951:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 951 | font1->drawTextCentered (0, 6, -2.5, "FLARES PROTECT FROM INFRARED MISSILES", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:959:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 959 | font1->drawTextCentered (0, 7, -2.5, "THE COUNTER MEASURE ONLY HAD AN EFFECT,", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:960:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 960 | font1->drawTextCentered (0, 6, -2.5, "IF THE DISPLAYS STOP BLINKING", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +mission.cpp:964:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 964 | font1->drawTextCentered (0, 7, -2.5, "A LITTLE TARGETING HINT:", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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); @@ -2946,9 +3343,16 @@ main.cpp:4311:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4311 | texredstone = gl->genTextureTGA (dirs->getTextures ("redstone2.tga"), 0, 0, 1, false); | ^~~~~~~~~~~~~~~ +mission.cpp: In member function 'virtual void MissionFreeFlight1::draw()': +mission.cpp:1079:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 1079 | font1->drawTextCentered (0, 6, -2.5, "TRANSPORTERS RESPAWNING", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4312:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4312 | texgravel1 = gl->genTextureTGA (dirs->getTextures ("gravel1.tga"), 0, 0, 1, false); | ^~~~~~~~~~~~~ +mission.cpp:1084:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 1084 | font1->drawTextCentered (0, 6, -2.5, "TRANSPORTERS RESPAWNING", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4313:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4313 | texglitter1 = gl->genTextureTGA (dirs->getTextures ("glitter.tga"), 0, -1, 0, true); | ^~~~~~~~~~~~~ @@ -3228,9 +3632,16 @@ main.cpp:4449:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4449 | model_missile2.setName ("AAM HS MK2"); | ^~~~~~~~~~~~ +mission.cpp: In member function 'virtual void MissionWaves1::draw()': +mission.cpp:1803:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 1803 | font1->drawTextCentered (0, 6, -2.5, "NEXT WAVE - YOU ARE FULLY REPAIRED", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4450:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4450 | display (" * missile3.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~~~ +mission.cpp:1808:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 1808 | font1->drawTextCentered (0, 6, -2.5, "NEXT WAVE - YOU ARE FULLY REPAIRED", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4451:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4451 | g_Load3ds.Import3DS (&model_missile3, dirs->getModels ("missile3.3ds")); | ^~~~~~~~~~~~~~ @@ -3315,6 +3726,10 @@ main.cpp:4478:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4478 | g_Load3ds.Import3DS (&model_tent1, dirs->getModels ("tent1.3ds")); | ^~~~~~~~~~~ +mission.cpp: In member function 'virtual void MissionTest2::draw()': +mission.cpp:1984:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 1984 | font1->drawTextCentered (0, 4, -2, "ALMOST! GET CLEARLY BEHIND HIM!", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4479:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4479 | model_tent1.setName ("TENT"); | ^~~~~~ @@ -3471,6 +3886,10 @@ main.cpp:4535:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4535 | display (" * aster1.3ds", LOG_ALL); | ^~~~~~~~~~~~~~~ +mission.cpp: In member function 'virtual void MissionDogfight2::draw()': +mission.cpp:2240:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2240 | font1->drawTextCentered (0, 7, -3, "MORE ENEMIES ENTERING THE REGION", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:4536:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4536 | g_Load3ds.Import3DS (&model_aster1, dirs->getModels ("aster1.3ds")); | ^~~~~~~~~~~~ @@ -3537,6 +3956,16 @@ main.cpp:5220:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5220 | display ("Out of sync", LOG_ERROR); | ^~~~~~~~~~~~~ +In file included from effects.h:28, + from aiobject.h:29, + from main.h:41, + from net.cpp:27: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ 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); @@ -3573,6 +4002,10 @@ main.cpp:5657:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5657 | display ("Invalid debug level", LOG_FATAL); | ^~~~~~~~~~~~~~~~~~~~~ +mission.cpp: In member function 'virtual void MissionDefend1::draw()': +mission.cpp:2984:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 2984 | font1->drawTextCentered (0, 7, -3, "MORE TANKS ARE ATTACKING", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ common.h:52:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 52 | #define VERSIONSTRING "V1.3" | ^~~~~~ @@ -3582,16 +4015,10 @@ main.cpp:5679:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5679 | display ("Invalid command line parameter", LOG_FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from effects.h:28, - from aiobject.h:29, - from main.h:41, - from net.cpp:27: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ +mission.cpp: In member function 'virtual void MissionDogfight3::draw()': +mission.cpp:3090:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 3090 | font1->drawTextCentered (0, 7, -3, "BOMBERS ARE ENTERING THE REGION", &textcolor); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: 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"); @@ -3604,6 +4031,14 @@ main.cpp:5902:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 5902 | ((EditField *) submenu [0]->components [9])->setText (""); | ^~ +In file included from effects.h:28, + from effects.cpp:29: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ main.cpp: In function 'void callbackDefaultsJoystick(Component*, int)': main.cpp:6036:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 6036 | ((Label *) controlsmenu [2]->components [z])->setText ("A 0"); @@ -3673,6 +4108,16 @@ main.cpp:6862:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 6862 | button = new Button ("SOUND VOLUME"); | ^~~~~~~~~~~~~~ +In file included from effects.h:28, + from aiobject.h:29, + from maploader.h:27, + from maploader.cpp:30: +object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] + 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); + | ^~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ main.cpp:6875:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 6875 | button = new Button ("MUSIC VOLUME"); | ^~~~~~~~~~~~~~ @@ -3709,6 +4154,10 @@ main.cpp:7045:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7045 | button = new Button ("REVERSE"); | ^~~~~~~~~ +mission.cpp: In member function 'virtual void MissionMultiDogfight1::draw()': +mission.cpp:4394:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 4394 | font1->drawTextCentered (0, 0, -1, "DOGFIGHT"); + | ^~~~~~~~~~ main.cpp:7058:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7058 | button = new Button ("RELATIVE"); | ^~~~~~~~~~ @@ -3742,12 +4191,29 @@ main.cpp:7232:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7232 | textfield = new TextField ("", yfstep - 0.1); | ^~ +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"))) + | ^~~~~~~~~~ main.cpp:7266:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7266 | textfield = new TextField ("", yfstep - 0.1); | ^~ main.cpp:7271:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7271 | button = new Button ("<"); | ^~~ +maploader.cpp: In constructor 'MapLoader::MapLoader()': +maploader.cpp:73:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 73 | file_setWhitespace (" \t\r\n"); + | ^~~~~~~~~ +maploader.cpp:74:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 74 | file_addComment ("#", "\n"); + | ^~~ +maploader.cpp:74:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 74 | file_addComment ("#", "\n"); + | ^~~~ +maploader.cpp:75:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 75 | file_setQuotes ("\"'´`"); + | ^~~~~~~ main.cpp:7275:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7275 | button = new Button (">"); | ^~~ @@ -3760,15 +4226,58 @@ main.cpp:7339:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7339 | button = new Button (" START MISSION"); | ^~~~~~~~~~~~~~~~~~~ +maploader.cpp: In member function 'int MissionCustom::readAttribute(char*, char*, char*)': +maploader.cpp:145:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 145 | error ("Assignment symbol '=' is missing"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:152:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 152 | error ("Unexpected end of file"); + | ^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:7358:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7358 | button = new Button (" YES"); | ^~~~~~~~~ main.cpp:7363:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7363 | button = new Button (" NO"); | ^~~~~~~~~ +maploader.cpp: In member function 'int MissionCustom::synchronize()': +maploader.cpp:163:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 163 | if (!file_find ("\n")) return 0; + | ^~~~ main.cpp:7382:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7382 | button = new Button (" CONTINUE"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp: In member function 'int MissionCustom::parseMapData()': +maploader.cpp:235:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 235 | error ("Heading value must be an integer"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:259:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 259 | error ("Time value must be an integer in [0...24]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:266:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 266 | error ("Time value must be an integer in [0...24]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:300:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 300 | error ("Only 32 bpp TGA files are valid"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:313:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 313 | error ("Scaleheight value must be a float number in [0...1]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:320:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 320 | error ("Scaleheight value must be a float number in [0...1]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:333:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 333 | error ("Tree needs a number suffix like \"Tree2\" with number in [1...3]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:339:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 339 | error ("Tree value must be an integer in [0...100]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:345:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 345 | error ("Tree value must be an integer in [0...100]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp: In member function 'int MissionCustom::parseObjectData()': +maploader.cpp:369:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 369 | error ("Too many objects defined"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main(int, char**)': main.cpp:7421:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7421 | display ("Getting directory locations", LOG_ALL); @@ -3785,12 +4294,24 @@ main.cpp:7498:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7498 | display ("Using SDL and GLUT", LOG_MOST); | ^~~~~~~~~~~~~~~~~~~~ +maploader.cpp:426:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 426 | error ("Party value must be an integer"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:437:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 437 | error ("Level value must be an integer in [0...10]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:443:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 443 | error ("Level value must be an integer in [0...10]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:7533:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7533 | display ("Setting SDL caption", LOG_ALL); | ^~~~~~~~~~~~~~~~~~~~~ main.cpp:7538:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7538 | display ("Creating sound system", LOG_ALL); | ^~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:451:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 451 | error ("X value must be a float number"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:7545:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7545 | display ("Playing startup music", LOG_ALL); | ^~~~~~~~~~~~~~~~~~~~~~~ @@ -3800,32 +4321,51 @@ main.cpp:7555:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7555 | display ("Querying joystick", LOG_ALL); | ^~~~~~~~~~~~~~~~~~~ +maploader.cpp:462:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 462 | error ("Y value must be a float number"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:473:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 473 | error ("Inittime value must be a float number"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:7571:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7571 | display ("No joystick found", LOG_MOST); | ^~~~~~~~~~~~~~~~~~~ main.cpp:7592:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 7592 | display ("Entering SDL main loop (GLUT emulation)", LOG_ALL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -3ds.cpp: In constructor 'BinaryFile::BinaryFile(char*)': -3ds.cpp:59:9: warning: variable 'tmp' set but not used [-Wunused-but-set-variable] - 59 | int tmp; - | ^~~ -3ds.cpp: In member function 'void CLoad3DS::ProcessNextChunk(CModel*, Chunk*)': -3ds.cpp:274:16: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CObject'; use assignment or value-initialization instead [-Wclass-memaccess] - 274 | memset (&newObject, 0, sizeof (CObject)); - | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from 3ds.h:27, - from 3ds.cpp:32: -model.h:188:7: note: 'class CObject' declared here - 188 | class CObject - | ^~~~~~~ -3ds.cpp: In member function 'void CLoad3DS::ReadVertices(CObject*, Chunk*)': -3ds.cpp:516:10: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class CVertex'; use assignment or value-initialization instead [-Wclass-memaccess] - 516 | memset (object->vertex, 0, sizeof (CVertex) * object->numVertices); - | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -model.h:113:7: note: 'class CVertex' declared here - 113 | class CVertex - | ^~~~~~~ +maploader.cpp:485:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 485 | error ("Critical value must be an integer"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~ +maploader.cpp: In member function 'int MissionCustom::parseTextData()': +maploader.cpp:511:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 511 | error ("Too many text blocks"); + | ^~~~~~~~~~~~~~~~~~~~~~ +effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' + 164 | void drawGL (CVector3 *tl, CVector3 *textl); + | ^~~~~~ +maploader.cpp:530:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 530 | error ("Starttime value must be a float number"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~~~~ +maploader.cpp:542:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 542 | error ("Delay value must be a float number"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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] @@ -3846,69 +4386,55 @@ land.h:50:22: note: in definition of macro 'GETCOORD' 50 | #define GETCOORD(x) (x & MAXX_MASK) | ^ +maploader.cpp: In member function 'int MissionCustom::parseRelCoords()': +maploader.cpp:576:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 576 | error ("No object defined yet: coords origin could not be set"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ glland.cpp:302:28: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] 302 | int zp1 = GETCOORD(z + 1); | ~~^~~ land.h:50:22: note: in definition of macro 'GETCOORD' 50 | #define GETCOORD(x) (x & MAXX_MASK) | ^ -In file included from effects.h:28, - from aiobject.h:29, - from maploader.h:27, - from maploader.cpp:30: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ -main.cpp: At global scope: -main.cpp:5153:13: warning: 'void myIdleFunc()' defined but not used [-Wunused-function] - 5153 | static void myIdleFunc () - | ^~~~~~~~~~ -mission.cpp: In member function 'virtual void MissionTutorial1::draw()': -mission.cpp:385:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 385 | font1->drawTextCentered (0, 7, -2.5, "LEAVE THE JOYSTICK CENTERED.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:386:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 386 | font1->drawTextCentered (0, 6, -2.5, "THE FIGHTER SHOULD FLY STRAIGHT ON.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:387:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 387 | font1->drawTextCentered (0, 5, -2.5, "IF NOT, RECALIBRATE YOUR JOYSTICK", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:391:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 391 | font1->drawTextCentered (0, 7, -2.5, "THE MENU OPTIONS/CONTROLS LETS YOU", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:392:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 392 | font1->drawTextCentered (0, 6, -2.5, "DETERMINE THE INPUT DEVICE.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:393:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 393 | font1->drawTextCentered (0, 5, -2.5, "CURRENTLY, THIS IS THE MOUSE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:397:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 397 | font1->drawTextCentered (0, 7, -2.5, "THE MENU OPTIONS/CONTROLS LETS YOU", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:398:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 398 | font1->drawTextCentered (0, 6, -2.5, "DETERMINE THE INPUT DEVICE.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:399:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 399 | font1->drawTextCentered (0, 5, -2.5, "CURRENTLY, THIS IS THE KEYBOARD", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:406:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 406 | font1->drawTextCentered (0, 7, -2.5, "MOVING THE JOYSTICK LEFT OR RIGHT", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:407:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 407 | font1->drawTextCentered (0, 6, -2.5, "WILL AFFECT THE AILERON.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:408:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 408 | font1->drawTextCentered (0, 5, -2.5, "THUS YOU WILL ONLY ROLL", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:414:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 414 | font1->drawTextCentered (0, 7, -2.5, "THE MOUSE INTERFACE IS VERY EASY.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:415:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 415 | font1->drawTextCentered (0, 6, -2.5, "ALWAYS POINT TO WHERE YOU WANT TO FLY.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:587:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 587 | error ("No object defined yet: coords origin could not be set"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:608:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 608 | error ("Quadrant value must be an integer in [1...16]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:614:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 614 | error ("Quadrant value must be an integer in [1...16]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp: In member function 'int MissionCustom::parseInfoData()': +maploader.cpp:657:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 657 | error ("Pilot needs a number suffix like \"Pilot5\" with number in [1...maxpilots]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:664:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 664 | error ("Invalid pilot name"); + | ^~~~~~~~~~~~~~~~~~~~ +maploader.cpp:677:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 677 | error ("Fighter needs a number suffix like \"Fighter1\" with number in [1...3]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:689:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 689 | error ("Invalid fighter type"); + | ^~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:698:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 698 | error ("Weapon needs a number suffix like \"Weapon\" with number in [1...3]"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:707:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 707 | error ("Invalid weapon type"); + | ^~~~~~~~~~~~~~~~~~~~~ +maploader.cpp:715:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 715 | error ("Maxtime value must be a float number"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp: In member function 'void MissionCustom::init()': +maploader.cpp:741:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 741 | error ("Could not open map file"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +maploader.cpp: In member function 'virtual void MissionCustom::start()': +maploader.cpp:871:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 871 | display ("Map has a valid bpp entry but seems to be corrupt", LOG_FATAL); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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); @@ -3916,126 +4442,31 @@ land.h:50:22: note: in definition of macro 'GETCOORD' 50 | #define GETCOORD(x) (x & MAXX_MASK) | ^ -mission.cpp:416:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 416 | font1->drawTextCentered (0, 5, -2.5, "YOU'LL HAVE TO MOVE THE MOUSE PERMANENTLY", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:420:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 420 | font1->drawTextCentered (0, 7, -2.5, "THE REVERTED MOUSE IS FOR REAL GAMERS ONLY.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:421:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 421 | font1->drawTextCentered (0, 6, -2.5, "THE STANDARD MOUSE INTERFACE MAY BE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:422:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 422 | font1->drawTextCentered (0, 5, -2.5, "EASIER TO LEARN", &textcolor); - | ^~~~~~~~~~~~~~~~~ -mission.cpp:426:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 426 | font1->drawTextCentered (0, 7, -2.5, "MOUSE RELATIVE IS A LOT OF WORK.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:427:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 427 | font1->drawTextCentered (0, 6, -2.5, "ONLY THE RELATIVE MOUSE COORDINATES (MOVING)", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:428:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 428 | font1->drawTextCentered (0, 5, -2.5, "WILL HAVE AN EFFECT", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~ -mission.cpp:433:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 433 | font1->drawTextCentered (0, 7, -2.5, "THE KEYBOARD INTERFACE IS NOT THAT EASY.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:434:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 434 | font1->drawTextCentered (0, 6, -2.5, "USING THE MOUSE IS STRONLY RECOMMENDED", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:441:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 441 | font1->drawTextCentered (0, 7, -2.5, "MOVING UP OR DOWN WILL AFFECT", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:442:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 442 | font1->drawTextCentered (0, 6, -2.5, "THE ELEVATOR.", &textcolor); - | ^~~~~~~~~~~~~~~ -mission.cpp:443:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 443 | font1->drawTextCentered (0, 5, -2.5, "YOU'LL START TO FLY A LOOP", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:447:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 447 | font1->drawTextCentered (0, 7, -2.5, "MOVING RIGHT OR LEFT WILL AFFECT THE AILERON,", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:448:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 448 | font1->drawTextCentered (0, 6, -2.5, "MOVING UP OR DOWN WILL AFFECT THE ELEVATOR.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:449:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 449 | font1->drawTextCentered (0, 5, -2.5, "THUS YOU CAN FLY ROLLS AND LOOPS", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:456:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 456 | font1->drawTextCentered (0, 7, -2.5, "IF YOUR JOYSTICK HAS A SO-CALLED \"RUDDER\",", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:457:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 457 | font1->drawTextCentered (0, 6, -2.5, "YOU MAY ALTER THE FIGHTER'S RUDDER.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:458:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 458 | font1->drawTextCentered (0, 5, -2.5, "YOU'LL SLIGHTLY FLY TO THE LEFT OR RIGHT", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:462:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 462 | font1->drawTextCentered (0, 7, -2.5, "MOVING THE MOUSE SLIGHTLY LEFT OR RIGHT", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:463:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 463 | font1->drawTextCentered (0, 6, -2.5, "WILL AFFECT THE RUDDER.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:467:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 467 | font1->drawTextCentered (0, 7, -2.5, "TO ALTER THE RUDDER", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~ -mission.cpp:468:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 468 | font1->drawTextCentered (0, 6, -2.5, "USE THE KEYS PGUP AND PGDN", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:475:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 475 | font1->drawTextCentered (0, 7, -2.5, "YOUR JOYSTICK HAS ALSO A THROTTLE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:476:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 476 | font1->drawTextCentered (0, 6, -2.5, "TO SPEEDUP OR DECELERATE.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:477:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 477 | font1->drawTextCentered (0, 5, -2.5, "THERE IS NO WAY TO ENTIRELY STOP", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:481:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 481 | font1->drawTextCentered (0, 7, -2.5, "USE THE KEYS '1' THROUGH '9' TO ALTER", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:482:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 482 | font1->drawTextCentered (0, 6, -2.5, "YOUR THROTTLE (SPEED).", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:483:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 483 | font1->drawTextCentered (0, 5, -2.5, "THERE IS NO WAY TO ENTIRELY STOP", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:490:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 490 | font1->drawTextCentered (0, 7, -2.5, "THE PREDEFINED JOYSTICK BUTTONS:", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:491:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 491 | font1->drawTextCentered (0, 6, -2.5, "FIRE CANNON, DROP CHAFF/FLARE,", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:492:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 492 | font1->drawTextCentered (0, 5, -2.5, "FIRE MISSILE, CHOOSE MISSILE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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) | ^ -mission.cpp:496:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 496 | font1->drawTextCentered (0, 7, -2.5, "LEFT MOUSE BUTTON: FIRE CANNON", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:497:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 497 | font1->drawTextCentered (0, 6, -2.5, "RIGHT MOUSE BUTTON: FIRE MISSILE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:498:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 498 | font1->drawTextCentered (0, 5, -2.5, "BUT YOU SHOULD REALLY PREFER THE KEYBOARD", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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) | ^ -mission.cpp:502:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 502 | font1->drawTextCentered (0, 6, -2.5, "NOW, LETS HAVE A LOOK AT SOME IMPORTANT KEYS", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:509:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 509 | font1->drawTextCentered (0, 7, -2.5, "A SUMMARY OF COMMANDS CAN BE FOUND IN THE MENU.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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); + | ^~~ glland.cpp:968:32: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] 968 | int xstep = GETCOORD(x + step); | ~~^~~~~~ @@ -4054,82 +4485,6 @@ land.h:50:22: note: in definition of macro 'GETCOORD' 50 | #define GETCOORD(x) (x & MAXX_MASK) | ^ -mission.cpp:510:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 510 | font1->drawTextCentered (0, 6, -2.5, "\"ESC\" WILL SHOW THE MENU", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:511:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 511 | font1->drawTextCentered (0, 5, -2.5, "AND RETURN BACK TO THE ACTION", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:528:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 528 | font1->drawTextCentered (0, 7, -2.5, "LOOK AT THE RADAR ON THE BOTTOM OF YOUR SCREEN.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:529:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 529 | font1->drawTextCentered (0, 6, -2.5, "THERE ARE ENEMIES REPRESENTED BY A YELLOW POINT (TARGETED)", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:530:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 530 | font1->drawTextCentered (0, 5, -2.5, "AND A RED POINT (NOT TARGETED)", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:536:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 536 | font1->drawTextCentered (0, 7, -2.5, "YOU MAY TARGET AN ENEMY USING THE COOLIE HAT,", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:540:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 540 | font1->drawTextCentered (0, 5, -2.5, "THEN APPROACH!", &textcolor); - | ^~~~~~~~~~~~~~~~ -mission.cpp:544:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 544 | font1->drawTextCentered (0, 7, -2.5, "YOU MAY TARGET AN ENEMY PRESSING", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:548:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 548 | font1->drawTextCentered (0, 5, -2.5, "THEN APPROACH!", &textcolor); - | ^~~~~~~~~~~~~~~~ -mission.cpp:553:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 553 | font1->drawTextCentered (0, 7, -2.5, "SHOOT THE TARGETS TO COMPLETE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:554:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 554 | font1->drawTextCentered (0, 6, -2.5, "THIS TUTORIAL SUCCESSFULLY", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from effects.h:28, - from aiobject.h:29, - from main.h:41, - from menu.cpp:27: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ -mission.cpp: In member function 'virtual void MissionTutorial2::draw()': -mission.cpp:649:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 649 | font1->drawTextCentered (0, 7, -2.5, "FIRSTLY, HAVE A LOOK AT YOUR MISSILES:", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:653:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 653 | font1->drawTextCentered (0, 5, -2.5, "AGM (AIR-GROUND-MISSILE) AND DF (DUMB FIRE)", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:657:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 657 | font1->drawTextCentered (0, 7, -2.5, "LET'S USE THE AGM: AS SOON AS THE TARGET", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:658:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 658 | font1->drawTextCentered (0, 6, -2.5, "IS LOCKED (YELLOW), SHOOT THE AGM AT ANY", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:659:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 659 | font1->drawTextCentered (0, 5, -2.5, "DIRECTION AND WATCH WHERE IT GOES.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp: In member function 'void MapLoader::readMapFile()': -maploader.cpp:57:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 57 | if (!file_open (dirs->getMaps ("maps.txt"))) - | ^~~~~~~~~~ -maploader.cpp: In constructor 'MapLoader::MapLoader()': -maploader.cpp:73:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 73 | file_setWhitespace (" \t\r\n"); - | ^~~~~~~~~ -maploader.cpp:74:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 74 | file_addComment ("#", "\n"); - | ^~~ -maploader.cpp:74:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 74 | file_addComment ("#", "\n"); - | ^~~~ -maploader.cpp:75:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 75 | file_setQuotes ("\"'´`"); - | ^~~~~~~ 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); @@ -4143,192 +4498,22 @@ land.h:50:22: note: in definition of macro 'GETCOORD' 50 | #define GETCOORD(x) (x & MAXX_MASK) | ^ -maploader.cpp: In member function 'int MissionCustom::readAttribute(char*, char*, char*)': -maploader.cpp:145:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 145 | error ("Assignment symbol '=' is missing"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:152:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 152 | error ("Unexpected end of file"); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:663:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 663 | font1->drawTextCentered (0, 7, -2.5, "THEN TRY A DF MISSILE BUT CAREFUL:", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:664:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 664 | font1->drawTextCentered (0, 6, -2.5, "IT IS QUITE 'DUMB' AND WILL FLY STRAIGHT AHEAD.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:668:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 668 | font1->drawTextCentered (0, 6, -2.5, "HOWEVER, DF MISSILES WILL CAUSE MUCH MORE DAMAGE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:672:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 672 | font1->drawTextCentered (0, 6, -2.5, "NOW, BLOW UP THE TWO TANKS", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp: In member function 'virtual void MissionTutorial3::draw()': -mission.cpp:724:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 724 | font1->drawTextCentered (0, 7, -2.5, "THE MENU OPTIONS/CONTROLS LETS YOU DEFINE DIFFICULTY", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:725:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 725 | font1->drawTextCentered (0, 6, -2.5, "AND REALISM. CHANGING THESE SETTINGS WILL ONLY HAVE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:726:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 726 | font1->drawTextCentered (0, 5, -2.5, "EFFECT ON THE NEXT MISSION YOU START", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:730:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 730 | font1->drawTextCentered (0, 7, -2.5, "APART FROM YOUR CURRENT PHYSICS SETTINGS", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:731:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 731 | font1->drawTextCentered (0, 6, -2.5, "LET'S USE THE SIMULATION MODEL AND DISCUSS", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:732:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 732 | font1->drawTextCentered (0, 5, -2.5, "THE FOUR FORCES THRUST, DRAG, LIFT, AND WEIGHT", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:736:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 736 | font1->drawTextCentered (0, 7, -2.5, "THRUST IS FORWARD FORCE CREATED BY THE ENGINES.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:737:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 737 | font1->drawTextCentered (0, 6, -2.5, "CHANGE THE THRUST TO GAIN OR LOSE SPEED", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:741:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 741 | font1->drawTextCentered (0, 7, -2.5, "DRAG IS THE RETARDING FORCE THAT LIMITS THE AIRCRAFT'S", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp: In member function 'int MissionCustom::synchronize()': -maploader.cpp:163:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 163 | if (!file_find ("\n")) return 0; - | ^~~~ -maploader.cpp: In member function 'int MissionCustom::parseMapData()': -maploader.cpp:235:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 235 | error ("Heading value must be an integer"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:259:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 259 | error ("Time value must be an integer in [0...24]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:266:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 266 | error ("Time value must be an integer in [0...24]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:742:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 742 | font1->drawTextCentered (0, 6, -2.5, "SPEED. IT IS MAINLY CAUSED BY THE AIRCRAFT'S STRUCTURE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:743:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 743 | font1->drawTextCentered (0, 5, -2.5, "THAT PROTUDES INTO THE WIND", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:747:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 747 | font1->drawTextCentered (0, 7, -2.5, "LIFT IS THE UPWARD FORCE CREATED BY THE AIRFLOW THAT PASSES", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:748:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 748 | font1->drawTextCentered (0, 6, -2.5, "OVER THE WINGS. IN STRAIGHT UNACCELERATED FLIGHT, IT", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:749:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 749 | font1->drawTextCentered (0, 5, -2.5, "COMPENSATES THE WEIGHT AND YOUR FIGHTER WON'T CLIMB OR DIVE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:753:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 753 | font1->drawTextCentered (0, 7, -2.5, "THE LIFT FORCE DEPENDS ON THE SPEED:", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:754:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 754 | font1->drawTextCentered (0, 6, -2.5, "LOW SPEED WILL CAUSE THE AIRPLANE TO DIVE,", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:755:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 755 | font1->drawTextCentered (0, 5, -2.5, "AT HIGH SPEED IT WILL EVEN CLIMB", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:759:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 759 | font1->drawTextCentered (0, 7, -2.5, "NOW TRY THIS EFFECT BY FLYING STRAIGHT AHEAD AT 0 DEGREE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:760:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 760 | font1->drawTextCentered (0, 6, -2.5, "ELEVATION WHILE USING THE LOWEST/HIGHEST THRUST SETTINGS", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:764:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 764 | font1->drawTextCentered (0, 7, -2.5, "IF YOU FLY A ROLL, THE LIFT WILL NOT OPPOSE THE THRUST", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:765:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 765 | font1->drawTextCentered (0, 6, -2.5, "AND YOU WILL LOSE HEIGHT. TRY!", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:769:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 769 | font1->drawTextCentered (0, 7, -2.5, "IF YOU ROLL TO THE SIDE, THE LIFT WILL TEAR THE AIRCRAFT", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:770:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 770 | font1->drawTextCentered (0, 6, -2.5, "FROM STRAIGHT FLIGHT TO A DIAGONAL DIRECTION WHILE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:771:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 771 | font1->drawTextCentered (0, 5, -2.5, "LOSING HEIGHT. TRY!", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~ -mission.cpp:775:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 775 | font1->drawTextCentered (0, 7, -2.5, "THE OVERALL FORCE IS GAINED BY ADDING THE FOUR FORCES.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:776:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 776 | font1->drawTextCentered (0, 6, -2.5, "IT IS MEASURED IN 'G' WITH 1G MEANING THE EARTH'S GRAVITY", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:780:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 780 | font1->drawTextCentered (0, 7, -2.5, "YOU ARE MOSTLY OPPOSED TO MORE THAN ONLY 1G. BE CAREFUL:", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:781:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 781 | font1->drawTextCentered (0, 6, -2.5, "9G OR MORE MAY LEAD TO A BLACKOUT,", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:782:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 782 | font1->drawTextCentered (0, 5, -2.5, "AT LESS THAN -3G THE BLOOD WILL SHOOT INTO YOUR HEAD", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:786:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 786 | font1->drawTextCentered (0, 7, -2.5, "NOW ROLL ON THE BACK AND GET RID OF", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:787:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 787 | font1->drawTextCentered (0, 6, -2.5, "THE TWO TRANSPORTERS AHEAD", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:300:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 300 | error ("Only 32 bpp TGA files are valid"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:313:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 313 | error ("Scaleheight value must be a float number in [0...1]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:320:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 320 | error ("Scaleheight value must be a float number in [0...1]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:333:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 333 | error ("Tree needs a number suffix like \"Tree2\" with number in [1...3]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:339:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 339 | error ("Tree value must be an integer in [0...100]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:345:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 345 | error ("Tree value must be an integer in [0...100]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ glland.cpp: In member function 'void GLLandscape::draw(int, int)': glland.cpp:2048:14: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2048 | display ("view exceeds ray casting blocks - not implemented", LOG_FATAL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp: In member function 'int MissionCustom::parseObjectData()': -maploader.cpp:369:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 369 | error ("Too many objects defined"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:426:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 426 | error ("Party value must be an integer"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:437:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 437 | error ("Level value must be an integer in [0...10]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:443:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 443 | error ("Level value must be an integer in [0...10]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:451:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 451 | error ("X value must be a float number"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:462:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 462 | error ("Y value must be a float number"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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) | ^ -maploader.cpp:473:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 473 | error ("Inittime value must be a float number"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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) | ^ -maploader.cpp:485:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 485 | error ("Critical value must be an integer"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ glland.cpp:2566:41: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] 2566 | int xstep = GETCOORD(xs + gridstep); | ~~~^~~~~~~~~~ @@ -4341,166 +4526,24 @@ land.h:50:22: note: in definition of macro 'GETCOORD' 50 | #define GETCOORD(x) (x & MAXX_MASK) | ^ -mission.cpp: In member function 'virtual void MissionDogfight1::draw()': -mission.cpp:907:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 907 | font1->drawTextCentered (0, 7, -2.5, "THAT WAS EASY", &textcolor); - | ^~~~~~~~~~~~~~~ -mission.cpp:908:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 908 | font1->drawTextCentered (0, 6, -2.5, "BUT CAN YOU HANDLE TWO ENEMIES?", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:913:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 913 | font1->drawTextCentered (0, 6, -2.5, "OK, LET'S TRY THREE ENEMIES", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:924:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 924 | font1->drawTextCentered (0, 7, -2.5, "THERE IS AN ENEMY ATTACKING", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:928:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 928 | font1->drawTextCentered (0, 5, -2.5, "SELECT A MISSILE", &textcolor); - | ^~~~~~~~~~~~~~~~~~ -mission.cpp:932:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 932 | font1->drawTextCentered (0, 7, -2.5, "CHOOSE A FRIEND-FOE (FF) MISSILE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:933:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 933 | font1->drawTextCentered (0, 6, -2.5, "WHICH DETECTS ENEMIES BY RADAR.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:934:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 934 | font1->drawTextCentered (0, 5, -2.5, "SHOOT AS EARLY AS POSSIBLE", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:938:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 938 | font1->drawTextCentered (0, 7, -2.5, "YOU CAN ONLY FIRE MISSILES WHEN", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:939:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 939 | font1->drawTextCentered (0, 6, -2.5, "THE RECTANGULAR LOCK AROUND THE ENEMY", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:940:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 940 | font1->drawTextCentered (0, 5, -2.5, "APPEARS YELLOW", &textcolor); - | ^~~~~~~~~~~~~~~~ -mission.cpp:944:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 944 | font1->drawTextCentered (0, 7, -2.5, "CHECK THE CHAFF/FLARE DISPLAYS.", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:945:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 945 | font1->drawTextCentered (0, 6, -2.5, "IF THEY START BLINKING, AN ENEMY HAS", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:946:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 946 | font1->drawTextCentered (0, 5, -2.5, "FIRED A MISSILE TO GET YOU DOWN", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:950:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 950 | font1->drawTextCentered (0, 7, -2.5, "CHAFF IS A DECOY FOR RADAR SEEKING MISSILES,", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:951:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 951 | font1->drawTextCentered (0, 6, -2.5, "FLARES PROTECT FROM INFRARED MISSILES", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:959:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 959 | font1->drawTextCentered (0, 7, -2.5, "THE COUNTER MEASURE ONLY HAD AN EFFECT,", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:960:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 960 | font1->drawTextCentered (0, 6, -2.5, "IF THE DISPLAYS STOP BLINKING", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:964:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 964 | font1->drawTextCentered (0, 7, -2.5, "A LITTLE TARGETING HINT:", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp: In member function 'int MissionCustom::parseTextData()': -maploader.cpp:511:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 511 | error ("Too many text blocks"); - | ^~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:530:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 530 | error ("Starttime value must be a float number"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:542:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 542 | error ("Delay value must be a float number"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp: In member function 'int MissionCustom::parseRelCoords()': -maploader.cpp:576:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 576 | error ("No object defined yet: coords origin could not be set"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:587:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 587 | error ("No object defined yet: coords origin could not be set"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:608:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 608 | error ("Quadrant value must be an integer in [1...16]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:614:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 614 | error ("Quadrant value must be an integer in [1...16]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp: In member function 'virtual void MissionFreeFlight1::draw()': -mission.cpp:1079:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 1079 | font1->drawTextCentered (0, 6, -2.5, "TRANSPORTERS RESPAWNING", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp: In member function 'int MissionCustom::parseInfoData()': -maploader.cpp:657:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 657 | error ("Pilot needs a number suffix like \"Pilot5\" with number in [1...maxpilots]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:664:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 664 | error ("Invalid pilot name"); - | ^~~~~~~~~~~~~~~~~~~~ -maploader.cpp:677:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 677 | error ("Fighter needs a number suffix like \"Fighter1\" with number in [1...3]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:689:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 689 | error ("Invalid fighter type"); - | ^~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:698:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 698 | error ("Weapon needs a number suffix like \"Weapon\" with number in [1...3]"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:707:18: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 707 | error ("Invalid weapon type"); - | ^~~~~~~~~~~~~~~~~~~~~ -maploader.cpp:715:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 715 | error ("Maxtime value must be a float number"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -maploader.cpp: In member function 'void MissionCustom::init()': -maploader.cpp:741:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 741 | error ("Could not open map file"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:1084:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 1084 | font1->drawTextCentered (0, 6, -2.5, "TRANSPORTERS RESPAWNING", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp: In member function 'virtual void MissionWaves1::draw()': -mission.cpp:1803:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 1803 | font1->drawTextCentered (0, 6, -2.5, "NEXT WAVE - YOU ARE FULLY REPAIRED", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp:1808:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 1808 | font1->drawTextCentered (0, 6, -2.5, "NEXT WAVE - YOU ARE FULLY REPAIRED", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from effects.h:28, - from effects.cpp:29: -object.h:58:16: warning: 'virtual void CSpaceObj::drawGL(CVector3*, CVector3*, CVector3*, float, float, bool, bool)' was hidden [-Woverloaded-virtual=] - 58 | virtual void drawGL (CVector3 *z1, CVector3 *z2, CVector3 *tl, float alpha2, float lum2, bool drawlight2, bool istextured2); - | ^~~~~~ -effects.h:164:8: note: by 'void HighClouds::drawGL(CVector3*, CVector3*)' - 164 | void drawGL (CVector3 *tl, CVector3 *textl); - | ^~~~~~ -mission.cpp: In member function 'virtual void MissionTest2::draw()': -mission.cpp:1984:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 1984 | font1->drawTextCentered (0, 4, -2, "ALMOST! GET CLEARLY BEHIND HIM!", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp: In member function 'virtual void MissionDogfight2::draw()': -mission.cpp:2240:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2240 | font1->drawTextCentered (0, 7, -3, "MORE ENEMIES ENTERING THE REGION", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp: In member function 'virtual void MissionDefend1::draw()': -mission.cpp:2984:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 2984 | font1->drawTextCentered (0, 7, -3, "MORE TANKS ARE ATTACKING", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp: In member function 'virtual void MissionDogfight3::draw()': -mission.cpp:3090:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 3090 | font1->drawTextCentered (0, 7, -3, "BOMBERS ARE ENTERING THE REGION", &textcolor); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -mission.cpp: In member function 'virtual void MissionMultiDogfight1::draw()': -mission.cpp:4394:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 4394 | font1->drawTextCentered (0, 0, -1, "DOGFIGHT"); - | ^~~~~~~~~~ -main.cpp: In function 'void proceedFire()': -main.cpp:4762:17: warning: iteration 256 invokes undefined behavior [-Waggressive-loop-optimizations] - 4762 | int h = heat [yind] [i2]; - | ^ -main.cpp:4757:21: note: within this loop - 4757 | for (i2 = 0; i2 < maxfx + 1; i2 ++) - | ~~~^~~~~~~~~~~ +main.cpp: At global scope: +main.cpp:5153:13: warning: 'void myIdleFunc()' defined but not used [-Wunused-function] + 5153 | static void myIdleFunc () + | ^~~~~~~~~~ +3ds.cpp: In member function 'void CLoad3DS::ReadUVCoordinates(CObject*, Chunk*)': +3ds.cpp:506:10: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] + 506 | delete p; + | ^ +3ds.cpp:499:51: note: returned from 'void* operator new [](long unsigned int)' + 499 | CVector2 *p = new CVector2 [object->numTexVertex]; + | ^ +3ds.cpp: In member function 'void CLoad3DS::ReadVertices(CObject*, Chunk*)': +3ds.cpp:535:10: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] + 535 | delete p; + | ^ +3ds.cpp:518:50: note: returned from 'void* operator new [](long 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); @@ -4563,6 +4606,13 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ +main.cpp: In function 'void proceedFire()': +main.cpp:4762:17: warning: iteration 256 invokes undefined behavior [-Waggressive-loop-optimizations] + 4762 | int h = heat [yind] [i2]; + | ^ +main.cpp:4757:21: note: within this loop + 4757 | for (i2 = 0; i2 < maxfx + 1; i2 ++) + | ~~~^~~~~~~~~~~ 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); @@ -4576,20 +4626,6 @@ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ -3ds.cpp: In member function 'void CLoad3DS::ReadUVCoordinates(CObject*, Chunk*)': -3ds.cpp:506:10: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] - 506 | delete p; - | ^ -3ds.cpp:499:51: note: returned from 'void* operator new [](long unsigned int)' - 499 | CVector2 *p = new CVector2 [object->numTexVertex]; - | ^ -3ds.cpp: In member function 'void CLoad3DS::ReadVertices(CObject*, Chunk*)': -3ds.cpp:535:10: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete] - 535 | delete p; - | ^ -3ds.cpp:518:50: note: returned from 'void* operator new [](long unsigned int)' - 518 | CVector3 *p = new CVector3 [object->numVertices]; - | ^ 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 -j42 check "TESTSUITEFLAGS=-j42 --verbose" VERBOSE=1 + make -j40 check "TESTSUITEFLAGS=-j40 --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' @@ -4725,7 +4761,7 @@ create-stamp debian/debhelper-build-stamp dh_prep dh_auto_install - make -j42 install DESTDIR=/build/reproducible-path/gl-117-1.3.2/debian/tmp AM_UPDATE_INFO_DIR=no + make -j40 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' @@ -4780,12 +4816,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/4150168/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/4150168/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/379746 and its subdirectories -I: Current time: Fri Oct 2 14:53:24 -12 2026 -I: pbuilder-time-stamp: 1790996004 +I: removing directory /srv/workspace/pbuilder/4150168 and its subdirectories +I: Current time: Sun Aug 31 10:32:05 +14 2025 +I: pbuilder-time-stamp: 1756585925