------------------------------------------------------------------------------- -- Phase: Environment ------------------------------------------------------------------------------- NO_DEPENDS=1 UNAME_r=6.5 UNAME_m=x86_64 UNAME_p=x86_64 UNAME_v=unknown UNAME_s=DragonFly PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SSL_NO_VERIFY_PEER=1 LANG=C HOME=/root USER=root TERM=dumb SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: showconfig ------------------------------------------------------------------------------- ===> The following configuration options are available for atanks-6.5_3: DOCS=on: Build and/or install documentation ===> Use 'make config' to modify these settings SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: CONFIGURE_ENV ------------------------------------------------------------------------------- MAKE=gmake XDG_DATA_HOME=/construction/games/atanks XDG_CONFIG_HOME=/construction/games/atanks XDG_CACHE_HOME=/construction/games/atanks/.cache HOME=/construction/games/atanks TMPDIR="/tmp" PATH=/construction/games/atanks/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin PKG_CONFIG_LIBDIR=/construction/games/atanks/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc80 SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: CONFIGURE_ARGS ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: MAKE_ENV ------------------------------------------------------------------------------- XDG_DATA_HOME=/construction/games/atanks XDG_CONFIG_HOME=/construction/games/atanks XDG_CACHE_HOME=/construction/games/atanks/.cache HOME=/construction/games/atanks TMPDIR="/tmp" PATH=/construction/games/atanks/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin PKG_CONFIG_LIBDIR=/construction/games/atanks/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc80 PREFIX=/usr/local LOCALBASE=/usr/local NOPROFILE=1 CC="cc" CFLAGS="-pipe -O2 -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS=" -pipe -O2 -fno-strict-aliasing " MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: MAKE_ARGS ------------------------------------------------------------------------------- DESTDIR=/construction/games/atanks/stage SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: PLIST_SUB ------------------------------------------------------------------------------- PORTDOCS="" OSREL=6.5 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/atanks" EXAMPLESDIR="share/examples/atanks" DATADIR="share/atanks" WWWDIR="www/atanks" ETCDIR="etc/atanks" SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: SUB_LIST ------------------------------------------------------------------------------- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/atanks DOCSDIR=/usr/local/share/doc/atanks EXAMPLESDIR=/usr/local/share/examples/atanks WWWDIR=/usr/local/www/atanks ETCDIR=/usr/local/etc/atanks SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: /etc/make.conf ------------------------------------------------------------------------------- DPORTS_BUILDER=yes DISABLE_LICENSES=yes DEFAULT_VERSIONS=ssl=openssl FORCE_PACKAGE=yes DEVELOPER=yes DFLY_STING_XFAIL=yes USE_PACKAGE_DEPENDS_ONLY=yes PORTSDIR=/xports PORT_DBDIR=/options PKG_DBDIR=/var/db/pkg PKG_CACHEDIR=/var/cache/pkg PKG_COMPRESSION_FORMAT=.tgz DEVELOPER=1 WITH_CCACHE_BUILD=yes CCACHE_DIR=/ccache UID=0 ARCH=x86_64 OPSYS=DragonFly DFLYVERSION=600503 OSVERSION=9999999 OSREL=6.5 _OSRELEASE=6.5-SYNTH DISTDIR=/distfiles WRKDIRPREFIX=/construction BATCH=yes PACKAGE_BUILDING=yes PKG_CREATE_VERBOSE=yes MAKE_JOBS_NUMBER=13 SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: setup ------------------------------------------------------------------------------- Installing /packages/All/indexinfo-0.3.1.pkg Installing /packages/All/gettext-runtime-0.21.1.pkg Installing /packages/All/gmake-4.3_2.pkg Installing /packages/All/ccache-3.7.12_4.pkg Create compiler links... create symlink for cc create symlink for cc (world) create symlink for c++ create symlink for c++ (world) create symlink for CC create symlink for CC (world) create symlink for gcc create symlink for gcc (world) create symlink for g++ create symlink for g++ (world) ===== Message from ccache-3.7.12_4: -- NOTE: Please read /usr/local/share/doc/ccache/ccache-howto-freebsd.txt for information on using ccache with FreeBSD ports and src. Installing /packages/All/libogg-1.3.5,4.pkg Installing /packages/All/png-1.6.39.pkg Installing /packages/All/libvorbis-1.3.7_2,3.pkg Installing /packages/All/libXau-1.0.9.pkg Installing /packages/All/xorgproto-2022.1_1.pkg Installing /packages/All/libXdmcp-1.1.3.pkg Installing /packages/All/libxcb-1.15_1.pkg Installing /packages/All/libX11-1.8.6,1.pkg Installing /packages/All/libXext-1.3.4,1.pkg Installing /packages/All/libglvnd-1.6.0.pkg Installing /packages/All/libGLU-9.0.2_2.pkg Installing /packages/All/libICE-1.1.0_1,1.pkg Installing /packages/All/libSM-1.2.3,1.pkg Installing /packages/All/libXrender-0.9.10_2.pkg Installing /packages/All/libXfixes-6.0.0.pkg Installing /packages/All/libXcursor-1.2.0.pkg Installing /packages/All/libXt-1.2.1,1.pkg Installing /packages/All/libXpm-3.5.15.pkg Installing /packages/All/libXxf86dga-1.1.6.pkg Installing /packages/All/libXxf86vm-1.1.4_3.pkg Installing /packages/All/allegro-4.4.3.1_3.pkg ===== Message from allegro-4.4.3.1_3: -- ===> NOTICE: The allegro port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing SUCCEEDED 00:00:06 ------------------------------------------------------------------------------- -- Phase: check-sanity ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: pkg-depends ------------------------------------------------------------------------------- ===> atanks-6.5_3 depends on file: /usr/local/sbin/pkg - found SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: fetch-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: fetch ------------------------------------------------------------------------------- ===> atanks-6.5_3 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by atanks-6.5_3 for building SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: checksum ------------------------------------------------------------------------------- ===> atanks-6.5_3 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by atanks-6.5_3 for building => SHA256 Checksum OK for atanks-6.5.tar.gz. SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: extract-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: extract ------------------------------------------------------------------------------- ===> atanks-6.5_3 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by atanks-6.5_3 for building ===> Extracting for atanks-6.5_3 => SHA256 Checksum OK for atanks-6.5.tar.gz. Extracted Memory Use: 13.63M SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: patch-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: patch ------------------------------------------------------------------------------- ===> Patching for atanks-6.5_3 ===> Applying ports patches for atanks-6.5_3 from /xports/games/atanks/files SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: build-depends ------------------------------------------------------------------------------- ===> atanks-6.5_3 depends on package: gmake>=4.3 - found ===> atanks-6.5_3 depends on file: /usr/local/bin/ccache - found SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: lib-depends ------------------------------------------------------------------------------- ===> atanks-6.5_3 depends on shared library: liballeg.so - found (/usr/local/lib/liballeg.so) SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: configure ------------------------------------------------------------------------------- ===> atanks-6.5_3 depends on package: gmake>=4.3 - found ===> atanks-6.5_3 depends on file: /usr/local/bin/ccache - found ===> atanks-6.5_3 depends on shared library: liballeg.so - found (/usr/local/lib/liballeg.so) ===> Configuring for atanks-6.5_3 SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: build ------------------------------------------------------------------------------- ===> Building for atanks-6.5_3 gmake[1]: Entering directory '/construction/games/atanks/atanks-6.5' Compiling obj/aicore.o Compiling obj/atanks.o Compiling obj/beam.o Compiling obj/button.o Compiling obj/client.o Compiling obj/clock.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/clock.o -c src/clock.cpp /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/client.o -c src/client.cpp /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/button.o -c src/button.cpp /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/beam.o -c src/beam.cpp /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/atanks.o -c src/atanks.cpp /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/aicore.o -c src/aicore.cpp Compiling obj/debug.o Compiling obj/decor.o Compiling obj/debris_pool.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/decor.o -c src/decor.cpp Compiling obj/explosion.o Compiling obj/environment.o In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/button.h:4, from src/client.cpp:1: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/button.h:4, from src/button.cpp:10: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/player_types.h:9, from src/aicore.h:45, from src/aicore.cpp:1: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/explosion.o -c src/explosion.cpp /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/environment.o -c src/environment.cpp /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/debug.o -c src/debug.cpp /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/debris_pool.o -c src/debris_pool.cpp Compiling obj/floattext.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/floattext.o -c src/floattext.cpp Compiling obj/files.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/files.o -c src/files.cpp In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/virtobj.h:27, from src/physobj.h:24, from src/decor.h:24, from src/decor.cpp:1: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/environment.cpp:21: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ src/environment.cpp: In member function 'void ENVIRONMENT::load_from_file(FILE*)': src/environment.cpp:695:11: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying between 1 and 128 bytes from a string of length 128 [-Wstringop-truncation] strncpy(field, line, equal_position); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/text/war_quotes_it.txt", dataDir); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:942:12: note: 'snprintf' output between 24 and 1048 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/text/war_quotes_it.txt", dataDir); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:958:33: warning: '/text/war_quotes_ES.txt' directive output may be truncated writing 23 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/text/war_quotes_ES.txt", dataDir); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:958:12: note: 'snprintf' output between 24 and 1048 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/text/war_quotes_ES.txt", dataDir); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:950:33: warning: '/text/war_quotes_ru.txt' directive output may be truncated writing 23 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/text/war_quotes_ru.txt", dataDir); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:950:12: note: 'snprintf' output between 24 and 1048 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/text/war_quotes_ru.txt", dataDir); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:954:33: warning: '/text/war_quotes.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/text/war_quotes.txt", dataDir); ^~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:954:12: note: 'snprintf' output between 21 and 1045 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/text/war_quotes.txt", dataDir); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:938:33: warning: '/text/war_quotes.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/text/war_quotes.txt", dataDir); ^~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:938:12: note: 'snprintf' output between 21 and 1045 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/text/war_quotes.txt", dataDir); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:934:33: warning: '/text/war_quotes.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/text/war_quotes.txt", dataDir); ^~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:934:12: note: 'snprintf' output between 21 and 1045 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/text/war_quotes.txt", dataDir); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:946:33: warning: '/text/war_quotes.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/text/war_quotes.txt", dataDir); ^~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:946:12: note: 'snprintf' output between 21 and 1045 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/text/war_quotes.txt", dataDir); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:963:33: warning: '/text/war_quotes.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/text/war_quotes.txt", dataDir); ^~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:963:12: note: 'snprintf' output between 21 and 1045 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/text/war_quotes.txt", dataDir); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:915:31: warning: '/text/' directive output may be truncated writing 6 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ ^~~~~~~~~~~~~~ src/environment.cpp:975:2: note: in expansion of macro 'LOAD_TEXT_BLOCK' LOAD_TEXT_BLOCK(gloat, "gloat") ^~~~~~~~~~~~~~~ src/environment.cpp:915:10: note: 'snprintf' output between 12 and 1047 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:975:2: note: in expansion of macro 'LOAD_TEXT_BLOCK' LOAD_TEXT_BLOCK(gloat, "gloat") ^~~~~~~~~~~~~~~ src/environment.cpp:915:31: warning: '/text/' directive output may be truncated writing 6 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ ^~~~~~~~~~~~~~ src/environment.cpp:976:2: note: in expansion of macro 'LOAD_TEXT_BLOCK' LOAD_TEXT_BLOCK(ingame, "ingame") ^~~~~~~~~~~~~~~ src/environment.cpp:915:10: note: 'snprintf' output between 13 and 1048 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:976:2: note: in expansion of macro 'LOAD_TEXT_BLOCK' LOAD_TEXT_BLOCK(ingame, "ingame") ^~~~~~~~~~~~~~~ src/environment.cpp:915:31: warning: '/text/' directive output may be truncated writing 6 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ ^~~~~~~~~~~~~~ src/environment.cpp:977:2: note: in expansion of macro 'LOAD_TEXT_BLOCK' LOAD_TEXT_BLOCK(instructions, "instr") ^~~~~~~~~~~~~~~ src/environment.cpp:915:10: note: 'snprintf' output between 12 and 1047 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:977:2: note: in expansion of macro 'LOAD_TEXT_BLOCK' LOAD_TEXT_BLOCK(instructions, "instr") ^~~~~~~~~~~~~~~ src/environment.cpp:915:31: warning: '/text/' directive output may be truncated writing 6 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ ^~~~~~~~~~~~~~ src/environment.cpp:978:2: note: in expansion of macro 'LOAD_TEXT_BLOCK' LOAD_TEXT_BLOCK(panic, "panic") ^~~~~~~~~~~~~~~ src/environment.cpp:915:10: note: 'snprintf' output between 12 and 1047 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:978:2: note: in expansion of macro 'LOAD_TEXT_BLOCK' LOAD_TEXT_BLOCK(panic, "panic") ^~~~~~~~~~~~~~~ src/environment.cpp:915:31: warning: '/text/' directive output may be truncated writing 6 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ ^~~~~~~~~~~~~~ src/environment.cpp:979:2: note: in expansion of macro 'LOAD_TEXT_BLOCK' LOAD_TEXT_BLOCK(kamikaze, "kamikaze") ^~~~~~~~~~~~~~~ src/environment.cpp:915:10: note: 'snprintf' output between 15 and 1050 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:979:2: note: in expansion of macro 'LOAD_TEXT_BLOCK' LOAD_TEXT_BLOCK(kamikaze, "kamikaze") ^~~~~~~~~~~~~~~ src/environment.cpp:915:31: warning: '/text/' directive output may be truncated writing 6 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ ^~~~~~~~~~~~~~ src/environment.cpp:980:2: note: in expansion of macro 'LOAD_TEXT_BLOCK' LOAD_TEXT_BLOCK(retaliation, "retaliation") ^~~~~~~~~~~~~~~ src/environment.cpp:915:10: note: 'snprintf' output between 18 and 1053 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:980:2: note: in expansion of macro 'LOAD_TEXT_BLOCK' LOAD_TEXT_BLOCK(retaliation, "retaliation") ^~~~~~~~~~~~~~~ src/environment.cpp:915:31: warning: '/text/' directive output may be truncated writing 6 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ ^~~~~~~~~~~~~~ src/environment.cpp:981:2: note: in expansion of macro 'LOAD_TEXT_BLOCK' LOAD_TEXT_BLOCK(revenge, "revenge") ^~~~~~~~~~~~~~~ src/environment.cpp:915:10: note: 'snprintf' output between 14 and 1049 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:981:2: note: in expansion of macro 'LOAD_TEXT_BLOCK' LOAD_TEXT_BLOCK(revenge, "revenge") ^~~~~~~~~~~~~~~ src/environment.cpp:915:31: warning: '/text/' directive output may be truncated writing 6 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ ^~~~~~~~~~~~~~ src/environment.cpp:982:2: note: in expansion of macro 'LOAD_TEXT_BLOCK' LOAD_TEXT_BLOCK(suicide, "suicide") ^~~~~~~~~~~~~~~ src/environment.cpp:915:10: note: 'snprintf' output between 14 and 1049 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:982:2: note: in expansion of macro 'LOAD_TEXT_BLOCK' LOAD_TEXT_BLOCK(suicide, "suicide") ^~~~~~~~~~~~~~~ src/environment.cpp: In member function 'bool ENVIRONMENT::loadBackgroundMusic()': src/environment.cpp:1007:32: warning: '/music' directive output may be truncated writing 6 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/music", configDir); ^~~~~~~~~~ src/environment.cpp:1007:11: note: 'snprintf' output between 7 and 1031 bytes into a destinaIn file included from /usr/local/include/allegro/base.h:41, from /usr/local/includetion of size 1024 snprintf(path_buf, PATH_MAX, "%s/music", configDir); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:1021:33: warning: '/music/' directive output may be truncated writing 7 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/music/%s", ^~~~~~~~~~~~~ src/environment.cpp:1021:12: note: 'snprintf' output between 8 and 1287 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/music/%s", ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ configDir, folder_entry->d_name); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp: In member function 'bool ENVIRONMENT::loadBitmaps()': src/environment.cpp:1097:32: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/%s/%d.bmp", dataDir, ^~~~~~~~~~~~~~ src/environment.cpp:1097:11: note: 'snprintf' output between 8 and 1040 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/%s/%d.bmp", dataDir, ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sub_folder, file_count); ~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:1185:33: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/%s/%d.bmp", dataDir, ^~~~~~~~~~~~~~ src/environment.cpp:1185:12: note: 'snprintf' output between 8 and 1050 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/%s/%d.bmp", dataDir, ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sub_folder, file_count); ~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp: In member function 'bool ENVIRONMENT::loadFonts()': src/environment.cpp:1213:31: warning: '/unicode.dat' directive output may be truncated writing 12 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/unicode.dat", dataDir); ^~~~~~~~~~~~~~~~ src/environment.cpp:1213:10: note: 'snprintf' output between 13 and 1037 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/unicode.dat", dataDir); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp: In member function 'bool ENVIRONMENT::loadSounds()': src/environment.cpp:1288:32: warning: '/sound/' directive output may be truncated writing 7 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/sound/%02d.wav", dataDir, i); ^~~~~~~~~~~~~~~~~~~ src/environment.cpp:1288:32: note: directive argument in the range [0, 51] src/environment.cpp:1288:11: note: 'snprintf' output between 14 and 1038 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/sound/%02d.wav", dataDir, i); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /allegro.h:25, from src/main.h:55, from src/debris_pool.h:25, from src/debris_pool.cpp:1: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/globaldata.h:23, from src/globals.h:5, from src/atanks.cpp:23: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ In file included from src/menu.h:24, from src/optionscreens.h:28, from src/atanks.cpp:24: 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/atanks.cpp:24: src/optionitembase.h:40:7: note: forward declaration of 'class BUTTON' class BUTTON; ^~~~~~ src/atanks.cpp: In function 'int32_t main(int32_t, char**)': 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 1024 [-Wformat-truncation=] snprintf(fullPath, PATH_MAX, "%s/atanks-config.txt", env.configDir); ^~~~~~~~~~~~~~~~~~~~~~ src/atanks.cpp:737:11: note: 'snprintf' output between 19 and 1043 bytes into a destination of size 1024 snprintf(fullPath, PATH_MAX, "%s/atanks-config.txt", env.configDir); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/atanks.cpp:152:32: warning: '/credits.txt' directive output may be truncated writing 12 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] snprintf (path_buf, PATH_MAX, "%s/credits.txt", env.dataDir); ^~~~~~~~~~~~~~~~ src/atanks.cpp:152:11: note: 'snprintf' output between 13 and 1037 bytes into a destination of size 1024 snprintf (path_buf, PATH_MAX, "%s/credits.txt", env.dataDir); ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:1322:27: warning: '%s' directive output may be truncated writing up to 256 bytes into a region of size 230 [-Wformat-truncation=] snprintf(buffer, 255, "GAMEEND The game went to %s.", winner); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/atanks.cpp:1322:13: note: 'snprintf' output between 27 and 283 bytes into a destination of size 255 snprintf(buffer, 255, "GAMEEND The game went to %s.", winner); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling obj/gameloop.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/gameloop.o -c src/gameloop.cpp Compiling obj/globaltypes.o Compiling obj/globaldata.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/globaltypes.o -c src/globaltypes.cpp /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/globaldata.o -c src/globaldata.cpp Compiling obj/gfxData.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/gfxData.o -c src/gfxData.cpp Compiling obj/land.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/land.o -c src/land.cpp Compiling obj/main.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/main.o -c src/main.cpp Compiling obj/menu.o Compiling obj/missile.o In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/gameloop.cpp:6: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ 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(); ^~~~~~ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/land.h:4, from src/land.cpp:1: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/missile.o -c src/missile.cpp /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/menu.o -c src/menu.cpp Compiling obj/network.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/network.o -c src/network.cpp In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/main.cpp:1: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ Compiling obj/optionitembase.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/optionitembase.o -c src/optionitembase.cpp Compiling obj/optionitemcolour.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/optionitemcolour.o -c src/optionitemcolour.cpp In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/button.h:4, from src/optionitembase.cpp:1: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/environment.h:24, from src/optionitembase.h:24, from src/optionitemcolour.h:24, from src/optionitemcolour.cpp:1: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/explosion.h:24, from src/missile.cpp:21: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ 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) { ^~~~~~~~~ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/player_types.h:9, from src/player.h:25, from src/network.cpp:2: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ src/network.cpp: In member function 'bool MESSAGE_QUEUE::Add(char*, int)': src/network.cpp:59:9: warning: 'char* strncpy(char*, const char*, size_t)' specified bound depends on the length of the source argument [-Wstringop-overflow=] strncpy(new_message->text, some_text, strlen(some_text)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/network.cpp: In member function 'MESSAGE* MESSAGE_QUEUE::Peek()': src/network.cpp:117:11: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(my_message->text, first_message->text, strlen(first_message->text)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/network.cpp: In member function 'MESSAGE* MESSAGE_QUEUE::Read_To(int)': src/network.cpp:163:9: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(my_message->text, current->text, strlen(current->text)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling obj/optionitemmenu.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/optionitemmenu.o -c src/optionitemmenu.cpp Compiling obj/optionitemplayer.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/optionitemplayer.o -c src/optionitemplayer.cpp In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/environment.h:24, from src/optionitembase.h:24, from src/optionitemcolour.h:24, from src/menu.cpp:2: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ 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]': 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 = unsigned 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/optionscreens.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/optionscreens.o -c src/optionscreens.cpp In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/environment.h:24, from src/optionitembase.h:24, from src/optionitemplayer.h:24, from src/optionitemplayer.cpp:1: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/environment.h:24, from src/optionitembase.h:24, from src/optionitem.h:24, from src/menu.h:24, from src/optionscreens.h:28, from src/optionscreens.cpp:1: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ In file included from src/menu.h:24, 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/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; ^~~~~~ 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 /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/player_types.h:9, from src/player.h:25, from src/globaldata.cpp:22: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ 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:276:8: note: 'struct BOX' declared here struct BOX ^~~ src/globaldata.cpp: In member function 'void GLOBALDATA::load_from_file(FILE*)': src/globaldata.cpp:685:11: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying between 1 and 128 bytes from a string of length 128 [-Wstringop-truncation] strncpy(field, line, equal_position); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling obj/optiontypes.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/optiontypes.o -c src/optiontypes.cpp Compiling obj/perlin.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/perlin.o -c src/perlin.cpp Compiling obj/physobj.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/physobj.o -c src/physobj.cpp Compiling obj/player.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/player.o -c src/player.cpp Compiling obj/player_types.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/player_types.o -c src/player_types.cpp Compiling obj/satellite.o In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/perlin.cpp:26: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/environment.h:24, from src/player.cpp:21: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ 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)': 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/player.cpp:25: src/optionitembase.h:40:7: note: forward declaration of 'class BUTTON' class BUTTON; ^~~~~~ src/player.cpp: In member function 'bool PLAYER::load_from_file(FILE*)': src/player.cpp:2046:11: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying between 1 and 128 bytes from a string of length 128 [-Wstringop-truncation] strncpy(field, line, equal_position); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/player.cpp:2051:12: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 24 bytes from a string of length 128 [-Wstringop-truncation] strncpy(name, value, NAME_LEN); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ src/player.cpp: In member function 'void PLAYER::load_game_data(FILE*)': src/player.cpp:2171:11: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying between 1 and 128 bytes from a string of length 128 [-Wstringop-truncation] strncpy(field, line, equal_position); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/player.cpp: In member function 'void PLAYER_mini::copy_from(PLAYER*)': src/player.cpp:2754:10: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying 24 bytes from a string of length 24 [-Wstringop-truncation] strncpy(name, source->getName(), NAME_LEN); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/virtobj.h:27, from src/physobj.h:24, from src/physobj.cpp:21: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/satellite.o -c src/satellite.cpp Compiling obj/shop.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/shop.o -c src/shop.cpp Compiling obj/sound.o Compiling obj/tank.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/sound.o -c src/sound.cpp Compiling obj/teleport.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/tank.o -c src/tank.cpp /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/teleport.o -c src/teleport.cpp In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/player_types.h:9, from src/player_types.cpp:1: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ Compiling obj/text.o Compiling obj/sky.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/text.o -c src/text.cpp /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/sky.o -c src/sky.cpp In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/environment.h:24, from src/teleport.cpp:21: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ Compiling obj/update.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/update.o -c src/update.cpp In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/globaldata.h:23, from src/externs.h:24, from src/sound.h:24, from src/sound.cpp:1: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ Compiling obj/virtobj.o /usr/local/libexec/ccache/c++ -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/virtobj.o -c src/virtobj.cpp In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/text.cpp:7: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array memIn file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/environment.h:24, from src/satellite.cpp:1: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAYIn file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/player_types.h:9, from src/player.h:25, from src/shop.cpp:2: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ 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\".", ^~~~~~~~~~~~ src/shop.cpp:286:16: env.game_name); ~~~~~~~~~~~~~ src/shop.cpp:283:15: note: 'snprintf' output 5 or more bytes (assuming 69) into a destination of size 64 snprintf(description, 64, ~~~~~~~~^~~~~~~~~~~~~~~~~ "%s \"%s\".", ~~~~~~~~~~~~~ env.ingame->Get_Line(17), ~~~~~~~~~~~~~~~~~~~~~~~~~ env.game_name); ~~~~~~~~~~~~~~ ' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/floattext.h:24, from src/tank.cpp:21: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ src/tank.cpp: In member function 'void TANK::applyDamage()': src/tank.cpp:525:22: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Wformat-truncation=] snprintf (buf, 9, "%d", full_damage); ^~~~ src/tank.cpp:525:22: note: directive argument in the range [1, 2147483647] src/tank.cpp:525:13: note: 'snprintf' output between 2 and 11 bytes into a destination of size 9 snprintf (buf, 9, "%d", full_damage); ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/tank.cpp:537:22: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Wformat-truncation=] snprintf (buf, 9, "%d", sh); ^~~~ src/tank.cpp:537:22: note: directive argument in the range [1, 2147483647] src/tank.cpp:537:13: note: 'snprintf' output between 2 and 11 bytes into a destination of size 9 snprintf (buf, 9, "%d", sh); ~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/tank.cpp: In member function 'void TANK::explode(bool)': src/tank.cpp:865:24: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 3 [-Wformat-truncation=] snprintf(buffer, 14, "REMOVETANK %d", playerindex); ^~~~~~~~~~~~~~~ src/tank.cpp:865:24: note: directive argument in the range [0, 2147483647] src/tank.cpp:865:11: note: 'snprintf' output between 13 and 22 bytes into a destination of size 14 snprintf(buffer, 14, "REMOVETANK %d", playerindex); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/tank.cpp: In member function 'void TANK::newRound(int32_t, int32_t)': src/tank.cpp:1433:20: warning: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size 9 [-Wformat-truncation=] snprintf (buf, 9, "%d", l); ^~~~ src/tank.cpp:1433:20: note: directive argument in the range [-2147483548, 2147483647] src/tank.cpp:1433:11: note: 'snprintf' output between 2 and 12 bytes into a destination of size 9 snprintf (buf, 9, "%d", l); ~~~~~~~~~^~~~~~~~~~~~~~~~~ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/virtobj.h:27, from src/virtobj.cpp:21: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ bers */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids fleIn file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/globaldata.h:23, from src/externs.h:24, from src/update.cpp:20: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ xible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ src/text.cpp: In member function 'bool TEXTBLOCK::Load_File(const char*)': src/text.cpp:199:11: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] strncpy(complete_text[lines_loaded++], line, strlen(line)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/globaldata.h:23, from src/externs.h:24, from src/sky.cpp:32: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/gfxData.cpp:1: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/explosion.cpp:20: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ 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. */ } ^~~~~~~~~ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/environment.h:24, from src/optionitembase.h:24, from src/optionitemmenu.h:24, from src/optionitemmenu.cpp:1: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ 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/optionitemmenu.h:24, from src/optionitemmenu.cpp:1: src/optionitembase.h:40:7: note: forward declaration of 'class BUTTON' class BUTTON; ^~~~~~ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/files.cpp:1: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ 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 1024 [-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 1094 bytes into a destination of size 1024 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 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/%s.txt", ^~~~~~~~~~~ src/files.cpp:95:10: note: 'snprintf' output between 6 and 1094 bytes into a destination of size 1024 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 1024 [-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 1094 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/%s.sav", env.configDir, env.game_name); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/files.cpp:180:12: warning: 'char* strncpy(char*, const char*, size_t)' output may be truncated copying between 1 and 128 bytes from a string of length 128 [-Wstringop-truncation] strncpy(field, line, equal_position); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 1024 [-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 1094 bytes into a destination of size 1024 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 1024 [-Wformat-truncation=] snprintf(dest_path, PATH_MAX, "%s/atanks-config.txt", env.configDir); ^~~~~~~~~~~~~~~~~~~~~~ src/files.cpp:323:10: note: 'snprintf' output between 19 and 1043 bytes into a destination of size 1024 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 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/music", env.configDir); ^~~~~~~~~~ src/files.cpp:381:10: note: 'snprintf' output between 7 and 1031 bytes into a destination of size 1024 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 1024 [-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 1045 bytes into a destination of size 1024 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 1024 [-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 1045 bytes into a destination of size 1024 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 1024 [-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 1045 bytes into a destination of size 1024 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 1024 [-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 1045 bytes into a destination of size 1024 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 1024 [-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 1045 bytes into a destination of size 1024 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 1024 [-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 1045 bytes into a destination of size 1024 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 1024 [-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 1048 bytes into a destination of size 1024 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 1024 [-Wformat-truncation=] snprintf(path_buf, PATH_MAX, "%s/text/weapons.txt", env.dataDir); ^~~~~~~~~~~~~~~~~~~~~ src/files.cpp:497:11: note: 'snprintf' output between 18 and 1042 bytes into a destination of size 1024 snprintf(path_buf, PATH_MAX, "%s/text/weapons.txt", env.dataDir); ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/environment.h:24, from src/beam.cpp:20: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ src/beam.cpp: In member function 'virtual void BEAM::applyPhysics()': src/beam.cpp:201:18: warning: catching polymorphic type 'class std::exception' by value [-Wcatch-value=] } catch (std::exception) { ^~~~~~~~~ src/beam.cpp:211:17: warning: catching polymorphic type 'class std::exception' by value [-Wcatch-value=] } catch (std::exception) { ^~~~~~~~~ src/beam.cpp: In member function 'void BEAM::createBeamPath()': src/beam.cpp:271:17: warning: catching polymorphic type 'class std::exception' by value [-Wcatch-value=] } catch (std::exception) { ^~~~~~~~~ In file included from /usr/local/include/allegro/base.h:41, from /usr/local/include/allegro.h:25, from src/main.h:55, from src/floattext.h:24, from src/floattext.cpp:1: /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'line' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/gfx.h:288:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char *, line); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/rle.h:34:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(signed char, dat); ^~~~~~~~~~~~~~~ /usr/local/include/allegro/internal/alconfig.h:120:57: warning: ISO C++ forbids flexible array member 'dat' [-Wpedantic] #define ZERO_SIZE_ARRAY(type, name) type name[] /* ISO C99 flexible array members */ ^ /usr/local/include/allegro/font.h:31:4: note: in expansion of macro 'ZERO_SIZE_ARRAY' ZERO_SIZE_ARRAY(unsigned char, dat); ^~~~~~~~~~~~~~~ /usr/local/libexec/ccache/c++ -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 -DDATA_DIR=\"/usr/local/share/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/local/include -L/usr/local/lib -lalleg -lm -lpthread -pipe -O2 -fno-strict-aliasing -Wall -Wextra -pedantic -std=c++0x -pthread gmake[1]: Leaving directory '/construction/games/atanks/atanks-6.5' SUCCEEDED 00:00:05 ------------------------------------------------------------------------------- -- Phase: run-depends ------------------------------------------------------------------------------- SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: stage ------------------------------------------------------------------------------- ===> Staging for atanks-6.5_3 ===> Generating temporary packing list gmake[1]: Entering directory '/construction/games/atanks/atanks-6.5' /usr/bin/install -d /construction/games/atanks/stage/usr/local/bin install -s -m 555 atanks /construction/games/atanks/stage/usr/local/bin /usr/bin/install -d /construction/games/atanks/stage/usr/local/share/applications install -m 0644 atanks.desktop /construction/games/atanks/stage/usr/local/share/applications /usr/bin/install -d /construction/games/atanks/stage/usr/local/share/icons/hicolor/48x48/apps install -m 0644 atanks.png /construction/games/atanks/stage/usr/local/share/icons/hicolor/48x48/apps /usr/bin/install -d /construction/games/atanks/stage/usr/local/share/atanks /usr/bin/install -d /construction/games/atanks/stage/usr/local/share/atanks/button /usr/bin/install -d /construction/games/atanks/stage/usr/local/share/atanks/misc /usr/bin/install -d /construction/games/atanks/stage/usr/local/share/atanks/missile /usr/bin/install -d /construction/games/atanks/stage/usr/local/share/atanks/sound /usr/bin/install -d /construction/games/atanks/stage/usr/local/share/atanks/stock /usr/bin/install -d /construction/games/atanks/stage/usr/local/share/atanks/tank /usr/bin/install -d /construction/games/atanks/stage/usr/local/share/atanks/tankgun /usr/bin/install -d /construction/games/atanks/stage/usr/local/share/atanks/title /usr/bin/install -d /construction/games/atanks/stage/usr/local/share/atanks/text install -m 0644 -m 644 credits.txt unicode.dat /construction/games/atanks/stage/usr/local/share/atanks install -m 0644 -m 644 button/* /construction/games/atanks/stage/usr/local/share/atanks/button install -m 0644 -m 644 misc/* /construction/games/atanks/stage/usr/local/share/atanks/misc install -m 0644 -m 644 missile/* /construction/games/atanks/stage/usr/local/share/atanks/missile install -m 0644 -m 644 sound/* /construction/games/atanks/stage/usr/local/share/atanks/sound install -m 0644 -m 644 stock/* /construction/games/atanks/stage/usr/local/share/atanks/stock install -m 0644 -m 644 tank/* /construction/games/atanks/stage/usr/local/share/atanks/tank install -m 0644 -m 644 tankgun/* /construction/games/atanks/stage/usr/local/share/atanks/tankgun install -m 0644 -m 644 title/* /construction/games/atanks/stage/usr/local/share/atanks/title install -m 0644 -m 644 text/* /construction/games/atanks/stage/usr/local/share/atanks/text gmake[1]: Leaving directory '/construction/games/atanks/atanks-6.5' ln -sf ../../share/icons/hicolor/48x48/apps/atanks.png /construction/games/atanks/stage/usr/local/share/pixmaps/ install -m 0644 /construction/games/atanks/atanks-6.5/Changelog /construction/games/atanks/atanks-6.5/README /construction/games/atanks/atanks-6.5/README_ru.txt /construction/games/atanks/atanks-6.5/credits.txt /construction/games/atanks/stage/usr/local/share/doc/atanks ====> Compressing man pages (compress-man) ====> Running Q/A tests (stage-qa) Warning: You have disabled the licenses framework with DISABLE_LICENSES, unable to run checks SUCCEEDED 00:00:01 ------------------------------------------------------------------------------- -- Phase: check-plist ------------------------------------------------------------------------------- ====> Checking for pkg-plist issues (check-plist) ===> Parsing plist ===> Checking for items in STAGEDIR missing from pkg-plist ===> Checking for items in pkg-plist which are not in STAGEDIR ===> No pkg-plist issues found (check-plist) SUCCEEDED 00:00:00 ------------------------------------------------------------------------------- -- Phase: package ------------------------------------------------------------------------------- ===> Building package for atanks-6.5_3 file sizes/checksums [305]: 0% file sizes/checksums [305]: 32% file sizes/checksums [305]: 65% file sizes/checksums [305]: 98% file sizes/checksums [305]: 100% Service unavailablepacking files [305]: 0% packing files [305]: 32% packing files [305]: 65% packing files [305]: 98% packing files [305]: 100% packing directories [0]: 0% packing directories [0]: 100% SUCCEEDED 00:00:02 TOTAL TIME 00:00:17