Diff of the two buildlogs: -- --- b1/build.log 2020-04-19 19:55:53.318418530 +0000 +++ b2/build.log 2020-04-19 20:01:38.595723471 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sat May 22 14:18:24 -12 2021 -I: pbuilder-time-stamp: 1621736304 +I: Current time: Mon Apr 20 09:56:01 +14 2020 +I: pbuilder-time-stamp: 1587326161 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/buster-reproducible-base.tgz] I: copying local configuration @@ -18,7 +18,7 @@ I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/root/.gnupg/trustedkeys.kbx': General error -gpgv: Signature made Sun Dec 9 04:40:12 2018 -12 +gpgv: Signature made Mon Dec 10 06:40:12 2018 +14 gpgv: using RSA key ACF3D088EF32EDEF6A1A835FD9AD14B9513B51E4 gpgv: issuer "apo@debian.org" gpgv: Can't check signature: No public key @@ -30,6 +30,18 @@ dpkg-source: info: applying freebsd-hurd.patch I: using fakeroot in build. I: Installing the build-deps +I: user script /srv/workspace/pbuilder/25415/tmp/hooks/D01_modify_environment starting +debug: Running on profitbricks-build2-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/25415/tmp/hooks/D01_modify_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -136,7 +148,7 @@ Get: 66 http://deb.debian.org/debian buster/main i386 libxfixes-dev i386 1:5.0.3-1 [24.3 kB] Get: 67 http://deb.debian.org/debian buster/main i386 libxcursor-dev i386 1:1.1.15-2 [46.2 kB] Get: 68 http://deb.debian.org/debian buster/main i386 liballegro4-dev i386 2:4.4.2-13 [304 kB] -Fetched 24.0 MB in 0s (61.0 MB/s) +Fetched 24.0 MB in 5s (4794 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libbsd0:i386. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19231 files and directories currently installed.) @@ -431,7 +443,7 @@ fakeroot is already the newest version (1.23-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/atanks-6.5~dfsg/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b +I: Running cd /build/atanks-6.5~dfsg/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b dpkg-buildpackage: info: source package atanks dpkg-buildpackage: info: source version 6.5~dfsg-3 dpkg-buildpackage: info: source distribution unstable @@ -441,7 +453,7 @@ fakeroot debian/rules clean dh clean dh_auto_clean - make -j18 clean + make -j10 clean make[1]: Entering directory '/build/atanks-6.5~dfsg' /bin/rm -f obj/* atanks make[1]: Leaving directory '/build/atanks-6.5~dfsg' @@ -452,15 +464,15 @@ dh_autoreconf dh_auto_configure dh_auto_build - make -j18 "INSTALL=install --strip-program=true" + make -j10 "INSTALL=install --strip-program=true" make[1]: Entering directory '/build/atanks-6.5~dfsg' Compiling obj/aicore.o Compiling obj/atanks.o /usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/aicore.o -c src/aicore.cpp /usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/atanks.o -c src/atanks.cpp Compiling obj/beam.o -Compiling obj/button.o /usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/beam.o -c src/beam.cpp +Compiling obj/button.o /usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/button.o -c src/button.cpp Compiling obj/client.o /usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/client.o -c src/client.cpp @@ -475,27 +487,9 @@ Compiling obj/environment.o /usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/environment.o -c src/environment.cpp Compiling obj/explosion.o -Compiling obj/files.o /usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/explosion.o -c src/explosion.cpp +Compiling obj/files.o /usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/files.o -c src/files.cpp -Compiling obj/floattext.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/floattext.o -c src/floattext.cpp -Compiling obj/gameloop.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/gameloop.o -c src/gameloop.cpp -Compiling obj/gfxData.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/gfxData.o -c src/gfxData.cpp -Compiling obj/globaldata.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/globaldata.o -c src/globaldata.cpp -Compiling obj/globaltypes.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/globaltypes.o -c src/globaltypes.cpp -Compiling obj/land.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/land.o -c src/land.cpp -Compiling obj/main.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/main.o -c src/main.cpp -Compiling obj/menu.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/menu.o -c src/menu.cpp -Compiling obj/missile.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/missile.o -c src/missile.cpp src/explosion.cpp: In member function 'virtual void EXPLOSION::applyPhysics()': src/explosion.cpp:181:18: warning: catching polymorphic type 'class std::exception' by value [-Wcatch-value=] } catch (std::exception) { /* No reason to fuss, its just smoke. */ } @@ -525,176 +519,8 @@ src/beam.cpp:271:17: warning: catching polymorphic type 'class std::exception' by value [-Wcatch-value=] } catch (std::exception) { ^~~~~~~~~ -src/globaldata.cpp: In member function 'void GLOBALDATA::destroy()': -src/globaldata.cpp:226:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - if (canvas) destroy_bitmap(canvas); canvas = nullptr; - ^~ -src/globaldata.cpp:226:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - if (canvas) destroy_bitmap(canvas); canvas = nullptr; - ^~~~~~ -src/globaldata.cpp:227:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - if (terrain) destroy_bitmap(terrain); terrain = nullptr; - ^~ -src/globaldata.cpp:227:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - if (terrain) destroy_bitmap(terrain); terrain = nullptr; - ^~~~~~~ -src/globaldata.cpp:228:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - if (done) delete [] done; done = nullptr; - ^~ -src/globaldata.cpp:228:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - if (done) delete [] done; done = nullptr; - ^~~~ -src/globaldata.cpp:229:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - if (fp) delete [] fp; fp = nullptr; - ^~ -src/globaldata.cpp:229:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - if (fp) delete [] fp; fp = nullptr; - ^~ -src/globaldata.cpp:230:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - if (surface) delete [] surface; surface = nullptr; - ^~ -src/globaldata.cpp:230:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - if (surface) delete [] surface; surface = nullptr; - ^~~~~~~ -src/globaldata.cpp:231:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - if (dropTo) delete [] dropTo; dropTo = nullptr; - ^~ -src/globaldata.cpp:231:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - if (dropTo) delete [] dropTo; dropTo = nullptr; - ^~~~~~ -src/globaldata.cpp:232:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - if (velocity) delete [] velocity; velocity = nullptr; - ^~ -src/globaldata.cpp:232:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - if (velocity) delete [] velocity; velocity = nullptr; - ^~~~~~~~ -src/globaldata.cpp:233:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - if (dropIncr) delete [] dropIncr; dropIncr = nullptr; - ^~ -src/globaldata.cpp:233:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - if (dropIncr) delete [] dropIncr; dropIncr = nullptr; - ^~~~~~~~ -src/globaldata.cpp:234:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - if (updates) delete [] updates; updates = nullptr; - ^~ -src/globaldata.cpp:234:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - if (updates) delete [] updates; updates = nullptr; - ^~~~~~~ -src/globaldata.cpp:235:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - if (lastUpdates) delete [] lastUpdates; lastUpdates = nullptr; - ^~ -src/globaldata.cpp:235:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - if (lastUpdates) delete [] lastUpdates; lastUpdates = nullptr; - ^~~~~~~~~~~ -src/globaldata.cpp: In member function 'void GLOBALDATA::do_updates()': -src/globaldata.cpp:256:59: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct BOX' with no trivial copy-assignment; use copy-assignment instead [-Wclass-memaccess] - memcpy (lastUpdates, updates, sizeof (BOX) * updateCount); - ^ -In file included from src/player_types.h:9, - from src/player.h:25, - from src/globaldata.cpp:22: -src/main.h:280:8: note: 'struct BOX' declared here - struct BOX - ^~~ -src/gameloop.cpp: In function 'void init_new_round()': -src/gameloop.cpp:1399:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] - for (int32_t i = 0; i < env.numGamePlayers; ++i) - ^~~ -src/gameloop.cpp:1403:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' - global.newRound(); - ^~~~~~ -src/files.cpp: In function 'bool Save_Game()': -src/files.cpp:44:31: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4096 [-Wformat-truncation=] - snprintf(path_buf, PATH_MAX, "%s/%s.sav", env.configDir, env.game_name); - ^~~~~~~~~~~ -src/files.cpp:44:10: note: 'snprintf' output between 6 and 4166 bytes into a destination of size 4096 - snprintf(path_buf, PATH_MAX, "%s/%s.sav", env.configDir, env.game_name); - ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp:95:31: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4096 [-Wformat-truncation=] - snprintf(path_buf, PATH_MAX, "%s/%s.txt", - ^~~~~~~~~~~ -src/files.cpp:95:10: note: 'snprintf' output between 6 and 4166 bytes into a destination of size 4096 - snprintf(path_buf, PATH_MAX, "%s/%s.txt", - ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - env.configDir, env.game_name); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp: In function 'bool Load_Game()': -src/files.cpp:131:31: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4096 [-Wformat-truncation=] - snprintf(path_buf, PATH_MAX, "%s/%s.sav", env.configDir, env.game_name); - ^~~~~~~~~~~ -src/files.cpp:131:10: note: 'snprintf' output between 6 and 4166 bytes into a destination of size 4096 - snprintf(path_buf, PATH_MAX, "%s/%s.sav", env.configDir, env.game_name); - ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp: In function 'bool Check_For_Saved_Game()': -src/files.cpp:295:31: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4096 [-Wformat-truncation=] - snprintf(path_buf, PATH_MAX, "%s/%s.sav", env.configDir, env.game_name); - ^~~~~~~~~~~ -src/files.cpp:295:10: note: 'snprintf' output between 6 and 4166 bytes into a destination of size 4096 - snprintf(path_buf, PATH_MAX, "%s/%s.sav", env.configDir, env.game_name); - ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp: In function 'bool Copy_Config_File()': -src/files.cpp:323:32: warning: '/atanks-config.txt' directive output may be truncated writing 18 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] - snprintf(dest_path, PATH_MAX, "%s/atanks-config.txt", env.configDir); - ^~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp:323:10: note: 'snprintf' output between 19 and 4115 bytes into a destination of size 4096 - snprintf(dest_path, PATH_MAX, "%s/atanks-config.txt", env.configDir); - ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp: In function 'bool Create_Music_Folder()': -src/files.cpp:381:31: warning: '/music' directive output may be truncated writing 6 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] - snprintf(path_buf, PATH_MAX, "%s/music", env.configDir); - ^~~~~~~~~~ -src/files.cpp:381:10: note: 'snprintf' output between 7 and 4103 bytes into a destination of size 4096 - snprintf(path_buf, PATH_MAX, "%s/music", env.configDir); - ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp: In function 'bool Load_Weapons_Text()': -src/files.cpp:511:32: warning: '/text/weapons_it.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] - snprintf(path_buf, PATH_MAX, "%s/text/weapons_it.txt", env.dataDir); - ^~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp:511:11: note: 'snprintf' output between 21 and 4117 bytes into a destination of size 4096 - snprintf(path_buf, PATH_MAX, "%s/text/weapons_it.txt", env.dataDir); - ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp:509:32: warning: '/text/weapons_ES.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] - snprintf(path_buf, PATH_MAX, "%s/text/weapons_ES.txt", env.dataDir); - ^~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp:509:11: note: 'snprintf' output between 21 and 4117 bytes into a destination of size 4096 - snprintf(path_buf, PATH_MAX, "%s/text/weapons_ES.txt", env.dataDir); - ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp:507:32: warning: '/text/weapons_ru.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] - snprintf(path_buf, PATH_MAX, "%s/text/weapons_ru.txt", env.dataDir); - ^~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp:507:11: note: 'snprintf' output between 21 and 4117 bytes into a destination of size 4096 - snprintf(path_buf, PATH_MAX, "%s/text/weapons_ru.txt", env.dataDir); - ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp:505:32: warning: '/text/weapons_sk.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] - snprintf(path_buf, PATH_MAX, "%s/text/weapons_sk.txt", env.dataDir); - ^~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp:505:11: note: 'snprintf' output between 21 and 4117 bytes into a destination of size 4096 - snprintf(path_buf, PATH_MAX, "%s/text/weapons_sk.txt", env.dataDir); - ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp:503:32: warning: '/text/weapons_de.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] - snprintf(path_buf, PATH_MAX, "%s/text/weapons_de.txt", env.dataDir); - ^~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp:503:11: note: 'snprintf' output between 21 and 4117 bytes into a destination of size 4096 - snprintf(path_buf, PATH_MAX, "%s/text/weapons_de.txt", env.dataDir); - ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp:501:32: warning: '/text/weapons_fr.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] - snprintf(path_buf, PATH_MAX, "%s/text/weapons_fr.txt", env.dataDir); - ^~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp:501:11: note: 'snprintf' output between 21 and 4117 bytes into a destination of size 4096 - snprintf(path_buf, PATH_MAX, "%s/text/weapons_fr.txt", env.dataDir); - ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp:499:32: warning: '/text/weapons.pt_BR.txt' directive output may be truncated writing 23 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] - snprintf(path_buf, PATH_MAX, "%s/text/weapons.pt_BR.txt", env.dataDir); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp:499:11: note: 'snprintf' output between 24 and 4120 bytes into a destination of size 4096 - snprintf(path_buf, PATH_MAX, "%s/text/weapons.pt_BR.txt", env.dataDir); - ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/files.cpp:497:32: warning: '/text/weapons.txt' directive output may be truncated writing 17 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] - snprintf(path_buf, PATH_MAX, "%s/text/weapons.txt", env.dataDir); - ^~~~~~~~~~~~~~~~~~~~~ -src/files.cpp:497:11: note: 'snprintf' output between 18 and 4114 bytes into a destination of size 4096 - snprintf(path_buf, PATH_MAX, "%s/text/weapons.txt", env.dataDir); - ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Compiling obj/floattext.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/floattext.o -c src/floattext.cpp src/environment.cpp: In member function 'void ENVIRONMENT::load_text_files()': src/environment.cpp:942:33: warning: '/text/war_quotes_it.txt' directive output may be truncated writing 23 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/text/war_quotes_it.txt", dataDir); @@ -886,6 +712,213 @@ src/environment.cpp:1288:11: note: 'snprintf' output between 14 and 4119 bytes into a destination of size 4096 snprintf(path_buf, PATH_MAX, "%s/sound/%02d.wav", dataDir, i); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/atanks.cpp: In function 'void credits()': +src/atanks.cpp:152:32: warning: '/credits.txt' directive output may be truncated writing 12 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] + snprintf (path_buf, PATH_MAX, "%s/credits.txt", env.dataDir); + ^~~~~~~~~~~~~~~~ +src/atanks.cpp:152:11: note: 'snprintf' output between 13 and 4109 bytes into a destination of size 4096 + snprintf (path_buf, PATH_MAX, "%s/credits.txt", env.dataDir); + ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/atanks.cpp: In function 'const char* do_winner()': +src/atanks.cpp:293:24: warning: 'snprintf' output truncated before the last format character [-Wformat-truncation=] + snprintf(valTxt, 15, " %14s", Add_Comma(pl_money[z])); + ^~~~~~~ +src/atanks.cpp:293:11: note: 'snprintf' output 16 or more bytes into a destination of size 15 + snprintf(valTxt, 15, " %14s", Add_Comma(pl_money[z])); + ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/atanks.cpp: In function 'bool loadConfig()': +src/atanks.cpp:737:32: warning: '/atanks-config.txt' directive output may be truncated writing 18 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] + snprintf(fullPath, PATH_MAX, "%s/atanks-config.txt", env.configDir); + ^~~~~~~~~~~~~~~~~~~~~~ +src/atanks.cpp:737:11: note: 'snprintf' output between 19 and 4115 bytes into a destination of size 4096 + snprintf(fullPath, PATH_MAX, "%s/atanks-config.txt", env.configDir); + ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Compiling obj/gameloop.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/gameloop.o -c src/gameloop.cpp +Compiling obj/gfxData.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/gfxData.o -c src/gfxData.cpp +Compiling obj/globaldata.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/globaldata.o -c src/globaldata.cpp +Compiling obj/globaltypes.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/globaltypes.o -c src/globaltypes.cpp +Compiling obj/land.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/land.o -c src/land.cpp +Compiling obj/main.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/main.o -c src/main.cpp +src/files.cpp: In function 'bool Save_Game()': +src/files.cpp:44:31: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4096 [-Wformat-truncation=] + snprintf(path_buf, PATH_MAX, "%s/%s.sav", env.configDir, env.game_name); + ^~~~~~~~~~~ +src/files.cpp:44:10: note: 'snprintf' output between 6 and 4166 bytes into a destination of size 4096 + snprintf(path_buf, PATH_MAX, "%s/%s.sav", env.configDir, env.game_name); + ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp:95:31: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4096 [-Wformat-truncation=] + snprintf(path_buf, PATH_MAX, "%s/%s.txt", + ^~~~~~~~~~~ +src/files.cpp:95:10: note: 'snprintf' output between 6 and 4166 bytes into a destination of size 4096 + snprintf(path_buf, PATH_MAX, "%s/%s.txt", + ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + env.configDir, env.game_name); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp: In function 'bool Load_Game()': +src/files.cpp:131:31: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4096 [-Wformat-truncation=] + snprintf(path_buf, PATH_MAX, "%s/%s.sav", env.configDir, env.game_name); + ^~~~~~~~~~~ +src/files.cpp:131:10: note: 'snprintf' output between 6 and 4166 bytes into a destination of size 4096 + snprintf(path_buf, PATH_MAX, "%s/%s.sav", env.configDir, env.game_name); + ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp: In function 'bool Check_For_Saved_Game()': +src/files.cpp:295:31: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4096 [-Wformat-truncation=] + snprintf(path_buf, PATH_MAX, "%s/%s.sav", env.configDir, env.game_name); + ^~~~~~~~~~~ +src/files.cpp:295:10: note: 'snprintf' output between 6 and 4166 bytes into a destination of size 4096 + snprintf(path_buf, PATH_MAX, "%s/%s.sav", env.configDir, env.game_name); + ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp: In function 'bool Copy_Config_File()': +src/files.cpp:323:32: warning: '/atanks-config.txt' directive output may be truncated writing 18 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] + snprintf(dest_path, PATH_MAX, "%s/atanks-config.txt", env.configDir); + ^~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp:323:10: note: 'snprintf' output between 19 and 4115 bytes into a destination of size 4096 + snprintf(dest_path, PATH_MAX, "%s/atanks-config.txt", env.configDir); + ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp: In function 'bool Create_Music_Folder()': +src/files.cpp:381:31: warning: '/music' directive output may be truncated writing 6 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] + snprintf(path_buf, PATH_MAX, "%s/music", env.configDir); + ^~~~~~~~~~ +src/files.cpp:381:10: note: 'snprintf' output between 7 and 4103 bytes into a destination of size 4096 + snprintf(path_buf, PATH_MAX, "%s/music", env.configDir); + ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp: In function 'bool Load_Weapons_Text()': +src/files.cpp:511:32: warning: '/text/weapons_it.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] + snprintf(path_buf, PATH_MAX, "%s/text/weapons_it.txt", env.dataDir); + ^~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp:511:11: note: 'snprintf' output between 21 and 4117 bytes into a destination of size 4096 + snprintf(path_buf, PATH_MAX, "%s/text/weapons_it.txt", env.dataDir); + ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp:509:32: warning: '/text/weapons_ES.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] + snprintf(path_buf, PATH_MAX, "%s/text/weapons_ES.txt", env.dataDir); + ^~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp:509:11: note: 'snprintf' output between 21 and 4117 bytes into a destination of size 4096 + snprintf(path_buf, PATH_MAX, "%s/text/weapons_ES.txt", env.dataDir); + ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp:507:32: warning: '/text/weapons_ru.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] + snprintf(path_buf, PATH_MAX, "%s/text/weapons_ru.txt", env.dataDir); + ^~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp:507:11: note: 'snprintf' output between 21 and 4117 bytes into a destination of size 4096 + snprintf(path_buf, PATH_MAX, "%s/text/weapons_ru.txt", env.dataDir); + ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp:505:32: warning: '/text/weapons_sk.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] + snprintf(path_buf, PATH_MAX, "%s/text/weapons_sk.txt", env.dataDir); + ^~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp:505:11: note: 'snprintf' output between 21 and 4117 bytes into a destination of size 4096 + snprintf(path_buf, PATH_MAX, "%s/text/weapons_sk.txt", env.dataDir); + ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp:503:32: warning: '/text/weapons_de.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] + snprintf(path_buf, PATH_MAX, "%s/text/weapons_de.txt", env.dataDir); + ^~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp:503:11: note: 'snprintf' output between 21 and 4117 bytes into a destination of size 4096 + snprintf(path_buf, PATH_MAX, "%s/text/weapons_de.txt", env.dataDir); + ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp:501:32: warning: '/text/weapons_fr.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] + snprintf(path_buf, PATH_MAX, "%s/text/weapons_fr.txt", env.dataDir); + ^~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp:501:11: note: 'snprintf' output between 21 and 4117 bytes into a destination of size 4096 + snprintf(path_buf, PATH_MAX, "%s/text/weapons_fr.txt", env.dataDir); + ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp:499:32: warning: '/text/weapons.pt_BR.txt' directive output may be truncated writing 23 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] + snprintf(path_buf, PATH_MAX, "%s/text/weapons.pt_BR.txt", env.dataDir); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp:499:11: note: 'snprintf' output between 24 and 4120 bytes into a destination of size 4096 + snprintf(path_buf, PATH_MAX, "%s/text/weapons.pt_BR.txt", env.dataDir); + ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src/files.cpp:497:32: warning: '/text/weapons.txt' directive output may be truncated writing 17 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] + snprintf(path_buf, PATH_MAX, "%s/text/weapons.txt", env.dataDir); + ^~~~~~~~~~~~~~~~~~~~~ +src/files.cpp:497:11: note: 'snprintf' output between 18 and 4114 bytes into a destination of size 4096 + snprintf(path_buf, PATH_MAX, "%s/text/weapons.txt", env.dataDir); + ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Compiling obj/menu.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/menu.o -c src/menu.cpp +src/gameloop.cpp: In function 'void init_new_round()': +src/gameloop.cpp:1399:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] + for (int32_t i = 0; i < env.numGamePlayers; ++i) + ^~~ +src/gameloop.cpp:1403:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' + global.newRound(); + ^~~~~~ +src/globaldata.cpp: In member function 'void GLOBALDATA::destroy()': +src/globaldata.cpp:226:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + if (canvas) destroy_bitmap(canvas); canvas = nullptr; + ^~ +src/globaldata.cpp:226:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + if (canvas) destroy_bitmap(canvas); canvas = nullptr; + ^~~~~~ +src/globaldata.cpp:227:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + if (terrain) destroy_bitmap(terrain); terrain = nullptr; + ^~ +src/globaldata.cpp:227:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + if (terrain) destroy_bitmap(terrain); terrain = nullptr; + ^~~~~~~ +src/globaldata.cpp:228:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + if (done) delete [] done; done = nullptr; + ^~ +src/globaldata.cpp:228:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + if (done) delete [] done; done = nullptr; + ^~~~ +src/globaldata.cpp:229:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + if (fp) delete [] fp; fp = nullptr; + ^~ +src/globaldata.cpp:229:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + if (fp) delete [] fp; fp = nullptr; + ^~ +src/globaldata.cpp:230:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + if (surface) delete [] surface; surface = nullptr; + ^~ +src/globaldata.cpp:230:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + if (surface) delete [] surface; surface = nullptr; + ^~~~~~~ +src/globaldata.cpp:231:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + if (dropTo) delete [] dropTo; dropTo = nullptr; + ^~ +src/globaldata.cpp:231:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + if (dropTo) delete [] dropTo; dropTo = nullptr; + ^~~~~~ +src/globaldata.cpp:232:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + if (velocity) delete [] velocity; velocity = nullptr; + ^~ +src/globaldata.cpp:232:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + if (velocity) delete [] velocity; velocity = nullptr; + ^~~~~~~~ +src/globaldata.cpp:233:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + if (dropIncr) delete [] dropIncr; dropIncr = nullptr; + ^~ +src/globaldata.cpp:233:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + if (dropIncr) delete [] dropIncr; dropIncr = nullptr; + ^~~~~~~~ +src/globaldata.cpp:234:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + if (updates) delete [] updates; updates = nullptr; + ^~ +src/globaldata.cpp:234:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + if (updates) delete [] updates; updates = nullptr; + ^~~~~~~ +src/globaldata.cpp:235:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + if (lastUpdates) delete [] lastUpdates; lastUpdates = nullptr; + ^~ +src/globaldata.cpp:235:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + if (lastUpdates) delete [] lastUpdates; lastUpdates = nullptr; + ^~~~~~~~~~~ +src/globaldata.cpp: In member function 'void GLOBALDATA::do_updates()': +src/globaldata.cpp:256:59: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct BOX' with no trivial copy-assignment; use copy-assignment instead [-Wclass-memaccess] + memcpy (lastUpdates, updates, sizeof (BOX) * updateCount); + ^ +In file included from src/player_types.h:9, + from src/player.h:25, + from src/globaldata.cpp:22: +src/main.h:280:8: note: 'struct BOX' declared here + struct BOX + ^~~ +Compiling obj/missile.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/missile.o -c src/missile.cpp src/main.cpp: In member function 'void WEAPON::setDesc(const char*)': src/main.cpp:103:19: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Wformat=] fprintf(stderr, "Weapon description for \"%s\" truncated! (%d/%lu characters)\n", @@ -914,45 +947,14 @@ /usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/network.o -c src/network.cpp Compiling obj/optionitembase.o /usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/optionitembase.o -c src/optionitembase.cpp -src/atanks.cpp: In function 'void credits()': -src/atanks.cpp:152:32: warning: '/credits.txt' directive output may be truncated writing 12 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] - snprintf (path_buf, PATH_MAX, "%s/credits.txt", env.dataDir); - ^~~~~~~~~~~~~~~~ -src/atanks.cpp:152:11: note: 'snprintf' output between 13 and 4109 bytes into a destination of size 4096 - snprintf (path_buf, PATH_MAX, "%s/credits.txt", env.dataDir); - ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src/atanks.cpp: In function 'const char* do_winner()': -src/atanks.cpp:293:24: warning: 'snprintf' output truncated before the last format character [-Wformat-truncation=] - snprintf(valTxt, 15, " %14s", Add_Comma(pl_money[z])); - ^~~~~~~ -src/atanks.cpp:293:11: note: 'snprintf' output 16 or more bytes into a destination of size 15 - snprintf(valTxt, 15, " %14s", Add_Comma(pl_money[z])); - ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling obj/optionitemcolour.o /usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/optionitemcolour.o -c src/optionitemcolour.cpp -src/atanks.cpp: In function 'bool loadConfig()': -src/atanks.cpp:737:32: warning: '/atanks-config.txt' directive output may be truncated writing 18 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] - snprintf(fullPath, PATH_MAX, "%s/atanks-config.txt", env.configDir); - ^~~~~~~~~~~~~~~~~~~~~~ -src/atanks.cpp:737:11: note: 'snprintf' output between 19 and 4115 bytes into a destination of size 4096 - snprintf(fullPath, PATH_MAX, "%s/atanks-config.txt", env.configDir); - ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling obj/optionitemmenu.o /usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/optionitemmenu.o -c src/optionitemmenu.cpp Compiling obj/optionitemplayer.o /usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/optionitemplayer.o -c src/optionitemplayer.cpp Compiling obj/optionscreens.o /usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/optionscreens.o -c src/optionscreens.cpp -Compiling obj/optiontypes.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/optiontypes.o -c src/optiontypes.cpp -Compiling obj/perlin.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/perlin.o -c src/perlin.cpp -Compiling obj/physobj.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/physobj.o -c src/physobj.cpp -Compiling obj/player.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/player.o -c src/player.cpp -Compiling obj/player_types.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/player_types.o -c src/player_types.cpp In file included from src/menu.h:24, from src/menu.cpp:5: src/optionitem.h: In instantiation of 'void OptionItem::activateValue(int32_t) [with tgt_T = bool; opt_T = unsigned int; int32_t = int]': @@ -961,51 +963,66 @@ src/optionitem.h:507:40: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] tgt_T t_val = static_cast(val * decinc); ~~~~^~~~~~~~ -Compiling obj/satellite.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/satellite.o -c src/satellite.cpp -Compiling obj/shop.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/shop.o -c src/shop.cpp -src/missile.cpp: In member function 'virtual void MISSILE::applyPhysics()': -src/missile.cpp:237:18: warning: catching polymorphic type 'class std::exception' by value [-Wcatch-value=] - } catch (std::exception) { - ^~~~~~~~~ -Compiling obj/sky.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/sky.o -c src/sky.cpp -Compiling obj/sound.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/sound.o -c src/sound.cpp -Compiling obj/tank.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/tank.o -c src/tank.cpp -Compiling obj/teleport.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/teleport.o -c src/teleport.cpp -Compiling obj/text.o -Compiling obj/update.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/text.o -c src/text.cpp -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/update.o -c src/update.cpp +Compiling obj/optiontypes.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/optiontypes.o -c src/optiontypes.cpp +Compiling obj/perlin.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/perlin.o -c src/perlin.cpp +Compiling obj/physobj.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/physobj.o -c src/physobj.cpp In file included from src/menu.h:24, - from src/optionitemmenu.cpp:2: + from src/optionscreens.h:28, + from src/optionscreens.cpp:1: src/optionitem.h: In constructor 'OptionItem::OptionItem(int32_t, tgt_T*, int32_t (*)(tgt_T*, int32_t), const char*, int32_t, BUTTON*, int32_t, int32_t, int32_t, int32_t, int32_t)': src/optionitem.h:304:16: warning: invalid use of incomplete type 'class BUTTON' this->button->getLocation(this->left, this->top, this->width, this->height); ^~ -In file included from src/optionitemmenu.h:24, - from src/optionitemmenu.cpp:1: +In file included from src/optionitem.h:24, + from src/menu.h:24, + from src/optionscreens.h:28, + from src/optionscreens.cpp:1: src/optionitembase.h:40:7: note: forward declaration of 'class BUTTON' class BUTTON; ^~~~~~ +src/missile.cpp: In member function 'virtual void MISSILE::applyPhysics()': +src/missile.cpp:237:18: warning: catching polymorphic type 'class std::exception' by value [-Wcatch-value=] + } catch (std::exception) { + ^~~~~~~~~ +Compiling obj/player.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/player.o -c src/player.cpp In file included from src/menu.h:24, from src/optionscreens.h:28, from src/optionscreens.cpp:1: +src/optionitem.h: In instantiation of 'void OptionItem::activateValue(int32_t) [with tgt_T = bool; opt_T = int; int32_t = int]': +src/optionitem.h:382:12: required from 'int32_t OptionItem::activate(int32_t, int32_t, int32_t, int32_t) [with tgt_T = bool; opt_T = int; int32_t = int]' +src/optionitem.h:340:10: required from here +src/optionitem.h:507:40: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] + tgt_T t_val = static_cast(val * decinc); + ~~~~^~~~~~~~ +In file included from src/menu.h:24, + from src/optionitemmenu.cpp:2: src/optionitem.h: In constructor 'OptionItem::OptionItem(int32_t, tgt_T*, int32_t (*)(tgt_T*, int32_t), const char*, int32_t, BUTTON*, int32_t, int32_t, int32_t, int32_t, int32_t)': src/optionitem.h:304:16: warning: invalid use of incomplete type 'class BUTTON' this->button->getLocation(this->left, this->top, this->width, this->height); ^~ -In file included from src/optionitem.h:24, - from src/menu.h:24, - from src/optionscreens.h:28, - from src/optionscreens.cpp:1: +In file included from src/optionitemmenu.h:24, + from src/optionitemmenu.cpp:1: src/optionitembase.h:40:7: note: forward declaration of 'class BUTTON' class BUTTON; ^~~~~~ +Compiling obj/player_types.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/player_types.o -c src/player_types.cpp +Compiling obj/satellite.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/satellite.o -c src/satellite.cpp +Compiling obj/shop.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/shop.o -c src/shop.cpp +Compiling obj/sky.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/sky.o -c src/sky.cpp +Compiling obj/sound.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/sound.o -c src/sound.cpp +Compiling obj/tank.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/tank.o -c src/tank.cpp +Compiling obj/teleport.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/teleport.o -c src/teleport.cpp In file included from src/menu.h:24, from src/player.cpp:25: src/optionitem.h: In constructor 'OptionItem::OptionItem(int32_t, tgt_T*, int32_t (*)(tgt_T*, int32_t), const char*, int32_t, BUTTON*, int32_t, int32_t, int32_t, int32_t, int32_t)': @@ -1018,17 +1035,8 @@ src/optionitembase.h:40:7: note: forward declaration of 'class BUTTON' class BUTTON; ^~~~~~ -Compiling obj/virtobj.o -/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/virtobj.o -c src/virtobj.cpp -In file included from src/menu.h:24, - from src/optionscreens.h:28, - from src/optionscreens.cpp:1: -src/optionitem.h: In instantiation of 'void OptionItem::activateValue(int32_t) [with tgt_T = bool; opt_T = int; int32_t = int]': -src/optionitem.h:382:12: required from 'int32_t OptionItem::activate(int32_t, int32_t, int32_t, int32_t) [with tgt_T = bool; opt_T = int; int32_t = int]' -src/optionitem.h:340:10: required from here -src/optionitem.h:507:40: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] - tgt_T t_val = static_cast(val * decinc); - ~~~~^~~~~~~~ +Compiling obj/text.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/text.o -c src/text.cpp In file included from src/environment.h:25, from src/player.cpp:21: src/player.cpp: In member function 'eControl PLAYER::executeNetCmd(bool, AICore*)': @@ -1040,6 +1048,8 @@ src/network.h:78:18: note: in definition of macro 'SAFE_WRITE' sprintf(buffer, fmt_, __VA_ARGS__); \ ^~~~ +Compiling obj/update.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/update.o -c src/update.cpp src/shop.cpp: In function 'bool shop(LevelCreator*)': src/shop.cpp:284:16: warning: '%s' directive output may be truncated writing up to 64 bytes into a region of size 62 [-Wformat-truncation=] "%s \"%s\".", @@ -1056,6 +1066,8 @@ ~~~~~~~~~~~~~~~~~~~~~~~~~ env.game_name); ~~~~~~~~~~~~~~ +Compiling obj/virtobj.o +/usr/bin/g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused -o obj/virtobj.o -c src/virtobj.cpp /usr/bin/g++ -o atanks obj/aicore.o obj/atanks.o obj/beam.o obj/button.o obj/client.o obj/clock.o obj/debris_pool.o obj/debug.o obj/decor.o obj/environment.o obj/explosion.o obj/files.o obj/floattext.o obj/gameloop.o obj/gfxData.o obj/globaldata.o obj/globaltypes.o obj/land.o obj/main.o obj/menu.o obj/missile.o obj/network.o obj/optionitembase.o obj/optionitemcolour.o obj/optionitemmenu.o obj/optionitemplayer.o obj/optionscreens.o obj/optiontypes.o obj/perlin.o obj/physobj.o obj/player.o obj/player_types.o obj/satellite.o obj/shop.o obj/sky.o obj/sound.o obj/tank.o obj/teleport.o obj/text.o obj/update.o obj/virtobj.o -Wdate-time -D_FORTIFY_SOURCE=2 -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -DATANKS_DEBUG -Wl,-z,relro -L/usr/lib/i386-linux-gnu -lalleg -lm -lpthread -ggdb -g -O2 -ffile-prefix-map=/build/atanks-6.5~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic -std=c++0x -pthread -O0 -Wunused make[1]: Leaving directory '/build/atanks-6.5~dfsg' dh_auto_test @@ -1065,7 +1077,7 @@ dh_testroot dh_prep dh_auto_install - make -j18 install DESTDIR=/build/atanks-6.5\~dfsg/debian/tmp AM_UPDATE_INFO_DIR=no "INSTALL=install --strip-program=true" + make -j10 install DESTDIR=/build/atanks-6.5\~dfsg/debian/tmp AM_UPDATE_INFO_DIR=no "INSTALL=install --strip-program=true" make[1]: Entering directory '/build/atanks-6.5~dfsg' install --strip-program=true -d /build/atanks-6.5~dfsg/debian/tmp/usr/bin install: WARNING: ignoring --strip-program option as -s option was not specified @@ -1145,21 +1157,23 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'atanks-data' in '../atanks-data_6.5~dfsg-3_all.deb'. dpkg-deb: building package 'atanks-dbgsym' in '../atanks-dbgsym_6.5~dfsg-3_i386.deb'. dpkg-deb: building package 'atanks' in '../atanks_6.5~dfsg-3_i386.deb'. +dpkg-deb: building package 'atanks-data' in '../atanks-data_6.5~dfsg-3_all.deb'. dpkg-genbuildinfo --build=binary dpkg-genchanges --build=binary >../atanks_6.5~dfsg-3_i386.changes dpkg-genchanges: info: binary-only upload (no source code included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: copying local configuration +I: user script /srv/workspace/pbuilder/25415/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/25415/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/56571 and its subdirectories -I: Current time: Sat May 22 14:18:50 -12 2021 -I: pbuilder-time-stamp: 1621736330 +I: removing directory /srv/workspace/pbuilder/25415 and its subdirectories +I: Current time: Mon Apr 20 10:01:37 +14 2020 +I: pbuilder-time-stamp: 1587326497