Diff of the two buildlogs: -- --- b1/build.log 2020-06-16 12:49:15.863661036 +0000 +++ b2/build.log 2020-06-16 12:56:40.330762666 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Jul 19 07:11:38 -12 2021 -I: pbuilder-time-stamp: 1626721898 +I: Current time: Wed Jun 17 02:49:25 +14 2020 +I: pbuilder-time-stamp: 1592311765 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/buster-reproducible-base.tgz] I: copying local configuration @@ -18,7 +18,7 @@ I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/root/.gnupg/trustedkeys.kbx': General error -gpgv: Signature made Wed Jan 2 09:25:12 2019 -12 +gpgv: Signature made Thu Jan 3 11:25:12 2019 +14 gpgv: using RSA key 05DB6A837E105F4B1D02C55FBBA9FAADCCFB4707 gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./tomatoes_1.55-9.dsc @@ -37,138 +37,172 @@ dpkg-source: info: applying 09_sort_source_files.diff I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/40537/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/13656/tmp/hooks/D01_modify_environment starting +debug: Running on profitbricks-build12-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by 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/13656/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/13656/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=18' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='i386' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="0" [2]="3" [3]="1" [4]="release" [5]="i686-pc-linux-gnu") + BASH_VERSION='5.0.3(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=10' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='8a255df75f794ba0b32aaf5718f5c248' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='40537' - PS1='# ' - PS2='> ' + INVOCATION_ID=043923d83f5c4a92b6d7217f031ffbdd + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=13656 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/tmp.0Vcqc2XeI4/pbuilderrc_q3Mz --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.0Vcqc2XeI4/b1 --logfile b1/build.log tomatoes_1.55-9.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://85.184.249.68: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/tmp.0Vcqc2XeI4/pbuilderrc_rLb9 --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.0Vcqc2XeI4/b2 --logfile b2/build.log tomatoes_1.55-9.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://78.137.99.97:3128 I: uname -a - Linux profitbricks-build16-i386 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux + Linux i-capture-the-hostname 4.19.0-9-686-pae #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) i686 GNU/Linux I: ls -l /bin total 5476 - -rwxr-xr-x 1 root root 1302248 Apr 17 2019 bash - -rwxr-xr-x 3 root root 38280 Jul 10 2019 bunzip2 - -rwxr-xr-x 3 root root 38280 Jul 10 2019 bzcat - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2227 Jul 10 2019 bzdiff - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Jun 24 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3641 Jul 10 2019 bzgrep - -rwxr-xr-x 3 root root 38280 Jul 10 2019 bzip2 - -rwxr-xr-x 1 root root 17768 Jul 10 2019 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 10 2019 bzmore - -rwxr-xr-x 1 root root 38692 Feb 28 2019 cat - -rwxr-xr-x 1 root root 75588 Feb 28 2019 chgrp - -rwxr-xr-x 1 root root 63268 Feb 28 2019 chmod - -rwxr-xr-x 1 root root 75588 Feb 28 2019 chown - -rwxr-xr-x 1 root root 153732 Feb 28 2019 cp - -rwxr-xr-x 1 root root 132820 Jan 17 2019 dash - -rwxr-xr-x 1 root root 120676 Feb 28 2019 date - -rwxr-xr-x 1 root root 92040 Feb 28 2019 dd - -rwxr-xr-x 1 root root 100620 Feb 28 2019 df - -rwxr-xr-x 1 root root 149736 Feb 28 2019 dir - -rwxr-xr-x 1 root root 79412 Jan 9 2019 dmesg - lrwxrwxrwx 1 root root 8 Sep 26 2018 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Sep 26 2018 domainname -> hostname - -rwxr-xr-x 1 root root 34532 Feb 28 2019 echo - -rwxr-xr-x 1 root root 28 Jan 7 2019 egrep - -rwxr-xr-x 1 root root 34532 Feb 28 2019 false - -rwxr-xr-x 1 root root 28 Jan 7 2019 fgrep - -rwxr-xr-x 1 root root 67700 Jan 9 2019 findmnt - -rwsr-xr-x 1 root root 30112 Apr 22 2020 fusermount - -rwxr-xr-x 1 root root 206392 Jan 7 2019 grep - -rwxr-xr-x 2 root root 2345 Jan 5 2019 gunzip - -rwxr-xr-x 1 root root 6375 Jan 5 2019 gzexe - -rwxr-xr-x 1 root root 100952 Jan 5 2019 gzip - -rwxr-xr-x 1 root root 21916 Sep 26 2018 hostname - -rwxr-xr-x 1 root root 79752 Feb 28 2019 ln - -rwxr-xr-x 1 root root 55400 Jul 26 2018 login - -rwxr-xr-x 1 root root 149736 Feb 28 2019 ls - -rwxr-xr-x 1 root root 112032 Jan 9 2019 lsblk - -rwxr-xr-x 1 root root 87972 Feb 28 2019 mkdir - -rwxr-xr-x 1 root root 79748 Feb 28 2019 mknod - -rwxr-xr-x 1 root root 46916 Feb 28 2019 mktemp - -rwxr-xr-x 1 root root 42348 Jan 9 2019 more - -rwsr-xr-x 1 root root 50592 Jan 9 2019 mount - -rwxr-xr-x 1 root root 13724 Jan 9 2019 mountpoint - -rwxr-xr-x 1 root root 157832 Feb 28 2019 mv - lrwxrwxrwx 1 root root 8 Sep 26 2018 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Feb 14 2019 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 38660 Feb 28 2019 pwd - lrwxrwxrwx 1 root root 4 Apr 17 2019 rbash -> bash - -rwxr-xr-x 1 root root 46852 Feb 28 2019 readlink - -rwxr-xr-x 1 root root 75588 Feb 28 2019 rm - -rwxr-xr-x 1 root root 42756 Feb 28 2019 rmdir - -rwxr-xr-x 1 root root 22276 Jan 21 2019 run-parts - -rwxr-xr-x 1 root root 125036 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Jul 19 02:48 sh -> dash - -rwxr-xr-x 1 root root 34532 Feb 28 2019 sleep - -rwxr-xr-x 1 root root 79652 Feb 28 2019 stty - -rwsr-xr-x 1 root root 71072 Jan 9 2019 su - -rwxr-xr-x 1 root root 34564 Feb 28 2019 sync - -rwxr-xr-x 1 root root 504024 Apr 23 2019 tar - -rwxr-xr-x 1 root root 13860 Jan 21 2019 tempfile - -rwxr-xr-x 1 root root 104292 Feb 28 2019 touch - -rwxr-xr-x 1 root root 34532 Feb 28 2019 true - -rwxr-xr-x 1 root root 17768 Apr 22 2020 ulockmgr_server - -rwsr-xr-x 1 root root 30108 Jan 9 2019 umount - -rwxr-xr-x 1 root root 34532 Feb 28 2019 uname - -rwxr-xr-x 2 root root 2345 Jan 5 2019 uncompress - -rwxr-xr-x 1 root root 149736 Feb 28 2019 vdir - -rwxr-xr-x 1 root root 34208 Jan 9 2019 wdctl - -rwxr-xr-x 1 root root 946 Jan 21 2019 which - lrwxrwxrwx 1 root root 8 Sep 26 2018 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1983 Jan 5 2019 zcat - -rwxr-xr-x 1 root root 1677 Jan 5 2019 zcmp - -rwxr-xr-x 1 root root 5879 Jan 5 2019 zdiff - -rwxr-xr-x 1 root root 29 Jan 5 2019 zegrep - -rwxr-xr-x 1 root root 29 Jan 5 2019 zfgrep - -rwxr-xr-x 1 root root 2080 Jan 5 2019 zforce - -rwxr-xr-x 1 root root 7584 Jan 5 2019 zgrep - -rwxr-xr-x 1 root root 2205 Jan 5 2019 zless - -rwxr-xr-x 1 root root 1841 Jan 5 2019 zmore - -rwxr-xr-x 1 root root 4552 Jan 5 2019 znew -I: user script /srv/workspace/pbuilder/40537/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1302248 Apr 18 2019 bash + -rwxr-xr-x 3 root root 38280 Jul 11 2019 bunzip2 + -rwxr-xr-x 3 root root 38280 Jul 11 2019 bzcat + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2227 Jul 11 2019 bzdiff + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Jun 25 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3641 Jul 11 2019 bzgrep + -rwxr-xr-x 3 root root 38280 Jul 11 2019 bzip2 + -rwxr-xr-x 1 root root 17768 Jul 11 2019 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 11 2019 bzmore + -rwxr-xr-x 1 root root 38692 Mar 1 2019 cat + -rwxr-xr-x 1 root root 75588 Mar 1 2019 chgrp + -rwxr-xr-x 1 root root 63268 Mar 1 2019 chmod + -rwxr-xr-x 1 root root 75588 Mar 1 2019 chown + -rwxr-xr-x 1 root root 153732 Mar 1 2019 cp + -rwxr-xr-x 1 root root 132820 Jan 18 2019 dash + -rwxr-xr-x 1 root root 120676 Mar 1 2019 date + -rwxr-xr-x 1 root root 92040 Mar 1 2019 dd + -rwxr-xr-x 1 root root 100620 Mar 1 2019 df + -rwxr-xr-x 1 root root 149736 Mar 1 2019 dir + -rwxr-xr-x 1 root root 79412 Jan 10 2019 dmesg + lrwxrwxrwx 1 root root 8 Sep 27 2018 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Sep 27 2018 domainname -> hostname + -rwxr-xr-x 1 root root 34532 Mar 1 2019 echo + -rwxr-xr-x 1 root root 28 Jan 8 2019 egrep + -rwxr-xr-x 1 root root 34532 Mar 1 2019 false + -rwxr-xr-x 1 root root 28 Jan 8 2019 fgrep + -rwxr-xr-x 1 root root 67700 Jan 10 2019 findmnt + -rwsr-xr-x 1 root root 30112 Apr 23 09:38 fusermount + -rwxr-xr-x 1 root root 206392 Jan 8 2019 grep + -rwxr-xr-x 2 root root 2345 Jan 6 2019 gunzip + -rwxr-xr-x 1 root root 6375 Jan 6 2019 gzexe + -rwxr-xr-x 1 root root 100952 Jan 6 2019 gzip + -rwxr-xr-x 1 root root 21916 Sep 27 2018 hostname + -rwxr-xr-x 1 root root 79752 Mar 1 2019 ln + -rwxr-xr-x 1 root root 55400 Jul 27 2018 login + -rwxr-xr-x 1 root root 149736 Mar 1 2019 ls + -rwxr-xr-x 1 root root 112032 Jan 10 2019 lsblk + -rwxr-xr-x 1 root root 87972 Mar 1 2019 mkdir + -rwxr-xr-x 1 root root 79748 Mar 1 2019 mknod + -rwxr-xr-x 1 root root 46916 Mar 1 2019 mktemp + -rwxr-xr-x 1 root root 42348 Jan 10 2019 more + -rwsr-xr-x 1 root root 50592 Jan 10 2019 mount + -rwxr-xr-x 1 root root 13724 Jan 10 2019 mountpoint + -rwxr-xr-x 1 root root 157832 Mar 1 2019 mv + lrwxrwxrwx 1 root root 8 Sep 27 2018 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Feb 15 2019 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 38660 Mar 1 2019 pwd + lrwxrwxrwx 1 root root 4 Apr 18 2019 rbash -> bash + -rwxr-xr-x 1 root root 46852 Mar 1 2019 readlink + -rwxr-xr-x 1 root root 75588 Mar 1 2019 rm + -rwxr-xr-x 1 root root 42756 Mar 1 2019 rmdir + -rwxr-xr-x 1 root root 22276 Jan 22 2019 run-parts + -rwxr-xr-x 1 root root 125036 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Jun 17 02:53 sh -> bash + lrwxrwxrwx 1 root root 4 Jun 16 22:25 sh.distrib -> dash + -rwxr-xr-x 1 root root 34532 Mar 1 2019 sleep + -rwxr-xr-x 1 root root 79652 Mar 1 2019 stty + -rwsr-xr-x 1 root root 71072 Jan 10 2019 su + -rwxr-xr-x 1 root root 34564 Mar 1 2019 sync + -rwxr-xr-x 1 root root 504024 Apr 24 2019 tar + -rwxr-xr-x 1 root root 13860 Jan 22 2019 tempfile + -rwxr-xr-x 1 root root 104292 Mar 1 2019 touch + -rwxr-xr-x 1 root root 34532 Mar 1 2019 true + -rwxr-xr-x 1 root root 17768 Apr 23 09:38 ulockmgr_server + -rwsr-xr-x 1 root root 30108 Jan 10 2019 umount + -rwxr-xr-x 1 root root 34532 Mar 1 2019 uname + -rwxr-xr-x 2 root root 2345 Jan 6 2019 uncompress + -rwxr-xr-x 1 root root 149736 Mar 1 2019 vdir + -rwxr-xr-x 1 root root 34208 Jan 10 2019 wdctl + -rwxr-xr-x 1 root root 946 Jan 22 2019 which + lrwxrwxrwx 1 root root 8 Sep 27 2018 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1983 Jan 6 2019 zcat + -rwxr-xr-x 1 root root 1677 Jan 6 2019 zcmp + -rwxr-xr-x 1 root root 5879 Jan 6 2019 zdiff + -rwxr-xr-x 1 root root 29 Jan 6 2019 zegrep + -rwxr-xr-x 1 root root 29 Jan 6 2019 zfgrep + -rwxr-xr-x 1 root root 2080 Jan 6 2019 zforce + -rwxr-xr-x 1 root root 7584 Jan 6 2019 zgrep + -rwxr-xr-x 1 root root 2205 Jan 6 2019 zless + -rwxr-xr-x 1 root root 1841 Jan 6 2019 zmore + -rwxr-xr-x 1 root root 4552 Jan 6 2019 znew +I: user script /srv/workspace/pbuilder/13656/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -426,7 +460,7 @@ Get: 214 http://deb.debian.org/debian buster/main i386 libsdl-mixer1.2 i386 1.2.12-15 [89.6 kB] Get: 215 http://deb.debian.org/debian buster/main i386 libvorbis-dev i386 1.3.6-2 [332 kB] Get: 216 http://deb.debian.org/debian buster/main i386 libsdl-mixer1.2-dev i386 1.2.12-15 [114 kB] -Fetched 73.8 MB in 2s (43.5 MB/s) +Fetched 73.8 MB in 23s (3242 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libbsd0:i386. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19234 files and directories currently installed.) @@ -1318,7 +1352,7 @@ fakeroot is already the newest version (1.23-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/tomatoes-1.55/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b +I: Running cd /build/tomatoes-1.55/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b dpkg-buildpackage: info: source package tomatoes dpkg-buildpackage: info: source version 1.55-9 dpkg-buildpackage: info: source distribution unstable @@ -1328,7 +1362,7 @@ fakeroot debian/rules clean dh clean dh_auto_clean - make -j18 clean + make -j10 clean make[1]: Entering directory '/build/tomatoes-1.55' rm -f obj/bomb.o obj/bonus.o obj/comments.o obj/config.o obj/effects.o obj/enemy.o obj/font.o obj/game.o obj/helpers.o obj/hiscore.o obj/init.o obj/levels.o obj/main.o obj/menu.o obj/mpak.o obj/mymath.o obj/particle.o obj/pathfinder.o obj/player.o obj/screenshot.o obj/select_special.o obj/soundmusic.o obj/special_power.o obj/teleport.o obj/texture.o obj/tilemap.o obj/timer.o obj/trap.o ./tomatoes make[1]: Leaving directory '/build/tomatoes-1.55' @@ -1341,7 +1375,7 @@ debian/rules override_dh_auto_build make[1]: Entering directory '/build/tomatoes-1.55' dh_auto_build -- 'CC=$(CXX)' - make -j18 "INSTALL=install --strip-program=true" CC=\$\(CXX\) + make -j10 "INSTALL=install --strip-program=true" CC=\$\(CXX\) make[2]: Entering directory '/build/tomatoes-1.55' g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/bomb.cpp -o obj/bomb.o g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/bonus.cpp -o obj/bonus.o @@ -1353,89 +1387,45 @@ g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/game.cpp -o obj/game.o g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/helpers.cpp -o obj/helpers.o g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/hiscore.cpp -o obj/hiscore.o -g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/init.cpp -o obj/init.o -g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/levels.cpp -o obj/levels.o -g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/main.cpp -o obj/main.o -g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/menu.cpp -o obj/menu.o -g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/mpak.cpp -o obj/mpak.o -g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/mymath.cpp -o obj/mymath.o -g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/particle.cpp -o obj/particle.o -g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/pathfinder.cpp -o obj/pathfinder.o -src/mpak.cpp: In member function 'int MPAK_FILE::open_mpk(int, char*, char*)': -src/mpak.cpp:277:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] - fread(&crc_checksum, sizeof(crc_checksum), 1, fpointer); - ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/mpak.cpp:291:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] - fread(&filetable_offset, sizeof(filetable_offset), 1, fpointer); - ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/mpak.cpp:298:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] - fread(&num_files, sizeof(num_files), 1, fpointer); - ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/mpak.cpp:308:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] - fread(files[f], 1, len, fpointer); - ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/mpak.cpp:310:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] - fread(&offsets[f], sizeof(offsets[f]), 1, fpointer); - ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/mpak.cpp: In member function 'int MPAK_FILE::extract_file(char*, char*)': -src/mpak.cpp:536:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] - fread(buffer, 1, bytes_left, fin); - ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from src/helpers.cpp:32: -/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined - #define GL_GLEXT_VERSION 29 - -In file included from /usr/include/GL/gl.h:2055, - from /usr/include/SDL/SDL_opengl.h:46, - from src/helpers.cpp:32: -/usr/include/GL/glext.h:54: note: this is the location of the previous definition - #define GL_GLEXT_VERSION 20180725 - -In file included from src/bomb.cpp:32: +In file included from src/enemy.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined #define GL_GLEXT_VERSION 29 -In file included from src/comments.cpp:34: +In file included from src/effects.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, - from src/bomb.cpp:32: + from src/enemy.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, - from src/comments.cpp:34: + from src/effects.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 -In file included from src/enemy.cpp:32: +In file included from src/bomb.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined #define GL_GLEXT_VERSION 29 -In file included from src/effects.cpp:32: +In file included from src/game.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined #define GL_GLEXT_VERSION 29 -In file included from /usr/include/GL/gl.h:2055, - from /usr/include/SDL/SDL_opengl.h:46, - from src/enemy.cpp:32: -/usr/include/GL/glext.h:54: note: this is the location of the previous definition - #define GL_GLEXT_VERSION 20180725 +In file included from src/hiscore.cpp:34: +/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined + #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, - from src/effects.cpp:32: + from src/bomb.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 -In file included from src/font.cpp:35: -/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined - #define GL_GLEXT_VERSION 29 - -In file included from src/hiscore.cpp:34: +In file included from src/helpers.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined #define GL_GLEXT_VERSION 29 @@ -1443,13 +1433,9 @@ /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined #define GL_GLEXT_VERSION 29 -In file included from src/init.cpp:39: -/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined - #define GL_GLEXT_VERSION 29 - In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, - from src/font.cpp:35: + from src/game.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 @@ -1467,81 +1453,227 @@ In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, - from src/init.cpp:39: + from src/helpers.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 -In file included from src/menu.cpp:34: -/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined - #define GL_GLEXT_VERSION 29 - -In file included from src/main.cpp:32: +In file included from src/font.cpp:35: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, - from src/menu.cpp:34: + from src/font.cpp:35: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 +In file included from src/comments.cpp:34: +/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined + #define GL_GLEXT_VERSION 29 + In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, - from src/main.cpp:32: + from src/comments.cpp:34: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 -In file included from src/particle.cpp:32: +src/config.cpp: In function 'void load_config(std::__cxx11::string, CONFIG*)': +src/config.cpp:107:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + error_msg("Unable to load config file: %s!", file.c_str()); + ^ +src/config.cpp: In function 'void save_config(std::__cxx11::string, CONFIG*)': +src/config.cpp:134:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + error_msg("Unable to save config file: %s!", file.c_str()); + ^ +src/config.cpp: In function 'void load_config(std::__cxx11::string, CONFIG*)': +src/config.cpp:109:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] + fscanf(f, "video_mode = %d x %d\n", &(conf->vid_w), &(conf->vid_h)); + ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/config.cpp:110:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] + fscanf(f, "video_mode_color_depth = %d\n", &(conf->vid_color_depth)); + ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/config.cpp:111:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] + fscanf(f, "video_mode_fullscreen = %d\n", &(conf->fullscreen)); + ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/config.cpp:112:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] + fscanf(f, "sound_enabled = %d\n", &(conf->sound)); + ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/config.cpp:113:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] + fscanf(f, "sound_freq = %d\n", &(conf->sound_freq)); + ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/config.cpp:114:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] + fscanf(f, "sound_volume = %d\n", &(conf->sound_vol)); + ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/config.cpp:115:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] + fscanf(f, "music_volume = %d\n", &(conf->music_vol)); + ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/config.cpp:116:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] + fscanf(f, "show_fps = %d\n", &(conf->show_fps)); + ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/config.cpp:117:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] + fscanf(f, "key_left = %d %d\n", &(conf->key_left[0]), &(conf->key_left[1])); + ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/config.cpp:118:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] + fscanf(f, "key_right = %d %d\n", &(conf->key_right[0]), &(conf->key_right[1])); + ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/config.cpp:119:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] + fscanf(f, "key_up = %d %d\n", &(conf->key_up[0]), &(conf->key_up[1])); + ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/config.cpp:120:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] + fscanf(f, "key_down = %d %d\n", &(conf->key_down[0]), &(conf->key_down[1])); + ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/config.cpp:121:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] + fscanf(f, "key_shoot = %d %d\n", &(conf->key_shoot[0]), &(conf->key_shoot[1])); + ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/config.cpp:122:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] + fscanf(f, "key_special = %d %d\n", &(conf->key_special[0]), &(conf->key_special[1])); + ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/config.cpp:123:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] + fscanf(f, "perspective = %d\n", &(conf->perspective_mode)); + ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/config.cpp:124:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] + fscanf(f, "moving_style = %d %d\n", &(conf->moving_style[0]), &(conf->moving_style[1])); + ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/hiscore.cpp: In member function 'void HISCORE_LIST::input_name(int)': +src/hiscore.cpp:333:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + glprintf_center(font1, 0, 0, -4.5f, -13, "CONGRATULATIONS"); + ^ +src/hiscore.cpp: In member function 'void HISCORE_LIST::draw(int, float)': +src/hiscore.cpp:353:129: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + glprintf_center(font1, 0, 0, 3.05f, -13, "%s", ((this == &hiscore_1) ? "SINGLE PLAYER HIGH SCORES" : "TWO PLAYERS HIGH SCORES")); + ^ +src/hiscore.cpp:366:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + glprintf(font1, 0, -5.0f, ypos, -13, "%2d.", f+1); + ^ +src/hiscore.cpp:373:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + glprintf(font1, 0, -3.7f, ypos, -13, "%s", list[f].name); + ^ +src/hiscore.cpp:380:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + glprintf(font1, 0, 3.4f, ypos, -13, "%03d", list[f].score); + ^ +src/hiscore.cpp: In member function 'void HISCORE_LIST::save(std::__cxx11::string)': +src/hiscore.cpp:408:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + error_msg("Unable to save the hiscore list to %s!\n", file.c_str()); + ^ +src/hiscore.cpp: In member function 'void HISCORE_LIST::load(std::__cxx11::string)': +src/hiscore.cpp:436:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] + fread(&list[f].score, sizeof(int), 1, fin); + ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/hiscore.cpp:440:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] + fread(list[f].name, NAME_LEN, 1, fin); + ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/game.cpp: In function 'void draw()': +src/game.cpp:223:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + glprintf_center(font1, 0, 0, 9, -25, "FPS: %02.1f", fps); + ^ +src/game.cpp:260:75: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + glprintf_center(font1, 0, 0, 2.0f, -13, "ARE YOU SURE YOU WANT TO EXIT?"); + ^ +src/game.cpp:261:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + glprintf_center(font1, 0, 0, 1.1f, -13, "Press ESC to exit, or ENTER to resume."); + ^ +src/game.cpp: In function 'void start_game(bool)': +src/game.cpp:526:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + int place = list.add_name("null", kill_count); + ^ +src/bonus.cpp: In function 'void load_bonus()': +src/bonus.cpp:97:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + bonus_tex = load_png("bonus.png", true, false, false); + ^ +src/bonus.cpp:98:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + bonus_particle = load_jpg("bonus_part.jpg", false, false, true); + ^ +src/bomb.cpp: In function 'void load_bombs()': +src/bomb.cpp:80:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + bomb_tex[0] = load_png("bomb1.png", true, false, false); + ^ +src/enemy.cpp: In function 'void load_enemies()': +src/enemy.cpp:80:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + enemy_anim[0] = load_png("enemy1.png", true, false, false); + ^ +src/enemy.cpp:81:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + enemy_anim[1] = load_png("enemy2.png", true, false, false); + ^ +src/enemy.cpp:82:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + enemy_anim[2] = load_png("enemy3.png", true, false, false); + ^ +src/helpers.cpp: In function 'void load_wisps()': +src/helpers.cpp:85:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + wisp_tex = load_jpg("wisp.jpg", false, false, true); + ^ +src/bomb.cpp: In member function 'void BOMB::move()': +src/bomb.cpp:456:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + add_comment(COL_DEFAULT, "Five enemies with one bomb!"); + ^ +src/helpers.cpp: In function 'void load_potatoman()': +src/helpers.cpp:300:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + potatoman_tex = load_png("potatoman.png", true, false, false); + ^ +g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/init.cpp -o obj/init.o +g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/levels.cpp -o obj/levels.o +g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/main.cpp -o obj/main.o +In file included from src/init.cpp:39: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, - from src/particle.cpp:32: + from src/init.cpp:39: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 -In file included from src/pathfinder.cpp:32: +In file included from src/levels.cpp:33: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, - from src/pathfinder.cpp:32: + from src/levels.cpp:33: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 -In file included from src/game.cpp:32: +g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/menu.cpp -o obj/menu.o +In file included from src/main.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, - from src/game.cpp:32: + from src/main.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 -In file included from src/levels.cpp:33: +g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/mpak.cpp -o obj/mpak.o +In file included from src/menu.cpp:34: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, - from src/levels.cpp:33: + from src/menu.cpp:34: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 -g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/player.cpp -o obj/player.o -g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/screenshot.cpp -o obj/screenshot.o -g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/select_special.cpp -o obj/select_special.o -src/config.cpp: In function 'void load_config(std::__cxx11::string, CONFIG*)': -src/config.cpp:107:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - error_msg("Unable to load config file: %s!", file.c_str()); - ^ -src/config.cpp: In function 'void save_config(std::__cxx11::string, CONFIG*)': -src/config.cpp:134:74: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - error_msg("Unable to save config file: %s!", file.c_str()); - ^ +src/mpak.cpp: In member function 'int MPAK_FILE::open_mpk(int, char*, char*)': +src/mpak.cpp:277:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] + fread(&crc_checksum, sizeof(crc_checksum), 1, fpointer); + ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/mpak.cpp:291:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] + fread(&filetable_offset, sizeof(filetable_offset), 1, fpointer); + ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/mpak.cpp:298:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] + fread(&num_files, sizeof(num_files), 1, fpointer); + ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/mpak.cpp:308:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] + fread(files[f], 1, len, fpointer); + ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/mpak.cpp:310:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] + fread(&offsets[f], sizeof(offsets[f]), 1, fpointer); + ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/mpak.cpp: In member function 'int MPAK_FILE::extract_file(char*, char*)': +src/mpak.cpp:536:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] + fread(buffer, 1, bytes_left, fin); + ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/init.cpp: In function 'void init_sdl_and_gl()': src/init.cpp:94:100: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Sorry, 8-bit color depth is not supported!\nYou must use 15, 16, 24 or 32-bit mode.\n"); @@ -1568,14 +1700,7 @@ src/init.cpp:135:140: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to set the OpenGL video mode %d x %d (%d bit)!\n%s", config.vid_w, config.vid_h, config.vid_color_depth, SDL_GetError()); ^ -src/hiscore.cpp: In member function 'void HISCORE_LIST::input_name(int)': -src/hiscore.cpp:333:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - glprintf_center(font1, 0, 0, -4.5f, -13, "CONGRATULATIONS"); - ^ -src/hiscore.cpp: In member function 'void HISCORE_LIST::draw(int, float)': -src/hiscore.cpp:353:129: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - glprintf_center(font1, 0, 0, 3.05f, -13, "%s", ((this == &hiscore_1) ? "SINGLE PLAYER HIGH SCORES" : "TWO PLAYERS HIGH SCORES")); - ^ +g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/mymath.cpp -o obj/mymath.o src/menu.cpp: In function 'char* key_name(int)': src/menu.cpp:111:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] return "LEFT ARROW"; @@ -1583,21 +1708,12 @@ src/menu.cpp:113:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] return "RIGHT ARROW"; ^~~~~~~~~~~~~ -src/hiscore.cpp:366:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - glprintf(font1, 0, -5.0f, ypos, -13, "%2d.", f+1); - ^ src/menu.cpp:115:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] return "UP ARROW"; ^~~~~~~~~~ -src/hiscore.cpp:373:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - glprintf(font1, 0, -3.7f, ypos, -13, "%s", list[f].name); - ^ src/menu.cpp:117:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] return "DOWN ARROW"; ^~~~~~~~~~~~ -src/hiscore.cpp:380:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - glprintf(font1, 0, 3.4f, ypos, -13, "%03d", list[f].score); - ^ src/menu.cpp:127:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] return "PRESS A KEY"; // This is displayed when we're setting ^~~~~~~~~~~~~ @@ -1617,10 +1733,6 @@ src/menu.cpp:152:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] glprintf_center(font1, 0, 0, vpos-VPOS_WHO, -13, "MIKA HALTTUNEN"); ^ -src/hiscore.cpp: In member function 'void HISCORE_LIST::save(std::__cxx11::string)': -src/hiscore.cpp:408:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - error_msg("Unable to save the hiscore list to %s!\n", file.c_str()); - ^ src/menu.cpp:156:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] glprintf_center(font1, 0, 0, vpos, -13, "SOUND AND MUSIC"); ^ @@ -1643,9 +1755,21 @@ src/menu.cpp:253:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] glprintf(font1, 0, -7.0f, -5.3f, -13, VERSION); ^ +src/levels.cpp: In function 'void load_bg_number(int)': +src/levels.cpp:181:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + load_texture_into(cur_bground, str, "JPG", false, false, true); + ^ +src/levels.cpp: In function 'void init_levels()': +src/levels.cpp:209:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + add_comment(COL_DEFAULT, "Press ENTER to begin level %s.", level_names[cur_level]); + ^ src/menu.cpp:370:114: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] glprintf(font1, 0, -5.0f, 3.0f, -13, "Settings for: %s", (whose_keys == 0) ? "PLAYER ONE" : "PLAYER TWO"); ^ +src/levels.cpp: In function 'bool change_level()': +src/levels.cpp:256:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + add_comment(COL_DEFAULT, "Ten seconds left."); + ^ src/menu.cpp:377:124: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] glprintf(font1, 0, -5.0f, 2.5f, -13, "Moving style: %s", (config.moving_style[who] == 1) ? "RELATIVE" : "ABSOLUTE"); ^ @@ -1698,108 +1822,16 @@ src/menu.cpp:931:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] menu_bg = load_jpg("menubg.jpg", false, true, true); ^ -In file included from src/screenshot.cpp:34: -/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined - #define GL_GLEXT_VERSION 29 - -In file included from /usr/include/GL/gl.h:2055, - from /usr/include/SDL/SDL_opengl.h:46, - from src/screenshot.cpp:34: -/usr/include/GL/glext.h:54: note: this is the location of the previous definition - #define GL_GLEXT_VERSION 20180725 - -src/hiscore.cpp: In member function 'void HISCORE_LIST::load(std::__cxx11::string)': -src/hiscore.cpp:436:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] - fread(&list[f].score, sizeof(int), 1, fin); - ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/hiscore.cpp:440:8: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] - fread(list[f].name, NAME_LEN, 1, fin); - ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/particle.cpp: In function 'void load_particles()': -src/particle.cpp:69:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - part_spark = load_jpg("spark.jpg", false, false, true); - ^ -src/particle.cpp:70:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - part_explo = load_jpg("explo.jpg", false, false, true); - ^ -src/particle.cpp:71:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - part_star = load_jpg("star.jpg", false, false, true); - ^ -src/particle.cpp:72:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - part_glow = load_jpg("glow.jpg", false, false, true); - ^ -src/particle.cpp:73:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - part_smoke = load_png("smoke.png", true, false, true); - ^ -src/particle.cpp:74:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - part_fire = load_jpg("fire.jpg", false, false, true); - ^ -src/particle.cpp:75:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - part_flower = load_png("flower.png", true, false, true); - ^ -src/config.cpp: In function 'void load_config(std::__cxx11::string, CONFIG*)': -src/config.cpp:109:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] - fscanf(f, "video_mode = %d x %d\n", &(conf->vid_w), &(conf->vid_h)); - ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/config.cpp:110:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] - fscanf(f, "video_mode_color_depth = %d\n", &(conf->vid_color_depth)); - ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/config.cpp:111:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] - fscanf(f, "video_mode_fullscreen = %d\n", &(conf->fullscreen)); - ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/config.cpp:112:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] - fscanf(f, "sound_enabled = %d\n", &(conf->sound)); - ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/config.cpp:113:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] - fscanf(f, "sound_freq = %d\n", &(conf->sound_freq)); - ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/config.cpp:114:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] - fscanf(f, "sound_volume = %d\n", &(conf->sound_vol)); - ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/config.cpp:115:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] - fscanf(f, "music_volume = %d\n", &(conf->music_vol)); - ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/config.cpp:116:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] - fscanf(f, "show_fps = %d\n", &(conf->show_fps)); - ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/config.cpp:117:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] - fscanf(f, "key_left = %d %d\n", &(conf->key_left[0]), &(conf->key_left[1])); - ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/config.cpp:118:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] - fscanf(f, "key_right = %d %d\n", &(conf->key_right[0]), &(conf->key_right[1])); - ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/config.cpp:119:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] - fscanf(f, "key_up = %d %d\n", &(conf->key_up[0]), &(conf->key_up[1])); - ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/config.cpp:120:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] - fscanf(f, "key_down = %d %d\n", &(conf->key_down[0]), &(conf->key_down[1])); - ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/config.cpp:121:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] - fscanf(f, "key_shoot = %d %d\n", &(conf->key_shoot[0]), &(conf->key_shoot[1])); - ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/config.cpp:122:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] - fscanf(f, "key_special = %d %d\n", &(conf->key_special[0]), &(conf->key_special[1])); - ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/config.cpp:123:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] - fscanf(f, "perspective = %d\n", &(conf->perspective_mode)); - ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/config.cpp:124:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] - fscanf(f, "moving_style = %d %d\n", &(conf->moving_style[0]), &(conf->moving_style[1])); - ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from src/player.cpp:32: -/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined - #define GL_GLEXT_VERSION 29 - -In file included from /usr/include/GL/gl.h:2055, - from /usr/include/SDL/SDL_opengl.h:46, - from src/player.cpp:32: -/usr/include/GL/glext.h:54: note: this is the location of the previous definition - #define GL_GLEXT_VERSION 20180725 - -src/helpers.cpp: In function 'void load_wisps()': -src/helpers.cpp:85:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - wisp_tex = load_jpg("wisp.jpg", false, false, true); - ^ +src/levels.cpp:318:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + add_comment(COL_DEFAULT, "Level finished."); + ^ +src/levels.cpp:320:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + add_comment(COL_DEFAULT, "GAME OVER"); + ^ +src/levels.cpp: In function 'void next_level()': +src/levels.cpp:378:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + add_comment(COL_DEFAULT, "Press ENTER to begin level %s.", level_names[cur_level]); + ^ src/main.cpp: In function 'void loading_screen()': src/main.cpp:61:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] logo_tex = load_png("logotex.png", true, false, true); @@ -1814,142 +1846,87 @@ src/main.cpp:125:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] font_num = load_png("fonts_num.png", true, false, true); ^ -src/enemy.cpp: In function 'void load_enemies()': -src/enemy.cpp:80:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - enemy_anim[0] = load_png("enemy1.png", true, false, false); - ^ -src/enemy.cpp:81:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - enemy_anim[1] = load_png("enemy2.png", true, false, false); - ^ -src/enemy.cpp:82:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - enemy_anim[2] = load_png("enemy3.png", true, false, false); - ^ -src/helpers.cpp: In function 'void load_potatoman()': -src/helpers.cpp:300:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - potatoman_tex = load_png("potatoman.png", true, false, false); - ^ -In file included from src/select_special.cpp:32: -/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined - #define GL_GLEXT_VERSION 29 - -In file included from /usr/include/GL/gl.h:2055, - from /usr/include/SDL/SDL_opengl.h:46, - from src/select_special.cpp:32: -/usr/include/GL/glext.h:54: note: this is the location of the previous definition - #define GL_GLEXT_VERSION 20180725 - -g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/soundmusic.cpp -o obj/soundmusic.o -src/bonus.cpp: In function 'void load_bonus()': -src/bonus.cpp:97:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - bonus_tex = load_png("bonus.png", true, false, false); - ^ -src/bonus.cpp:98:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - bonus_particle = load_jpg("bonus_part.jpg", false, false, true); - ^ -src/bomb.cpp: In function 'void load_bombs()': -src/bomb.cpp:80:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - bomb_tex[0] = load_png("bomb1.png", true, false, false); - ^ -src/bomb.cpp: In member function 'void BOMB::move()': -src/bomb.cpp:456:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - add_comment(COL_DEFAULT, "Five enemies with one bomb!"); - ^ -g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/special_power.cpp -o obj/special_power.o -src/game.cpp: In function 'void draw()': -src/game.cpp:223:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - glprintf_center(font1, 0, 0, 9, -25, "FPS: %02.1f", fps); - ^ -src/game.cpp:260:75: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - glprintf_center(font1, 0, 0, 2.0f, -13, "ARE YOU SURE YOU WANT TO EXIT?"); - ^ -src/game.cpp:261:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - glprintf_center(font1, 0, 0, 1.1f, -13, "Press ESC to exit, or ENTER to resume."); - ^ -src/game.cpp: In function 'void start_game(bool)': -src/game.cpp:526:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - int place = list.add_name("null", kill_count); - ^ -src/levels.cpp: In function 'void load_bg_number(int)': -src/levels.cpp:181:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - load_texture_into(cur_bground, str, "JPG", false, false, true); - ^ -src/levels.cpp: In function 'void init_levels()': -src/levels.cpp:209:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - add_comment(COL_DEFAULT, "Press ENTER to begin level %s.", level_names[cur_level]); - ^ -src/levels.cpp: In function 'bool change_level()': -src/levels.cpp:256:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - add_comment(COL_DEFAULT, "Ten seconds left."); - ^ -src/screenshot.cpp: In function 'void save_tga(char*, short int, short int, unsigned char*)': -src/screenshot.cpp:123:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - error_msg("Unable to save a screenshot to \"%s\"!\n", filename); - ^ -src/levels.cpp:318:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - add_comment(COL_DEFAULT, "Level finished."); - ^ -src/levels.cpp:320:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - add_comment(COL_DEFAULT, "GAME OVER"); - ^ -src/levels.cpp: In function 'void next_level()': -src/levels.cpp:378:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - add_comment(COL_DEFAULT, "Press ENTER to begin level %s.", level_names[cur_level]); - ^ -g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/teleport.cpp -o obj/teleport.o -In file included from src/special_power.cpp:32: +g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/particle.cpp -o obj/particle.o +g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/pathfinder.cpp -o obj/pathfinder.o +In file included from src/particle.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, - from src/special_power.cpp:32: + from src/particle.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 -g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/texture.cpp -o obj/texture.o -g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/tilemap.cpp -o obj/tilemap.o -g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/timer.cpp -o obj/timer.o -g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/trap.cpp -o obj/trap.o -In file included from src/teleport.cpp:32: +In file included from src/pathfinder.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, - from src/teleport.cpp:32: + from src/pathfinder.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 -In file included from src/tilemap.cpp:32: +g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/player.cpp -o obj/player.o +g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/screenshot.cpp -o obj/screenshot.o +g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/select_special.cpp -o obj/select_special.o +In file included from src/player.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, - from src/tilemap.cpp:32: + from src/player.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 -In file included from src/trap.cpp:32: +In file included from src/select_special.cpp:32: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, - from src/trap.cpp:32: + from src/select_special.cpp:32: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 -In file included from src/texture.cpp:35: +In file included from src/screenshot.cpp:34: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, - from src/texture.cpp:35: + from src/screenshot.cpp:34: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 +src/particle.cpp: In function 'void load_particles()': +src/particle.cpp:69:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + part_spark = load_jpg("spark.jpg", false, false, true); + ^ +src/particle.cpp:70:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + part_explo = load_jpg("explo.jpg", false, false, true); + ^ +src/particle.cpp:71:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + part_star = load_jpg("star.jpg", false, false, true); + ^ +src/particle.cpp:72:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + part_glow = load_jpg("glow.jpg", false, false, true); + ^ +src/particle.cpp:73:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + part_smoke = load_png("smoke.png", true, false, true); + ^ +src/particle.cpp:74:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + part_fire = load_jpg("fire.jpg", false, false, true); + ^ +src/particle.cpp:75:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + part_flower = load_png("flower.png", true, false, true); + ^ +src/screenshot.cpp: In function 'void save_tga(char*, short int, short int, unsigned char*)': +src/screenshot.cpp:123:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + error_msg("Unable to save a screenshot to \"%s\"!\n", filename); + ^ src/player.cpp: In function 'void load_players()': src/player.cpp:99:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] player1_anim = load_png("player1.png", true, false, false); @@ -1960,6 +1937,56 @@ src/player.cpp:105:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] p_icons = load_png("picons.png", true, false, false); ^ +src/select_special.cpp: In function 'void do_special_selection()': +src/select_special.cpp:308:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + add_comment(COL_YELLOW, "%s chosen.", (char*)icon_names[power]); + ^ +src/select_special.cpp: In function 'void load_icons()': +src/select_special.cpp:347:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + special_icons[0] = load_png("icons1.png", true, false, false); + ^ +src/select_special.cpp:348:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + special_icons[1] = load_png("icons2.png", true, false, false); + ^ +src/select_special.cpp:349:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + special_icons[2] = load_png("icons3.png", true, false, false); + ^ +src/select_special.cpp:350:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + icon_bg = load_png("iconbg.png", true, false, false); + ^ +g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/soundmusic.cpp -o obj/soundmusic.o +src/player.cpp: In member function 'void PLAYER::die()': +src/player.cpp:772:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + add_comment(COL_DEFAULT, "Respawning soon..."); + ^ +src/player.cpp: In member function 'void PLAYER::pick_bonus(BONUS*)': +src/player.cpp:796:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + add_comment(COL_RED, "You have received a Trap."); break; + ^ +src/player.cpp:798:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + add_comment(COL_RED, "You have received a Wild Fire."); break; + ^ +src/player.cpp:800:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + add_comment(COL_RED, "You have received a Napalm Strike."); break; + ^ +src/player.cpp:802:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + add_comment(COL_GREEN, "You have received a Will O' The Wisp."); break; + ^ +src/player.cpp:804:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + add_comment(COL_GREEN, "You have received a Potato Man."); break; + ^ +src/player.cpp:806:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + add_comment(COL_GREEN, "You have received a Flower Power."); break; + ^ +src/player.cpp:808:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + add_comment(COL_BLUE, "You have received a Teleport."); break; + ^ +src/player.cpp:810:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + add_comment(COL_BLUE, "You have received a Turn."); break; + ^ +src/player.cpp:812:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + add_comment(COL_BLUE, "You have received a Lightning Bolt."); break; + ^ src/soundmusic.cpp: In function 'void load_sound(char*)': src/soundmusic.cpp:173:106: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("load_sounds():\nTrying to load too many sounds!\nNUM_SOUNDS is defined as %d.\n", NUM_SOUNDS); @@ -2052,73 +2079,69 @@ src/soundmusic.cpp:242:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] load_sound("snd_finish.wav"); ^ -src/player.cpp: In member function 'void PLAYER::die()': -src/player.cpp:772:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - add_comment(COL_DEFAULT, "Respawning soon..."); - ^ -src/player.cpp: In member function 'void PLAYER::pick_bonus(BONUS*)': -src/player.cpp:796:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - add_comment(COL_RED, "You have received a Trap."); break; - ^ -src/player.cpp:798:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - add_comment(COL_RED, "You have received a Wild Fire."); break; - ^ src/soundmusic.cpp: In function 'void play_music(char*)': src/soundmusic.cpp:278:96: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("play_music():\nUnable to play music from '%s'!\nError: %s\n", file, Mix_GetError()); ^ -src/player.cpp:800:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - add_comment(COL_RED, "You have received a Napalm Strike."); break; - ^ src/soundmusic.cpp:284:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] add_comment(COL_DEFAULT, "Playing \"%s\"...", file); ^ -src/player.cpp:802:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - add_comment(COL_GREEN, "You have received a Will O' The Wisp."); break; - ^ -src/player.cpp:804:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - add_comment(COL_GREEN, "You have received a Potato Man."); break; - ^ -src/player.cpp:806:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - add_comment(COL_GREEN, "You have received a Flower Power."); break; - ^ -src/player.cpp:808:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - add_comment(COL_BLUE, "You have received a Teleport."); break; - ^ -src/player.cpp:810:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - add_comment(COL_BLUE, "You have received a Turn."); break; - ^ -src/player.cpp:812:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - add_comment(COL_BLUE, "You have received a Lightning Bolt."); break; - ^ -src/select_special.cpp: In function 'void do_special_selection()': -src/select_special.cpp:308:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - add_comment(COL_YELLOW, "%s chosen.", (char*)icon_names[power]); - ^ -src/select_special.cpp: In function 'void load_icons()': -src/select_special.cpp:347:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - special_icons[0] = load_png("icons1.png", true, false, false); - ^ -src/select_special.cpp:348:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - special_icons[1] = load_png("icons2.png", true, false, false); - ^ -src/select_special.cpp:349:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - special_icons[2] = load_png("icons3.png", true, false, false); - ^ -src/select_special.cpp:350:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - icon_bg = load_png("iconbg.png", true, false, false); - ^ -src/timer.cpp: In function 'void start_timer(int)': -src/timer.cpp:59:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - error_msg("Error setting timer!\n%s", SDL_GetError()); - ^ -src/tilemap.cpp: In function 'void load_map(char*)': -src/tilemap.cpp:474:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - error_msg("Unable to load the level %s from the pakfile!\n", file); - ^ -src/tilemap.cpp:488:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - error_msg("'%s' is not a level file for this game!\n", file); - ^ +g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/special_power.cpp -o obj/special_power.o +g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/teleport.cpp -o obj/teleport.o +g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/texture.cpp -o obj/texture.o +In file included from src/special_power.cpp:32: +/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined + #define GL_GLEXT_VERSION 29 + +In file included from /usr/include/GL/gl.h:2055, + from /usr/include/SDL/SDL_opengl.h:46, + from src/special_power.cpp:32: +/usr/include/GL/glext.h:54: note: this is the location of the previous definition + #define GL_GLEXT_VERSION 20180725 + +g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/tilemap.cpp -o obj/tilemap.o +In file included from src/teleport.cpp:32: +/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined + #define GL_GLEXT_VERSION 29 + +In file included from /usr/include/GL/gl.h:2055, + from /usr/include/SDL/SDL_opengl.h:46, + from src/teleport.cpp:32: +/usr/include/GL/glext.h:54: note: this is the location of the previous definition + #define GL_GLEXT_VERSION 20180725 + +In file included from src/texture.cpp:35: +/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined + #define GL_GLEXT_VERSION 29 + +In file included from /usr/include/GL/gl.h:2055, + from /usr/include/SDL/SDL_opengl.h:46, + from src/texture.cpp:35: +/usr/include/GL/glext.h:54: note: this is the location of the previous definition + #define GL_GLEXT_VERSION 20180725 + +g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/timer.cpp -o obj/timer.o +g++ -g -O2 -ffile-prefix-map=/build/tomatoes-1.55=. -fstack-protector-strong -Wformat -Werror=format-security `sdl-config --cflags` -DVERSION=\"1.55-9\" -Wdate-time -D_FORTIFY_SOURCE=2 -I./include -DLINUX -DMPK_DIR=\"/usr/share/tomatoes/\" -DMUSIC_DIR=\"/usr/share/tomatoes/music/\" -DHISCORE_DIR=\"./\" -DCONFIG_DIR=\"/etc/tomatoes/\" -DOVERRIDE_DIR=\"./data/\" -c src/trap.cpp -o obj/trap.o +In file included from src/tilemap.cpp:32: +/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined + #define GL_GLEXT_VERSION 29 + +In file included from /usr/include/GL/gl.h:2055, + from /usr/include/SDL/SDL_opengl.h:46, + from src/tilemap.cpp:32: +/usr/include/GL/glext.h:54: note: this is the location of the previous definition + #define GL_GLEXT_VERSION 20180725 + +In file included from src/trap.cpp:32: +/usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined + #define GL_GLEXT_VERSION 29 + +In file included from /usr/include/GL/gl.h:2055, + from /usr/include/SDL/SDL_opengl.h:46, + from src/trap.cpp:32: +/usr/include/GL/glext.h:54: note: this is the location of the previous definition + #define GL_GLEXT_VERSION 20180725 + src/texture.cpp: In function 'GLuint load_png(char*, bool, bool, bool)': src/texture.cpp:71:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] return load_texture(file, "PNG", alpha, repeat, mipmaps); @@ -2147,6 +2170,10 @@ src/texture.cpp:212:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] error_msg("Unable to flip surface %s:\nOut of memory!\n"); ^ +src/texture.cpp: In function 'GLuint create_empty_texture(int, int, int)': +src/texture.cpp:269:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + error_msg("Unable to create an empty texture!"); + ^ src/teleport.cpp: In function 'void load_teleports()': src/teleport.cpp:121:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] teleport_tex = load_png("teleport1.png", true, false, false); @@ -2154,10 +2181,17 @@ src/teleport.cpp:122:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] part_teleport = load_jpg("teleport2.jpg", false, false, true); ^ -src/texture.cpp: In function 'GLuint create_empty_texture(int, int, int)': -src/texture.cpp:269:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - error_msg("Unable to create an empty texture!"); - ^ +src/timer.cpp: In function 'void start_timer(int)': +src/timer.cpp:59:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + error_msg("Error setting timer!\n%s", SDL_GetError()); + ^ +src/tilemap.cpp: In function 'void load_map(char*)': +src/tilemap.cpp:474:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + error_msg("Unable to load the level %s from the pakfile!\n", file); + ^ +src/tilemap.cpp:488:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + error_msg("'%s' is not a level file for this game!\n", file); + ^ src/trap.cpp: In function 'void load_traps()': src/trap.cpp:58:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] trap_texture = load_png("trap.png", true, false, false); @@ -2199,21 +2233,23 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'tomatoes-dbgsym' in '../tomatoes-dbgsym_1.55-9_i386.deb'. -dpkg-deb: building package 'tomatoes' in '../tomatoes_1.55-9_i386.deb'. dpkg-deb: building package 'tomatoes-data' in '../tomatoes-data_1.55-9_all.deb'. +dpkg-deb: building package 'tomatoes' in '../tomatoes_1.55-9_i386.deb'. +dpkg-deb: building package 'tomatoes-dbgsym' in '../tomatoes-dbgsym_1.55-9_i386.deb'. dpkg-genbuildinfo --build=binary dpkg-genchanges --build=binary >../tomatoes_1.55-9_i386.changes dpkg-genchanges: info: binary-only upload (no source code included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: copying local configuration +I: user script /srv/workspace/pbuilder/13656/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/13656/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/40537 and its subdirectories -I: Current time: Mon Jul 19 07:12:14 -12 2021 -I: pbuilder-time-stamp: 1626721934 +I: removing directory /srv/workspace/pbuilder/13656 and its subdirectories +I: Current time: Wed Jun 17 02:56:39 +14 2020 +I: pbuilder-time-stamp: 1592312199