Diff of the two buildlogs: -- --- b1/build.log 2025-03-10 22:44:15.910863681 +0000 +++ b2/build.log 2025-03-10 22:49:45.160062892 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Apr 12 17:05:58 -12 2026 -I: pbuilder-time-stamp: 1776056758 +I: Current time: Tue Mar 11 12:44:20 +14 2025 +I: pbuilder-time-stamp: 1741646660 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -30,52 +30,84 @@ dpkg-source: info: applying reproducible_build.patch I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/1039773/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/419783/tmp/hooks/D01_modify_environment starting +debug: Running on ionos11-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 Mar 10 22:44 /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/419783/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/419783/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='unstable' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="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=20 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='240945a33f3c4254a2f06a32a4aff38c' - 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='1039773' - PS1='# ' - PS2='> ' + INVOCATION_ID=dc92551dad4b4756a26f4e0464320a31 + 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=419783 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.52NWJjVT/pbuilderrc_lpNV --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.52NWJjVT/b1 --logfile b1/build.log nikwi_0.0.20120213-7.dsc' - SUDO_GID='111' - 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.52NWJjVT/pbuilderrc_Ti4j --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.52NWJjVT/b2 --logfile b2/build.log nikwi_0.0.20120213-7.dsc' + SUDO_GID=111 + SUDO_UID=106 + 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.12+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.12-1~bpo12+1 (2025-02-23) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-31-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Mar 4 2025 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1039773/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Mar 4 11:20 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/419783/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -311,7 +343,7 @@ Get: 196 http://deb.debian.org/debian unstable/main amd64 libxxf86vm-dev amd64 1:1.1.4-1+b4 [24.1 kB] Get: 197 http://deb.debian.org/debian unstable/main amd64 libsdl2-dev amd64 2.32.2+dfsg-1 [1097 kB] Get: 198 http://deb.debian.org/debian unstable/main amd64 libsdl1.2-dev amd64 1.2.68-3 [64.4 kB] -Fetched 101 MB in 1s (76.2 MB/s) +Fetched 101 MB in 10s (10.1 MB/s) Preconfiguring packages ... Selecting previously unselected package libpython3.13-minimal: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 ... 19783 files and directories currently installed.) @@ -953,8 +985,8 @@ Setting up tzdata (2025a-2) ... Current default time zone: 'Etc/UTC' -Local time is now: Mon Apr 13 05:06:55 UTC 2026. -Universal Time is now: Mon Apr 13 05:06:55 UTC 2026. +Local time is now: Mon Mar 10 22:47:35 UTC 2025. +Universal Time is now: Mon Mar 10 22:47:35 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libxcb-present0:amd64 (1.17.0-2+b1) ... @@ -1139,7 +1171,11 @@ fakeroot is already the newest version (1.37-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/reproducible-path/nikwi-0.0.20120213/ && 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 > ../nikwi_0.0.20120213-7_source.changes +I: user script /srv/workspace/pbuilder/419783/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/419783/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/nikwi-0.0.20120213/ && 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 > ../nikwi_0.0.20120213-7_source.changes dpkg-buildpackage: info: source package nikwi dpkg-buildpackage: info: source version 0.0.20120213-7 dpkg-buildpackage: info: source distribution unstable @@ -1745,18 +1781,16 @@ CFLAGS="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\\\\\\\"/usr/share/games/nikwi\\\\\\\"" \ CXXFLAGS="-g -O2 -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\\\\\\\"/usr/share/games/nikwi\\\\\\\"" \ LDFLAGS="-Wl,-z,relro -Wl,-z,defs -Wl,-as-needed -Wl,--no-undefined" - cd src && make -j42 "INSTALL=install --strip-program=true" -f Makefile.debian LD=\$\(CXX\) "CFLAGS=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\\\\\\\"/usr/share/games/nikwi\\\\\\\"" "CXXFLAGS=-g -O2 -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\\\\\\\"/usr/share/games/nikwi\\\\\\\"" "LDFLAGS=-Wl,-z,relro -Wl,-z,defs -Wl,-as-needed -Wl,--no-undefined" + cd src && make -j20 "INSTALL=install --strip-program=true" -f Makefile.debian LD=\$\(CXX\) "CFLAGS=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\\\\\\\"/usr/share/games/nikwi\\\\\\\"" "CXXFLAGS=-g -O2 -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\\\\\\\"/usr/share/games/nikwi\\\\\\\"" "LDFLAGS=-Wl,-z,relro -Wl,-z,defs -Wl,-as-needed -Wl,--no-undefined" make[1]: Entering directory '/build/reproducible-path/nikwi-0.0.20120213/src' cd slashfx; make -f Makefile.debian CFLAGS="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\\\"/usr/share/games/nikwi\\\"" cd badcfg; make -f Makefile.debian CFLAGS="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\\\"/usr/share/games/nikwi\\\"" cd slashtdp; make -f Makefile.debian CFLAGS="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\\\"/usr/share/games/nikwi\\\"" -cd us; make -f Makefile.debian CFLAGS="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\\\"/usr/share/games/nikwi\\\"" -make[2]: Entering directory '/build/reproducible-path/nikwi-0.0.20120213/src/slashfx' -gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -I. -c main.c -o main.o make[2]: Entering directory '/build/reproducible-path/nikwi-0.0.20120213/src/badcfg' gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -I. -c main.c -o main.o make[2]: Entering directory '/build/reproducible-path/nikwi-0.0.20120213/src/slashtdp' Makefile.debian:22: warning: ignoring prerequisites on suffix rule definition +cd us; make -f Makefile.debian CFLAGS="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\\\"/usr/share/games/nikwi\\\"" Makefile.debian:22: warning: ignoring prerequisites on suffix rule definition Makefile.debian:26: warning: ignoring prerequisites on suffix rule definition Makefile.debian:26: warning: ignoring prerequisites on suffix rule definition @@ -1772,6 +1806,9 @@ Makefile.debian:26: warning: ignoring prerequisites on suffix rule definition Makefile.debian:26: warning: ignoring prerequisites on suffix rule definition Makefile.debian:26: warning: ignoring prerequisites on suffix rule definition +g++ -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c body.cpp -o body.o +make[2]: Entering directory '/build/reproducible-path/nikwi-0.0.20120213/src/slashfx' +gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -I. -c main.c -o main.o make[2]: Entering directory '/build/reproducible-path/nikwi-0.0.20120213/src/us' Makefile.debian:22: warning: ignoring prerequisites on suffix rule definition Makefile.debian:22: warning: ignoring prerequisites on suffix rule definition @@ -1789,24 +1826,23 @@ Makefile.debian:26: warning: ignoring prerequisites on suffix rule definition Makefile.debian:26: warning: ignoring prerequisites on suffix rule definition Makefile.debian:26: warning: ignoring prerequisites on suffix rule definition -g++ -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c body.cpp -o body.o g++ -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c uscript.cpp -o uscript.o -g++ -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c world.cpp -o world.o g++ -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c bytecode.cpp -o bytecode.o g++ -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c script.cpp -o script.o +g++ -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c world.cpp -o world.o g++ -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c compiler.cpp -o compiler.o -g++ -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c vm.cpp -o vm.o -g++ -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c type.cpp -o type.o -g++ -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c funcs.cpp -o funcs.o -g++ -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c consts.cpp -o consts.o cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ +g++ -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c vm.cpp -o vm.o cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ +g++ -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c type.cpp -o type.o cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ +g++ -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c funcs.cpp -o funcs.o cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ +g++ -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c consts.cpp -o consts.o cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ main.c: In function 'loadBadCFGFile': @@ -1820,153 +1856,6 @@ rm -f libbadcfg.a ar rcs libbadcfg.a main.o make[2]: Leaving directory '/build/reproducible-path/nikwi-0.0.20120213/src/badcfg' -rm -f libslashfx.a -ar rcs libslashfx.a main.o -make[2]: Leaving directory '/build/reproducible-path/nikwi-0.0.20120213/src/slashfx' -compiler.cpp: In member function 'void UScriptCompiler::parseFunctionCall(UScriptType*&, bool)': -compiler.cpp:230:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 230 | setError("The function '%s' returns nothing, but it is", - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -compiler.cpp:237:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 237 | setError("The function '%s' returns a value of type '%s" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 238 | "', but a value of type '%s' is wanted.", - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -compiler.cpp:267:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 267 | setError("Function call closing parenthesis " - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 268 | "(')') for function '%s' was expected " - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 269 | "here, but '%c' was found.", - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -compiler.cpp:275:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 275 | setError("Argument separation comma (',') for " - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 276 | "function '%s' was expected here, but " - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 277 | "'%c' was found.", nfunc->name, - | ~~~~~~~~~~~~~~~~~ -compiler.cpp:289:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 289 | setError("Function call closing parenthesis " - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 290 | "(')') for function '%s' was expected " - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 291 | "here, but '%c' was found.", - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -compiler.cpp:310:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 310 | setError("The function '%s' returns nothing, but it is", - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -compiler.cpp:317:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 317 | setError("The function '%s' returns a value of type '%s" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 318 | "', but a value of type '%s' is wanted.", - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -compiler.cpp:347:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 347 | setError("Function call closing parenthesis " - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 348 | "(')') for function '%s' was expected " - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 349 | "here, but '%c' was found.", - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -compiler.cpp:355:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 355 | setError("Argument separation comma (',') for " - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 356 | "function '%s' was expected here, but " - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 357 | "'%c' was found.", func->name, - | ~~~~~~~~~~~~~~~~~ -compiler.cpp:369:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 369 | setError("Function call closing parenthesis " - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 370 | "(')') for function '%s' was expected " - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 371 | "here, but '%c' was found.", - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -compiler.cpp:384:18: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 384 | setError("'%s' is not a known function.", lastToken); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -compiler.cpp: In member function 'void UScriptCompiler::parseElement(UScriptType*&)': -compiler.cpp:399:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 399 | setError("A value of type '%s' was expected, but the " - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 400 | "string '%s' given.", USTYPENAME(type), token); - | ~~~~~~~~~~~~~~~~~~~~ -compiler.cpp:416:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 416 | setError("A syntactical error found in the code before " - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 417 | "the '%c' symbol.", code[head]); - | ~~~~~~~~~~~~~~~~~~ -compiler.cpp:419:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 419 | setError("A syntactical error found in the code."); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -compiler.cpp:427:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 427 | setError("Cannot use 'null' where the type '%s' is " - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 428 | "expected.", USTYPENAME(type)); - | ~~~~~~~~~~~ -compiler.cpp:442:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 442 | setError("Constant '%s' is of type '%s', but a value of" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 443 | " type '%s' was expected.", sconst->name, - | ~~~~~~~~~~~~~~~~~~~~~~~~~~ -compiler.cpp:467:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 467 | setError("Variable '%s' is of type '%s', but a value of" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 468 | "type '%s' was expected.", identifier->name, - | ~~~~~~~~~~~~~~~~~~~~~~~~~ -compiler.cpp:527:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 527 | setError("A value of type '%s' was expected, but the " - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 528 | "real number '%s' given.", USTYPENAME(type), - | ~~~~~~~~~~~~~~~~~~~~~~~~~ -compiler.cpp:534:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 534 | setError("A value of type '%s' was expected, but the " - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 535 | "integer number '%s' given.", USTYPENAME(type), - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -compiler.cpp:552:18: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 552 | setError("I don't know what to do with '%s' - it is not a known " - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 553 | "variable or function. Is it spelled correctly?", - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -compiler.cpp: In member function 'void UScriptCompiler::parseParentheses(UScriptType*&)': -compiler.cpp:569:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 569 | setError("A closing parenthesis (')') was expected, but" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 570 | " a '%c' found.", code[head]); - | ~~~~~~~~~~~~~~~~ -compiler.cpp: In member function 'void UScriptCompiler::parseMulDivMod(UScriptType*&)': -compiler.cpp:591:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 591 | setError("The type '%s' cannot be used with the '%c'" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 592 | " operator.", USTYPENAME(type), code[head]); - | ~~~~~~~~~~~~ -compiler.cpp:653:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 653 | setError("The '*', '/' or '%' symbols were " - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 654 | "expected, but the symbol '%c' found.", - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -compiler.cpp: In member function 'void UScriptCompiler::parsePlusMinus(UScriptType*&)': -compiler.cpp:674:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 674 | setError("The type '%s' cannot be used with the '%c'" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 675 | " operator.", USTYPENAME(type), code[head]); - | ~~~~~~~~~~~~ -bytecode.cpp: In member function 'char* UScriptByteCode::getSS(uint)': -bytecode.cpp:109:24: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 109 | return ""; - | ^~ -compiler.cpp:719:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 719 | setError("The '+' or '-' symbols were expected," - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 720 | " but the symbol '%c' found.", - | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -compiler.cpp: In member function 'void UScriptCompiler::parseComparisons(UScriptType*&)': -compiler.cpp:744:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 744 | setError("The type '%s' cannot be used with comparison" - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - 745 | " operators.", USTYPENAME(type), code[head]); - | ~~~~~~~~~~~~~ funcs.cpp: In function 'void usInitNativeFunctions()': funcs.cpp:191:30: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] 191 | usRegisterNativeFunc("itof", "i", CRTL_itof, usFloat); @@ -2130,24 +2019,171 @@ funcs.cpp:218:44: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] 218 | usRegisterNativeFunc("dumpHandle", "h", CRTL_dumpPtr, NULL); | ^~~ +consts.cpp: In function 'void usInitConsts()': +consts.cpp:17:30: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 17 | usRegisterFloatConst("PI", M_PI); + | ^~~~ +consts.cpp:18:30: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 18 | usRegisterFloatConst("RADIAN", M_PI/180.0f); + | ^~~~~~~~ +consts.cpp:19:28: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 19 | usRegisterIntConst("true", 1); + | ^~~~~~ +consts.cpp:20:28: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 20 | usRegisterIntConst("false", 0); + | ^~~~~~~ +rm -f libslashfx.a +ar rcs libslashfx.a main.o +make[2]: Leaving directory '/build/reproducible-path/nikwi-0.0.20120213/src/slashfx' +bytecode.cpp: In member function 'char* UScriptByteCode::getSS(uint)': +bytecode.cpp:109:24: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 109 | return ""; + | ^~ +compiler.cpp: In member function 'void UScriptCompiler::parseFunctionCall(UScriptType*&, bool)': +compiler.cpp:230:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 230 | setError("The function '%s' returns nothing, but it is", + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +compiler.cpp:237:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 237 | setError("The function '%s' returns a value of type '%s" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 238 | "', but a value of type '%s' is wanted.", + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +compiler.cpp:267:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 267 | setError("Function call closing parenthesis " + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 268 | "(')') for function '%s' was expected " + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 269 | "here, but '%c' was found.", + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ +compiler.cpp:275:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 275 | setError("Argument separation comma (',') for " + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 276 | "function '%s' was expected here, but " + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 277 | "'%c' was found.", nfunc->name, + | ~~~~~~~~~~~~~~~~~ +compiler.cpp:289:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 289 | setError("Function call closing parenthesis " + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 290 | "(')') for function '%s' was expected " + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 291 | "here, but '%c' was found.", + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ +compiler.cpp:310:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 310 | setError("The function '%s' returns nothing, but it is", + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +compiler.cpp:317:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 317 | setError("The function '%s' returns a value of type '%s" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 318 | "', but a value of type '%s' is wanted.", + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +compiler.cpp:347:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 347 | setError("Function call closing parenthesis " + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 348 | "(')') for function '%s' was expected " + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 349 | "here, but '%c' was found.", + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ +compiler.cpp:355:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 355 | setError("Argument separation comma (',') for " + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 356 | "function '%s' was expected here, but " + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 357 | "'%c' was found.", func->name, + | ~~~~~~~~~~~~~~~~~ +compiler.cpp:369:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 369 | setError("Function call closing parenthesis " + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 370 | "(')') for function '%s' was expected " + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 371 | "here, but '%c' was found.", + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ +compiler.cpp:384:18: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 384 | setError("'%s' is not a known function.", lastToken); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +compiler.cpp: In member function 'void UScriptCompiler::parseElement(UScriptType*&)': +compiler.cpp:399:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 399 | setError("A value of type '%s' was expected, but the " + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 400 | "string '%s' given.", USTYPENAME(type), token); + | ~~~~~~~~~~~~~~~~~~~~ +compiler.cpp:416:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 416 | setError("A syntactical error found in the code before " + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 417 | "the '%c' symbol.", code[head]); + | ~~~~~~~~~~~~~~~~~~ +compiler.cpp:419:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 419 | setError("A syntactical error found in the code."); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +compiler.cpp:427:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 427 | setError("Cannot use 'null' where the type '%s' is " + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 428 | "expected.", USTYPENAME(type)); + | ~~~~~~~~~~~ +compiler.cpp:442:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 442 | setError("Constant '%s' is of type '%s', but a value of" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 443 | " type '%s' was expected.", sconst->name, + | ~~~~~~~~~~~~~~~~~~~~~~~~~~ +compiler.cpp:467:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 467 | setError("Variable '%s' is of type '%s', but a value of" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 468 | "type '%s' was expected.", identifier->name, + | ~~~~~~~~~~~~~~~~~~~~~~~~~ +compiler.cpp:527:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 527 | setError("A value of type '%s' was expected, but the " + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 528 | "real number '%s' given.", USTYPENAME(type), + | ~~~~~~~~~~~~~~~~~~~~~~~~~ +compiler.cpp:534:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 534 | setError("A value of type '%s' was expected, but the " + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 535 | "integer number '%s' given.", USTYPENAME(type), + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +compiler.cpp:552:18: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 552 | setError("I don't know what to do with '%s' - it is not a known " + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 553 | "variable or function. Is it spelled correctly?", + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +compiler.cpp: In member function 'void UScriptCompiler::parseParentheses(UScriptType*&)': +compiler.cpp:569:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 569 | setError("A closing parenthesis (')') was expected, but" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 570 | " a '%c' found.", code[head]); + | ~~~~~~~~~~~~~~~~ +compiler.cpp: In member function 'void UScriptCompiler::parseMulDivMod(UScriptType*&)': +compiler.cpp:591:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 591 | setError("The type '%s' cannot be used with the '%c'" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 592 | " operator.", USTYPENAME(type), code[head]); + | ~~~~~~~~~~~~ +compiler.cpp:653:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 653 | setError("The '*', '/' or '%' symbols were " + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 654 | "expected, but the symbol '%c' found.", + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +compiler.cpp: In member function 'void UScriptCompiler::parsePlusMinus(UScriptType*&)': +compiler.cpp:674:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 674 | setError("The type '%s' cannot be used with the '%c'" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 675 | " operator.", USTYPENAME(type), code[head]); + | ~~~~~~~~~~~~ +compiler.cpp:719:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 719 | setError("The '+' or '-' symbols were expected," + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 720 | " but the symbol '%c' found.", + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +compiler.cpp: In member function 'void UScriptCompiler::parseComparisons(UScriptType*&)': +compiler.cpp:744:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 744 | setError("The type '%s' cannot be used with comparison" + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 745 | " operators.", USTYPENAME(type), code[head]); + | ~~~~~~~~~~~~~ compiler.cpp:870:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] 870 | setError("A comparison operator was expected, but the" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 871 | " symbol '%c' was found.", code[head]); | ~~~~~~~~~~~~~~~~~~~~~~~~~ -type.cpp: In function 'void usInitTypeSubSystem()': -type.cpp:74:36: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 74 | usInteger = usRegisterType("int", USB_INTEGER); - | ^~~~~ -type.cpp:75:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 75 | usFloat = usRegisterType("float", USB_FLOAT); - | ^~~~~~~ -type.cpp:76:35: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 76 | usHandle = usRegisterType("handle", USB_HANDLE); - | ^~~~~~~~ -type.cpp:77:35: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 77 | usString = usRegisterType("string", USB_STRING); - | ^~~~~~~~ compiler.cpp: In member function 'void UScriptCompiler::parseIfStructure()': compiler.cpp:897:26: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] 897 | setError("Opening parenthesis missing after 'if'."); @@ -2157,24 +2193,11 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 905 | "structure."); | ~~~~~~~~~~~~ -consts.cpp: In function 'void usInitConsts()': -consts.cpp:17:30: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 17 | usRegisterFloatConst("PI", M_PI); - | ^~~~ -consts.cpp:18:30: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 18 | usRegisterFloatConst("RADIAN", M_PI/180.0f); - | ^~~~~~~~ compiler.cpp:911:26: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] 911 | setError("Closing parenthesis missing after the expression in " | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 912 | "the 'if' structure."); | ~~~~~~~~~~~~~~~~~~~~~ -consts.cpp:19:28: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 19 | usRegisterIntConst("true", 1); - | ^~~~~~ -consts.cpp:20:28: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 20 | usRegisterIntConst("false", 0); - | ^~~~~~~ compiler.cpp: In member function 'void UScriptCompiler::parseWhileStructure()': compiler.cpp:948:26: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] 948 | setError("Opening parenthesis missing after 'while'."); @@ -2222,6 +2245,19 @@ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1180 | " at the beginning of the command.", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +type.cpp: In function 'void usInitTypeSubSystem()': +type.cpp:74:36: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 74 | usInteger = usRegisterType("int", USB_INTEGER); + | ^~~~~ +type.cpp:75:34: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 75 | usFloat = usRegisterType("float", USB_FLOAT); + | ^~~~~~~ +type.cpp:76:35: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 76 | usHandle = usRegisterType("handle", USB_HANDLE); + | ^~~~~~~~ +type.cpp:77:35: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 77 | usString = usRegisterType("string", USB_STRING); + | ^~~~~~~~ rm -f libslashtdp.a ar rcs libslashtdp.a body.o world.o make[2]: Leaving directory '/build/reproducible-path/nikwi-0.0.20120213/src/slashtdp' @@ -2250,21 +2286,27 @@ g++ -I../us -I../badcfg -I../slashtdp -I../slashfx -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c gfx.cpp -o gfx.o g++ -I../us -I../badcfg -I../slashtdp -I../slashfx -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c sprites.cpp -o sprites.o g++ -I../us -I../badcfg -I../slashtdp -I../slashfx -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c nikio.cpp -o nikio.o +cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ g++ -I../us -I../badcfg -I../slashtdp -I../slashfx -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c utils.cpp -o utils.o +cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ g++ -I../us -I../badcfg -I../slashtdp -I../slashfx -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c tiles.cpp -o tiles.o g++ -I../us -I../badcfg -I../slashtdp -I../slashfx -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c world.cpp -o world.o g++ -I../us -I../badcfg -I../slashtdp -I../slashfx -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c objects.cpp -o objects.o +cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ +cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ +cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ g++ -I../us -I../badcfg -I../slashtdp -I../slashfx -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c motion.cpp -o motion.o +cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ g++ -I../us -I../badcfg -I../slashtdp -I../slashfx -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c screens.cpp -o screens.o +cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ g++ -I../us -I../badcfg -I../slashtdp -I../slashfx -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c editor.cpp -o editor.o +cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ +cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ g++ -I../us -I../badcfg -I../slashtdp -I../slashfx -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c game.cpp -o game.o g++ -I../us -I../badcfg -I../slashtdp -I../slashfx -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c menu.cpp -o menu.o -cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ g++ -I../us -I../badcfg -I../slashtdp -I../slashfx -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c imageScreen.cpp -o imageScreen.o cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ -cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ g++ -I../us -I../badcfg -I../slashtdp -I../slashfx -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c transitions.cpp -o transitions.o -cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ g++ -I../us -I../badcfg -I../slashtdp -I../slashfx -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c ending.cpp -o ending.o cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ g++ -I../us -I../badcfg -I../slashtdp -I../slashfx -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/nikwi-0.0.20120213=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DDATADIR=\"/usr/share/games/nikwi\" -c sound.cpp -o sound.o @@ -2274,230 +2316,30 @@ cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ -cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ -cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ -cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ -cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ -cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ -cc1plus: warning: '-Werror=' argument '-Werror=implicit-function-declaration' is not valid for C++ In file included from nikwi.h:71, - from world.cpp:28: -game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 59 | void newGame(char *pass=""); - | ^~ -world.cpp: In constructor 'World::World()': -world.cpp:62:45: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 62 | tile[i] = new Tile(makeCode("brk1")); - | ^~~~~~ -world.cpp:65:53: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 65 | tile[14*20 + i] = new Tile(makeCode("brk1")); - | ^~~~~~ -In file included from nikwi.h:71, - from motion.cpp:29: -game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 59 | void newGame(char *pass=""); - | ^~ -world.cpp:72:48: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 72 | tile[i*20] = new Tile(makeCode("brk2")); - | ^~~~~~ -world.cpp:75:53: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 75 | tile[i*20 + 19] = new Tile(makeCode("brk5")); - | ^~~~~~ -world.cpp: In member function 'void World::loadWorld(String)': -world.cpp:147:38: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 147 | if (code == makeCode("hero")) - | ^~~~~~ -world.cpp:149:43: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 149 | else if (code == makeCode("icrm")) - | ^~~~~~ -In file included from nikwi.h:71, - from sprites.cpp:28: -game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 59 | void newGame(char *pass=""); - | ^~ -In file included from nikwi.h:71, - from imageScreen.cpp:28: -game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 59 | void newGame(char *pass=""); - | ^~ -world.cpp: In member function 'void World::drawStaticPart()': -world.cpp:350:43: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 350 | Sprite *spr = findSprite("candy1"); - | ^~~~~~~~ -world.cpp:355:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 355 | spr = findSprite("candy2"); - | ^~~~~~~~ -world.cpp:358:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 358 | spr = findSprite("candy3"); - | ^~~~~~~~ -world.cpp:361:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 361 | spr = findSprite("watercup"); - | ^~~~~~~~~~ -world.cpp:364:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 364 | spr = findSprite("icecream"); - | ^~~~~~~~~~ -world.cpp:367:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 367 | spr = findSprite("chokolata"); - | ^~~~~~~~~~~ -world.cpp:370:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 370 | spr = findSprite("biscuit"); - | ^~~~~~~~~ -world.cpp:373:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 373 | spr = findSprite("lollipop"); - | ^~~~~~~~~~ -world.cpp:376:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 376 | spr = findSprite("lollipop2"); - | ^~~~~~~~~~~ -world.cpp:379:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 379 | spr = findSprite("dcherry"); - | ^~~~~~~~~ -world.cpp:382:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 382 | spr = findSprite("icecreamcandy"); - | ^~~~~~~~~~~~~~~ -world.cpp:385:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 385 | spr = findSprite("icecreamcandy2"); - | ^~~~~~~~~~~~~~~~ -imageScreen.cpp: In member function 'virtual void ImageScreen::handleEvent(SDL_Event&)': -imageScreen.cpp:119:48: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 119 | playSample(findSample(makeCode("tick"))); - | ^~~~~~ -sprites.cpp: In function 'void loadSpriteDirectory(BadCFGNode*)': -sprites.cpp:258:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 258 | sprite->delay = atoi(getBadCFGValue(spr, "delay", "1")); - | ^~~~~~~ -sprites.cpp:258:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 258 | sprite->delay = atoi(getBadCFGValue(spr, "delay", "1")); - | ^~~ -In file included from nikwi.h:71, - from game.cpp:28: + from main.cpp:28: game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 59 | void newGame(char *pass=""); | ^~ -sprites.cpp:259:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 259 | sprite->offsetX = atoi(getBadCFGValue(spr, "offsetX", "0")); - | ^~~~~~~~~ -sprites.cpp:259:71: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 259 | sprite->offsetX = atoi(getBadCFGValue(spr, "offsetX", "0")); - | ^~~ -sprites.cpp:260:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 260 | sprite->offsetY = atoi(getBadCFGValue(spr, "offsetY", "0")); - | ^~~~~~~~~ -sprites.cpp:260:71: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 260 | sprite->offsetY = atoi(getBadCFGValue(spr, "offsetY", "0")); - | ^~~ -sprites.cpp:264:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 264 | if (getBadCFGValue(spr, "frame", "")[0]) - | ^~~~~~~ -sprites.cpp:264:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 264 | if (getBadCFGValue(spr, "frame", "")[0]) - | ^~ -sprites.cpp:287:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 287 | sprite->by1 += atoi(getBadCFGValue(spr, "collTop", "0")); - | ^~~~~~~~~ -sprites.cpp:287:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 287 | sprite->by1 += atoi(getBadCFGValue(spr, "collTop", "0")); - | ^~~ -sprites.cpp: In function 'void initSprites()': -sprites.cpp:293:44: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 293 | BadCFGNode *sprites = loadCFG("data/sprites.txt"); - | ^~~~~~~~~~~~~~~~~~ -sprites.cpp:295:23: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 295 | fatal("Cannot load sprites configuration file"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -sprites.cpp:302:29: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 302 | cursor = findSprite("cursor"); - | ^~~~~~~~ -In file included from nikwi.h:71, - from transitions.cpp:28: +main.cpp: In function 'int main(int, char**)': +main.cpp:220:22: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 220 | if (!initGfx("Nikwi")) + | ^~~~~~~ game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 59 | void newGame(char *pass=""); | ^~ -game.cpp: In constructor 'Game::Game()': -game.cpp:35:26: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 35 | gti = findSprite("gti"); - | ^~~~~ -game.cpp:36:27: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 36 | died = findSprite("died"); - | ^~~~~~ -game.cpp:37:30: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 37 | pwdBack = findSprite("pwd"); - | ^~~~~ -game.cpp:38:38: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 38 | letter['a'-'a'] = findSprite("a"); - | ^~~ -game.cpp:39:38: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 39 | letter['c'-'a'] = findSprite("c"); - | ^~~ -game.cpp:40:38: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 40 | letter['f'-'a'] = findSprite("f"); - | ^~~ -game.cpp:41:38: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 41 | letter['g'-'a'] = findSprite("g"); - | ^~~ +main.cpp:269:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 269 | "data/objects/slashstone.ut", 160); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from nikwi.h:71, from tiles.cpp:28: game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 59 | void newGame(char *pass=""); | ^~ -game.cpp:42:38: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 42 | letter['n'-'a'] = findSprite("n"); - | ^~~ -game.cpp:43:38: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 43 | letter['q'-'a'] = findSprite("q"); - | ^~~ -game.cpp:44:38: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 44 | letter['x'-'a'] = findSprite("x"); - | ^~~ -game.cpp:47:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 47 | levelPwd[2] = "cafqnx"; - | ^~~~~~~~ -game.cpp:48:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 48 | levelPwd[5] = "xaafnn"; - | ^~~~~~~~ -game.cpp:49:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 49 | levelPwd[8] = "naaxxg"; - | ^~~~~~~~ -game.cpp:50:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 50 | levelPwd[11] = "gagqxf"; - | ^~~~~~~~ -game.cpp:51:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 51 | levelPwd[14] = "xcfgqx"; - | ^~~~~~~~ -In file included from nikwi.h:71, - from objects.cpp:28: -game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 59 | void newGame(char *pass=""); - | ^~ -game.cpp:52:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 52 | levelPwd[17] = "fqxgnx"; - | ^~~~~~~~ -game.cpp:53:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 53 | levelPwd[20] = "naxgax"; - | ^~~~~~~~ -game.cpp:54:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 54 | levelPwd[23] = "qacaff"; - | ^~~~~~~~ -game.cpp:55:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 55 | levelPwd[26] = "axcgxf"; - | ^~~~~~~~ -game.cpp: In member function 'void Game::loseLife()': -game.cpp:77:40: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 77 | playSample(findSample(makeCode("loss"))); - | ^~~~~~ -In file included from nikwi.h:71, - from nikio.cpp:28: -game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 59 | void newGame(char *pass=""); - | ^~ tiles.cpp: In function 'void initTiles()': tiles.cpp:48:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] 48 | BadCFGNode *tiles = loadCFG("data/tiles.txt"); | ^~~~~~~~~~~~~~~~ -In file included from nikwi.h:71, - from screens.cpp:28: -game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 59 | void newGame(char *pass=""); - | ^~ tiles.cpp:54:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 54 | tc->code = makeCode(getBadCFGValue(tile, "code", "????")); | ^~~~~~ @@ -2505,7 +2347,12 @@ 54 | tc->code = makeCode(getBadCFGValue(tile, "code", "????")); | ^~~~~~ In file included from nikwi.h:71, - from menu.cpp:28: + from utils.cpp:28: +game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 59 | void newGame(char *pass=""); + | ^~ +In file included from nikwi.h:71, + from nikio.cpp:28: game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 59 | void newGame(char *pass=""); | ^~ @@ -2518,71 +2365,26 @@ nikio.cpp:65:32: note: in expansion of macro 'DATADIR' 65 | packFileName = DATADIR "/justdata.sw"; | ^~~~~~~ -game.cpp: In member function 'virtual void Game::timer()': -game.cpp:249:56: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 249 | playSample(findSample(makeCode("jump"))); - | ^~~~~~ -menu.cpp: In constructor 'MenuScreen::MenuScreen()': -menu.cpp:34:32: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 34 | background = loadImage("data/objects/title.ut"); - | ^~~~~~~~~~~~~~~~~~~~~~~ -menu.cpp:35:28: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 35 | paused = loadImage("data/objects/paused.ut"); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -menu.cpp:36:29: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 36 | pwdBack = loadImage("data/objects/pwd2.ut"); - | ^~~~~~~~~~~~~~~~~~~~~~ -menu.cpp:38:26: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 38 | dot = findSprite("dot"); - | ^~~~~ -menu.cpp: In member function 'virtual void MenuScreen::draw()': -menu.cpp:93:40: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 93 | background = loadImage("data/objects/title.ut"); - | ^~~~~~~~~~~~~~~~~~~~~~~ -menu.cpp:108:52: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 108 | paused = loadImage("data/objects/paused.ut"); - | ^~~~~~~~~~~~~~~~~~~~~~~~ +nikio.cpp:82:30: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 82 | fread(name, len, 1, f); + | ~~~~~^~~~~~~~~~~~~~~~~ +nikio.cpp: In function 'void* getDataFromPackFile(String, uint&)': +nikio.cpp:124:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 124 | fread(data, length, 1, f); + | ~~~~~^~~~~~~~~~~~~~~~~~~~ +nikio.cpp: In function 'void* getDataFromFile(String, uint&)': +nikio.cpp:143:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] + 143 | fread(buff, 1, size, f); + | ~~~~~^~~~~~~~~~~~~~~~~~ +In file included from nikwi.h:71, + from objects.cpp:28: +game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 59 | void newGame(char *pass=""); + | ^~ objects.cpp: In function 'void natDecCandyCount(UScriptVM*)': objects.cpp:387:62: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] 387 | world->createParticleObject(makeCode("par3"), x, y, a, | ^~~~~~ -menu.cpp:132:37: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 132 | sprite = findSprite("candy1"); - | ^~~~~~~~ -menu.cpp:148:45: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 148 | pwdBack = loadImage("data/objects/pwd2.ut"); - | ^~~~~~~~~~~~~~~~~~~~~~ -menu.cpp: In member function 'virtual void MenuScreen::handleEvent(SDL_Event&)': -menu.cpp:169:64: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 169 | playSample(findSample(makeCode("slct"))); - | ^~~~~~ -menu.cpp:172:56: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 172 | playSample(findSample(makeCode("tick"))); - | ^~~~~~ -menu.cpp:180:64: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 180 | playSample(findSample(makeCode("slct"))); - | ^~~~~~ -menu.cpp:183:56: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 183 | playSample(findSample(makeCode("tick"))); - | ^~~~~~ -menu.cpp:189:56: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 189 | playSample(findSample(makeCode("tick"))); - | ^~~~~~ -menu.cpp:212:56: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 212 | playSample(findSample(makeCode("slct"))); - | ^~~~~~ -menu.cpp:219:56: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 219 | playSample(findSample(makeCode("slct"))); - | ^~~~~~ -menu.cpp:224:56: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 224 | playSample(findSample(makeCode("tick"))); - | ^~~~~~ -game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 59 | void newGame(char *pass=""); - | ^~ -menu.cpp:237:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 237 | "data/objects/credits.ut"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~ objects.cpp: In function 'void initObjects()': objects.cpp:559:35: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] 559 | stObject = usRegisterType("Object", USB_HANDLE); @@ -2903,45 +2705,65 @@ 664 | "scripts.timer", "")); | ^~ In file included from nikwi.h:71, - from editor.cpp:28: -game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 59 | void newGame(char *pass=""); - | ^~ -nikio.cpp:82:30: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 82 | fread(name, len, 1, f); - | ~~~~~^~~~~~~~~~~~~~~~~ -nikio.cpp: In function 'void* getDataFromPackFile(String, uint&)': -nikio.cpp:124:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 124 | fread(data, length, 1, f); - | ~~~~~^~~~~~~~~~~~~~~~~~~~ -nikio.cpp: In function 'void* getDataFromFile(String, uint&)': -nikio.cpp:143:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] - 143 | fread(buff, 1, size, f); - | ~~~~~^~~~~~~~~~~~~~~~~~ -In file included from nikwi.h:71, - from utils.cpp:28: -game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 59 | void newGame(char *pass=""); - | ^~ -In file included from nikwi.h:71, - from gfx.cpp:28: + from ending.cpp:28: game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 59 | void newGame(char *pass=""); | ^~ +ending.cpp: In member function 'void EndingScreen::loadImages()': +ending.cpp:42:28: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 42 | story1 = loadImage("data/objects/story1.ut"); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +ending.cpp:43:28: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 43 | story2 = loadImage("data/objects/story2.ut"); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +ending.cpp:44:28: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 44 | story3 = loadImage("data/objects/story3.ut"); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +ending.cpp:45:28: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 45 | story4 = loadImage("data/objects/story4.ut"); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +ending.cpp: In member function 'virtual void EndingScreen::timer()': +ending.cpp:93:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 93 | imageScreen->nextImageFile = "data/objects/credits.ut"; + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +ending.cpp:94:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 94 | imageScreen->showImage(menuScreen, "data/objects/gover.ut", + | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from nikwi.h:71, - from main.cpp:28: + from sprites.cpp:28: game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 59 | void newGame(char *pass=""); | ^~ +sprites.cpp: In function 'void loadSpriteDirectory(BadCFGNode*)': +sprites.cpp:258:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 258 | sprite->delay = atoi(getBadCFGValue(spr, "delay", "1")); + | ^~~~~~~ +sprites.cpp:258:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 258 | sprite->delay = atoi(getBadCFGValue(spr, "delay", "1")); + | ^~~ +sprites.cpp:259:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 259 | sprite->offsetX = atoi(getBadCFGValue(spr, "offsetX", "0")); + | ^~~~~~~~~ +sprites.cpp:259:71: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 259 | sprite->offsetX = atoi(getBadCFGValue(spr, "offsetX", "0")); + | ^~~ +sprites.cpp:260:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 260 | sprite->offsetY = atoi(getBadCFGValue(spr, "offsetY", "0")); + | ^~~~~~~~~ +sprites.cpp:260:71: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 260 | sprite->offsetY = atoi(getBadCFGValue(spr, "offsetY", "0")); + | ^~~ +sprites.cpp:264:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 264 | if (getBadCFGValue(spr, "frame", "")[0]) + | ^~~~~~~ +sprites.cpp:264:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 264 | if (getBadCFGValue(spr, "frame", "")[0]) + | ^~ In file included from nikwi.h:71, from sound.cpp:28: game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 59 | void newGame(char *pass=""); | ^~ -main.cpp: In function 'int main(int, char**)': -main.cpp:220:22: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 220 | if (!initGfx("Nikwi")) - | ^~~~~~~ sound.cpp: In function 'void initSound()': sound.cpp:89:44: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] 89 | BadCFGNode *samples = loadCFG("data/samples.txt"); @@ -2949,46 +2771,260 @@ sound.cpp:91:23: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] 91 | fatal("Cannot load audio samples configuration file"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 59 | void newGame(char *pass=""); - | ^~ sound.cpp:96:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 96 | uint code = makeCode(getBadCFGValue(smp, "code", "????")); | ^~~~~~ -main.cpp:269:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 269 | "data/objects/slashstone.ut", 160); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ sound.cpp:96:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 96 | uint code = makeCode(getBadCFGValue(smp, "code", "????")); | ^~~~~~ sound.cpp:136:40: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] 136 | playSample(findSample(makeCode("lgbl"))); | ^~~~~~ +sprites.cpp:287:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 287 | sprite->by1 += atoi(getBadCFGValue(spr, "collTop", "0")); + | ^~~~~~~~~ +sprites.cpp:287:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 287 | sprite->by1 += atoi(getBadCFGValue(spr, "collTop", "0")); + | ^~~ +sprites.cpp: In function 'void initSprites()': +sprites.cpp:293:44: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 293 | BadCFGNode *sprites = loadCFG("data/sprites.txt"); + | ^~~~~~~~~~~~~~~~~~ +sprites.cpp:295:23: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 295 | fatal("Cannot load sprites configuration file"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +sprites.cpp:302:29: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 302 | cursor = findSprite("cursor"); + | ^~~~~~~~ In file included from nikwi.h:71, - from ending.cpp:28: + from screens.cpp:28: game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 59 | void newGame(char *pass=""); | ^~ -ending.cpp: In member function 'void EndingScreen::loadImages()': -ending.cpp:42:28: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 42 | story1 = loadImage("data/objects/story1.ut"); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -ending.cpp:43:28: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 43 | story2 = loadImage("data/objects/story2.ut"); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -ending.cpp:44:28: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 44 | story3 = loadImage("data/objects/story3.ut"); - | ^~~~~~~~~~~~~~~~~~~~~~~~ -ending.cpp:45:28: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] - 45 | story4 = loadImage("data/objects/story4.ut"); +In file included from nikwi.h:71, + from world.cpp:28: +game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 59 | void newGame(char *pass=""); + | ^~ +world.cpp: In constructor 'World::World()': +world.cpp:62:45: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 62 | tile[i] = new Tile(makeCode("brk1")); + | ^~~~~~ +world.cpp:65:53: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 65 | tile[14*20 + i] = new Tile(makeCode("brk1")); + | ^~~~~~ +world.cpp:72:48: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 72 | tile[i*20] = new Tile(makeCode("brk2")); + | ^~~~~~ +world.cpp:75:53: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 75 | tile[i*20 + 19] = new Tile(makeCode("brk5")); + | ^~~~~~ +In file included from nikwi.h:71, + from imageScreen.cpp:28: +game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 59 | void newGame(char *pass=""); + | ^~ +world.cpp: In member function 'void World::loadWorld(String)': +world.cpp:147:38: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 147 | if (code == makeCode("hero")) + | ^~~~~~ +world.cpp:149:43: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 149 | else if (code == makeCode("icrm")) + | ^~~~~~ +imageScreen.cpp: In member function 'virtual void ImageScreen::handleEvent(SDL_Event&)': +imageScreen.cpp:119:48: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 119 | playSample(findSample(makeCode("tick"))); + | ^~~~~~ +world.cpp: In member function 'void World::drawStaticPart()': +world.cpp:350:43: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 350 | Sprite *spr = findSprite("candy1"); + | ^~~~~~~~ +world.cpp:355:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 355 | spr = findSprite("candy2"); + | ^~~~~~~~ +world.cpp:358:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 358 | spr = findSprite("candy3"); + | ^~~~~~~~ +world.cpp:361:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 361 | spr = findSprite("watercup"); + | ^~~~~~~~~~ +world.cpp:364:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 364 | spr = findSprite("icecream"); + | ^~~~~~~~~~ +world.cpp:367:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 367 | spr = findSprite("chokolata"); + | ^~~~~~~~~~~ +world.cpp:370:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 370 | spr = findSprite("biscuit"); + | ^~~~~~~~~ +world.cpp:373:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 373 | spr = findSprite("lollipop"); + | ^~~~~~~~~~ +world.cpp:376:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 376 | spr = findSprite("lollipop2"); + | ^~~~~~~~~~~ +world.cpp:379:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 379 | spr = findSprite("dcherry"); + | ^~~~~~~~~ +world.cpp:382:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 382 | spr = findSprite("icecreamcandy"); + | ^~~~~~~~~~~~~~~ +world.cpp:385:42: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 385 | spr = findSprite("icecreamcandy2"); + | ^~~~~~~~~~~~~~~~ +In file included from nikwi.h:71, + from gfx.cpp:28: +game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 59 | void newGame(char *pass=""); + | ^~ +In file included from nikwi.h:71, + from motion.cpp:29: +game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 59 | void newGame(char *pass=""); + | ^~ +In file included from nikwi.h:71, + from game.cpp:28: +game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 59 | void newGame(char *pass=""); + | ^~ +game.cpp: In constructor 'Game::Game()': +game.cpp:35:26: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 35 | gti = findSprite("gti"); + | ^~~~~ +game.cpp:36:27: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 36 | died = findSprite("died"); + | ^~~~~~ +game.cpp:37:30: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 37 | pwdBack = findSprite("pwd"); + | ^~~~~ +game.cpp:38:38: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 38 | letter['a'-'a'] = findSprite("a"); + | ^~~ +game.cpp:39:38: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 39 | letter['c'-'a'] = findSprite("c"); + | ^~~ +game.cpp:40:38: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 40 | letter['f'-'a'] = findSprite("f"); + | ^~~ +game.cpp:41:38: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 41 | letter['g'-'a'] = findSprite("g"); + | ^~~ +game.cpp:42:38: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 42 | letter['n'-'a'] = findSprite("n"); + | ^~~ +game.cpp:43:38: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 43 | letter['q'-'a'] = findSprite("q"); + | ^~~ +game.cpp:44:38: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 44 | letter['x'-'a'] = findSprite("x"); + | ^~~ +game.cpp:47:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 47 | levelPwd[2] = "cafqnx"; + | ^~~~~~~~ +game.cpp:48:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 48 | levelPwd[5] = "xaafnn"; + | ^~~~~~~~ +game.cpp:49:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 49 | levelPwd[8] = "naaxxg"; + | ^~~~~~~~ +game.cpp:50:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 50 | levelPwd[11] = "gagqxf"; + | ^~~~~~~~ +game.cpp:51:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 51 | levelPwd[14] = "xcfgqx"; + | ^~~~~~~~ +game.cpp:52:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 52 | levelPwd[17] = "fqxgnx"; + | ^~~~~~~~ +game.cpp:53:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 53 | levelPwd[20] = "naxgax"; + | ^~~~~~~~ +game.cpp:54:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 54 | levelPwd[23] = "qacaff"; + | ^~~~~~~~ +game.cpp:55:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 55 | levelPwd[26] = "axcgxf"; + | ^~~~~~~~ +game.cpp: In member function 'void Game::loseLife()': +game.cpp:77:40: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 77 | playSample(findSample(makeCode("loss"))); + | ^~~~~~ +game.cpp: In member function 'virtual void Game::timer()': +game.cpp:249:56: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 249 | playSample(findSample(makeCode("jump"))); + | ^~~~~~ +In file included from nikwi.h:71, + from menu.cpp:28: +game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 59 | void newGame(char *pass=""); + | ^~ +menu.cpp: In constructor 'MenuScreen::MenuScreen()': +menu.cpp:34:32: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 34 | background = loadImage("data/objects/title.ut"); + | ^~~~~~~~~~~~~~~~~~~~~~~ +menu.cpp:35:28: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 35 | paused = loadImage("data/objects/paused.ut"); | ^~~~~~~~~~~~~~~~~~~~~~~~ -ending.cpp: In member function 'virtual void EndingScreen::timer()': -ending.cpp:93:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 93 | imageScreen->nextImageFile = "data/objects/credits.ut"; - | ^~~~~~~~~~~~~~~~~~~~~~~~~ -ending.cpp:94:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] - 94 | imageScreen->showImage(menuScreen, "data/objects/gover.ut", - | ^~~~~~~~~~~~~~~~~~~~~~~ +menu.cpp:36:29: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 36 | pwdBack = loadImage("data/objects/pwd2.ut"); + | ^~~~~~~~~~~~~~~~~~~~~~ +menu.cpp:38:26: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 38 | dot = findSprite("dot"); + | ^~~~~ +menu.cpp: In member function 'virtual void MenuScreen::draw()': +menu.cpp:93:40: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 93 | background = loadImage("data/objects/title.ut"); + | ^~~~~~~~~~~~~~~~~~~~~~~ +menu.cpp:108:52: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 108 | paused = loadImage("data/objects/paused.ut"); + | ^~~~~~~~~~~~~~~~~~~~~~~~ +menu.cpp:132:37: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 132 | sprite = findSprite("candy1"); + | ^~~~~~~~ +menu.cpp:148:45: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 148 | pwdBack = loadImage("data/objects/pwd2.ut"); + | ^~~~~~~~~~~~~~~~~~~~~~ +menu.cpp: In member function 'virtual void MenuScreen::handleEvent(SDL_Event&)': +menu.cpp:169:64: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 169 | playSample(findSample(makeCode("slct"))); + | ^~~~~~ +menu.cpp:172:56: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 172 | playSample(findSample(makeCode("tick"))); + | ^~~~~~ +menu.cpp:180:64: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 180 | playSample(findSample(makeCode("slct"))); + | ^~~~~~ +menu.cpp:183:56: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 183 | playSample(findSample(makeCode("tick"))); + | ^~~~~~ +menu.cpp:189:56: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 189 | playSample(findSample(makeCode("tick"))); + | ^~~~~~ +menu.cpp:212:56: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 212 | playSample(findSample(makeCode("slct"))); + | ^~~~~~ +menu.cpp:219:56: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 219 | playSample(findSample(makeCode("slct"))); + | ^~~~~~ +menu.cpp:224:56: warning: ISO C++ forbids converting a string constant to 'String' {aka 'char*'} [-Wwrite-strings] + 224 | playSample(findSample(makeCode("tick"))); + | ^~~~~~ +game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 59 | void newGame(char *pass=""); + | ^~ +menu.cpp:237:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 237 | "data/objects/credits.ut"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from nikwi.h:71, + from editor.cpp:28: +game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 59 | void newGame(char *pass=""); + | ^~ +In file included from nikwi.h:71, + from transitions.cpp:28: +game.h:59:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] + 59 | void newGame(char *pass=""); + | ^~ rm -f nikwi g++ main.o gfx.o sprites.o nikio.o utils.o tiles.o world.o objects.o motion.o screens.o editor.o game.o menu.o imageScreen.o transitions.o ending.o sound.o -o nikwi -Wl,-z,relro -Wl,-z,defs -Wl,-as-needed -Wl,--no-undefined -lSDL -L../us -L../badcfg -L../slashtdp -L../slashfx -luscript -lbadcfg -lslashtdp -lslashfx make[2]: Leaving directory '/build/reproducible-path/nikwi-0.0.20120213/src/nikwi' @@ -3018,8 +3054,8 @@ dh_gencontrol -a dh_md5sums -a dh_builddeb -a -dpkg-deb: building package 'nikwi' in '../nikwi_0.0.20120213-7_amd64.deb'. dpkg-deb: building package 'nikwi-dbgsym' in '../nikwi-dbgsym_0.0.20120213-7_amd64.deb'. +dpkg-deb: building package 'nikwi' in '../nikwi_0.0.20120213-7_amd64.deb'. dpkg-genbuildinfo --build=binary -O../nikwi_0.0.20120213-7_amd64.buildinfo dpkg-genchanges --build=binary -O../nikwi_0.0.20120213-7_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -3028,12 +3064,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/419783/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/419783/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/1039773 and its subdirectories -I: Current time: Sun Apr 12 17:07:12 -12 2026 -I: pbuilder-time-stamp: 1776056832 +I: removing directory /srv/workspace/pbuilder/419783 and its subdirectories +I: Current time: Tue Mar 11 12:49:43 +14 2025 +I: pbuilder-time-stamp: 1741646983