Mock Version: 3.0 Mock Version: 3.0 Mock Version: 3.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/7kaa.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-474398-23486/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': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/7kaa.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': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1674000000 Wrote: /builddir/build/SRPMS/7kaa-2.15.4p1-8.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/7kaa.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-474398-23486/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': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/7kaa.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': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1674000000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.TJErCx + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf 7kaa-2.15.4p1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/7kaa-2.15.4p1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd 7kaa-2.15.4p1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.le9YIg + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd 7kaa-2.15.4p1 + export 'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char' + ./autogen.sh aclocal: installing 'm4/pkg.m4' from '/usr/share/aclocal/pkg.m4' aclocal: installing 'm4/sdl2.m4' from '/usr/share/aclocal/sdl2.m4' configure.ac:53: warning: The macro `AC_ERROR' is obsolete. configure.ac:53: You should run autoupdate. ./lib/autoconf/oldnames.m4:34: AC_ERROR is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2823: _AC_COMPILE_IFELSE is expanded from... ./lib/autoconf/general.m4:2839: AC_COMPILE_IFELSE is expanded from... configure.ac:53: the top level configure.ac:170: warning: The macro `AC_ERROR' is obsolete. configure.ac:170: You should run autoupdate. ./lib/autoconf/oldnames.m4:34: AC_ERROR is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... configure.ac:170: the top level configure.ac:210: warning: The macro `AC_TRY_LINK' is obsolete. configure.ac:210: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:651: AS_FOR is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... m4/openal.m4:9: AM_PATH_OPENAL is expanded from... m4/pkg.m4:139: PKG_CHECK_MODULES is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... configure.ac:210: the top level configure.ac:210: warning: The macro `AC_ERROR' is obsolete. configure.ac:210: You should run autoupdate. ./lib/autoconf/oldnames.m4:34: AC_ERROR is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... m4/openal.m4:9: AM_PATH_OPENAL is expanded from... m4/pkg.m4:139: PKG_CHECK_MODULES is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... configure.ac:210: the top level configure.ac:225: warning: The macro `AC_ERROR' is obsolete. configure.ac:225: You should run autoupdate. ./lib/autoconf/oldnames.m4:34: AC_ERROR is expanded from... m4/sdl2.m4:18: AM_PATH_SDL2 is expanded from... configure.ac:225: the top level configure.ac:231: warning: The macro `AC_ERROR' is obsolete. configure.ac:231: You should run autoupdate. ./lib/autoconf/oldnames.m4:34: AC_ERROR is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... configure.ac:18: SEARCH_LIB_FLAGS is expanded from... m4/pkg.m4:139: PKG_CHECK_MODULES is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... configure.ac:231: the top level configure.ac:241: warning: The macro `AC_ERROR' is obsolete. configure.ac:241: You should run autoupdate. ./lib/autoconf/oldnames.m4:34: AC_ERROR is expanded from... m4/pkg.m4:139: PKG_CHECK_MODULES is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... configure.ac:241: the top level configure.ac:286: warning: The macro `AC_ERROR' is obsolete. configure.ac:286: You should run autoupdate. ./lib/autoconf/oldnames.m4:34: AC_ERROR is expanded from... lib/m4sugar/m4sh.m4:594: AS_CASE is expanded from... configure.ac:286: the top level configure.ac:293: warning: The macro `AC_ERROR' is obsolete. configure.ac:293: You should run autoupdate. ./lib/autoconf/oldnames.m4:34: AC_ERROR is expanded from... lib/m4sugar/m4sh.m4:594: AS_CASE is expanded from... configure.ac:293: the top level configure.ac:302: warning: The macro `AC_ERROR' is obsolete. configure.ac:302: You should run autoupdate. ./lib/autoconf/oldnames.m4:34: AC_ERROR is expanded from... lib/m4sugar/m4sh.m4:594: AS_CASE is expanded from... configure.ac:302: the top level configure.ac:41: installing './compile' configure.ac:86: installing './config.guess' configure.ac:86: installing './config.sub' configure.ac:11: installing './install-sh' configure.ac:11: installing './missing' src/Makefile.am: installing './depcomp' + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2023-04-20 05:57:29.546419643 -0400 +++ ./configure 2023-04-20 05:58:05.506417433 -0400 @@ -2001,7 +2001,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh ++ grep -q runstatedir=DIR ./configure ++ echo --runstatedir=/run + ./configure --build=riscv64-koji-linux-gnu --host=riscv64-koji-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking whether make supports the include directive... yes (GNU style) checking dependency style of g++... none checking for riscv64-koji-linux-gnu-gcc... gcc checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking for riscv64-koji-linux-gnu-ranlib... no checking for ranlib... ranlib checking whether ln -s works... yes checking for riscv64-koji-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking whether g++ supports C++11 features by default... yes checking whether char is signed... yes checking checking if compiler can emit 387 instructions... no checking build system type... riscv64-koji-linux-gnu checking host system type... riscv64-koji-linux-gnu checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for int16_t... yes checking for int32_t... yes checking for int8_t... yes checking for size_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for uint8_t... yes checking for _NSGetExecutablePath... no checking for strcasecmp() in string.h... yes checking for a sed that does not truncate output... /usr/bin/sed checking whether NLS is requested... yes checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for shared library run path origin... done checking how to run the C++ preprocessor... g++ -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E ./configure: line 7994: cd: /lib64/lp64d/../lib64/lp64d/: No such file or directory ./configure: line 7994: cd: /usr/lib64/lp64d/../lib64/lp64d/: No such file or directory checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyCurrent... no checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking for gettext... yes checking for iconv... yes checking for OPENAL... yes checking for SDL... yes checking for ENET... yes checking for CURL... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating data/Makefile config.status: creating include/Makefile config.status: creating src/Makefile config.status: creating src/curl/Makefile config.status: creating src/enet/Makefile config.status: creating src/imgfun/Makefile config.status: creating src/imgfun/generic/Makefile config.status: creating src/imgfun/x86/Makefile config.status: creating src/openal/Makefile config.status: creating po/Makefile.in config.status: creating include/config.h config.status: executing depfiles commands config.status: executing po-directories commands config.status: creating po/POTFILES config.status: creating po/Makefile configure: audio backend: openal configure: video backend: sdl configure: input backend: sdl configure: x86 asm: no configure: multiplayer: no configure: debugging features: no + /usr/bin/make -O -j8 V=1 VERBOSE=1 Making all in data make[1]: Nothing to be done for 'all'. Making all in include /usr/bin/make all-am Making all in src Making all in enet make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/enet' g++ -DHAVE_CONFIG_H -I. -I../../include -include "../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o multiplayer.o multiplayer.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/enet' multiplayer.cpp: In member function 'int MultiPlayer::poll_sessions()': multiplayer.cpp:347:42: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 347 | if (prev = get_session(m->session_id)) { | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ multiplayer.cpp: In member function 'void MultiPlayer::do_host_nat_punch(MpMsgHostNatPunch*)': multiplayer.cpp:1213:20: warning: unused variable 'b' [-Wunused-variable] 1213 | ENetBuffer b; | ^ multiplayer.cpp:1214:19: warning: unused variable 'm' [-Wunused-variable] 1214 | MpMsgPing m; | ^ multiplayer.cpp: In member function 'MultiPlayer::poll_sessions()': multiplayer.cpp:1104:16: warning: 'strncpy' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation] 1104 | strncpy(m.name, my_player.name, MP_FRIENDLY_NAME_LEN); | ^ multiplayer.cpp: In member function 'MultiPlayer::send_user_session_status(_ENetAddress*)': multiplayer.cpp:1090:16: warning: 'strncpy' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation] 1090 | strncpy(m.session_name, joined_session.session_name, MP_FRIENDLY_NAME_LEN); | ^ multiplayer.cpp: In member function 'MultiPlayer::send_req_login_id()': multiplayer.cpp:1104:16: warning: 'strncpy' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation] 1104 | strncpy(m.name, my_player.name, MP_FRIENDLY_NAME_LEN); | ^ multiplayer.cpp: In member function 'MultiPlayer::poll_players()': multiplayer.cpp:1104:16: warning: 'strncpy' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation] make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/enet' rm -f libmultiplayer.a ar cru libmultiplayer.a multiplayer.o ranlib libmultiplayer.a make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/enet' Making all in imgfun Making all in generic make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB_AR.o IB_AR.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB_AT.o IB_AT.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o CRC.o CRC.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB_ATD.o IB_ATD.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB.o IB.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB_ATR.o IB_ATR.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' IB_ATR.cpp: In function 'void IMGbltAreaTransRemap(char*, int, int, int, char*, int, int, int, int, char*)': IB_ATR.cpp:74:85: warning: array subscript has type 'char' [-Wchar-subscripts] 74 | imageBuf[destline + i] = colorTable[ bitmapBuf[esi+i] ]; | ~~~~~~~~~~~~~~~^ make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB_A.o IB_A.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB2.o IB2.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB_32.o IB_32.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB_ATDM.o IB_ATDM.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB_R.o IB_R.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB_ATRD.o IB_ATRD.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' IB_ATRD.cpp: In function 'void IMGbltAreaTransRemapDecompress(char*, int, int, int, char*, int, int, int, int, char*)': IB_ATRD.cpp:92:13: warning: unused variable 'bitmapHeight' [-Wunused-variable] 92 | int bitmapHeight = ((unsigned char*)bitmapBuf)[2] + (((unsigned char*)bitmapBuf)[3]<<8); | ^~~~~~~~~~~~ make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB_ATRDM.o IB_ATRDM.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' IB_ATRDM.cpp: In function 'void IMGbltAreaTransRemapDecompressHMirror(char*, int, int, int, char*, int, int, int, int, char*)': IB_ATRDM.cpp:95:13: warning: unused variable 'bitmapHeight' [-Wunused-variable] 95 | int bitmapHeight = ((unsigned char*)bitmapBuf)[2] + (((unsigned char*)bitmapBuf)[3]<<8); | ^~~~~~~~~~~~ make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB_T.o IB_T.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB_TD.o IB_TD.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB_TDM.o IB_TDM.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB_TR.o IB_TR.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' IB_TR.cpp: In function 'void IMGbltTransRemap(char*, int, int, int, char*, char*)': IB_TR.cpp:68:85: warning: array subscript has type 'char' [-Wchar-subscripts] 68 | imageBuf[destline + i] = colorTable[ bitmapBuf[esi+i] ]; | ~~~~~~~~~~~~~~~^ make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB_TRD.o IB_TRD.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB_TRDM.o IB_TRDM.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB_DW.o IB_DW.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IJ_T.o IJ_T.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IB_RD.o IB_RD.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IC_R.o IC_R.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' IC_R.cpp: In function 'void IMGcopyRemap(char*, int, char*, int, int, int, int, int, unsigned char*)': IC_R.cpp:56:75: warning: array subscript has type 'char' [-Wchar-subscripts] 56 | imageBuf[ dest + i ] = colorTable[ backBuf[src + i] ]; | ~~~~~~~~~~~~~~~^ make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IR.o IR.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' IR.cpp: In function 'void IMGremap(char*, int, int, int, char*, unsigned char**)': IR.cpp:59:75: warning: array subscript has type 'char' [-Wchar-subscripts] 59 | colorTableArray[ al ][ imageBuf[destline+i] ]; | ~~~~~~~~~~~~~~~~~~~^ make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IR_A.o IR_A.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' IR_A.cpp: In function 'void IMGremapArea(char*, int, int, int, char*, unsigned char**, int, int, int, int)': IR_A.cpp:59:71: warning: array subscript has type 'char' [-Wchar-subscripts] 59 | colorTableArray[ al ][ imageBuf[dest+i] ]; | ~~~~~~~~~~~~~~~^ make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IR_AM.o IR_AM.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IR_M.o IR_M.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' IR_AM.cpp: In function 'void IMGremapAreaHMirror(char*, int, int, int, char*, unsigned char**, int, int, int, int)': IR_AM.cpp:60:71: warning: array subscript has type 'char' [-Wchar-subscripts] 60 | colorTableArray[ al ][ imageBuf[dest+i] ]; | ~~~~~~~~~~~~~~~^ IR_M.cpp: In function 'void IMGremapHMirror(char*, int, int, int, char*, unsigned char**)': IR_M.cpp:59:75: warning: array subscript has type 'char' [-Wchar-subscripts] 59 | colorTableArray[ al ][ imageBuf[destline+i] ]; | ~~~~~~~~~~~~~~~~~~~^ make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IC.o IC.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o I_EMASK.o I_EMASK.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o I_BLACK.o I_BLACK.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o I_BAR.o I_BAR.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o I_FONT.o I_FONT.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o I_EREMAP.o I_EREMAP.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' I_EREMAP.cpp: In function 'void IMGremap16x16(char*, int, int, int, char*, char**)': I_EREMAP.cpp:91:71: warning: array subscript has type 'char' [-Wchar-subscripts] 91 | table = colorTableArray[ maskPtr[ srcline + i ] ]; | ~~~~~~~~~~~~~~~~~~~~~^ I_EREMAP.cpp:85:13: warning: unused variable 'al' [-Wunused-variable] 85 | int al; | ^~ make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o I_PIXEL.o I_PIXEL.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o IR_BAR.o IR_BAR.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o I_FREMAP.o I_FREMAP.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o I_LINE.o I_LINE.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o I_SNOW.o I_SNOW.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' g++ -DHAVE_CONFIG_H -I. -I../../../include -include "../../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o I_READ.o I_READ.cpp make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' rm -f libimgfun_generic.a ar cru libimgfun_generic.a CRC.o IB.o IB2.o IB_32.o IB_A.o IB_AR.o IB_AT.o IB_ATD.o IB_ATDM.o IB_ATR.o IB_ATRD.o IB_ATRDM.o IB_DW.o IB_R.o IB_RD.o IB_T.o IB_TD.o IB_TDM.o IB_TR.o IB_TRD.o IB_TRDM.o IC.o IC_R.o IJ_T.o IR.o IR_A.o IR_AM.o IR_BAR.o IR_M.o I_BAR.o I_BLACK.o I_EMASK.o I_EREMAP.o I_FONT.o I_FREMAP.o I_LINE.o I_PIXEL.o I_READ.o I_SNOW.o ranlib libimgfun_generic.a make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/imgfun/generic' make[3]: Nothing to be done for 'all-am'. Making all in openal make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/openal' g++ -DHAVE_CONFIG_H -I. -I../../include -include "../../include/config.h" -fsigned-char -I/usr/include/AL -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o wav_stream.o wav_stream.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/openal' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/openal' g++ -DHAVE_CONFIG_H -I. -I../../include -include "../../include/config.h" -fsigned-char -I/usr/include/AL -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o openal_audio.o openal_audio.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/openal' openal_audio.cpp: In member function 'int OpenALAudio::init_wav()': openal_audio.cpp:259:41: warning: ignoring return value of 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = int; _Alloc = std::allocator; reference = int&; size_type = long unsigned int]', declared with attribute 'nodiscard' [-Wunused-result] 259 | attributes[n + 1]; | ^ In file included from /usr/include/c++/13/vector:66, from openal_audio.cpp:25: /usr/include/c++/13/bits/stl_vector.h:1121:7: note: declared here 1121 | operator[](size_type __n) _GLIBCXX_NOEXCEPT | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/openal' rm -f libaudio_openal.a ar cru libaudio_openal.a openal_audio.o wav_stream.o ranlib libaudio_openal.a make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/openal' Making all in curl make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/curl' g++ -DHAVE_CONFIG_H -I. -I../../include -include "../../include/config.h" -fsigned-char -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o WebService.o WebService.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/curl' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/curl' rm -f libWebService.a ar cru libWebService.a WebService.o ranlib libWebService.a make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src/curl' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o CmdLine.o CmdLine.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o LocaleRes.o LocaleRes.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' LocaleRes.cpp: In member function 'void LocaleRes::init()': LocaleRes.cpp:71:33: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 71 | else if( env_locale_dir = getenv("SKLOCALE") ) | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o ConfigAdv.o ConfigAdv.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ConfigAdv.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_BUIL.o OAI_BUIL.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OUNIT.h:28, from OAI_BUIL.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_CAMP.h:28, from OAI_BUIL.cpp:26: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OAI_BUIL.cpp: In member function 'int Nation::ai_supported_inn_count()': OAI_BUIL.cpp:305:15: warning: unused variable 'fixedExpense' [-Wunused-variable] 305 | float fixedExpense = fixed_expense_365days(); | ^~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_ACT2.o OAI_ACT2.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OAI_ACT2.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from OAI_ACT2.cpp:29: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from OAI_ACT2.cpp:30: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OAI_ACT2.cpp: In member function 'int Nation::ai_assign_overseer(ActionNode*)': OAI_ACT2.cpp:151:19: warning: unused variable 'firmInfo' [-Wunused-variable] 151 | FirmInfo* firmInfo = firm_res[firmId]; | ^~~~~~~~ OAI_ACT2.cpp: In member function 'int Nation::ai_assign_worker(ActionNode*)': OAI_ACT2.cpp:322:19: warning: unused variable 'firmInfo' [-Wunused-variable] 322 | FirmInfo* firmInfo = firm_res[firmId]; | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_ATTK.o OAI_ATTK.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OUNIT.h:28, from OAI_ATTK.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_BASE.h:36, from ../include/OFIRMALL.h:29, from OAI_ATTK.cpp:28: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OFIRM.h: At global scope: ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ ../include/OF_BASE.h:82:25: note: by 'virtual void FirmBase::init_crc(FirmBaseCrc*)' 82 | virtual void init_crc(FirmBaseCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:31: ../include/OF_FACT.h:78:25: note: by 'virtual void FirmFactory::init_crc(FirmFactoryCrc*)' 78 | virtual void init_crc(FirmFactoryCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:32: ../include/OF_INN.h:97:25: note: by 'virtual void FirmInn::init_crc(FirmInnCrc*)' 97 | virtual void init_crc(FirmInnCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:33: ../include/OF_MARK.h:139:25: note: by 'virtual void FirmMarket::init_crc(FirmMarketCrc*)' 139 | virtual void init_crc(FirmMarketCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:34: ../include/OF_MINE.h:90:25: note: by 'virtual void FirmMine::init_crc(FirmMineCrc*)' 90 | virtual void init_crc(FirmMineCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:35: ../include/OF_RESE.h:74:25: note: by 'virtual void FirmResearch::init_crc(FirmResearchCrc*)' 74 | virtual void init_crc(FirmResearchCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:36: ../include/OF_WAR.h:78:25: note: by 'virtual void FirmWar::init_crc(FirmWarCrc*)' 78 | virtual void init_crc(FirmWarCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:37: ../include/OF_HARB.h:117:25: note: by 'virtual void FirmHarbor::init_crc(FirmHarborCrc*)' 117 | virtual void init_crc(FirmHarborCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:38: ../include/OF_MONS.h:137:25: note: by 'virtual void FirmMonster::init_crc(FirmMonsterCrc*)' 137 | virtual void init_crc(FirmMonsterCrc *c); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_DEFE.o OAI_DEFE.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OAI_DEFE.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_CAP2.o OAI_CAP2.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' OAI_CAP2.cpp:460:74: warning: "/*" within comment [-Wcomment] 460 | if( townPtr->nation_recno == targetTown->nation_recno ) //**BUGHERE | In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OUNIT.h:28, from OAI_CAP2.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_BASE.h:36, from ../include/OFIRMALL.h:29, from OAI_CAP2.cpp:29: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OFIRM.h: At global scope: ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ ../include/OF_BASE.h:82:25: note: by 'virtual void FirmBase::init_crc(FirmBaseCrc*)' 82 | virtual void init_crc(FirmBaseCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:31: ../include/OF_FACT.h:78:25: note: by 'virtual void FirmFactory::init_crc(FirmFactoryCrc*)' 78 | virtual void init_crc(FirmFactoryCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:32: ../include/OF_INN.h:97:25: note: by 'virtual void FirmInn::init_crc(FirmInnCrc*)' 97 | virtual void init_crc(FirmInnCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:33: ../include/OF_MARK.h:139:25: note: by 'virtual void FirmMarket::init_crc(FirmMarketCrc*)' 139 | virtual void init_crc(FirmMarketCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:34: ../include/OF_MINE.h:90:25: note: by 'virtual void FirmMine::init_crc(FirmMineCrc*)' 90 | virtual void init_crc(FirmMineCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:35: ../include/OF_RESE.h:74:25: note: by 'virtual void FirmResearch::init_crc(FirmResearchCrc*)' 74 | virtual void init_crc(FirmResearchCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:36: ../include/OF_WAR.h:78:25: note: by 'virtual void FirmWar::init_crc(FirmWarCrc*)' 78 | virtual void init_crc(FirmWarCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:38: ../include/OF_MONS.h:137:25: note: by 'virtual void FirmMonster::init_crc(FirmMonsterCrc*)' 137 | virtual void init_crc(FirmMonsterCrc *c); | ^~~~~~~~ OAI_CAP2.cpp: In member function 'Town* Nation::think_capture_enemy_town_target(Town*)': OAI_CAP2.cpp:264:17: warning: unused variable 'ownNation' [-Wunused-variable] 264 | Nation* ownNation = nation_array[nation_recno]; | ^~~~~~~~~ OAI_CAP2.cpp:267:15: warning: variable 'neededCombatLevel' set but not used [-Wunused-but-set-variable] 267 | int neededCombatLevel=0; | ^~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_ACT.o OAI_ACT.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OAI_ACT.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/OU_MARI.h:28, from OAI_ACT.cpp:29: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_MARK.h:28, from ../include/OU_MARI.h:32: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OAI_ACT.cpp: In member function 'Nation::process_action(int, int)': OAI_ACT.cpp:179:17: warning: 'rc' may be used uninitialized [-Wmaybe-uninitialized] 179 | if( rc==1 ) // the action has been processed, but not sure whether it is complete or not | ^~ OAI_ACT.cpp:55:46: note: 'rc' was declared here 55 | int actionRecno, rc, delFlag, doneFlag=0; | ^~ OAI_ACT.cpp: In member function 'Nation::action_finished(unsigned short, short, int)': OAI_ACT.cpp:570:25: warning: 'actionNode' may be used uninitialized [-Wmaybe-uninitialized] 570 | if( actionNode->action_mode == ACTION_AI_SEA_TRAVEL ) // don't reset the unit's ai_action_id in ACTION_AI_SEA_TRAVEL mode as if we reset it, the ship will take new action and won't wait for the units to go aboard. | ~~~~~~~~~~~~^~~~~~~~~~~ OAI_ACT.cpp:539:21: note: 'actionNode' was declared here 539 | ActionNode* actionNode; | ^~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_ECO.o OAI_ECO.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OUNIT.h:28, from OAI_ECO.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_BASE.h:36, from ../include/OFIRMALL.h:29, from OAI_ECO.cpp:26: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OFIRM.h: At global scope: ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ ../include/OF_BASE.h:82:25: note: by 'virtual void FirmBase::init_crc(FirmBaseCrc*)' 82 | virtual void init_crc(FirmBaseCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:31: ../include/OF_FACT.h:78:25: note: by 'virtual void FirmFactory::init_crc(FirmFactoryCrc*)' 78 | virtual void init_crc(FirmFactoryCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:32: ../include/OF_INN.h:97:25: note: by 'virtual void FirmInn::init_crc(FirmInnCrc*)' 97 | virtual void init_crc(FirmInnCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:33: ../include/OF_MARK.h:139:25: note: by 'virtual void FirmMarket::init_crc(FirmMarketCrc*)' 139 | virtual void init_crc(FirmMarketCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:34: ../include/OF_MINE.h:90:25: note: by 'virtual void FirmMine::init_crc(FirmMineCrc*)' 90 | virtual void init_crc(FirmMineCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:35: ../include/OF_RESE.h:74:25: note: by 'virtual void FirmResearch::init_crc(FirmResearchCrc*)' 74 | virtual void init_crc(FirmResearchCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:36: ../include/OF_WAR.h:78:25: note: by 'virtual void FirmWar::init_crc(FirmWarCrc*)' 78 | virtual void init_crc(FirmWarCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMALL.h:38: ../include/OF_MONS.h:137:25: note: by 'virtual void FirmMonster::init_crc(FirmMonsterCrc*)' 137 | virtual void init_crc(FirmMonsterCrc *c); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_CAPT.o OAI_CAPT.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OUNIT.h:28, from OAI_CAPT.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_CAMP.h:28, from OAI_CAPT.cpp:28: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OFIRM.h: At global scope: ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ ../include/OF_CAMP.h:129:25: note: by 'virtual void FirmCamp::init_crc(FirmCampCrc*)' 129 | virtual void init_crc(FirmCampCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from OAI_CAPT.cpp:29: ../include/OF_INN.h:97:25: note: by 'virtual void FirmInn::init_crc(FirmInnCrc*)' 97 | virtual void init_crc(FirmInnCrc *c); | ^~~~~~~~ OAI_CAPT.cpp: In member function 'int Nation::capture_expected_resistance(int, int*)': OAI_CAPT.cpp:227:17: warning: unused variable 'captureRating' [-Wunused-variable] 227 | int captureRating = 0; | ^~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o AM.o AM.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OBULLET.h:29, from AM.cpp:36: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ In file included from ../include/OBULLET.h:33: ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OBULLET.h:37: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OBULLET.h:91:25: note: by 'virtual void Bullet::init_crc(BulletCrc*)' 91 | virtual void init_crc(BulletCrc *c); | ^~~~~~~~ In file included from AM.cpp:68: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:65: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_MAR2.o OAI_MAR2.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OUNIT.h:28, from ../include/OU_MARI.h:28, from OAI_MAR2.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_MARK.h:28, from ../include/OU_MARI.h:32: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OUNIT.h: At global scope: ../include/OUNIT.h:575:25: warning: 'virtual void Unit::init_crc(UnitCrc*)' was hidden [-Woverloaded-virtual=] 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OU_MARI.h:36: ../include/OU_CARA.h:174:25: note: by 'virtual void UnitCaravan::init_crc(UnitCaravanCrc*)' 174 | virtual void init_crc(UnitCaravanCrc *c); | ^~~~~~~~ OAI_MAR2.cpp: In member function 'int Nation::ai_sea_travel3(ActionNode*)': OAI_MAR2.cpp:202:15: warning: variable 'unitCount' set but not used [-Wunused-but-set-variable] 202 | short unitCount; | ^~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_INFO.o OAI_INFO.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OF_MARK.h:28, from OAI_INFO.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ In file included from ../include/OUNIT.h:28, from ../include/OU_CARA.h:37, from OAI_INFO.cpp:28: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ OAI_INFO.cpp: In member function 'void Nation::update_ai_region()': OAI_INFO.cpp:251:56: warning: array subscript has type 'char' [-Wchar-subscripts] 251 | ai_region_array[ai_region_count++].region_id = townPtr->region_id; | ~~~~~~~~~~~~~~~^~ OAI_INFO.cpp: In member function 'void Nation::add_general_info(short int)': OAI_INFO.cpp:307:15: warning: unused variable 'unitPtr' [-Wunused-variable] 307 | Unit* unitPtr = unit_array[unitRecno]; | ^~~~~~~ OAI_INFO.cpp: In member function 'void Nation::del_general_info(short int)': OAI_INFO.cpp:321:15: warning: unused variable 'unitPtr' [-Wunused-variable] 321 | Unit* unitPtr = unit_array[unitRecno]; | ^~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_DIPL.o OAI_DIPL.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OAI_DIPL.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ OAI_DIPL.cpp: In member function 'int Nation::think_request_cease_war()': OAI_DIPL.cpp:365:42: warning: variable 'nationPtr' set but not used [-Wunused-but-set-variable] 365 | Nation* nationPtr; | ^~~~~~~~~ OAI_DIPL.cpp: In member function 'int Nation::think_trade_treaty()': OAI_DIPL.cpp:479:41: warning: variable 'nationPtr' set but not used [-Wunused-but-set-variable] 479 | Nation* nationPtr; | ^~~~~~~~~ OAI_DIPL.cpp: In member function 'int Nation::think_declare_war()': OAI_DIPL.cpp:636:13: warning: unused variable 'rc' [-Wunused-variable] 636 | int rc=0; | ^~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_MAIN.o OAI_MAIN.cpp In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OAI_MAIN.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from OAI_MAIN.cpp:31: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OFIRM.h: At global scope: ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from OAI_MAIN.cpp:34: ../include/OF_MINE.h:90:25: note: by 'virtual void FirmMine::init_crc(FirmMineCrc*)' 90 | virtual void init_crc(FirmMineCrc *c); | ^~~~~~~~ make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_GRAN.o OAI_GRAN.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OF_CAMP.h:28, from OAI_GRAN.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OAI_GRAN.cpp: In member function 'int Nation::think_ally_against_big_enemy()': OAI_GRAN.cpp:725:17: warning: variable 'nationPtr' set but not used [-Wunused-but-set-variable] 725 | Nation* nationPtr; | ^~~~~~~~~ OAI_GRAN.cpp:727:25: warning: variable 'ourNationRelation' set but not used [-Wunused-but-set-variable] 727 | NationRelation *ourNationRelation, *enemyNationRelation; | ^~~~~~~~~~~~~~~~~ OAI_GRAN.cpp:727:45: warning: variable 'enemyNationRelation' set but not used [-Wunused-but-set-variable] 727 | NationRelation *ourNationRelation, *enemyNationRelation; | ^~~~~~~~~~~~~~~~~~~ OAI_GRAN.cpp: In member function 'int Nation::think_attack_enemy_firm(int, int)': OAI_GRAN.cpp:830:18: warning: unused variable 'nationPtr' [-Wunused-variable] 830 | Nation *nationPtr = nation_array[enemyNationRecno]; | ^~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_MAR3.o OAI_MAR3.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OUNIT.h:28, from ../include/OU_MARI.h:28, from OAI_MAR3.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_MARK.h:28, from ../include/OU_MARI.h:32: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OUNIT.h: At global scope: ../include/OUNIT.h:575:25: warning: 'virtual void Unit::init_crc(UnitCrc*)' was hidden [-Woverloaded-virtual=] 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OU_MARI.h:36: ../include/OU_CARA.h:174:25: note: by 'virtual void UnitCaravan::init_crc(UnitCaravanCrc*)' 174 | virtual void init_crc(UnitCaravanCrc *c); | ^~~~~~~~ OAI_MAR3.cpp: In member function 'int Nation::ai_settle_to_region(int, int, int)': OAI_MAR3.cpp:96:13: warning: unused variable 'loopCount' [-Wunused-variable] 96 | int loopCount=0; | ^~~~~~~~~ OAI_MAR3.cpp: In member function 'Nation::think_move_to_region_with_mine()': OAI_MAR3.cpp:321:75: warning: 'sitePtr' may be used uninitialized [-Wmaybe-uninitialized] 321 | return ai_build_camp_town_next_to( sitePtr->map_x_loc-1, sitePtr->map_y_loc-1, | ~~~~~~~~~^~~~~~~~~ OAI_MAR3.cpp:303:15: note: 'sitePtr' was declared here 303 | Site* sitePtr; | ^~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_MONS.o OAI_MONS.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OF_MONS.h:28, from OAI_MONS.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_MILI.o OAI_MILI.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OF_CAMP.h:28, from OAI_MILI.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_MARI.o OAI_MARI.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OUNIT.h:28, from ../include/OU_MARI.h:28, from OAI_MARI.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_MARK.h:28, from ../include/OU_MARI.h:32: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OUNIT.h: At global scope: ../include/OUNIT.h:575:25: warning: 'virtual void Unit::init_crc(UnitCrc*)' was hidden [-Woverloaded-virtual=] 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OU_MARI.h:36: ../include/OU_CARA.h:174:25: note: by 'virtual void UnitCaravan::init_crc(UnitCaravanCrc*)' 174 | virtual void init_crc(UnitCaravanCrc *c); | ^~~~~~~~ OAI_MARI.cpp: In member function 'int Nation::ai_build_harbor(int, int)': OAI_MARI.cpp:198:52: warning: variable 'bestYLoc' set but not used [-Wunused-but-set-variable] 198 | int xLoc, yLoc, bestXLoc= -1, bestYLoc= -1, maxEnemyDistance=0; | ^~~~~~~~ OAI_MARI.cpp:193:33: warning: 'townPtr' may be used uninitialized [-Wmaybe-uninitialized] 193 | int homeYLoc = townPtr->center_y; | ~~~~~~~~~^~~~~~~~ OAI_MARI.cpp:174:15: note: 'townPtr' was declared here 174 | Town* townPtr; | ^~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_QUER.o OAI_QUER.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from OAI_QUER.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_TRAD.o OAI_TRAD.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPATH.h:37, from ../include/OU_CARA.h:33, from OAI_TRAD.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/OU_CARA.h:37: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_MARK.h:28, from ../include/OU_CARA.h:45: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_SEEK.o OAI_SEEK.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OUNIT.h:28, from OAI_SEEK.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_MINE.h:28, from OAI_SEEK.cpp:26: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OFIRM.h: At global scope: ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ ../include/OF_MINE.h:90:25: note: by 'virtual void FirmMine::init_crc(FirmMineCrc*)' 90 | virtual void init_crc(FirmMineCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from OAI_SEEK.cpp:27: ../include/OF_FACT.h:78:25: note: by 'virtual void FirmFactory::init_crc(FirmFactoryCrc*)' 78 | virtual void init_crc(FirmFactoryCrc *c); | ^~~~~~~~ OAI_SEEK.cpp: In member function 'Nation::find_best_firm_loc(short, short, short, short&, short&)': OAI_SEEK.cpp:504:15: warning: 'refX1' may be used uninitialized [-Wmaybe-uninitialized] 504 | refX1 -= firmLocWidth/2; // since we use loc_x1 as the building reference, we need to shift it so it will match the use of center_x in effective distance | ~~~~~~^~~~~~~~~~~~~~~~~ OAI_SEEK.cpp:450:33: note: 'refX1' was declared here 450 | short centerX, centerY, refX1, refY1, refX2, refY2; | ^~~~~ OAI_SEEK.cpp:505:15: warning: 'refY1' may be used uninitialized [-Wmaybe-uninitialized] 505 | refY1 -= firmLocHeight/2; | ~~~~~~^~~~~~~~~~~~~~~~~~ OAI_SEEK.cpp:450:40: note: 'refY1' was declared here 450 | short centerX, centerY, refX1, refY1, refX2, refY2; | ^~~~~ OAI_SEEK.cpp:450:15: warning: 'centerX' may be used uninitialized [-Wmaybe-uninitialized] 450 | short centerX, centerY, refX1, refY1, refX2, refY2; | ^~~~~~~ OAI_SEEK.cpp:450:24: warning: 'centerY' may be used uninitialized [-Wmaybe-uninitialized] 450 | short centerX, centerY, refX1, refY1, refX2, refY2; | ^~~~~~~ OAI_SEEK.cpp:509:13: warning: 'refX2' may be used uninitialized [-Wmaybe-uninitialized] 509 | if( refX2 - firmLocWidth/2 >= MAX_WORLD_X_LOC ) | ^~~~~ OAI_SEEK.cpp:450:47: note: 'refX2' was declared here 450 | short centerX, centerY, refX1, refY1, refX2, refY2; | ^~~~~ OAI_SEEK.cpp:514:13: warning: 'refY2' may be used uninitialized [-Wmaybe-uninitialized] 514 | if( refY2 - firmLocHeight/2 >= MAX_WORLD_Y_LOC ) | ^~~~~ OAI_SEEK.cpp:450:54: note: 'refY2' was declared here 450 | short centerX, centerY, refX1, refY1, refX2, refY2; | ^~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_TOWN.o OAI_TOWN.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OUNIT.h:28, from OAI_TOWN.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_INN.h:36, from OAI_TOWN.cpp:26: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OFIRM.h: At global scope: ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ ../include/OF_INN.h:97:25: note: by 'virtual void FirmInn::init_crc(FirmInnCrc*)' 97 | virtual void init_crc(FirmInnCrc *c); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_SPY.o OAI_SPY.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from OAI_SPY.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OBLOB.o OBLOB.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OANLINE.o OANLINE.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_TALK.o OAI_TALK.cpp In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OF_MARK.h:28, from OAI_TALK.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OAI_TALK.cpp: In member function 'int Nation::consider_give_tribute(TalkMsg*)': OAI_TALK.cpp:767:13: warning: unused variable 'relationStatus' [-Wunused-variable] 767 | int relationStatus = get_relation_status(talkMsg->from_nation_recno); | ^~~~~~~~~~~~~~ make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OAI_UNIT.o OAI_UNIT.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OUNIT.h:28, from OAI_UNIT.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_INN.h:36, from OAI_UNIT.cpp:26: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OFIRM.h: At global scope: ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ ../include/OF_INN.h:97:25: note: by 'virtual void FirmInn::init_crc(FirmInnCrc*)' 97 | virtual void init_crc(FirmInnCrc *c); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OBATTLE.o OBATTLE.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OBATTLE.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33, from ../include/OGODRES.h:28, from OBATTLE.cpp:33: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from OBATTLE.cpp:38: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OFIRM.h: At global scope: ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from ../include/OU_CARA.h:45, from ../include/OUNITALL.h:27, from OBATTLE.cpp:44: ../include/OF_MARK.h:139:25: note: by 'virtual void FirmMarket::init_crc(FirmMarketCrc*)' 139 | virtual void init_crc(FirmMarketCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: warning: 'virtual void Unit::init_crc(UnitCrc*)' was hidden [-Woverloaded-virtual=] 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ ../include/OU_CARA.h:174:25: note: by 'virtual void UnitCaravan::init_crc(UnitCaravanCrc*)' 174 | virtual void init_crc(UnitCaravanCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: warning: 'virtual void Unit::init_crc(UnitCrc*)' was hidden [-Woverloaded-virtual=] 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OUNITALL.h:28: ../include/OU_VEHI.h:49:25: note: by 'virtual void UnitVehicle::init_crc(UnitVehicleCrc*)' 49 | virtual void init_crc(UnitVehicleCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: warning: 'virtual void Unit::init_crc(UnitCrc*)' was hidden [-Woverloaded-virtual=] 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OUNITALL.h:30: ../include/OU_CART.h:47:25: note: by 'virtual void UnitExpCart::init_crc(UnitExpCartCrc*)' 47 | virtual void init_crc(UnitExpCartCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: warning: 'virtual void Unit::init_crc(UnitCrc*)' was hidden [-Woverloaded-virtual=] 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OUNITALL.h:31: ../include/OU_MONS.h:60:25: note: by 'virtual void UnitMonster::init_crc(UnitMonsterCrc*)' 60 | virtual void init_crc(UnitMonsterCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: warning: 'virtual void Unit::init_crc(UnitCrc*)' was hidden [-Woverloaded-virtual=] 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OUNITALL.h:32: ../include/OU_GOD.h:63:25: note: by 'virtual void UnitGod::init_crc(UnitGodCrc*)' 63 | virtual void init_crc(UnitGodCrc *c); | ^~~~~~~~ OBATTLE.cpp: In member function 'void Battle::create_ai_nation(int)': OBATTLE.cpp:400:21: warning: variable 'nationRecno' set but not used [-Wunused-but-set-variable] 400 | int nationRecno; | ^~~~~~~~~~~ OBATTLE.cpp: At global scope: OBATTLE.cpp:953:12: warning: 'int is_space(int, int, int, int, char)' defined but not used [-Wunused-function] 953 | static int is_space(int xLoc1, int yLoc1, int xLoc2, int yLoc2, char mobileType) | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OBOX.o OBOX.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OBUTT3D.o OBUTT3D.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OBULLETA.o OBULLETA.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OUNIT.h:28, from OBULLETA.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OBULLET.h:37, from OBULLETA.cpp:27: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OBULLET.h:91:25: note: by 'virtual void Bullet::init_crc(BulletCrc*)' 91 | virtual void init_crc(BulletCrc *c); | ^~~~~~~~ ../include/OBULLET.h:91:25: warning: 'virtual void Bullet::init_crc(BulletCrc*)' was hidden [-Woverloaded-virtual=] In file included from OBULLETA.cpp:31: ../include/OB_HOMIN.h:55:25: note: by 'virtual void BulletHoming::init_crc(BulletHomingCrc*)' 55 | virtual void init_crc(BulletHomingCrc *c); | ^~~~~~~~ OBULLETA.cpp: In member function 'short int BulletArray::add_bullet(Unit*, Unit*)': OBULLETA.cpp:355:21: warning: unused variable 'attackInfo' [-Wunused-variable] 355 | AttackInfo *attackInfo = parentUnit->attack_info_array+parentUnit->cur_attack; | ^~~~~~~~~~ OBULLETA.cpp: In member function 'short int BulletArray::add_bullet(Unit*, short int, short int)': OBULLETA.cpp:402:21: warning: unused variable 'attackInfo' [-Wunused-variable] 402 | AttackInfo *attackInfo = parentUnit->attack_info_array+parentUnit->cur_attack; | ^~~~~~~~~~ OBULLETA.cpp: In member function 'BulletArray::add_bullet_possible(short, short, char, short, short, char, short, short, short&, short&, char, short)': OBULLETA.cpp:301:23: warning: 'leftXOffset' may be used uninitialized [-Wmaybe-uninitialized] 301 | leftX += leftXOffset; | ~~~~~~^~~~~~~~~~~~~~ OBULLETA.cpp:261:17: note: 'leftXOffset' was declared here 261 | short leftXOffset, leftYOffset; | ^~~~~~~~~~~ OBULLETA.cpp:302:23: warning: 'leftYOffset' may be used uninitialized [-Wmaybe-uninitialized] 302 | leftY += leftYOffset; | ~~~~~~^~~~~~~~~~~~~~ OBULLETA.cpp:261:30: note: 'leftYOffset' was declared here 261 | short leftXOffset, leftYOffset; | ^~~~~~~~~~~ OBULLETA.cpp:318:24: warning: 'rightXOffset' may be used uninitialized [-Wmaybe-uninitialized] 318 | rightX += rightXOffset; | ~~~~~~~^~~~~~~~~~~~~~~ OBULLETA.cpp:262:17: note: 'rightXOffset' was declared here 262 | short rightXOffset, rightYOffset; | ^~~~~~~~~~~~ OBULLETA.cpp:319:24: warning: 'rightYOffset' may be used uninitialized [-Wmaybe-uninitialized] 319 | rightY += rightYOffset; | ~~~~~~~^~~~~~~~~~~~~~~ OBULLETA.cpp:262:31: note: 'rightYOffset' was declared here 262 | short rightXOffset, rightYOffset; | ^~~~~~~~~~~~ OBULLETA.cpp: In member function 'BulletArray::add_bullet(Unit*, short, short)': OBULLETA.cpp:431:64: warning: 'width' may be used uninitialized [-Wmaybe-uninitialized] 431 | if(attackXLoc >= targetXLoc && attackXLoc < targetXLoc+width && | ^~~~~ OBULLETA.cpp:407:17: note: 'width' was declared here 407 | short width, height; | ^~~~~ OBULLETA.cpp:432:69: warning: 'height' may be used uninitialized [-Wmaybe-uninitialized] 432 | attackYLoc >= targetYLoc && attackYLoc < targetYLoc+height) | ^~~~~~ OBULLETA.cpp:407:24: note: 'height' was declared here 407 | short width, height; | ^~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OBUTTCUS.o OBUTTCUS.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OBUTTON.o OBUTTON.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' OBUTTON.cpp: In member function 'Button::wait_press(int)': OBUTTON.cpp:494:55: warning: 'lastMouseY' may be used uninitialized [-Wmaybe-uninitialized] 494 | if( lastMouseX == mouse.cur_x && lastMouseY == mouse.cur_y ) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ OBUTTON.cpp:473:31: note: 'lastMouseY' was declared here 473 | int lastMouseX= -1, lastMouseY; | ^~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OB_FLAME.o OB_FLAME.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OBULLET.h:29, from ../include/OB_FLAME.h:28, from OB_FLAME.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ In file included from ../include/OBULLET.h:33: ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OBULLET.h:37: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OBULLET.h:91:25: note: by 'virtual void Bullet::init_crc(BulletCrc*)' 91 | virtual void init_crc(BulletCrc *c); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OBULLET.o OBULLET.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OUNIT.h:28, from OBULLET.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OBULLET.h:37, from OBULLET.cpp:27: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OBULLET.h:91:25: note: by 'virtual void Bullet::init_crc(BulletCrc*)' 91 | virtual void init_crc(BulletCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: warning: 'virtual void Unit::init_crc(UnitCrc*)' was hidden [-Woverloaded-virtual=] 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from OBULLET.cpp:30: ../include/OU_CART.h:47:25: note: by 'virtual void UnitExpCart::init_crc(UnitExpCartCrc*)' 47 | virtual void init_crc(UnitExpCartCrc *c); | ^~~~~~~~ OBULLET.cpp: In member function 'Bullet::hit_wall(short, short)': OBULLET.cpp:423:17: warning: 'virtualUnit' may be used uninitialized [-Wmaybe-uninitialized] 423 | if(!virtualUnit) | ^~ OBULLET.cpp:405:15: note: 'virtualUnit' was declared here 405 | Unit *virtualUnit, *parentUnit; | ^~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OB_HOMIN.o OB_HOMIN.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OBULLET.h:29, from ../include/OB_HOMIN.h:27, from OB_HOMIN.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ In file included from ../include/OBULLET.h:33: ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OBULLET.h:37: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OBULLET.h:91:25: note: by 'virtual void Bullet::init_crc(BulletCrc*)' 91 | virtual void init_crc(BulletCrc *c); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o ODB.o ODB.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o ODIR.o ODIR.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' ODIR.cpp: In member function 'int Directory::read(const char*, int)': ODIR.cpp:107:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 107 | for( int i = 0; i < results.gl_pathc; i++ ) | ~~^~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o ODATE.o ODATE.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' ODATE.cpp: In member function 'int DateInfo::get_date(long int, char)': ODATE.cpp:137:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 137 | if (year%4 == 0 && year%100 != 0 || year%400 == 0) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ODATE.cpp: In member function 'char* DateInfo::date_str(long int, int)': ODATE.cpp:207:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 207 | if (year%4 == 0 && year%100 != 0 || year%400 == 0) | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ODATE.cpp: In member function 'int DateInfo::day_year(int, int, int)': ODATE.cpp:336:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 336 | isLeap = ( year%4 == 0 && year%100 != 0 || year%400 == 0 ) ? 1 : 0 ; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ODATE.cpp: In member function 'int DateInfo::month_day(int, int, int&, int&)': ODATE.cpp:384:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 384 | isLeap = ( year%4 == 0 && year%100 != 0 || year%400 == 0 ) ? 1 : 0 ; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OB_PROJ.o OB_PROJ.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OBULLET.h:29, from ../include/OB_PROJ.h:27, from OB_PROJ.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ In file included from ../include/OBULLET.h:33: ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OBULLET.h:37: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OBULLET.h:91:25: note: by 'virtual void Bullet::init_crc(BulletCrc*)' 91 | virtual void init_crc(BulletCrc *c); | ^~~~~~~~ OB_PROJ.cpp: In member function 'virtual void Projectile::init(char, short int, short int, short int, char)': OB_PROJ.cpp:82:22: warning: unused variable 'spriteFrame' [-Wunused-variable] 82 | SpriteFrame* spriteFrame = cur_sprite_frame(); | ^~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OEFFECT.o OEFFECT.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OEFFECT.h:27, from OEFFECT.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o ODYNARRB.o ODYNARRB.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ODYNARRB.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OCONFIG.o OCONFIG.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OCONFIG.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMRES.h:32, from OCONFIG.cpp:28: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o ODYNARR.o ODYNARR.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OCOLTBL.o OCOLTBL.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OCRC_STO.o OCRC_STO.cpp In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from ../include/ONATIONA.h:32, from OCRC_STO.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OBULLET.h:37, from OCRC_STO.cpp:28: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OBULLET.h:91:25: note: by 'virtual void Bullet::init_crc(BulletCrc*)' 91 | virtual void init_crc(BulletCrc *c); | ^~~~~~~~ make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OFILE.o OFILE.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' OFILE.cpp: In member function 'int File::file_read(void*, unsigned int)': OFILE.cpp:211:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 211 | fread(dataBuf, 1, bytesToRead, file_handle); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OFILE.cpp: In member function 'int16_t File::file_get_short()': OFILE.cpp:263:10: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 263 | fread(&value, 1, sizeof(int16_t), file_handle); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OFILE.cpp: In member function 'uint16_t File::file_get_unsigned_short()': OFILE.cpp:300:10: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 300 | fread(&value, 1, sizeof(uint16_t), file_handle); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OFILE.cpp: In member function 'int32_t File::file_get_long()': OFILE.cpp:337:10: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 337 | fread(&value, 1, sizeof(int32_t), file_handle); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OERRCTRL.o OERRCTRL.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' OERRCTRL.cpp: In member function 'int ErrorControl::send(char, void*, long unsigned int)': OERRCTRL.cpp:131:40: warning: array subscript has type 'char' [-Wchar-subscripts] 131 | toDPid = dp_id[ecPlayerId]; | ^~~~~~~~~~ OERRCTRL.cpp: In member function 'char* ErrorControl::receive(char*, uint32_t*)': OERRCTRL.cpp:183:47: warning: array subscript has type 'char' [-Wchar-subscripts] 183 | char *dataPtr = receive_queue[recv_head].queue_buf; | ^~~~~~~~~ OERRCTRL.cpp:184:46: warning: array subscript has type 'char' [-Wchar-subscripts] 184 | uint32_t len = receive_queue[recv_head].length(); | ^~~~~~~~~ OERRCTRL.cpp: In member function 'void ErrorControl::yield()': OERRCTRL.cpp:294:101: warning: array subscript has type 'char' [-Wchar-subscripts] 294 | for( ; recv_flag[ecMsg.sender_id-1][scanFrame]; inc_frame_id(scanFrame) ) | ^~~~~~~~~ OERRCTRL.cpp:365:101: warning: array subscript has type 'char' [-Wchar-subscripts] 365 | for( ; recv_flag[ecMsg.sender_id-1][scanFrame]; inc_frame_id(scanFrame) ) | ^~~~~~~~~ OERRCTRL.cpp:443:75: warning: array subscript has type 'char' [-Wchar-subscripts] 443 | char *replyMsg = send_queue[ecMsg.frame_id].queue_buf; | ~~~~~~^~~~~~~~ OERRCTRL.cpp:444:78: warning: array subscript has type 'char' [-Wchar-subscripts] 444 | uint32_t replyLen = send_queue[ecMsg.frame_id].length(); | ~~~~~~^~~~~~~~ OERRCTRL.cpp: In member function 'void ErrorControl::en_recv_queue(void*, long unsigned int)': OERRCTRL.cpp:580:31: warning: array subscript has type 'char' [-Wchar-subscripts] 580 | receive_queue[f].clear(); | ^ OERRCTRL.cpp:581:39: warning: array subscript has type 'char' [-Wchar-subscripts] 581 | memcpy( receive_queue[f].reserve(dataLen), dataPtr, dataLen); | ^ OERRCTRL.cpp: In member function 'void ErrorControl::set_ack(char, char)': OERRCTRL.cpp:599:18: warning: array subscript has type 'char' [-Wchar-subscripts] 599 | ack_flag[frameId][ecPlayerId-1] = 1; | ^~~~~~~ OERRCTRL.cpp: In member function 'void ErrorControl::clear_ack(char)': OERRCTRL.cpp:604:26: warning: array subscript has type 'char' [-Wchar-subscripts] 604 | memset( ack_flag[frameId], 0, MAX_PLAYER ); | ^~~~~~~ OERRCTRL.cpp: In member function 'void ErrorControl::mark_send_time(char, long unsigned int)': OERRCTRL.cpp:609:19: warning: array subscript has type 'char' [-Wchar-subscripts] 609 | send_time[frameId] = misc.get_time(); | ^~~~~~~ OERRCTRL.cpp:610:23: warning: array subscript has type 'char' [-Wchar-subscripts] 610 | re_send_after[frameId] = duration; | ^~~~~~~ OERRCTRL.cpp: In member function 'int ErrorControl::need_re_send(char, int)': OERRCTRL.cpp:616:46: warning: array subscript has type 'char' [-Wchar-subscripts] 616 | return ((misc.get_time() - send_time[frameId]) * promptFactor) >= re_send_after[frameId]; | ^~~~~~~ OERRCTRL.cpp:616:89: warning: array subscript has type 'char' [-Wchar-subscripts] 616 | return ((misc.get_time() - send_time[frameId]) * promptFactor) >= re_send_after[frameId]; | ^~~~~~~ OERRCTRL.cpp: In member function 'int ErrorControl::are_all_acked(char)': OERRCTRL.cpp:626:54: warning: array subscript has type 'char' [-Wchar-subscripts] 626 | if( dp_id[ecPlayerId-1] && !ack_flag[frameId][ecPlayerId-1] ) | ^~~~~~~ OERRCTRL.cpp: In member function 'int ErrorControl::is_waiting_receive(char, char)': OERRCTRL.cpp:645:45: warning: array subscript has type 'char' [-Wchar-subscripts] 645 | && !recv_flag[ecPlayerId-1][frameId]; | ^~~~~~~ OERRCTRL.cpp: In member function 'void ErrorControl::set_recv_flag(char, char)': OERRCTRL.cpp:650:33: warning: array subscript has type 'char' [-Wchar-subscripts] 650 | recv_flag[ecPlayerId-1][frameId] = 1; | ^~~~~~~ OERRCTRL.cpp: In member function 'void ErrorControl::clear_recv_flag(char, char)': OERRCTRL.cpp:656:33: warning: array subscript has type 'char' [-Wchar-subscripts] 656 | recv_flag[ecPlayerId-1][frameId] = 0; | ^~~~~~~ OERRCTRL.cpp: In member function 'void ErrorControl::re_transmit(int)': OERRCTRL.cpp:669:50: warning: array subscript has type 'char' [-Wchar-subscripts] 669 | char *ecMsg = send_queue[f].queue_buf; | ^ OERRCTRL.cpp:670:56: warning: array subscript has type 'char' [-Wchar-subscripts] 670 | uint32_t ecMsgLen = send_queue[f].length(); | ^ OERRCTRL.cpp:675:70: warning: array subscript has type 'char' [-Wchar-subscripts] 675 | if( dp_id[ecPlayerId-1] && !ack_flag[f][ecPlayerId-1] ) | ^ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OFILETXT.o OFILETXT.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OERROR.o OERROR.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OEXPMASK.o OEXPMASK.cpp In file included from ../include/OWORLDMT.h:28, from OEXPMASK.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OFIRMDIE.o OFIRMDIE.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OFIRMRES.h:32, from OFIRMDIE.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OFIRM2.o OFIRM2.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from OFIRM2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OFIRM2.cpp: In member function 'void Firm::kill_worker(int)': OFIRM2.cpp:86:19: warning: unused variable 'unitRecno' [-Wunused-variable] 86 | int unitRecno = 0; | ^~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OFIRMA.o OFIRMA.cpp In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OFIRMA.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33, from OFIRMA.cpp:27: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMRES.h:32, from OFIRMA.cpp:32: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OFIRMA.cpp: In member function 'void FirmArray::del_firm(int)': OFIRMA.cpp:310:17: warning: unused variable 'xLoc' [-Wunused-variable] 310 | int xLoc = firmPtr->center_x; | ^~~~ OFIRMA.cpp:311:17: warning: unused variable 'yLoc' [-Wunused-variable] 311 | int yLoc = firmPtr->center_y; | ^~~~ make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OFIRMAI.o OFIRMAI.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OUNIT.h:28, from ../include/OF_INN.h:28, from OFIRMAI.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_INN.h:36: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OFIRM.h: At global scope: ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ ../include/OF_INN.h:97:25: note: by 'virtual void FirmInn::init_crc(FirmInnCrc*)' 97 | virtual void init_crc(FirmInnCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from OFIRMAI.cpp:25: ../include/OF_MINE.h:90:25: note: by 'virtual void FirmMine::init_crc(FirmMineCrc*)' 90 | virtual void init_crc(FirmMineCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from OFIRMAI.cpp:26: ../include/OF_FACT.h:78:25: note: by 'virtual void FirmFactory::init_crc(FirmFactoryCrc*)' 78 | virtual void init_crc(FirmFactoryCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from OFIRMAI.cpp:28: ../include/OF_MARK.h:139:25: note: by 'virtual void FirmMarket::init_crc(FirmMarketCrc*)' 139 | virtual void init_crc(FirmMarketCrc *c); | ^~~~~~~~ OFIRMAI.cpp: In member function 'Firm::think_capture()': OFIRMAI.cpp:507:45: warning: 'nationPtr' may be used uninitialized [-Wmaybe-uninitialized] 507 | int useAllCamp = nationPtr->pref_military_courage > 60 || misc.random(3)==0; | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ OFIRMAI.cpp:452:17: note: 'nationPtr' was declared here 452 | Nation* nationPtr; | ^~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OFIRMDRW.o OFIRMDRW.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OFIRMDRW.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_BASE.h:36, from OFIRMDRW.cpp:36: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OFIRMDRW.cpp: In member function 'virtual void Firm::draw_full_size(int)': OFIRMDRW.cpp:210:21: warning: unused variable 'hitPerPixel' [-Wunused-variable] 210 | int hitPerPixel = (int) max_hit_points / bitmapWidth / bitmapHeight / 2; | ^~~~~~~~~~~ OFIRMDRW.cpp: In member function 'int Firm::draw_detect_link_line(int)': OFIRMDRW.cpp:318:19: warning: unused variable 'firmInfo' [-Wunused-variable] 318 | FirmInfo* firmInfo = firm_res[firm_id]; | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OFIRMIF2.o OFIRMIF2.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OFIRMIF2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OFIRMIF2.cpp:42: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OFIRMIF.o OFIRMIF.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OFIRMIF.cpp:34: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from OFIRMIF.cpp:41: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OFIRMIF.cpp: In member function 'void Firm::disp_basic_info(int, int)': OFIRMIF.cpp:253:13: warning: variable 'sliderX1' set but not used [-Wunused-but-set-variable] 253 | int sliderX1, sliderX2; | ^~~~~~~~ OFIRMIF.cpp:253:23: warning: variable 'sliderX2' set but not used [-Wunused-but-set-variable] 253 | int sliderX1, sliderX2; | ^~~~~~~~ OFIRMIF.cpp: In member function 'void Firm::disp_worker_list(int, int)': OFIRMIF.cpp:390:13: warning: variable 'overseerRaceId' set but not used [-Wunused-but-set-variable] 390 | int overseerRaceId=0; | ^~~~~~~~~~~~~~ OFIRMIF.cpp: In member function 'int Firm::detect_worker_list()': OFIRMIF.cpp:516:13: warning: unused variable 'liveInTown' [-Wunused-variable] 516 | int liveInTown = firm_res[firm_id]->live_in_town; | ^~~~~~~~~~ OFIRMIF.cpp: In member function 'void Firm::disp_worker_info(int, int)': OFIRMIF.cpp:609:48: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] 609 | if( lastSelected != selected_worker_id > 0 ) | ~~~~~~~~~~~~~~~~~~~^~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OFIRMRES.o OFIRMRES.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OFIRMRES.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from OFIRMRES.cpp:27: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OFIRMRES.h:32, from OFIRMRES.cpp:29: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OFIRMIF3.o OFIRMIF3.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OFIRMIF3.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from OFIRMIF3.cpp:32: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from OFIRMIF3.cpp:36: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OFIRMIF3.cpp: In member function 'void Firm::disp_bribe_menu(int)': OFIRMIF3.cpp:110:21: warning: unused variable 'x' [-Wunused-variable] 110 | int x=INFO_X1+4, y=INFO_Y1+4, y2=y+font_san.height()-1; | ^ OFIRMIF3.cpp: In member function 'void Firm::disp_assassinate_result(int)': OFIRMIF3.cpp:539:13: warning: unused variable 'x' [-Wunused-variable] 539 | int x=INFO_X1+4, y=INFO_Y1+4, y2=y+font_san.height()-1; | ^ OFIRMIF3.cpp: In member function 'Firm::spy_bribe_succeed_chance(int, short, short)': OFIRMIF3.cpp:443:51: warning: 'unitLoyalty' may be used uninitialized [-Wmaybe-uninitialized] 443 | succeedChance = spyPtr->spy_skill - unitLoyalty - unitCommandPower | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ OFIRMIF3.cpp:406:13: note: 'unitLoyalty' was declared here 406 | int unitLoyalty, unitRaceId, targetSpyRecno, unitCommandPower; | ^~~~~~~~~~~ OFIRMIF3.cpp:452:80: warning: 'unitRaceId' may be used uninitialized [-Wmaybe-uninitialized] 452 | race_res.is_same_race(spyKingRaceId, unitRaceId) * 10; | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ OFIRMIF3.cpp:406:26: note: 'unitRaceId' was declared here 406 | int unitLoyalty, unitRaceId, targetSpyRecno, unitCommandPower; | ^~~~~~~~~~ OFIRMIF3.cpp:435:9: warning: 'targetSpyRecno' may be used uninitialized [-Wmaybe-uninitialized] 435 | if( targetSpyRecno ) // if the bribe target is also a spy | ^~ OFIRMIF3.cpp:406:38: note: 'targetSpyRecno' was declared here 406 | int unitLoyalty, unitRaceId, targetSpyRecno, unitCommandPower; | ^~~~~~~~~~~~~~ OFIRMIF3.cpp:443:65: warning: 'unitCommandPower' may be used uninitialized [-Wmaybe-uninitialized] 443 | succeedChance = spyPtr->spy_skill - unitLoyalty - unitCommandPower | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ OFIRMIF3.cpp:406:54: note: 'unitCommandPower' was declared here 406 | int unitLoyalty, unitRaceId, targetSpyRecno, unitCommandPower; | ^~~~~~~~~~~~~~~~ OFIRMIF3.cpp: In member function 'Firm::disp_bribe_unit(int)': OFIRMIF3.cpp:516:29: warning: 'rankId' may be used uninitialized [-Wmaybe-uninitialized] 516 | vga_front.put_bitmap(x, y, unit_res[unitId]->get_large_icon_ptr(rankId) ); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OFIRMIF3.cpp:486:46: note: 'rankId' was declared here 486 | int raceId, unitLoyalty, unitId, rankId; | ^~~~~~ OFIRMIF3.cpp:525:16: warning: 'unitLoyalty' may be used uninitialized [-Wmaybe-uninitialized] 525 | str += unitLoyalty; | ^~~~~~~~~~~ OFIRMIF3.cpp:486:25: note: 'unitLoyalty' was declared here 486 | int raceId, unitLoyalty, unitId, rankId; | ^~~~~~~~~~~ In file included from ../include/OMATRIX.h:28: In member function 'UnitRes::operator[](int)', inlined from 'Firm::disp_bribe_unit(int)' at OFIRMIF3.cpp:516:22: ../include/OUNITRES.h:371:84: warning: 'unitId' may be used uninitialized [-Wmaybe-uninitialized] 371 | UnitInfo* operator[](int unitId) { return unit_info_array+unitId-1; } | ^~~~~~ OFIRMIF3.cpp: In member function 'Firm::disp_bribe_unit(int)': OFIRMIF3.cpp:486:38: note: 'unitId' was declared here 486 | int raceId, unitLoyalty, unitId, rankId; | ^~~~~~ OFIRMIF3.cpp:517:21: warning: 'unitName' may be used uninitialized [-Wmaybe-uninitialized] 517 | font_san.put( x+UNIT_LARGE_ICON_WIDTH+6, y+4, unitName ); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OFIRMIF3.cpp:487:21: note: 'unitName' was declared here 487 | const char* unitName; | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OFLAME.o OFLAME.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OF_BASE2.o OF_BASE2.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OF_BASE2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_BASE.h:36, from OF_BASE2.cpp:26: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OFIRM.h: At global scope: ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ ../include/OF_BASE.h:82:25: note: by 'virtual void FirmBase::init_crc(FirmBaseCrc*)' 82 | virtual void init_crc(FirmBaseCrc *c); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OFONT.o OFONT.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OFONT.cpp:33: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33, from OFONT.cpp:36: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OF_BASE.o OF_BASE.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_BASE.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OF_BASE.h:36, from OF_BASE.cpp:45: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OF_FACT2.o OF_FACT2.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_FACT2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from OF_FACT2.cpp:25: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_MINE.h:28, from OF_FACT2.cpp:33: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OFIRM.h: At global scope: ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ ../include/OF_MINE.h:90:25: note: by 'virtual void FirmMine::init_crc(FirmMineCrc*)' 90 | virtual void init_crc(FirmMineCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from OF_FACT2.cpp:34: ../include/OF_MARK.h:139:25: note: by 'virtual void FirmMarket::init_crc(FirmMarketCrc*)' 139 | virtual void init_crc(FirmMarketCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from OF_FACT2.cpp:35: ../include/OF_FACT.h:78:25: note: by 'virtual void FirmFactory::init_crc(FirmFactoryCrc*)' 78 | virtual void init_crc(FirmFactoryCrc *c); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OFIRM.o OFIRM.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OFIRM.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from OFIRM.cpp:32: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from OFIRM.cpp:40: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OFIRM.cpp: In member function 'virtual void Firm::assign_overseer(int)': OFIRM.cpp:655:21: warning: unused variable 'originalXLoc' [-Wunused-variable] 655 | int originalXLoc = unitPtr->next_x_loc(); | ^~~~~~~~~~~~ OFIRM.cpp:656:21: warning: unused variable 'originalYLoc' [-Wunused-variable] 656 | int originalYLoc = unitPtr->next_y_loc(); | ^~~~~~~~~~~~ OFIRM.cpp:614:13: warning: unused variable 'oldOverseerRecno' [-Wunused-variable] 614 | int oldOverseerRecno = overseer_recno; | ^~~~~~~~~~~~~~~~ OFIRM.cpp: In member function 'virtual void Firm::assign_worker(int)': OFIRM.cpp:965:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct Worker'; use assignment or value-initialization instead [-Wclass-memaccess] 965 | memset( workerPtr, 0, sizeof(Worker) ); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OFIRM.h:94:8: note: 'struct Worker' declared here 94 | struct Worker | ^~~~~~ OFIRM.cpp: In member function 'int Firm::find_settle_town()': OFIRM.cpp:1125:25: warning: unused variable 'nationPtr' [-Wunused-variable] 1125 | Nation* nationPtr = nation_array[nation_recno]; | ^~~~~~~~~ OFIRM.cpp: In member function 'int Firm::year_expense()': OFIRM.cpp:1870:13: warning: unused variable 'payWorkerCount' [-Wunused-variable] 1870 | int payWorkerCount=0; | ^~~~~~~~~~~~~~ OFIRM.cpp: In member function 'virtual int Firm::pull_town_people(int, char, int, int)': OFIRM.cpp:2102:31: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct Worker'; use assignment or value-initialization instead [-Wclass-memaccess] 2102 | memset( workerPtr, 0, sizeof(Worker) ); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OFIRM.h:94:8: note: 'struct Worker' declared here 94 | struct Worker | ^~~~~~ OFIRM.cpp:2037:18: warning: unused variable 'popAdded' [-Wunused-variable] 2037 | int i, popAdded=0; | ^~~~~~~~ OFIRM.cpp: In member function 'void Firm::update_worker()': OFIRM.cpp:2298:29: warning: unused variable 'loopCount' [-Wunused-variable] 2298 | int loopCount=0; | ^~~~~~~~~ OFIRM.cpp: In member function 'int Firm::create_worker_unit(Worker&)': OFIRM.cpp:2461:19: warning: unused variable 'unitInfo' [-Wunused-variable] 2461 | UnitInfo *unitInfo = unit_res[unitId]; | ^~~~~~~~ OFIRM.cpp: In member function 'void Firm::resign_all_worker(int)': OFIRM.cpp:2637:8: warning: unused variable 'loopCount' [-Wunused-variable] 2637 | int loopCount=0, townRecno, raceId; | ^~~~~~~~~ OFIRM.cpp: In member function 'void Firm::think_worker_migrate()': OFIRM.cpp:2738:15: warning: unused variable 'firmXLoc' [-Wunused-variable] 2738 | int firmXLoc = center_x, firmYLoc = center_y; | ^~~~~~~~ OFIRM.cpp:2738:36: warning: unused variable 'firmYLoc' [-Wunused-variable] 2738 | int firmXLoc = center_x, firmYLoc = center_y; | ^~~~~~~~ OFIRM.cpp: In member function 'void Firm::setup_link()': OFIRM.cpp:3091:43: warning: array subscript has type 'char' [-Wchar-subscripts] 3091 | linked_firm_array[linked_firm_count] = firmRecno; | ^~~~~~~~~~~~~~~~~ OFIRM.cpp:3092:50: warning: array subscript has type 'char' [-Wchar-subscripts] 3092 | linked_firm_enable_array[linked_firm_count] = defaultLinkStatus; | ^~~~~~~~~~~~~~~~~ OFIRM.cpp:3109:61: warning: array subscript has type 'char' [-Wchar-subscripts] 3109 | firmPtr->linked_firm_array[firmPtr->linked_firm_count] = firm_recno; | ~~~~~~~~~^~~~~~~~~~~~~~~~~ OFIRM.cpp:3110:68: warning: array subscript has type 'char' [-Wchar-subscripts] 3110 | firmPtr->linked_firm_enable_array[firmPtr->linked_firm_count] = defaultLinkStatus; | ~~~~~~~~~^~~~~~~~~~~~~~~~~ OFIRM.cpp:3186:43: warning: array subscript has type 'char' [-Wchar-subscripts] 3186 | linked_town_array[linked_town_count] = townRecno; | ^~~~~~~~~~~~~~~~~ OFIRM.cpp:3187:50: warning: array subscript has type 'char' [-Wchar-subscripts] 3187 | linked_town_enable_array[linked_town_count] = defaultLinkStatus; | ^~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OF_FACT.o OF_FACT.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_FACT.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OF_MINE.h:28, from OF_FACT.cpp:38: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OF_CAMP.o OF_CAMP.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_CAMP.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OF_CAMP.cpp:43: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:65: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OF_CAMP.h:28, from OF_CAMP.cpp:45: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OF_CAMP.cpp: In member function 'void FirmCamp::train_unit()': OF_CAMP.cpp:663:19: warning: unused variable 'overseerRaceInfo' [-Wunused-variable] 663 | RaceInfo* overseerRaceInfo = race_res[overseerUnit->race_id]; | ^~~~~~~~~~~~~~~~ OF_CAMP.cpp: In member function 'void FirmCamp::patrol()': OF_CAMP.cpp:886:52: warning: array subscript has type 'char' [-Wchar-subscripts] 886 | patrol_unit_array[patrol_unit_count++] = overseerRecno; | ~~~~~~~~~~~~~~~~~^~ OF_CAMP.cpp: In member function 'int FirmCamp::patrol_all_soldier()': OF_CAMP.cpp:941:60: warning: array subscript has type 'char' [-Wchar-subscripts] 941 | patrol_unit_array[patrol_unit_count++] = unitRecno; | ~~~~~~~~~~~~~~~~~^~ OF_CAMP.cpp: In member function 'void FirmCamp::defense(short int, int)': OF_CAMP.cpp:1041:13: warning: unused variable 'numOfUnitInside' [-Wunused-variable] 1041 | int numOfUnitInside = worker_count + (overseer_recno>0); | ^~~~~~~~~~~~~~~ OF_CAMP.cpp: At global scope: OF_CAMP.cpp:58:13: warning: 'void disp_debug_info(FirmCamp*, int)' declared 'static' but never defined [-Wunused-function] 58 | static void disp_debug_info(FirmCamp* firmPtr, int refreshFlag); | ^~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OF_CAMP2.o OF_CAMP2.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OF_CAMP2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_CAMP.h:28, from OF_CAMP2.cpp:30: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OF_CAMP2.cpp: In member function 'int FirmCamp::ai_recruit(int)': OF_CAMP2.cpp:431:17: warning: unused variable 'loopCount' [-Wunused-variable] 431 | int loopCount=0; | ^~~~~~~~~ OF_CAMP2.cpp: In member function 'int FirmCamp::ai_combat_level_needed()': OF_CAMP2.cpp:493:17: warning: unused variable 'nationPtr' [-Wunused-variable] 493 | Nation* nationPtr = nation_array[nation_recno]; | ^~~~~~~~~ OF_CAMP2.cpp: In member function 'int FirmCamp::think_capture_target_town()': OF_CAMP2.cpp:735:15: warning: unused variable 'prefPeacefulness' [-Wunused-variable] 735 | int prefPeacefulness = nation_array[nation_recno]->pref_peacefulness; | ^~~~~~~~~~~~~~~~ OF_CAMP2.cpp: In member function 'int FirmCamp::think_capture_use_spy(Town*)': OF_CAMP2.cpp:1001:17: warning: unused variable 'ownNation' [-Wunused-variable] 1001 | Nation* ownNation = nation_array[nation_recno]; | ^~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OF_HARB2.o OF_HARB2.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_HARB2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/OU_MARI.h:28, from OF_HARB2.cpp:25: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_MARK.h:28, from ../include/OU_MARI.h:32: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OFIRM.h: At global scope: ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ ../include/OF_MARK.h:139:25: note: by 'virtual void FirmMarket::init_crc(FirmMarketCrc*)' 139 | virtual void init_crc(FirmMarketCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: warning: 'virtual void Unit::init_crc(UnitCrc*)' was hidden [-Woverloaded-virtual=] 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OU_MARI.h:36: ../include/OU_CARA.h:174:25: note: by 'virtual void UnitCaravan::init_crc(UnitCaravanCrc*)' 174 | virtual void init_crc(UnitCaravanCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: warning: 'virtual void Unit::init_crc(UnitCrc*)' was hidden [-Woverloaded-virtual=] 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ ../include/OU_MARI.h:194:25: note: by 'virtual void UnitMarine::init_crc(UnitMarineCrc*)' 194 | virtual void init_crc(UnitMarineCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from OF_HARB2.cpp:27: ../include/OF_HARB.h:117:25: note: by 'virtual void FirmHarbor::init_crc(FirmHarborCrc*)' 117 | virtual void init_crc(FirmHarborCrc *c); | ^~~~~~~~ OF_HARB2.cpp: In member function 'FirmHarbor::think_trade()': OF_HARB2.cpp:196:66: warning: 'firmHarbor' may be used uninitialized [-Wmaybe-uninitialized] 196 | unitMarine->set_stop( 2, firmHarbor->loc_x1, firmHarbor->loc_y1, COMMAND_AI); | ~~~~~~~~~~~~^~~~~~ OF_HARB2.cpp:166:21: note: 'firmHarbor' was declared here 166 | FirmHarbor* firmHarbor; | ^~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OF_INN2.o OF_INN2.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OF_INN2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_INN.h:36, from OF_INN2.cpp:28: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OFIRM.h: At global scope: ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ ../include/OF_INN.h:97:25: note: by 'virtual void FirmInn::init_crc(FirmInnCrc*)' 97 | virtual void init_crc(FirmInnCrc *c); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OF_INN.o OF_INN.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_INN.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OF_INN.h:36, from OF_INN.cpp:41: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ In file included from /usr/include/string.h:535, from ../include/OSTR.h:27, from ../include/ALL.h:30, from ../include/ODYNARR.h:28, from ../include/OINFO.h:30: In function 'memcpy', inlined from 'FirmInn::hire(short)' at OF_INN.cpp:285:8: /usr/include/bits/string_fortified.h:29:33: warning: 'memcpy' offset [0, 5] is out of the bounds [0, 0] [-Warray-bounds=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OF_HARB.o OF_HARB.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_HARB.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OF_HARB.cpp:36: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:65: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OF_MARK.h:28, from ../include/OU_MARI.h:32, from OF_HARB.cpp:39: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OF_HARB.cpp: In member function 'int FirmHarbor::detect_build_menu()': OF_HARB.cpp:838:34: warning: unused variable 'x' [-Wunused-variable] 838 | int unitId, x=INFO_X1+2, y=INFO_Y1, rc, quitFlag, waitFlag; | ^ OF_HARB.cpp:839:19: warning: variable 'unitInfo' set but not used [-Wunused-but-set-variable] 839 | UnitInfo* unitInfo; | ^~~~~~~~ OF_HARB.cpp: In member function 'void FirmHarbor::disp_build_info(int)': OF_HARB.cpp:1128:13: warning: unused variable 'dispY1' [-Wunused-variable] 1128 | int dispY1 = INFO_Y1+26; | ^~~~~~ OF_HARB.cpp: In member function 'void FirmHarbor::update_linked_firm_info()': OF_HARB.cpp:1286:59: warning: array subscript has type 'char' [-Wchar-subscripts] 1286 | linked_mine_array[linked_mine_num] = firmPtr->firm_recno; | ^~~~~~~~~~~~~~~ OF_HARB.cpp:1295:62: warning: array subscript has type 'char' [-Wchar-subscripts] 1295 | linked_factory_array[linked_factory_num] = firmPtr->firm_recno; | ^~~~~~~~~~~~~~~~~~ OF_HARB.cpp:1304:61: warning: array subscript has type 'char' [-Wchar-subscripts] 1304 | linked_market_array[linked_market_num] = firmPtr->firm_recno; | ^~~~~~~~~~~~~~~~~ OF_HARB.cpp:1269:17: warning: variable 'nationPtr' set but not used [-Wunused-but-set-variable] 1269 | Nation *nationPtr; | ^~~~~~~~~ OF_HARB.cpp: In member function 'void FirmHarbor::add_queue(int, int)': OF_HARB.cpp:1346:52: warning: array subscript has type 'char' [-Wchar-subscripts] 1346 | build_queue_array[build_queue_count++] = unitId; | ~~~~~~~~~~~~~~~~~^~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OF_MINE2.o OF_MINE2.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_MINE2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from OF_MINE2.cpp:25: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_MINE.h:28, from OF_MINE2.cpp:31: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OFIRM.h: At global scope: ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ ../include/OF_MINE.h:90:25: note: by 'virtual void FirmMine::init_crc(FirmMineCrc*)' 90 | virtual void init_crc(FirmMineCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from OF_MINE2.cpp:32: ../include/OF_FACT.h:78:25: note: by 'virtual void FirmFactory::init_crc(FirmFactoryCrc*)' 78 | virtual void init_crc(FirmFactoryCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from OF_MINE2.cpp:33: ../include/OF_MARK.h:139:25: note: by 'virtual void FirmMarket::init_crc(FirmMarketCrc*)' 139 | virtual void init_crc(FirmMarketCrc *c); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OF_MINE.o OF_MINE.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_MINE.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OF_MINE.h:28, from OF_MINE.cpp:36: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OF_MARK2.o OF_MARK2.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_MARK2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33, from OF_MARK2.cpp:29: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_MARK.h:28, from ../include/OU_CARA.h:45, from OF_MARK2.cpp:30: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OFIRM.h: At global scope: ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ ../include/OF_MARK.h:139:25: note: by 'virtual void FirmMarket::init_crc(FirmMarketCrc*)' 139 | virtual void init_crc(FirmMarketCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: warning: 'virtual void Unit::init_crc(UnitCrc*)' was hidden [-Woverloaded-virtual=] 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ ../include/OU_CARA.h:174:25: note: by 'virtual void UnitCaravan::init_crc(UnitCaravanCrc*)' 174 | virtual void init_crc(UnitCaravanCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from OF_MARK2.cpp:33: ../include/OF_FACT.h:78:25: note: by 'virtual void FirmFactory::init_crc(FirmFactoryCrc*)' 78 | virtual void init_crc(FirmFactoryCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from OF_MARK2.cpp:34: ../include/OF_MINE.h:90:25: note: by 'virtual void FirmMine::init_crc(FirmMineCrc*)' 90 | virtual void init_crc(FirmMineCrc *c); | ^~~~~~~~ OF_MARK2.cpp: In member function 'virtual void FirmMarket::ai_update_link_status()': OF_MARK2.cpp:191:17: warning: unused variable 'nationPtr' [-Wunused-variable] 191 | Nation* nationPtr = nation_array[nation_recno]; | ^~~~~~~~~ OF_MARK2.cpp: In member function 'int FirmMarket::think_import_specific_product(int)': OF_MARK2.cpp:415:25: warning: unused variable 'canHireCaravan' [-Wunused-variable] 415 | int canHireCaravan = can_hire_caravan(); | ^~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OF_MARK.o OF_MARK.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_MARK.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OF_MARK.h:28, from ../include/OU_CARA.h:45, from OF_MARK.cpp:37: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OF_MARK.cpp: In member function 'virtual int FirmMarket::detect_info()': OF_MARK.cpp:288:46: warning: unused variable 'marketGoods' [-Wunused-variable] 288 | MarketGoods* marketGoods = market_goods_array+i; | ^~~~~~~~~~~ OF_MARK.cpp: In member function 'short int FirmMarket::hire_caravan(char)': OF_MARK.cpp:350:17: warning: unused variable 'nationPtr' [-Wunused-variable] 350 | Nation *nationPtr = nation_array[nation_recno]; | ^~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OF_RESE2.o OF_RESE2.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OF_RESE2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_RESE.h:28, from OF_RESE2.cpp:29: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OFIRM.h: At global scope: ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ ../include/OF_RESE.h:74:25: note: by 'virtual void FirmResearch::init_crc(FirmResearchCrc*)' 74 | virtual void init_crc(FirmResearchCrc *c); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OF_MONS.o OF_MONS.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_MONS.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OF_MONS.h:28, from OF_MONS.cpp:39: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OF_MONS.cpp: In member function 'virtual void FirmMonster::deinit_derived()': OF_MONS.cpp:114:13: warning: unused variable 'loopCount' [-Wunused-variable] 114 | int loopCount=0; | ^~~~~~~~~ OF_MONS.cpp: In member function 'void FirmMonster::disp_monster_info(int, int)': OF_MONS.cpp:201:13: warning: unused variable 'x' [-Wunused-variable] 201 | int x=INFO_X1+4, y=dispY1+3; | ^ OF_MONS.cpp:201:26: warning: unused variable 'y' [-Wunused-variable] 201 | int x=INFO_X1+4, y=dispY1+3; | ^ OF_MONS.cpp: In member function 'virtual void FirmMonster::assign_unit(int)': OF_MONS.cpp:343:19: warning: unused variable 'unitInfo' [-Wunused-variable] 343 | UnitInfo* unitInfo = unit_res[unitPtr->unit_id]; | ^~~~~~~~ OF_MONS.cpp: In member function 'void FirmMonster::add_general(int)': OF_MONS.cpp:393:19: warning: unused variable 'unitInfo' [-Wunused-variable] 393 | UnitInfo* unitInfo = unit_res[unitPtr->unit_id]; | ^~~~~~~~ OF_MONS.cpp: In member function 'void FirmMonster::add_soldier(int)': OF_MONS.cpp:462:60: warning: array subscript has type 'char' [-Wchar-subscripts] 462 | waiting_soldier_array[waiting_soldier_count++] = generalUnitRecno; // the soldier is waiting for this general. | ~~~~~~~~~~~~~~~~~~~~~^~ OF_MONS.cpp: In member function 'int FirmMonster::mobilize_general(int, int)': OF_MONS.cpp:591:68: warning: array subscript has type 'char' [-Wchar-subscripts] 591 | patrol_unit_array[patrol_unit_count++] = unitRecno; | ~~~~~~~~~~~~~~~~~^~ OF_MONS.cpp: In member function 'int FirmMonster::think_attack_neighbor()': OF_MONS.cpp:942:41: warning: unused variable 'totalCombatLevel' [-Wunused-variable] 942 | int totalCombatLevel=0; | ^~~~~~~~~~~~~~~~ OF_MONS.cpp: In member function 'int FirmMonster::think_attack_human()': OF_MONS.cpp:1104:41: warning: unused variable 'totalCombatLevel' [-Wunused-variable] 1104 | int totalCombatLevel=0; | ^~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGAMCRED.o OGAMCRED.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OF_WAR2.o OF_WAR2.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OF_WAR2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_WAR.h:28, from OF_WAR2.cpp:29: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OFIRM.h: At global scope: ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ ../include/OF_WAR.h:78:25: note: by 'virtual void FirmWar::init_crc(FirmWarCrc*)' 78 | virtual void init_crc(FirmWarCrc *c); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OF_RESE.o OF_RESE.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_RESE.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OF_RESE.h:28, from OF_RESE.cpp:40: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OF_RESE.cpp: In member function 'void FirmResearch::research_complete()': OF_RESE.cpp:601:15: warning: unused variable 'techId' [-Wunused-variable] 601 | short techId = tech_id; // backup tech_id | ^~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGAMESET.o OGAMESET.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGAMENCY.o OGAMENCY.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' OGAMENCY.cpp: In function 'int disp_picture(int, int, int)': OGAMENCY.cpp:585:98: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 585 | filename2[0] && misc.is_file_exist(filename2) && pictFile.file_open(filename2,0) && (palNamePtr = palname2) || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ OGAMENCY.cpp: At global scope: OGAMENCY.cpp:131:12: warning: 'fryhtan_page' defined but not used [-Wunused-variable] 131 | static int fryhtan_page; | ^~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OF_WAR.o OF_WAR.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_WAR.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OF_WAR.h:28, from OF_WAR.cpp:38: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OF_WAR.cpp: In member function 'int FirmWar::detect_build_menu()': OF_WAR.cpp:306:34: warning: unused variable 'x' [-Wunused-variable] 306 | int unitId, x=INFO_X1+2, y=INFO_Y1, rc, quitFlag, waitFlag; | ^ OF_WAR.cpp:307:19: warning: variable 'unitInfo' set but not used [-Wunused-but-set-variable] 307 | UnitInfo* unitInfo; | ^~~~~~~~ OF_WAR.cpp: In member function 'void FirmWar::add_queue(int, int)': OF_WAR.cpp:722:52: warning: array subscript has type 'char' [-Wchar-subscripts] 722 | build_queue_array[build_queue_count++] = unitId; | ~~~~~~~~~~~~~~~~~^~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGAME.o OGAME.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPATH.h:37, from ../include/OU_CARA.h:33, from ../include/OUNITALL.h:27, from OGAME.cpp:32: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/OU_CARA.h:37: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OF_MARK.h:28, from ../include/OU_CARA.h:45: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OUNIT.h: At global scope: ../include/OUNIT.h:575:25: warning: 'virtual void Unit::init_crc(UnitCrc*)' was hidden [-Woverloaded-virtual=] 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OUNITALL.h:28: ../include/OU_VEHI.h:49:25: note: by 'virtual void UnitVehicle::init_crc(UnitVehicleCrc*)' 49 | virtual void init_crc(UnitVehicleCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: warning: 'virtual void Unit::init_crc(UnitCrc*)' was hidden [-Woverloaded-virtual=] 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OUNITALL.h:30: ../include/OU_CART.h:47:25: note: by 'virtual void UnitExpCart::init_crc(UnitExpCartCrc*)' 47 | virtual void init_crc(UnitExpCartCrc *c); | ^~~~~~~~ ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ In file included from OGAME.cpp:33: ../include/OBULLET.h:91:25: note: by 'virtual void Bullet::init_crc(BulletCrc*)' 91 | virtual void init_crc(BulletCrc *c); | ^~~~~~~~ In file included from OGAME.cpp:34: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:65: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OGAME.cpp: In member function 'int Game::init(int)': OGAME.cpp:117:13: warning: unused variable 'originalRandomSeed' [-Wunused-variable] 117 | int originalRandomSeed = misc.get_random_seed(); | ^~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGAMHALL.o OGAMHALL.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OGAMHALL.cpp:36: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGAMMAIN.o OGAMMAIN.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGAMEND.o OGAMEND.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OGAMEND.cpp:39: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGAMSCE2.o OGAMSCE2.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OGAMSCE2.cpp:38: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/FilePath.h:27, from ../include/OFILE.h:27, from ../include/ALL.h:31, from ../include/OSYS.h:27, from OGAMSCE2.cpp:25: OGAMSCE2.cpp: In member function 'int Game::select_scenario(int, ScenInfo*)': OGAMSCE2.cpp:279:83: warning: array subscript has type 'char' [-Wchar-subscripts] 279 | pathName = DIR_SCENARIO_PATH(scenInfoArray[browseRecno-1].dir_id); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ ../include/GAMEDEF.h:64:55: note: in definition of macro 'DIR_SCENARIO_PATH' 64 | #define DIR_SCENARIO_PATH(p) sys.dir_scenario_path[p] | ^ OGAMSCE2.cpp:577:43: warning: comparison of integer expressions of different signedness: 'int' and 'nsPlayerStats::PlayStatus' [-Wsign-compare] 577 | if(status > nsPlayerStats::PlayStatus::COMPLETED) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OGAMSCE2.cpp:590:90: warning: array subscript has type 'char' [-Wchar-subscripts] 590 | path += DIR_SCENARIO_PATH(scenInfoArray[browseRecno - 1].dir_id);; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ ../include/GAMEDEF.h:64:55: note: in definition of macro 'DIR_SCENARIO_PATH' 64 | #define DIR_SCENARIO_PATH(p) sys.dir_scenario_path[p] | ^ In file included from OGAMSCE2.cpp:27: In member function 'Mouse::click_y(int)', inlined from 'Game::select_scenario(int, ScenInfo*)' at OGAMSCE2.cpp:559:56: ../include/OMOUSE.h:277:77: warning: 'btn' may be used uninitialized [-Wmaybe-uninitialized] 277 | int click_y(int buttonId=0) { return click_buffer[buttonId].y; } | ^ OGAMSCE2.cpp: In member function 'Game::select_scenario(int, ScenInfo*)': OGAMSCE2.cpp:554:29: note: 'btn' was declared here 554 | int btn; | ^~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGAMMENU.o OGAMMENU.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OGAMMENU.cpp:34: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33, from ../include/ONATIONA.h:32, from OGAMMENU.cpp:47: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ OGAMMENU.cpp: In member function 'void Game::in_game_menu()': OGAMMENU.cpp:85:13: warning: unused variable 'x' [-Wunused-variable] 85 | int x=GAME_MENU_X1+20, y=GAME_MENU_Y1+17; | ^ OGAMMENU.cpp:85:32: warning: unused variable 'y' [-Wunused-variable] 85 | int x=GAME_MENU_X1+20, y=GAME_MENU_Y1+17; | ^ OGAMMENU.cpp: In function 'int detect_game_option()': OGAMMENU.cpp:187:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 187 | (menu_hot_key[i-1] && mouse.key_code == menu_hot_key[i-1] || | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OGAMMENU.cpp: At global scope: OGAMMENU.cpp:293:13: warning: 'reverse_race_table' defined but not used [-Wunused-variable] 293 | static char reverse_race_table[MAX_RACE_TABLE] = // race translation table | ^~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGENHILL.o OGENHILL.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OGENHILL.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OGENHILL.cpp:29: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:65: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGAMSCEN.o OGAMSCEN.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OF_MONS.h:28, from OGAMSCEN.cpp:31: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ In file included from ../include/FilePath.h:27, from ../include/OFILE.h:27, from ../include/ALL.h:31, from ../include/OSYS.h:27, from OGAMSCEN.cpp:25: OGAMSCEN.cpp: In member function 'int Game::run_scenario(ScenInfo*)': OGAMSCEN.cpp:155:44: warning: array subscript has type 'char' [-Wchar-subscripts] 155 | str = DIR_SCENARIO_PATH(scenInfo->dir_id); | ~~~~~~~~~~^~~~~~ ../include/GAMEDEF.h:64:55: note: in definition of macro 'DIR_SCENARIO_PATH' 64 | #define DIR_SCENARIO_PATH(p) sys.dir_scenario_path[p] | ^ OGAMSCEN.cpp:172:69: warning: array subscript has type 'char' [-Wchar-subscripts] 172 | str2 = DIR_SCENARIO_PATH(scenInfo->dir_id); | ~~~~~~~~~~^~~~~~ ../include/GAMEDEF.h:64:55: note: in definition of macro 'DIR_SCENARIO_PATH' 64 | #define DIR_SCENARIO_PATH(p) sys.dir_scenario_path[p] | ^ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGAMSING.o OGAMSING.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OGAMSING.cpp:31: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OGAMSING.cpp: At global scope: OGAMSING.cpp:51:13: warning: 'option_mode' defined but not used [-Wunused-variable] 51 | static char option_mode; | ^~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGENMAP.o OGENMAP.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from OGENMAP.cpp:31: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:65: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OGENMAP.cpp:32: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OGENMAP.cpp: In member function 'World::generate_map()': OGENMAP.cpp:128:42: warning: 'minLandCount' may be used uninitialized [-Wmaybe-uninitialized] 128 | int avgLandCount = (minLandCount + maxLandCount) /2; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ OGENMAP.cpp:109:13: note: 'minLandCount' was declared here 109 | int minLandCount, maxLandCount; | ^~~~~~~~~~~~ OGENMAP.cpp:128:42: warning: 'maxLandCount' may be used uninitialized [-Wmaybe-uninitialized] 128 | int avgLandCount = (minLandCount + maxLandCount) /2; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ OGENMAP.cpp:109:27: note: 'maxLandCount' was declared here 109 | int minLandCount, maxLandCount; | ^~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGETA.o OGETA.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGFILE.o OGFILE.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OGFILE.cpp:32: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGODRES.o OGODRES.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OGODRES.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33, from OGODRES.cpp:28: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from ../include/OU_GOD.h:32, from OGODRES.cpp:31: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OUNIT.h: At global scope: ../include/OUNIT.h:575:25: warning: 'virtual void Unit::init_crc(UnitCrc*)' was hidden [-Woverloaded-virtual=] 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ ../include/OU_GOD.h:63:25: note: by 'virtual void UnitGod::init_crc(UnitGodCrc*)' 63 | virtual void init_crc(UnitGodCrc *c); | ^~~~~~~~ ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from OGODRES.cpp:32: ../include/OF_BASE.h:82:25: note: by 'virtual void FirmBase::init_crc(FirmBaseCrc*)' 82 | virtual void init_crc(FirmBaseCrc *c); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGRPSEL.o OGRPSEL.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:30, from ../include/OUNIT.h:28, from OGRPSEL.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGF_V1.o OGF_V1.cpp In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from ../include/ONATIONA.h:32, from ../include/OGF_V1.h:29, from OGF_V1.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OHELP.o OHELP.cpp In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OHELP.cpp:30: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from OHELP.cpp:32: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ OHELP.cpp: In member function 'void Help::load(char*)': OHELP.cpp:145:26: warning: unused variable 'loopCount' [-Wunused-variable] 145 | int loopCount=0; | ^~~~~~~~~ OHELP.cpp: In member function 'void Help::save_scr(int, int, int, int)': OHELP.cpp:232:14: warning: unused variable 'saveSize' [-Wunused-variable] 232 | long saveSize = (long)(x2-x1+1) * (y2-y1+1); | ^~~~~~~~ make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OHILLRES.o OHILLRES.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OHILLRES.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OIMGRES.o OIMGRES.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGAMEMP.o OGAMEMP.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OGAMEMP.cpp:33: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ OGAMEMP.cpp: In constructor 'MpStructLoadGameNewPlayer::MpStructLoadGameNewPlayer(Nation*, uint32_t, int32_t, char*, char*)': OGAMEMP.cpp:330:17: warning: 'MpStructLoadGameNewPlayer::random_seed' will be initialized after [-Wreorder] 330 | int32_t random_seed; | ^~~~~~~~~~~ OGAMEMP.cpp:322:18: warning: 'uint32_t MpStructLoadGameNewPlayer::ver1' [-Wreorder] 322 | uint32_t ver1; | ^~~~ OGAMEMP.cpp:334:9: warning: when initialized here [-Wreorder] 334 | MpStructLoadGameNewPlayer(Nation *n, uint32_t frame, int32_t seed, char *name, char *pass) : | ^~~~~~~~~~~~~~~~~~~~~~~~~ OGAMEMP.cpp: In member function 'int Game::input_name_pass(const char**, char*, int, char*, int)': OGAMEMP.cpp:1619:13: warning: variable 'titleWidth' set but not used [-Wunused-but-set-variable] 1619 | int titleWidth, titleHeight, fieldDesWidth, field_x_pos, boxWidth, boxHeight, buttonWidth1, ret; | ^~~~~~~~~~ OGAMEMP.cpp:1619:53: warning: variable 'field_x_pos' set but not used [-Wunused-but-set-variable] 1619 | int titleWidth, titleHeight, fieldDesWidth, field_x_pos, boxWidth, boxHeight, buttonWidth1, ret; | ^~~~~~~~~~~ OGAMEMP.cpp: In member function 'int Game::mp_select_option(NewNationPara*, int*)': OGAMEMP.cpp:3586:45: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 3586 | if( keyCode = mapIdField.detect() ) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ OGAMEMP.cpp: In member function 'int Game::mp_select_load_option(char*)': OGAMEMP.cpp:5539:78: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 5539 | !nationPtr->is_own() && !nationPtr->is_remote() || | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ OGAMEMP.cpp:4271:18: warning: variable 'hostPlayerId' set but not used [-Wunused-but-set-variable] 4271 | PID_TYPE hostPlayerId = 0; | ^~~~~~~~~~~~ OGAMEMP.cpp:4286:13: warning: unused variable 'shareRace' [-Wunused-variable] 4286 | int shareRace = 1; // host only, 0= exclusive race of each player | ^~~~~~~~~ OGAMEMP.cpp: At global scope: OGAMEMP.cpp:505:13: warning: 'void ingame_disconnect_handler(uint32_t)' defined but not used [-Wunused-function] 505 | static void ingame_disconnect_handler(uint32_t playerId) | ^~~~~~~~~~~~~~~~~~~~~~~~~ OGAMEMP.cpp:484:13: warning: 'void pregame_disconnect_handler(uint32_t)' defined but not used [-Wunused-function] 484 | static void pregame_disconnect_handler(uint32_t playerId) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ OGAMEMP.cpp: In member function 'Game::mp_select_session()': OGAMEMP.cpp:2027:85: warning: 'refreshTime' may be used uninitialized [-Wmaybe-uninitialized] 2027 | if( !(mouse.skey_state & SHIFT_KEY_MASK) && misc.get_time() - refreshTime > pollTime ) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ OGAMEMP.cpp:1774:23: note: 'refreshTime' was declared here 1774 | unsigned long refreshTime; | ^~~~~~~~~~~ OGAMEMP.cpp: In member function 'Game::mp_select_option(NewNationPara*, int*)': OGAMEMP.cpp:234:24: warning: 'strncpy' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation] 234 | strncpy(this->pass, pass, MP_FRIENDLY_NAME_LEN); | ^ OGAMEMP.cpp: In member function 'Game::mp_select_load_option(char*)': OGAMEMP.cpp:341:24: warning: 'strncpy' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation] 341 | strncpy(this->pass, pass, MP_FRIENDLY_NAME_LEN); | ^ OGAMEMP.cpp:5317:33: warning: 'maxPlayer' may be used uninitialized [-Wmaybe-uninitialized] 5317 | if( regPlayerCount != maxPlayer ) | ^~ OGAMEMP.cpp:4285:13: note: 'maxPlayer' was declared here 4285 | int maxPlayer; | ^~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OLOG.o OLOG.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OGFILE2.o OGFILE2.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OFIRMRES.h:32, from OGFILE2.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OGFILE2.cpp: In static member function 'static int GameFile::read_file(File*)': OGFILE2.cpp:196:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 196 | if( demo_format && load_file_game_version > 0 | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OGFILE2.cpp:191:13: warning: unused variable 'originalRandomSeed' [-Wunused-variable] 191 | int originalRandomSeed = misc.get_random_seed(); | ^~~~~~~~~~~~~~~~~~ OGFILE2.cpp: In member function 'int TownRes::read_file(File*)': OGFILE2.cpp:914:49: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] 914 | memset(town_name_used_array, 0, sizeof(town_name_used_array)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ OGFILE2.cpp: In member function 'int GodRes::read_file(File*)': OGFILE2.cpp:1103:43: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] 1103 | memset(god_info_array, 0, sizeof(god_info_array)); | ^~~~~~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OLONGLOG.o OLONGLOG.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OINGMENU.o OINGMENU.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from ../include/ONATIONA.h:32, from OINGMENU.cpp:35: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ OINGMENU.cpp: In member function 'void InGameMenu::disp(int)': OINGMENU.cpp:133:11: warning: unused variable 'x' [-Wunused-variable] 133 | int x=GAME_MENU_X1+20, y=GAME_MENU_Y1+17; | ^ OINGMENU.cpp:133:30: warning: unused variable 'y' [-Wunused-variable] 133 | int x=GAME_MENU_X1+20, y=GAME_MENU_Y1+17; | ^ OINGMENU.cpp: In member function 'int InGameMenu::detect()': OINGMENU.cpp:177:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 177 | (menu_hot_key[i-1] && mouse.key_code == menu_hot_key[i-1] || | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OMEM.o OMEM.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OLIGHTN.o OLIGHTN.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from OLIGHTN.cpp:30: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OLIGHTN.cpp: At global scope: OLIGHTN.cpp:293:15: warning: 'double sqr(double)' defined but not used [-Wunused-function] 293 | static double sqr(double x) | ^~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OINFO.o OINFO.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from OINFO.cpp:31: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OINFO.cpp: In member function 'void Info::disp_heading()': OINFO.cpp:394:13: warning: unused variable 'x' [-Wunused-variable] 394 | int x=TOP_MENU_X2-250; | ^ OINFO.cpp: At global scope: OINFO.cpp:52:20: warning: 'skill_name_array' defined but not used [-Wunused-variable] 52 | static const char* skill_name_array[] = | ^~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OLZW.o OLZW.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' OLZW.cpp: In member function 'virtual short unsigned int BitFileRead::input_bits(unsigned int)': OLZW.cpp:121:36: warning: comparison of integer expressions of different signedness: 'long int' and 'long unsigned int' [-Wsign-compare] 121 | if( bit_offset + stringLen > (last_offset+sizeof(residue))*8 ) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OLZW.cpp:125:31: warning: comparison of integer expressions of different signedness: 'long int' and 'long unsigned int' [-Wsign-compare] 125 | if( byteFetch >= sizeof(residue) ) // residue >>= 32 does not change to 0 | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~ In file included from OLZW.cpp:27: ../include/OLZW.h: In constructor 'BitFileWrite::BitFileWrite(File*)': ../include/OLZW.h:74:23: warning: 'BitFileWrite::residue' will be initialized after [-Wreorder] 74 | unsigned long residue; // always the 4 bytes at last_offset | ^~~~~~~ ../include/OLZW.h:73:14: warning: 'long int BitFileWrite::residue_len' [-Wreorder] 73 | long residue_len; | ^~~~~~~~~~~ OLZW.cpp:150:1: warning: when initialized here [-Wreorder] 150 | BitFileWrite::BitFileWrite(File *f) : filePtr(f), residue(0), residue_len(0) | ^~~~~~~~~~~~ OLZW.cpp: In member function 'virtual void BitFileWrite::output_bits(short unsigned int, unsigned int)': OLZW.cpp:168:37: warning: comparison of integer expressions of different signedness: 'long int' and 'long unsigned int' [-Wsign-compare] 168 | if( residue_len + stringLen > sizeof(residue)*8 ) | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ OLZW.cpp:173:31: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 173 | if( byteFlush >= sizeof(residue)) // if byteFlush == 4, residue >>= 32 does not set residue to 0 | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~ OLZW.cpp: In member function 'unsigned int Lzw::decode_string(unsigned int, short unsigned int)': OLZW.cpp:468:24: warning: unused variable 'initCode' [-Wunused-variable] 468 | unsigned short initCode = code; | ^~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OLIGHTN2.o OLIGHTN2.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OMUSIC.o OMUSIC.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' OMUSIC.cpp: In member function 'int Music::play(int, int)': OMUSIC.cpp:160:46: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 160 | return play(songId, playType & ~MUSIC_CD_THEN_WAV | MUSIC_PLAY_CD) make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OMONSRES.o OMONSRES.cpp In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OMONSRES.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from OMONSRES.cpp:28: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ In file included from OMONSRES.cpp:31: ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ../include/OFIRM.h: At global scope: ../include/OFIRM.h:386:25: warning: 'virtual void Firm::init_crc(FirmCrc*)' was hidden [-Woverloaded-virtual=] 386 | virtual void init_crc(FirmCrc *c); | ^~~~~~~~ In file included from OMONSRES.cpp:32: ../include/OF_MONS.h:137:25: note: by 'virtual void FirmMonster::init_crc(FirmMonsterCrc*)' 137 | virtual void init_crc(FirmMonsterCrc *c); | ^~~~~~~~ OMONSRES.cpp: In member function 'void MonsterRes::init_active_monster()': OMONSRES.cpp:127:13: warning: unused variable 'loopCount' [-Wunused-variable] 127 | int loopCount=0; | ^~~~~~~~~ make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OMATRIX.o OMATRIX.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from OMATRIX.cpp:29: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ In file included from OMATRIX.cpp:30: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:65: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OMATRIX.cpp: In member function 'void Location::set_site(int)': OMATRIX.cpp:444:29: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 444 | loc_flag = loc_flag & ~LOCATE_SITE_MASK | LOCATE_HAS_SITE; OMATRIX.cpp: In member function 'void Location::set_dirt(int)': OMATRIX.cpp:506:29: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 506 | loc_flag = loc_flag & ~LOCATE_SITE_MASK | LOCATE_HAS_DIRT; OMATRIX.cpp: In member function 'void Location::set_town(int)': OMATRIX.cpp:563:29: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 563 | loc_flag = loc_flag & ~LOCATE_BLOCK_MASK | LOCATE_IS_TOWN; OMATRIX.cpp: In member function 'void Location::set_hill(int)': OMATRIX.cpp:616:37: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 616 | loc_flag = loc_flag & ~(LOCATE_BLOCK_MASK | LOCATE_SITE_MASK ) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OMATRIX.cpp: In member function 'void Location::set_wall(int, int, int)': OMATRIX.cpp:651:29: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 651 | loc_flag = loc_flag & ~(LOCATE_BLOCK_MASK | LOCATE_SITE_MASK ) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OMATRIX.cpp: In member function 'void Location::set_plant(int, int, int)': OMATRIX.cpp:785:29: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 785 | loc_flag = loc_flag & ~(LOCATE_BLOCK_MASK | LOCATE_SITE_MASK ) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OMATRIX.cpp: In member function 'void Location::set_rock(short int)': OMATRIX.cpp:817:29: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 817 | loc_flag = loc_flag & ~LOCATE_BLOCK_MASK | LOCATE_IS_ROCK; make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OMOUSECR.o OMOUSECR.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OMOUSECR.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OMISC.o OMISC.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' OMISC.cpp: In member function 'int Misc::valid_char(char)': OMISC.cpp:529:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 529 | return ( ch>='a' && ch<='z' || | ~~~~~~~~^~~~~~~~~~ OMISC.cpp:531:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 531 | ch>='0' && ch<='9' || | ~~~~~~~~^~~~~~~~~~ OMISC.cpp: In member function 'int Misc::str_icmpx(const char*, const char*)': OMISC.cpp:611:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 611 | register int a,b; | ^ OMISC.cpp:611:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 611 | register int a,b; | ^ OMISC.cpp: In member function 'int Misc::atoi(char*, int)': OMISC.cpp:937:16: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 937 | if ( strLen >= sizeof( str_buf ) ) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~ OMISC.cpp: In member function 'Misc::cal_move_around_a_point_v2(short, short, short, int&, int&)': OMISC.cpp:1474:9: warning: 'xMag' may be used uninitialized [-Wmaybe-uninitialized] 1474 | if(xMag>0) // +ve | ^~ OMISC.cpp:1458:13: note: 'xMag' was declared here 1458 | int xMag; | ^~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OMOUSE.o OMOUSE.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' OMOUSE.cpp: In member function 'void Mouse::add_event(MouseEventType)': OMOUSE.cpp:397:15: warning: enumeration value 'KEY_PRESS' not handled in switch [-Wswitch] 397 | switch(type) | ^ OMOUSE.cpp:397:15: warning: enumeration value 'KEY_RELEASE' not handled in switch [-Wswitch] OMOUSE.cpp:397:15: warning: enumeration value 'KEY_TYPING' not handled in switch [-Wswitch] make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o ONEWS.o ONEWS.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ONEWS.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/ONATION.h:33, from ONEWS.cpp:34: ../include/OSPRITE.h: At global scope: ../include/OSPRITE.h:155:25: warning: 'virtual void Sprite::init_crc(SpriteCrc*)' was hidden [-Woverloaded-virtual=] 155 | virtual void init_crc(SpriteCrc *c); | ^~~~~~~~ ../include/OUNIT.h:575:25: note: by 'virtual void Unit::init_crc(UnitCrc*)' 575 | virtual void init_crc(UnitCrc *c); | ^~~~~~~~ ONEWS.cpp: In member function 'int News::put(int, int, int&)': ONEWS.cpp:440:65: warning: array subscript has type 'char' [-Wchar-subscripts] 440 | char colorCode = game.color_remap_array[nation_color1].main_color; | ^~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o ONATIONA.o ONATIONA.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OF_CAMP.h:28, from ONATIONA.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ ONATIONA.cpp: In member function 'void NationArray::del_nation(int)': ONATIONA.cpp:277:9: warning: deleting object of polymorphic class type 'Nation' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 277 | delete nationPtr; | ^~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' g++ -DHAVE_CONFIG_H -I. -I../include -DPACKAGE_DATA_DIR=\"/usr/share/7kaa\" -DLOCALE_DIR=\"/usr/share/locale\" -include "../include/config.h" -fsigned-char -I/usr/include/SDL2 -D_REENTRANT -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -fno-omit-frame-pointer -fsigned-char -c -o OMP_CRC.o OMP_CRC.cpp make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.15.4p1/src' In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OF_CAMP.h:28, from ../include/OMP_CRC.h:29, from OMP_CRC.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/OFIRM.h: In member function 'virtual int Firm::detect_info()': ../include/OFIRM.h:325:83: warning: no return statement in function returning non-void [-Wreturn-type] 325 | virtual int detect_info() {;} | ^ OMP_CRC.cpp: In member function 'virtual void UnitMarine::clear_ptr()': OMP_CRC.cpp:462:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class Sprite' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 462 | memset(&splash, 0, sizeof(splash)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OUNIT.h:28, from ../include/OF_INN.h:28, from ../include/OMP_CRC.h:31: ../include/OSPRITE.h:54:7: note: 'class Sprite' declared here 54 | class Sprite | ^~~~~~ OMP_CRC.cpp:58:32: warning: comparison of integer expressions of different signedness: 'char' and 'long unsigned int' [-Wsign-compare] 58 | #define RTRIM_ARRAY(a,s) { if(sunit_recno_array, unit_count); | ^~~~~~~~~~~ OMP_CRC.cpp:58:32: warning: comparison of integer expressions of different signedness: 'char' and 'long unsigned int' [-Wsign-compare] 58 | #define RTRIM_ARRAY(a,s) { if(sunit_recno_array, unit_count); | ^~~~~~~~~~~ OMP_CRC.cpp:513:27: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 513 | for( int i = 0; i < sizeof(stop_array)/sizeof(*stop_array); ++i) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OMP_CRC.cpp: In member function 'virtual void UnitCaravan::clear_ptr()': OMP_CRC.cpp:558:27: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 558 | for( int i = 0; i < sizeof(stop_array)/sizeof(*stop_array); ++i) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OMP_CRC.cpp: In member function 'virtual void UnitCaravan::init_crc(UnitCaravanCrc*)': OMP_CRC.cpp:582:27: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 582 | for( int i = 0; i < sizeof(stop_array)/sizeof(*stop_array); ++i) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OMP_CRC.cpp: In member function 'virtual void Firm::clear_ptr()': OMP_CRC.cpp:58:32: warning: comparison of integer expressions of different signedness: 'char' and 'long unsigned int' [-Wsign-compare] 58 | #define RTRIM_ARRAY(a,s) { if(slinked_firm_array, linked_firm_count); | ^~~~~~~~~~~ OMP_CRC.cpp:58:32: warning: comparison of integer expressions of different signedness: 'char' and 'long unsigned int' [-Wsign-compare] 58 | #define RTRIM_ARRAY(a,s) { if(slinked_firm_enable_array, linked_firm_count); | ^~~~~~~~~~~ OMP_CRC.cpp:58:32: warning: comparison of integer expressions of different signedness: 'char' and 'long unsigned int' [-Wsign-compare] 58 | #define RTRIM_ARRAY(a,s) { if(slinked_town_array, linked_town_count); | ^~~~~~~~~~~ OMP_CRC.cpp:58:32: warning: comparison of integer expressions of different signedness: 'char' and 'long unsigned int' [-Wsign-compare] 58 | #define RTRIM_ARRAY(a,s) { if(slinked_town_enable_array, linked_town_count); | ^~~~~~~~~~~ OMP_CRC.cpp: In member function 'virtual void FirmCamp::clear_ptr()': OMP_CRC.cpp:760:27: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 760 | for( int i = 0; i < sizeof(defense_array)/sizeof(*defense_array); ++i ) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OMP_CRC.cpp:58:32: warning: comparison of integer expressions of different signedness: 'char' and 'long unsigned int' [-Wsign-compare] 58 | #define RTRIM_ARRAY(a,s) { if(spatrol_unit_array, patrol_unit_count); | ^~~~~~~~~~~ OMP_CRC.cpp:58:32: warning: comparison of integer expressions of different signedness: 'char' and 'long unsigned int' [-Wsign-compare] 58 | #define RTRIM_ARRAY(a,s) { if(scoming_unit_array, coming_unit_count); | ^~~~~~~~~~~ OMP_CRC.cpp: In member function 'virtual void FirmInn::clear_ptr()': OMP_CRC.cpp:58:32: warning: comparison of integer expressions of different signedness: 'short int' and 'long unsigned int' [-Wsign-compare] 58 | #define RTRIM_ARRAY(a,s) { if(sinn_unit_array, inn_unit_count); | ^~~~~~~~~~~ OMP_CRC.cpp:58:61: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct InnUnit'; use assignment or value-initialization instead [-Wclass-memaccess] 58 | #define RTRIM_ARRAY(a,s) { if(sinn_unit_array, inn_unit_count); | ^~~~~~~~~~~ ../include/OF_INN.h:46:8: note: 'struct InnUnit' declared here 46 | struct InnUnit | ^~~~~~~ OMP_CRC.cpp: In member function 'virtual void FirmMarket::clear_ptr()': OMP_CRC.cpp:914:23: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 914 | for( i = 0; i < sizeof(market_goods_array)/sizeof(*market_goods_array); ++i ) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OMP_CRC.cpp: In member function 'virtual void FirmMarket::init_crc(FirmMarketCrc*)': OMP_CRC.cpp:934:27: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 934 | for( int i = 0; i < sizeof(market_goods_array)/sizeof(*market_goods_array); ++i ) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OMP_CRC.cpp: In member function 'virtual void FirmWar::clear_ptr()': OMP_CRC.cpp:58:32: warning: comparison of integer expressions of different signedness: 'char' and 'long unsigned int' [-Wsign-compare] 58 | #define RTRIM_ARRAY(a,s) { if(sbuild_queue_array, build_queue_count); | ^~~~~~~~~~~ OMP_CRC.cpp: In member function 'virtual void FirmHarbor::clear_ptr()': OMP_CRC.cpp:58:32: warning: comparison of integer expressions of different signedness: 'short int' and 'long unsigned int' [-Wsign-compare] 58 | #define RTRIM_ARRAY(a,s) { if(sship_recno_array, ship_count); | ^~~~~~~~~~~ OMP_CRC.cpp:58:32: warning: comparison of integer expressions of different signedness: 'char' and 'long unsigned int' [-Wsign-compare] 58 | #define RTRIM_ARRAY(a,s) { if(sbuild_queue_array, build_queue_count); | ^~~~~~~~~~~ OMP_CRC.cpp:58:32: warning: comparison of integer expressions of different signedness: 'char' and 'long unsigned int' [-Wsign-compare] 58 | #define RTRIM_ARRAY(a,s) { if(slinked_mine_array, linked_mine_num); | ^~~~~~~~~~~ OMP_CRC.cpp:58:32: warning: comparison of integer expressions of different signedness: 'char' and 'long unsigned int' [-Wsign-compare] 58 | #define RTRIM_ARRAY(a,s) { if(slinked_factory_array, linked_factory_num); | ^~~~~~~~~~~ OMP_CRC.cpp:58:32: warning: comparison of integer expressions of different signedness: 'char' and 'long unsigned int' [-Wsign-compare] 58 | #define RTRIM_ARRAY(a,s) { if(slinked_market_array, linked_market_num); | ^~~~~~~~~~~ OMP_CRC.cpp: In member function 'virtual void FirmMonster::clear_ptr()': OMP_CRC.cpp:58:32: warning: comparison of integer expressions of different signedness: 'short int' and 'long unsigned int' [-Wsign-compare] 58 | #define RTRIM_ARRAY(a,s) { if(smonster_general_array, monster_general_count); | ^~~~~~~~~~~ OMP_CRC.cpp:58:32: warning: comparison of integer expressions of different signedness: 'char' and 'long unsigned int' [-Wsign-compare] 58 | #define RTRIM_ARRAY(a,s) { if(swaiting_soldier_array, waiting_soldier_count); | ^~~~~~~~~~~ OMP_CRC.cpp:58:32: warning: comparison of integer expressions of different signedness: 'char' and 'long unsigned int' [-Wsign-compare] 58 | #define RTRIM_ARRAY(a,s) { if(spatrol_unit_array, patrol_unit_count); | ^~~~~~~~~~~ OMP_CRC.cpp: In member function 'void Town::clear_ptr()': OMP_CRC.cpp:58:32: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 58 | #define RTRIM_ARRAY(a,s) { if(s