Mock Version: 1.4.21 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/atanks.spec'], chrootPath='/var/lib/mock/f33-build-300095-56490/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/atanks.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1595808000 Wrote: /builddir/build/SRPMS/atanks-6.5-11.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/atanks.spec'], chrootPath='/var/lib/mock/f33-build-300095-56490/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/atanks.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1595808000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.NXznXA + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf atanks-6.5 + /usr/bin/gzip -dc /builddir/build/SOURCES/atanks-6.5.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd atanks-6.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (atanks-remove-cxxflags-mangling.patch):' Patch #0 (atanks-remove-cxxflags-mangling.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.TW31kE + umask 022 + cd /builddir/build/BUILD + cd atanks-6.5 + PREFIX=/usr + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + make -j4 DEBUG=NO Compiling obj/aicore.o Compiling obj/atanks.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/aicore.o -c src/aicore.cpp /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/atanks.o -c src/atanks.cpp Compiling obj/beam.o Compiling obj/button.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/beam.o -c src/beam.cpp /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/button.o -c src/button.cpp 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' 304 | 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' 40 | class BUTTON; | ^~~~~~ 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=] 201 | } catch (std::exception) { | ^~~~~~~~~ src/beam.cpp:211:17: warning: catching polymorphic type 'class std::exception' by value [-Wcatch-value=] 211 | } 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=] 271 | } catch (std::exception) { | ^~~~~~~~~ Compiling obj/client.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/client.o -c src/client.cpp Compiling obj/clock.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/clock.o -c src/clock.cpp src/atanks.cpp: In function 'main': src/atanks.cpp:737:35: warning: '/atanks-config.txt' directive output may be truncated writing 18 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 737 | snprintf(fullPath, PATH_MAX, "%s/atanks-config.txt", env.configDir); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/atanks.cpp:22: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 19 and 4115 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/atanks.cpp:152:35: warning: '/credits.txt' directive output may be truncated writing 12 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 152 | snprintf (path_buf, PATH_MAX, "%s/credits.txt", env.dataDir); | ^~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/atanks.cpp:22: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 13 and 4109 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/atanks.cpp:293:30: warning: '__snprintf_chk' output truncated before the last format character [-Wformat-truncation=] 293 | snprintf(valTxt, 15, " %14s", Add_Comma(pl_money[z])); | ^ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/atanks.cpp:22: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output 16 or more bytes into a destination of size 15 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/atanks.cpp:1322:53: warning: '%s' directive output may be truncated writing up to 256 bytes into a region of size 230 [-Wformat-truncation=] 1322 | snprintf(buffer, 255, "GAMEEND The game went to %s.", winner); | ^~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/atanks.cpp:22: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 27 and 283 bytes into a destination of size 255 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling obj/debris_pool.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/debris_pool.o -c src/debris_pool.cpp Compiling obj/debug.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/debug.o -c src/debug.cpp Compiling obj/decor.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/decor.o -c src/decor.cpp Compiling obj/environment.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/environment.o -c src/environment.cpp Compiling obj/explosion.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/explosion.o -c src/explosion.cpp Compiling obj/files.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/files.o -c src/files.cpp src/explosion.cpp: In member function 'virtual void EXPLOSION::applyPhysics()': src/explosion.cpp:181:18: warning: catching polymorphic type 'class std::exception' by value [-Wcatch-value=] 181 | } catch (std::exception) { /* No reason to fuss, its just smoke. */ } | ^~~~~~~~~ Compiling obj/floattext.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/floattext.o -c src/floattext.cpp src/files.cpp: In function 'Save_Game()': src/files.cpp:44:34: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4096 [-Wformat-truncation=] 44 | snprintf(path_buf, PATH_MAX, "%s/%s.sav", env.configDir, env.game_name); | ^ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/files.cpp:1: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 6 and 4166 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/files.cpp:95:34: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4096 [-Wformat-truncation=] 95 | snprintf(path_buf, PATH_MAX, "%s/%s.txt", | ^ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/files.cpp:1: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 6 and 4166 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/files.cpp: In function 'Load_Game()': src/files.cpp:131:34: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4096 [-Wformat-truncation=] 131 | snprintf(path_buf, PATH_MAX, "%s/%s.sav", env.configDir, env.game_name); | ^ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/files.cpp:1: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 6 and 4166 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/files.cpp: In function 'Check_For_Saved_Game()': src/files.cpp:295:34: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4096 [-Wformat-truncation=] 295 | snprintf(path_buf, PATH_MAX, "%s/%s.sav", env.configDir, env.game_name); | ^ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/files.cpp:1: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 6 and 4166 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/files.cpp: In function 'Copy_Config_File()': src/files.cpp:323:35: warning: '/atanks-config.txt' directive output may be truncated writing 18 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 323 | snprintf(dest_path, PATH_MAX, "%s/atanks-config.txt", env.configDir); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/files.cpp:1: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 19 and 4115 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/files.cpp: In function 'Create_Music_Folder()': src/files.cpp:381:34: warning: '/music' directive output may be truncated writing 6 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 381 | snprintf(path_buf, PATH_MAX, "%s/music", env.configDir); | ^~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/files.cpp:1: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 7 and 4103 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp: In member function 'ENVIRONMENT::load_text_files()': src/environment.cpp:942:36: warning: '/text/war_quotes_it.txt' directive output may be truncated writing 23 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 942 | snprintf(path_buf, PATH_MAX, "%s/text/war_quotes_it.txt", dataDir); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 24 and 4120 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:958:36: warning: '/text/war_quotes_ES.txt' directive output may be truncated writing 23 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 958 | snprintf(path_buf, PATH_MAX, "%s/text/war_quotes_ES.txt", dataDir); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 24 and 4120 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:950:36: warning: '/text/war_quotes_ru.txt' directive output may be truncated writing 23 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 950 | snprintf(path_buf, PATH_MAX, "%s/text/war_quotes_ru.txt", dataDir); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 24 and 4120 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:954:36: warning: '/text/war_quotes.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 954 | snprintf(path_buf, PATH_MAX, "%s/text/war_quotes.txt", dataDir); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 21 and 4117 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:938:36: warning: '/text/war_quotes.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 938 | snprintf(path_buf, PATH_MAX, "%s/text/war_quotes.txt", dataDir); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 21 and 4117 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:934:36: warning: '/text/war_quotes.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 934 | snprintf(path_buf, PATH_MAX, "%s/text/war_quotes.txt", dataDir); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 21 and 4117 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:946:36: warning: '/text/war_quotes.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 946 | snprintf(path_buf, PATH_MAX, "%s/text/war_quotes.txt", dataDir); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 21 and 4117 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:963:36: warning: '/text/war_quotes.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 963 | snprintf(path_buf, PATH_MAX, "%s/text/war_quotes.txt", dataDir); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 21 and 4117 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:915:31: warning: '/text/' directive output may be truncated writing 6 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 915 | snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ | ^~~~~~~~~~~~~~ src/environment.cpp:915:34: note: format string is defined here 915 | snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ | ^~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output 12 or more bytes (assuming 4108) into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:915:31: warning: '/text/' directive output may be truncated writing 6 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 915 | snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ | ^~~~~~~~~~~~~~ src/environment.cpp:915:34: note: format string is defined here 915 | snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ | ^~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output 13 or more bytes (assuming 4109) into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:915:31: warning: '/text/' directive output may be truncated writing 6 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 915 | snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ | ^~~~~~~~~~~~~~ src/environment.cpp:915:34: note: format string is defined here 915 | snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ | ^~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output 12 or more bytes (assuming 4108) into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:915:31: warning: '/text/' directive output may be truncated writing 6 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 915 | snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ | ^~~~~~~~~~~~~~ src/environment.cpp:915:34: note: format string is defined here 915 | snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ | ^~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output 12 or more bytes (assuming 4108) into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:915:31: warning: '/text/' directive output may be truncated writing 6 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 915 | snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ | ^~~~~~~~~~~~~~ src/environment.cpp:915:34: note: format string is defined here 915 | snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ | ^~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output 15 or more bytes (assuming 4111) into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:915:31: warning: '/text/' directive output may be truncated writing 6 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 915 | snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ | ^~~~~~~~~~~~~~ src/environment.cpp:915:34: note: format string is defined here 915 | snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ | ^~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output 18 or more bytes (assuming 4114) into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:915:31: warning: '/text/' directive output may be truncated writing 6 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 915 | snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ | ^~~~~~~~~~~~~~ src/environment.cpp:915:34: note: format string is defined here 915 | snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ | ^~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output 14 or more bytes (assuming 4110) into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:915:31: warning: '/text/' directive output may be truncated writing 6 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 915 | snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ | ^~~~~~~~~~~~~~ src/environment.cpp:915:34: note: format string is defined here 915 | snprintf(path_buf, PATH_MAX, "%s/text/%s%s", dataDir, file, suffix); \ | ^~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output 14 or more bytes (assuming 4110) into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp: In member function 'ENVIRONMENT::loadBackgroundMusic()': src/environment.cpp:1007:35: warning: '/music' directive output may be truncated writing 6 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 1007 | snprintf(path_buf, PATH_MAX, "%s/music", configDir); | ^~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 7 and 4103 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:1021:36: warning: '/music/' directive output may be truncated writing 7 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 1021 | snprintf(path_buf, PATH_MAX, "%s/music/%s", | ^~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 8 and 4359 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/files.cpp: In function 'Load_Weapons_Text()': src/files.cpp:511:35: warning: '/text/weapons_it.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 511 | snprintf(path_buf, PATH_MAX, "%s/text/weapons_it.txt", env.dataDir); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/files.cpp:1: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 21 and 4117 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/files.cpp:509:35: warning: '/text/weapons_ES.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 509 | snprintf(path_buf, PATH_MAX, "%s/text/weapons_ES.txt", env.dataDir); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/files.cpp:1: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 21 and 4117 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/files.cpp:507:35: warning: '/text/weapons_ru.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 507 | snprintf(path_buf, PATH_MAX, "%s/text/weapons_ru.txt", env.dataDir); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/files.cpp:1: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 21 and 4117 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/files.cpp:505:35: warning: '/text/weapons_sk.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 505 | snprintf(path_buf, PATH_MAX, "%s/text/weapons_sk.txt", env.dataDir); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/files.cpp:1: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 21 and 4117 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/files.cpp:503:35: warning: '/text/weapons_de.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 503 | snprintf(path_buf, PATH_MAX, "%s/text/weapons_de.txt", env.dataDir); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/files.cpp:1: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 21 and 4117 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/files.cpp:501:35: warning: '/text/weapons_fr.txt' directive output may be truncated writing 20 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 501 | snprintf(path_buf, PATH_MAX, "%s/text/weapons_fr.txt", env.dataDir); | ^~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/files.cpp:1: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 21 and 4117 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/files.cpp:499:35: warning: '/text/weapons.pt_BR.txt' directive output may be truncated writing 23 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 499 | snprintf(path_buf, PATH_MAX, "%s/text/weapons.pt_BR.txt", env.dataDir); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/files.cpp:1: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 24 and 4120 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/files.cpp:497:35: warning: '/text/weapons.txt' directive output may be truncated writing 17 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 497 | snprintf(path_buf, PATH_MAX, "%s/text/weapons.txt", env.dataDir); | ^~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/files.cpp:1: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 18 and 4114 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp: In member function 'ENVIRONMENT::loadBitmaps()': src/environment.cpp:1097:35: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4096 [-Wformat-truncation=] 1097 | snprintf(path_buf, PATH_MAX, "%s/%s/%d.bmp", dataDir, | ^ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output 8 or more bytes (assuming 4104) into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp:1185:36: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4096 [-Wformat-truncation=] 1185 | snprintf(path_buf, PATH_MAX, "%s/%s/%d.bmp", dataDir, | ^ src/environment.cpp:1185:33: note: directive argument in the range [1, 2147483647] 1185 | snprintf(path_buf, PATH_MAX, "%s/%s/%d.bmp", dataDir, | ^~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output 8 or more bytes (assuming 4113) into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling obj/gameloop.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/gameloop.o -c src/gameloop.cpp src/environment.cpp: In member function 'ENVIRONMENT::loadFonts()': src/environment.cpp:1213:34: warning: '/unicode.dat' directive output may be truncated writing 12 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 1213 | snprintf(path_buf, PATH_MAX, "%s/unicode.dat", dataDir); | ^~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 13 and 4109 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/environment.cpp: In member function 'ENVIRONMENT::loadSounds()': src/environment.cpp:1288:35: warning: '/sound/' directive output may be truncated writing 7 bytes into a region of size between 0 and 4096 [-Wformat-truncation=] 1288 | snprintf(path_buf, PATH_MAX, "%s/sound/%02d.wav", dataDir, i); | ^~~~~~~ src/environment.cpp:1288:32: note: directive argument in the range [0, 50] 1288 | snprintf(path_buf, PATH_MAX, "%s/sound/%02d.wav", dataDir, i); | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/environment.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 14 and 4110 bytes into a destination of size 4096 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling obj/gfxData.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/gfxData.o -c src/gfxData.cpp Compiling obj/globaldata.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/globaldata.o -c src/globaldata.cpp Compiling obj/globaltypes.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/globaltypes.o -c src/globaltypes.cpp Compiling obj/land.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/land.o -c src/land.cpp src/gameloop.cpp: In function 'void init_new_round()': src/gameloop.cpp:1399:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 1399 | 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' 1403 | global.newRound(); | ^~~~~~ src/globaldata.cpp: In member function 'void GLOBALDATA::destroy()': src/globaldata.cpp:226:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 226 | 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' 226 | if (canvas) destroy_bitmap(canvas); canvas = nullptr; | ^~~~~~ src/globaldata.cpp:227:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 227 | 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' 227 | if (terrain) destroy_bitmap(terrain); terrain = nullptr; | ^~~~~~~ src/globaldata.cpp:228:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 228 | 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' 228 | if (done) delete [] done; done = nullptr; | ^~~~ src/globaldata.cpp:229:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 229 | 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' 229 | if (fp) delete [] fp; fp = nullptr; | ^~ src/globaldata.cpp:230:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 230 | 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' 230 | if (surface) delete [] surface; surface = nullptr; | ^~~~~~~ src/globaldata.cpp:231:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 231 | 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' 231 | if (dropTo) delete [] dropTo; dropTo = nullptr; | ^~~~~~ src/globaldata.cpp:232:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 232 | 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' 232 | if (velocity) delete [] velocity; velocity = nullptr; | ^~~~~~~~ src/globaldata.cpp:233:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 233 | 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' 233 | if (dropIncr) delete [] dropIncr; dropIncr = nullptr; | ^~~~~~~~ src/globaldata.cpp:234:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 234 | 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' 234 | if (updates) delete [] updates; updates = nullptr; | ^~~~~~~ src/globaldata.cpp:235:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 235 | 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' 235 | 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] 256 | 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 276 | struct BOX | ^~~ Compiling obj/main.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/main.o -c src/main.cpp Compiling obj/menu.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/menu.o -c src/menu.cpp Compiling obj/missile.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/missile.o -c src/missile.cpp Compiling obj/network.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/network.o -c src/network.cpp Compiling obj/optionitembase.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/optionitembase.o -c src/optionitembase.cpp In file included from src/menu.h:24, from src/menu.cpp:5: src/optionitem.h: In instantiation of 'void OptionItem::activateValue(int32_t) [with tgt_T = bool; opt_T = unsigned int; int32_t = int]': 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] 507 | tgt_T t_val = static_cast(val * decinc); | ~~~~^~~~~~~~ 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=] 237 | } catch (std::exception) { | ^~~~~~~~~ In file included from /usr/include/string.h:519, from /usr/include/allegro/base.h:30, from /usr/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: In function 'strncpy', inlined from 'MESSAGE_QUEUE::Add(char*, int)' at src/network.cpp:59:9, inlined from 'MESSAGE_QUEUE::Add(char*, int)' at src/network.cpp:41:6: /usr/include/bits/string_fortified.h:106:34: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/network.cpp: In member function 'MESSAGE_QUEUE::Add(char*, int)': src/network.cpp:59:9: note: length computed here 59 | strncpy(new_message->text, some_text, strlen(some_text)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:519, from /usr/include/allegro/base.h:30, from /usr/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: In function 'strncpy', inlined from 'MESSAGE_QUEUE::Peek()' at src/network.cpp:117:11: /usr/include/bits/string_fortified.h:106:34: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/network.cpp: In member function 'MESSAGE_QUEUE::Peek()': src/network.cpp:117:11: note: length computed here 117 | strncpy(my_message->text, first_message->text, strlen(first_message->text)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:519, from /usr/include/allegro/base.h:30, from /usr/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: In function 'strncpy', inlined from 'MESSAGE_QUEUE::Read_To(int)' at src/network.cpp:163:9: /usr/include/bits/string_fortified.h:106:34: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/network.cpp: In member function 'MESSAGE_QUEUE::Read_To(int)': src/network.cpp:163:9: note: length computed here 163 | strncpy(my_message->text, current->text, strlen(current->text)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling obj/optionitemcolour.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/optionitemcolour.o -c src/optionitemcolour.cpp Compiling obj/optionitemmenu.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/optionitemmenu.o -c src/optionitemmenu.cpp Compiling obj/optionitemplayer.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/optionitemplayer.o -c src/optionitemplayer.cpp Compiling obj/optionscreens.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/optionscreens.o -c src/optionscreens.cpp 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' 304 | 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' 40 | class BUTTON; | ^~~~~~ Compiling obj/optiontypes.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/optiontypes.o -c src/optiontypes.cpp Compiling obj/perlin.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/perlin.o -c src/perlin.cpp Compiling obj/physobj.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/physobj.o -c src/physobj.cpp 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' 304 | 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' 40 | 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] 507 | tgt_T t_val = static_cast(val * decinc); | ~~~~^~~~~~~~ Compiling obj/player.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/player.o -c src/player.cpp Compiling obj/player_types.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/player_types.o -c src/player_types.cpp Compiling obj/satellite.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/satellite.o -c src/satellite.cpp In file included from src/menu.h:24, from src/player.cpp:25: src/optionitem.h: In constructor 'OptionItem::OptionItem(int32_t, tgt_T*, int32_t (*)(tgt_T*, int32_t), const char*, int32_t, BUTTON*, int32_t, int32_t, int32_t, int32_t, int32_t)': src/optionitem.h:304:16: warning: invalid use of incomplete type 'class BUTTON' 304 | 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' 40 | class BUTTON; | ^~~~~~ Compiling obj/shop.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/shop.o -c src/shop.cpp In file included from /usr/include/string.h:519, from /usr/include/allegro/base.h:30, from /usr/include/allegro.h:25, from src/main.h:55, from src/environment.h:24, from src/player.cpp:21: In function 'strncpy', inlined from 'PLAYER::load_from_file(_IO_FILE*) [clone .part.0]' at src/player.cpp:2051:12: /usr/include/bits/string_fortified.h:106:34: warning: 'strncpy' output may be truncated copying 24 bytes from a string of length 128 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling obj/sky.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/sky.o -c src/sky.cpp Compiling obj/sound.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/sound.o -c src/sound.cpp src/shop.cpp: In function 'shop(LevelCreator*)': src/shop.cpp:284:22: warning: '%s' directive output may be truncated writing up to 64 bytes into a region of size 62 [-Wformat-truncation=] 284 | "%s \"%s\".", | ^~ 285 | env.ingame->Get_Line(17), 286 | env.game_name); | ~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/player_types.h:9, from src/player.h:25, from src/shop.cpp:2: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output 5 or more bytes (assuming 69) into a destination of size 64 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'PLAYER_mini::copy_from(PLAYER*)' at src/player.cpp:2754:10, inlined from 'PLAYER_mini::copy_from(PLAYER*)' at src/player.cpp:2748:6: /usr/include/bits/string_fortified.h:106:34: warning: 'strncpy' output may be truncated copying 24 bytes from a string of length 24 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling obj/tank.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/tank.o -c src/tank.cpp Compiling obj/teleport.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/teleport.o -c src/teleport.cpp Compiling obj/text.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/text.o -c src/text.cpp Compiling obj/update.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/update.o -c src/update.cpp src/tank.cpp: In member function 'TANK::applyDamage()': src/tank.cpp:525:23: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Wformat-truncation=] 525 | snprintf (buf, 9, "%d", full_damage); | ^~ src/tank.cpp:525:22: note: directive argument in the range [1, 2147483647] 525 | snprintf (buf, 9, "%d", full_damage); | ^~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/floattext.h:24, from src/tank.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 2 and 11 bytes into a destination of size 9 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/tank.cpp:537:23: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Wformat-truncation=] 537 | snprintf (buf, 9, "%d", sh); | ^~ src/tank.cpp:537:22: note: directive argument in the range [1, 2147483647] 537 | snprintf (buf, 9, "%d", sh); | ^~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/floattext.h:24, from src/tank.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 2 and 11 bytes into a destination of size 9 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling obj/virtobj.o /usr/bin/g++ -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread -o obj/virtobj.o -c src/virtobj.cpp src/tank.cpp: In member function 'TANK::newRound(int, int)': src/tank.cpp:1433:21: warning: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size 9 [-Wformat-truncation=] 1433 | snprintf (buf, 9, "%d", l); | ^~ src/tank.cpp:1433:20: note: directive argument in the range [-2147483548, 2147483647] 1433 | snprintf (buf, 9, "%d", l); | ^~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/floattext.h:24, from src/tank.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 2 and 12 bytes into a destination of size 9 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:519, from /usr/include/c++/10/cstring:42, from src/text.cpp:3: In function 'strncpy', inlined from 'TEXTBLOCK::Load_File(char const*)' at src/text.cpp:199:11: /usr/include/bits/string_fortified.h:106:34: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/text.cpp: In member function 'TEXTBLOCK::Load_File(char const*)': src/text.cpp:199:11: note: length computed here 199 | strncpy(complete_text[lines_loaded++], line, strlen(line)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/tank.cpp: In member function 'TANK::explode(bool)': src/tank.cpp:865:36: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 3 [-Wformat-truncation=] 865 | snprintf(buffer, 14, "REMOVETANK %d", playerindex); | ^~ src/tank.cpp:865:24: note: directive argument in the range [0, 2147483646] 865 | snprintf(buffer, 14, "REMOVETANK %d", playerindex); | ^~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from src/debug.h:5, from src/main.h:41, from src/floattext.h:24, from src/tank.cpp:21: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 13 and 22 bytes into a destination of size 14 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/g++ -o atanks obj/aicore.o obj/atanks.o obj/beam.o obj/button.o obj/client.o obj/clock.o obj/debris_pool.o obj/debug.o obj/decor.o obj/environment.o obj/explosion.o obj/files.o obj/floattext.o obj/gameloop.o obj/gfxData.o obj/globaldata.o obj/globaltypes.o obj/land.o obj/main.o obj/menu.o obj/missile.o obj/network.o obj/optionitembase.o obj/optionitemcolour.o obj/optionitemmenu.o obj/optionitemplayer.o obj/optionscreens.o obj/optiontypes.o obj/perlin.o obj/physobj.o obj/player.o obj/player_types.o obj/satellite.o obj/shop.o obj/sky.o obj/sound.o obj/tank.o obj/teleport.o obj/text.o obj/update.o obj/virtobj.o -DDATA_DIR=\"/usr/share/games/atanks\" -DLINUX -DVERSION=\"6.5\" -DNETWORK -I/usr/include -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib -lalleg -lm -lpthread -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Wextra -pedantic -std=c++0x -pthread In function 'strncpy', inlined from 'Load_File.constprop' at src/text.cpp:199:11: /usr/include/bits/string_fortified.h:106:34: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^ src/text.cpp: In member function 'Load_File.constprop': src/text.cpp:199:11: note: length computed here 199 | strncpy(complete_text[lines_loaded++], line, strlen(line)); | ^ + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.x1CBiB + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64 ++ dirname /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64 + cd atanks-6.5 + rm -rf /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64 + mkdir -p -m 0755 /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/share/games/atanks /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/bin /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/share/pixmaps /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/share/applications + install -p -m 0644 README_ru.txt credits.txt /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/share/games/atanks/ + install -p -m 0644 unicode.dat /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/share/games/atanks/ + install -p -m 0755 atanks /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/bin/atanks + install -p -m 0644 atanks.png /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/share/pixmaps/ + mkdir -p /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/share/icons/hicolor/48x48/apps + install -p -m 644 atanks.png /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/share/icons/hicolor/48x48/apps + cp -pr button exporter misc missile sound stock tank tankgun text title /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/share/games/atanks/ + desktop-file-install --mode 0644 --dir /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/share/applications/ --add-category StrategyGame atanks.desktop + mkdir -p /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/share/appdata + cat + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 6.5-11.fc33 --unique-debug-suffix -6.5-11.fc33.riscv64 --unique-debug-src-base atanks-6.5-11.fc33.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/atanks-6.5 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/bin/atanks extracting debug info from /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/bin/atanks original debug info size: 9040kB, size after compression: 7412kB /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 2340 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: atanks-6.5-11.fc33.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.WeWLGA + umask 022 + cd /builddir/build/BUILD + cd atanks-6.5 + DOCDIR=/builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/share/doc/atanks + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/share/doc/atanks + cp -pr Changelog /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/share/doc/atanks + cp -pr README /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/share/doc/atanks + cp -pr TODO /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/share/doc/atanks + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.qKAc5A + umask 022 + cd /builddir/build/BUILD + cd atanks-6.5 + LICENSEDIR=/builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/share/licenses/atanks + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/share/licenses/atanks + cp -pr COPYING /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64/usr/share/licenses/atanks + RPM_EC=0 ++ jobs -p + exit 0 Provides: application() application(atanks.desktop) atanks = 6.5-11.fc33 atanks(riscv-64) = 6.5-11.fc33 metainfo() metainfo(atanks.appdata.xml) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) liballeg.so.4.4()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgcc_s.so.1(GCC_3.3.1)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.27)(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.27)(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.8)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.11)(64bit) libstdc++.so.6(GLIBCXX_3.4.19)(64bit) libstdc++.so.6(GLIBCXX_3.4.20)(64bit) libstdc++.so.6(GLIBCXX_3.4.22)(64bit) libstdc++.so.6(GLIBCXX_3.4.9)(64bit) rtld(GNU_HASH) Processing files: atanks-debugsource-6.5-11.fc33.riscv64 Provides: atanks-debugsource = 6.5-11.fc33 atanks-debugsource(riscv-64) = 6.5-11.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: atanks-debuginfo-6.5-11.fc33.riscv64 Provides: atanks-debuginfo = 6.5-11.fc33 atanks-debuginfo(riscv-64) = 6.5-11.fc33 debuginfo(build-id) = 1827f1bc221ad778ef43dd34f9c42859e6a69727 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: atanks-debugsource(riscv-64) = 6.5-11.fc33 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64 Wrote: /builddir/build/RPMS/atanks-debugsource-6.5-11.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/atanks-debuginfo-6.5-11.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/atanks-6.5-11.fc33.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.e2pnhE + umask 022 + cd /builddir/build/BUILD + cd atanks-6.5 + /usr/bin/rm -rf /builddir/build/BUILDROOT/atanks-6.5-11.fc33.riscv64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0