Mock Version: 1.4.14 Mock Version: 1.4.14 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/7kaa.spec'], chrootPath='/var/lib/mock/f31-build-64207-29508/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=986gid=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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1563926400 Wrote: /builddir/build/SRPMS/7kaa-2.14.7-6.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/7kaa.spec'], chrootPath='/var/lib/mock/f31-build-64207-29508/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=986gid=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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1563926400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.NeT0wU + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf 7kaa-2.14.7 + /usr/bin/xz -dc /builddir/build/SOURCES/7kaa-2.14.7.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd 7kaa-2.14.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.3TJqsR + umask 022 + cd /builddir/build/BUILD + cd 7kaa-2.14.7 + export 'CXXFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char' + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char' + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fsigned-char' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' BUILDSTDERR: +++ dirname ./configure BUILDSTDERR: ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) BUILDSTDERR: ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess BUILDSTDERR: ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) BUILDSTDERR: ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub BUILDSTDERR: ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' BUILDSTDERR: ++ find . -name ltmain.sh + ./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 --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info BUILDSTDERR: ./configure: line 6864: cd: /lib64/lp64d/../lib64/lp64d/: No such file or directory BUILDSTDERR: ./configure: line 6864: cd: /usr/lib64/lp64d/../lib64/lp64d/: No such file or directory '/usr/lib/rpm/redhat/config.guess' -> './config.guess' '/usr/lib/rpm/redhat/config.sub' -> './config.sub' checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe 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 for riscv64-koji-linux-gnu-g++... no checking for riscv64-koji-linux-gnu-c++... no checking for riscv64-koji-linux-gnu-gpp... no checking for riscv64-koji-linux-gnu-aCC... no checking for riscv64-koji-linux-gnu-CC... no checking for riscv64-koji-linux-gnu-cxx... no checking for riscv64-koji-linux-gnu-cc++... no checking for riscv64-koji-linux-gnu-cl.exe... no checking for riscv64-koji-linux-gnu-FCC... no checking for riscv64-koji-linux-gnu-KCC... no checking for riscv64-koji-linux-gnu-RCC... no checking for riscv64-koji-linux-gnu-xlC_r... no checking for riscv64-koji-linux-gnu-xlC... no checking for g++... g++ 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 we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... none checking for riscv64-koji-linux-gnu-gcc... no checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... 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 build system type... riscv64-koji-linux-gnu checking host system type... riscv64-koji-linux-gnu checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.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 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 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 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 BUILDSTDERR: con+ make -j4 BUILDSTDERR: multiplayer.cpp: In member function 'int MultiPlayer::poll_sessions()': BUILDSTDERR: multiplayer.cpp:420:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] BUILDSTDERR: 420 | if (prev = get_session(m->session_id)) { BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: multiplayer.cpp: In member function 'void MultiPlayer::do_host_nat_punch(MpMsgHostNatPunch*)': BUILDSTDERR: multiplayer.cpp:1291:13: warning: unused variable 'b' [-Wunused-variable] BUILDSTDERR: 1291 | ENetBuffer b; BUILDSTDERR: | ^ BUILDSTDERR: multiplayer.cpp:1292:12: warning: unused variable 'm' [-Wunused-variable] BUILDSTDERR: 1292 | MpMsgPing m; BUILDSTDERR: | ^ BUILDSTDERR: In file included from /usr/include/string.h:494, BUILDSTDERR: from ../../include/OSTR.h:28, BUILDSTDERR: from ../../include/ALL.h:31, BUILDSTDERR: from ../../include/ODYNARR.h:28, BUILDSTDERR: from ../../include/ODYNARRB.h:28, BUILDSTDERR: from ../../include/multiplayer.h:30, BUILDSTDERR: from multiplayer.cpp:25: BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'SessionDesc::SessionDesc(const SessionDesc&)' at multiplayer.cpp:99:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'SessionDesc::SessionDesc(const SessionDesc&)' at multiplayer.cpp:101:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'void MultiPlayer::send_user_session_status(ENetAddress*)' at multiplayer.cpp:1168:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'void MultiPlayer::send_req_login_id()' at multiplayer.cpp:1182:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: IB_AR.cpp: In function 'void IMGbltAreaRemap(char*, int, int, int, char*, int, int, int, int, char*)': BUILDSTDERR: IB_AR.cpp:70:56: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 70 | imageBuf[ dest + i ] = colorTable[ bitmapBuf[esi + i] ]; BUILDSTDERR: | ~~~~~~~~~~~~~~~~~^ BUILDSTDERR: IB_ATR.cpp: In function 'void IMGbltAreaTransRemap(char*, int, int, int, char*, int, int, int, int, char*)': BUILDSTDERR: IB_ATR.cpp:74:57: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 74 | imageBuf[destline + i] = colorTable[ bitmapBuf[esi+i] ]; BUILDSTDERR: | ~~~~~~~~~~~~~~~^ BUILDSTDERR: IB_ATRD.cpp: In function 'void IMGbltAreaTransRemapDecompress(char*, int, int, int, char*, int, int, int, int, char*)': BUILDSTDERR: IB_ATRD.cpp:92:6: warning: unused variable 'bitmapHeight' [-Wunused-variable] BUILDSTDERR: 92 | int bitmapHeight = ((unsigned char*)bitmapBuf)[2] + (((unsigned char*)bitmapBuf)[3]<<8); BUILDSTDERR: | ^~~~~~~~~~~~ BUILDSTDERR: IB_ATRDM.cpp: In function 'void IMGbltAreaTransRemapDecompressHMirror(char*, int, int, int, char*, int, int, int, int, char*)': BUILDSTDERR: IB_ATRDM.cpp:95:6: warning: unused variable 'bitmapHeight' [-Wunused-variable] BUILDSTDERR: 95 | int bitmapHeight = ((unsigned char*)bitmapBuf)[2] + (((unsigned char*)bitmapBuf)[3]<<8); BUILDSTDERR: | ^~~~~~~~~~~~ BUILDSTDERR: IB_TR.cpp: In function 'void IMGbltTransRemap(char*, int, int, int, char*, char*)': BUILDSTDERR: IB_TR.cpp:68:57: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 68 | imageBuf[destline + i] = colorTable[ bitmapBuf[esi+i] ]; BUILDSTDERR: | ~~~~~~~~~~~~~~~^ BUILDSTDERR: IC_R.cpp: In function 'void IMGcopyRemap(char*, int, char*, int, int, int, int, int, unsigned char*)': BUILDSTDERR: IC_R.cpp:56:54: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 56 | imageBuf[ dest + i ] = colorTable[ backBuf[src + i] ]; BUILDSTDERR: | ~~~~~~~~~~~~~~~^ BUILDSTDERR: IR.cpp: In function 'void IMGremap(char*, int, int, int, char*, unsigned char**)': BUILDSTDERR: IR.cpp:59:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 59 | colorTableArray[ al ][ imageBuf[destline+i] ]; BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~^ BUILDSTDERR: IR_A.cpp: In function 'void IMGremapArea(char*, int, int, int, char*, unsigned char**, int, int, int, int)': BUILDSTDERR: IR_A.cpp:59:43: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 59 | colorTableArray[ al ][ imageBuf[dest+i] ]; BUILDSTDERR: | ~~~~~~~~~~~~~~~^ BUILDSTDERR: IR_AM.cpp: In function 'void IMGremapAreaHMirror(char*, int, int, int, char*, unsigned char**, int, int, int, int)': BUILDSTDERR: IR_AM.cpp:60:43: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 60 | colorTableArray[ al ][ imageBuf[dest+i] ]; BUILDSTDERR: | ~~~~~~~~~~~~~~~^ BUILDSTDERR: IR_M.cpp: In function 'void IMGremapHMirror(char*, int, int, int, char*, unsigned char**)': BUILDSTDERR: IR_M.cpp:59:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 59 | colorTableArray[ al ][ imageBuf[destline+i] ]; BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~^ BUILDSTDERR: I_EREMAP.cpp: In function 'void IMGremap16x16(char*, int, int, int, char*, char**)': BUILDSTDERR: I_EREMAP.cpp:91:50: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 91 | table = colorTableArray[ maskPtr[ srcline + i ] ]; BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~^ BUILDSTDERR: I_EREMAP.cpp:85:6: warning: unused variable 'al' [-Wunused-variable] BUILDSTDERR: 85 | int al; BUILDSTDERR: | ^~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OAI_ATTK.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OAI_ACT2.cpp:28: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OAI_ACT.cpp:28: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OAI_ACT2.cpp: In member function 'int Nation::ai_assign_overseer(ActionNode*)': BUILDSTDERR: OAI_ACT2.cpp:151:12: warning: unused variable 'firmInfo' [-Wunused-variable] BUILDSTDERR: 151 | FirmInfo* firmInfo = firm_res[firmId]; BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OAI_ACT2.cpp: In member function 'int Nation::ai_assign_worker(ActionNode*)': BUILDSTDERR: OAI_ACT2.cpp:322:12: warning: unused variable 'firmInfo' [-Wunused-variable] BUILDSTDERR: 322 | FirmInfo* firmInfo = firm_res[firmId]; BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OAI_ACT.cpp: In member function 'int Nation::process_action(int, int)': BUILDSTDERR: OAI_ACT.cpp:203:8: warning: 'rc' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 203 | else if( rc== -1 ) // action failed, remove immediately if return -1 BUILDSTDERR: | ^~ BUILDSTDERR: OAI_ACT.cpp: In member function 'void Nation::action_finished(WORD, short int, int)': BUILDSTDERR: OAI_ACT.cpp:595:18: warning: 'actionNode' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 595 | if( actionNode->action_type != ACTION_FIXED ) BUILDSTDERR: | ~~~~~~~~~~~~^~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OBULLET.h:29, BUILDSTDERR: from AM.cpp:39: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OAI_BUIL.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OAI_CAP2.cpp:460:60: warning: "/*" within comment [-Wcomment] BUILDSTDERR: 460 | if( townPtr->nation_recno == targetTown->nation_recno ) //**BUGHERE BUILDSTDERR: | BUILDSTDERR: In file included from AM.cpp:70: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OAI_CAP2.cpp:28: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OAI_BUIL.cpp: In member function 'int Nation::ai_supported_inn_count()': BUILDSTDERR: OAI_BUIL.cpp:305:8: warning: unused variable 'fixedExpense' [-Wunused-variable] BUILDSTDERR: 305 | float fixedExpense = fixed_expense_365days(); BUILDSTDERR: | ^~~~~~~~~~~~ BUILDSTDERR: OAI_CAP2.cpp: In member function 'Town* Nation::think_capture_enemy_town_target(Town*)': BUILDSTDERR: OAI_CAP2.cpp:264:10: warning: unused variable 'ownNation' [-Wunused-variable] BUILDSTDERR: 264 | Nation* ownNation = nation_array[nation_recno]; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OAI_CAP2.cpp:267:8: warning: variable 'neededCombatLevel' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 267 | int neededCombatLevel=0; BUILDSTDERR: | ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OAI_CAPT.cpp:28: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OAI_DEFE.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OAI_CAPT.cpp: In member function 'int Nation::capture_expected_resistance(int, int*)': BUILDSTDERR: OAI_CAPT.cpp:228:6: warning: unused variable 'captureRating' [-Wunused-variable] BUILDSTDERR: 228 | int captureRating = 0; BUILDSTDERR: | ^~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OAI_DIPL.cpp:27: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OAI_ECO.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OAI_DIPL.cpp: In member function 'int Nation::think_request_cease_war()': BUILDSTDERR: OAI_DIPL.cpp:365:14: warning: variable 'nationPtr' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 365 | Nation* nationPtr; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OAI_DIPL.cpp: In member function 'int Nation::think_trade_treaty()': BUILDSTDERR: OAI_DIPL.cpp:479:13: warning: variable 'nationPtr' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 479 | Nation* nationPtr; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OAI_DIPL.cpp: In member function 'int Nation::think_declare_war()': BUILDSTDERR: OAI_DIPL.cpp:636:6: warning: unused variable 'rc' [-Wunused-variable] BUILDSTDERR: 636 | int rc=0; BUILDSTDERR: | ^~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from ../include/OF_CAMP.h:28, BUILDSTDERR: from OAI_GRAN.cpp:28: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OAI_GRAN.cpp: In member function 'int Nation::think_ally_against_big_enemy()': BUILDSTDERR: OAI_GRAN.cpp:724:10: warning: variable 'nationPtr' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 724 | Nation* nationPtr; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OAI_GRAN.cpp:726:18: warning: variable 'ourNationRelation' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 726 | NationRelation *ourNationRelation, *enemyNationRelation; BUILDSTDERR: | ^~~~~~~~~~~~~~~~~ BUILDSTDERR: OAI_GRAN.cpp:726:38: warning: variable 'enemyNationRelation' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 726 | NationRelation *ourNationRelation, *enemyNationRelation; BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OAI_GRAN.cpp: In member function 'int Nation::think_attack_enemy_firm(int, int)': BUILDSTDERR: OAI_GRAN.cpp:829:11: warning: unused variable 'nationPtr' [-Wunused-variable] BUILDSTDERR: 829 | Nation *nationPtr = nation_array[enemyNationRecno]; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from ../include/OF_MARK.h:28, BUILDSTDERR: from OAI_INFO.cpp:27: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OAI_MAIN.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OAI_INFO.cpp: In member function 'void Nation::update_ai_region()': BUILDSTDERR: OAI_INFO.cpp:251:35: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 251 | ai_region_array[ai_region_count++].region_id = townPtr->region_id; BUILDSTDERR: | ~~~~~~~~~~~~~~~^~ BUILDSTDERR: OAI_INFO.cpp: In member function 'void Nation::add_general_info(short int)': BUILDSTDERR: OAI_INFO.cpp:307:8: warning: unused variable 'unitPtr' [-Wunused-variable] BUILDSTDERR: 307 | Unit* unitPtr = unit_array[unitRecno]; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OAI_INFO.cpp: In member function 'void Nation::del_general_info(short int)': BUILDSTDERR: OAI_INFO.cpp:321:8: warning: unused variable 'unitPtr' [-Wunused-variable] BUILDSTDERR: 321 | Unit* unitPtr = unit_array[unitRecno]; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from ../include/OU_MARI.h:28, BUILDSTDERR: from OAI_MAR2.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from ../include/OU_MARI.h:28, BUILDSTDERR: from OAI_MAR3.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OAI_MAR2.cpp: In member function 'int Nation::ai_sea_travel3(ActionNode*)': BUILDSTDERR: OAI_MAR2.cpp:202:8: warning: variable 'unitCount' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 202 | short unitCount; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from ../include/OU_MARI.h:28, BUILDSTDERR: from OAI_MARI.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OAI_MAR3.cpp: In member function 'int Nation::ai_settle_to_region(int, int, int)': BUILDSTDERR: OAI_MAR3.cpp:96:6: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 96 | int loopCount=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from ../include/OF_CAMP.h:28, BUILDSTDERR: from OAI_MILI.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OAI_MARI.cpp: In member function 'int Nation::ai_build_harbor(int, int)': BUILDSTDERR: OAI_MARI.cpp:198:34: warning: variable 'bestYLoc' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 198 | int xLoc, yLoc, bestXLoc= -1, bestYLoc= -1, maxEnemyDistance=0; BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OAI_MARI.cpp:193:26: warning: 'townPtr' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 193 | int homeYLoc = townPtr->center_y; BUILDSTDERR: | ~~~~~~~~~^~~~~~~~ BUILDSTDERR: OAI_MAR3.cpp: In member function 'int Nation::think_move_to_region_with_mine()': BUILDSTDERR: OAI_MAR3.cpp:321:68: warning: 'sitePtr' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 321 | return ai_build_camp_town_next_to( sitePtr->map_x_loc-1, sitePtr->map_y_loc-1, BUILDSTDERR: | ~~~~~~~~~^~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from ../include/OF_MONS.h:28, BUILDSTDERR: from OAI_MONS.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from OAI_QUER.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OAI_SEEK.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from OAI_SPY.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from ../include/OF_MARK.h:28, BUILDSTDERR: from OAI_TALK.cpp:27: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OAI_TOWN.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OAI_TALK.cpp: In member function 'int Nation::consider_give_tribute(TalkMsg*)': BUILDSTDERR: OAI_TALK.cpp:767:6: warning: unused variable 'relationStatus' [-Wunused-variable] BUILDSTDERR: 767 | int relationStatus = get_relation_status(talkMsg->from_nation_recno); BUILDSTDERR: | ^~~~~~~~~~~~~~ BUILDSTDERR: OAI_SEEK.cpp: In member function 'int Nation::find_best_firm_loc(short int, short int, short int, short int&, short int&)': BUILDSTDERR: OAI_SEEK.cpp:450:26: warning: 'refX1' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 450 | short centerX, centerY, refX1, refY1, refX2, refY2; BUILDSTDERR: | ^~~~~ BUILDSTDERR: OAI_SEEK.cpp:450:33: warning: 'refY1' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 450 | short centerX, centerY, refX1, refY1, refX2, refY2; BUILDSTDERR: | ^~~~~ BUILDSTDERR: OAI_SEEK.cpp:517:9: warning: 'refY2' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 517 | refY2 -= firmLocHeight/2; BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~~~~~ BUILDSTDERR: OAI_SEEK.cpp:512:9: warning: 'refX2' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 512 | refX2 -= firmLocWidth/2; BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~~~~ BUILDSTDERR: OAI_SEEK.cpp:450:17: warning: 'centerY' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 450 | short centerX, centerY, refX1, refY1, refX2, refY2; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OAI_SEEK.cpp:450:8: warning: 'centerX' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 450 | short centerX, centerY, refX1, refY1, refX2, refY2; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPATH.h:37, BUILDSTDERR: from ../include/OU_CARA.h:33, BUILDSTDERR: from OAI_TRAD.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OAI_UNIT.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OBATTLE.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OBATTLE.cpp: In member function 'void Battle::create_ai_nation(int)': BUILDSTDERR: OBATTLE.cpp:395:7: warning: variable 'nationRecno' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 395 | int nationRecno; BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: OBATTLE.cpp: At global scope: BUILDSTDERR: OBATTLE.cpp:922:12: warning: 'int is_space(int, int, int, int, char)' defined but not used [-Wunused-function] BUILDSTDERR: 922 | static int is_space(int xLoc1, int yLoc1, int xLoc2, int yLoc2, char mobileType) BUILDSTDERR: | ^~~~~~~~ fig.status: creating src/imgfun/x86/Makefile config.status: creating src/openal/Makefile config.status: creating src/platform/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: debugging features: no Making all in data make[1]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/data' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/data' Making all in include make[1]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/include' make all-am make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/include' make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/include' make[1]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/include' Making all in src make[1]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src' Making all in enet make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/enet' CXX multiplayer.o AR libmultiplayer.a make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/enet' Making all in imgfun make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/imgfun' Making all in generic make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX CRC.o CXX IB.o CXX IB2.o CXX IB_32.o CXX IB_A.o CXX IB_AR.o CXX IB_AT.o CXX IB_ATD.o CXX IB_ATDM.o CXX IB_ATR.o CXX IB_ATRD.o CXX IB_ATRDM.o CXX IB_DW.o CXX IB_R.o CXX IB_RD.o CXX IB_T.o CXX IB_TD.o CXX IB_TDM.o CXX IB_TR.o CXX IB_TRD.o CXX IB_TRDM.o CXX IC.o CXX IC_R.o CXX IJ_T.o CXX IR.o CXX IR_A.o CXX IR_AM.o CXX IR_BAR.o CXX IR_M.o CXX I_BAR.o CXX I_BLACK.o CXX I_EMASK.o CXX I_EREMAP.o CXX I_FONT.o CXX I_FREMAP.o CXX I_LINE.o CXX I_PIXEL.o CXX I_READ.o CXX I_SNOW.o AR libimgfun_generic.a make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/imgfun' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/imgfun' make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/imgfun' Making all in openal make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/openal' CXX openal_audio.o CXX wav_stream.o AR libaudio_openal.a make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/openal' Making all in platform make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/platform' CXX windows.o AR libplatform.a make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/platform' Making all in curl make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/curl' CXX WebService.o AR libWebService.a make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/curl' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src' CXX AM.o CXX OAI_ACT.o CXX OAI_ACT2.o CXX OAI_ATTK.o CXX OAI_BUIL.o CXX OAI_CAP2.o CXX OAI_CAPT.o CXX OAI_DEFE.o CXX OAI_DIPL.o CXX OAI_ECO.o CXX OAI_GRAN.o CXX OAI_INFO.o CXX OAI_MAIN.o CXX OAI_MAR2.o CXX OAI_MAR3.o CXX OAI_MARI.o CXX OAI_MILI.o CXX OAI_MONS.o CXX OAI_QUER.o CXX OAI_SEEK.o CXX OAI_SPY.o CXX OAI_TALK.o CXX OAI_TOWN.o CXX OAI_TRAD.o CXX OAI_UNIT.o CXX OANLINE.o CXX OBATTLE.o CXX OBLOB.o CXX OBOX.o CXX OBULLET.o BUILDSTDERR: CXX OBULLETA.oIn file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OBULLET.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OBULLETA.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OBULLETA.cpp: In member function 'short int BulletArray::add_bullet(Unit*, Unit*)': BUILDSTDERR: OBULLETA.cpp:355:14: warning: unused variable 'attackInfo' [-Wunused-variable] BUILDSTDERR: 355 | AttackInfo *attackInfo = parentUnit->attack_info_array+parentUnit->cur_attack; BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OBULLETA.cpp: In member function 'short int BulletArray::add_bullet(Unit*, short int, short int)': BUILDSTDERR: OBULLETA.cpp:402:14: warning: unused variable 'attackInfo' [-Wunused-variable] BUILDSTDERR: 402 | AttackInfo *attackInfo = parentUnit->attack_info_array+parentUnit->cur_attack; BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OBULLET.cpp: In member function 'void Bullet::hit_wall(short int, short int)': BUILDSTDERR: OBULLET.cpp:423:3: warning: 'virtualUnit' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 423 | if(!virtualUnit) BUILDSTDERR: | ^~ BUILDSTDERR: OBULLETA.cpp: In member function 'int BulletArray::add_bullet_possible(short int, short int, char, short int, short int, char, short int, short int, short int&, short int&, char, short int)': BUILDSTDERR: OBULLETA.cpp:261:8: warning: 'leftXOffset' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 261 | short leftXOffset, leftYOffset; BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: OBULLETA.cpp:261:21: warning: 'leftYOffset' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 261 | short leftXOffset, leftYOffset; BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: OBULLETA.cpp:319:10: warning: 'rightYOffset' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 319 | rightY += rightYOffset; BUILDSTDERR: | ~~~~~~~^~~~~~~~~~~~~~~ BUILDSTDERR: OBULLETA.cpp:318:10: warning: 'rightXOffset' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 318 | rightX += rightXOffset; BUILDSTDERR: | ~~~~~~~^~~~~~~~~~~~~~~ BUILDSTDERR: OBULLETA.cpp: In member function 'short int BulletArray::add_bullet(Unit*, short int, short int)': BUILDSTDERR: OBULLETA.cpp:432:55: warning: 'height' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 432 | attackYLoc >= targetYLoc && attackYLoc < targetYLoc+height) BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OBULLETA.cpp:431:57: warning: 'width' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 431 | if(attackXLoc >= targetXLoc && attackXLoc < targetXLoc+width && BUILDSTDERR: | ^~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OBULLET.h:29, BUILDSTDERR: from ../include/OB_FLAME.h:28, BUILDSTDERR: from OB_FLAME.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OBULLET.h:29, BUILDSTDERR: from ../include/OB_HOMIN.h:27, BUILDSTDERR: from OB_HOMIN.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OBUTTON.cpp: In member function 'void Button::wait_press(int)': BUILDSTDERR: OBUTTON.cpp:481:34: warning: 'lastMouseY' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 481 | if( lastMouseX == mouse.cur_x && lastMouseY == mouse.cur_y ) BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OBULLET.h:29, BUILDSTDERR: from ../include/OB_PROJ.h:27, BUILDSTDERR: from OB_PROJ.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OB_PROJ.cpp: In member function 'virtual void Projectile::init(char, short int, short int, short int, char)': BUILDSTDERR: OB_PROJ.cpp:82:15: warning: unused variable 'spriteFrame' [-Wunused-variable] BUILDSTDERR: 82 | SpriteFrame* spriteFrame = cur_sprite_frame(); BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OCONFIG.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from ../include/ONATIONA.h:32, BUILDSTDERR: from OCRC_STO.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: ODATE.cpp: In member function 'int DateInfo::get_date(long int, char)': BUILDSTDERR: ODATE.cpp:154:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 154 | if (year%4 == 0 && year%100 != 0 || year%400 == 0) BUILDSTDERR: | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ BUILDSTDERR: ODATE.cpp: In member function 'char* DateInfo::date_str(long int, int)': BUILDSTDERR: ODATE.cpp:224:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 224 | if (year%4 == 0 && year%100 != 0 || year%400 == 0) BUILDSTDERR: | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ BUILDSTDERR: ODATE.cpp: In member function 'int DateInfo::day_year(int, int, int)': BUILDSTDERR: ODATE.cpp:285:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 285 | isLeap = ( year%4 == 0 && year%100 != 0 || year%400 == 0 ) ? 1 : 0 ; BUILDSTDERR: | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ BUILDSTDERR: ODATE.cpp: In member function 'int DateInfo::month_day(int, int, int&, int&)': BUILDSTDERR: ODATE.cpp:333:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 333 | isLeap = ( year%4 == 0 && year%100 != 0 || year%400 == 0 ) ? 1 : 0 ; BUILDSTDERR: | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ODYNARRB.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OEFFECT.h:27, BUILDSTDERR: from OEFFECT.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OERRCTRL.cpp: In member function 'int ErrorControl::send(char, void*, long unsigned int)': BUILDSTDERR: OERRCTRL.cpp:131:19: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 131 | toDPid = dp_id[ecPlayerId]; BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OERRCTRL.cpp: In member function 'char* ErrorControl::receive(char*, uint32_t*)': BUILDSTDERR: OERRCTRL.cpp:183:33: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 183 | char *dataPtr = receive_queue[recv_head].queue_buf; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OERRCTRL.cpp:184:29: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 184 | DWORD len = receive_queue[recv_head].length(); BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OERRCTRL.cpp: In member function 'void ErrorControl::yield()': BUILDSTDERR: OERRCTRL.cpp:294:45: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 294 | for( ; recv_flag[ecMsg.sender_id-1][scanFrame]; inc_frame_id(scanFrame) ) BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OERRCTRL.cpp:365:45: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 365 | for( ; recv_flag[ecMsg.sender_id-1][scanFrame]; inc_frame_id(scanFrame) ) BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OERRCTRL.cpp:443:40: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 443 | char *replyMsg = send_queue[ecMsg.frame_id].queue_buf; BUILDSTDERR: | ~~~~~~^~~~~~~~ BUILDSTDERR: OERRCTRL.cpp:444:40: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 444 | DWORD replyLen = send_queue[ecMsg.frame_id].length(); BUILDSTDERR: | ~~~~~~^~~~~~~~ BUILDSTDERR: OERRCTRL.cpp: In member function 'void ErrorControl::en_recv_queue(void*, long unsigned int)': BUILDSTDERR: OERRCTRL.cpp:580:17: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 580 | receive_queue[f].clear(); BUILDSTDERR: | ^ BUILDSTDERR: OERRCTRL.cpp:581:25: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 581 | memcpy( receive_queue[f].reserve(dataLen), dataPtr, dataLen); BUILDSTDERR: | ^ BUILDSTDERR: OERRCTRL.cpp: In member function 'void ErrorControl::set_ack(char, char)': BUILDSTDERR: OERRCTRL.cpp:599:11: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 599 | ack_flag[frameId][ecPlayerId-1] = 1; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OERRCTRL.cpp: In member function 'void ErrorControl::clear_ack(char)': BUILDSTDERR: OERRCTRL.cpp:604:19: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 604 | memset( ack_flag[frameId], 0, MAX_PLAYER ); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OERRCTRL.cpp: In member function 'void ErrorControl::mark_send_time(char, long unsigned int)': BUILDSTDERR: OERRCTRL.cpp:609:12: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 609 | send_time[frameId] = misc.get_time(); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OERRCTRL.cpp:610:16: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 610 | re_send_after[frameId] = duration; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OERRCTRL.cpp: In member function 'int ErrorControl::need_re_send(char, int)': BUILDSTDERR: OERRCTRL.cpp:616:39: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 616 | return ((misc.get_time() - send_time[frameId]) * promptFactor) >= re_send_after[frameId]; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OERRCTRL.cpp:616:82: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 616 | return ((misc.get_time() - send_time[frameId]) * promptFactor) >= re_send_after[frameId]; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OERRCTRL.cpp: In member function 'int ErrorControl::are_all_acked(char)': BUILDSTDERR: OERRCTRL.cpp:626:40: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 626 | if( dp_id[ecPlayerId-1] && !ack_flag[frameId][ecPlayerId-1] ) BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OERRCTRL.cpp: In member function 'int ErrorControl::is_waiting_receive(char, char)': BUILDSTDERR: OERRCTRL.cpp:645:31: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 645 | && !recv_flag[ecPlayerId-1][frameId]; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OERRCTRL.cpp: In member function 'void ErrorControl::set_recv_flag(char, char)': BUILDSTDERR: OERRCTRL.cpp:650:26: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 650 | recv_flag[ecPlayerId-1][frameId] = 1; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OERRCTRL.cpp: In member function 'void ErrorControl::clear_recv_flag(char, char)': BUILDSTDERR: OERRCTRL.cpp:656:26: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 656 | recv_flag[ecPlayerId-1][frameId] = 0; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OERRCTRL.cpp: In member function 'void ErrorControl::re_transmit(int)': BUILDSTDERR: OERRCTRL.cpp:669:29: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 669 | char *ecMsg = send_queue[f].queue_buf; BUILDSTDERR: | ^ BUILDSTDERR: OERRCTRL.cpp:670:32: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 670 | DWORD ecMsgLen = send_queue[f].length(); BUILDSTDERR: | ^ BUILDSTDERR: OERRCTRL.cpp:675:42: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 675 | if( dp_id[ecPlayerId-1] && !ack_flag[f][ecPlayerId-1] ) BUILDSTDERR: | ^ BUILDSTDERR: OFILE.cpp: In member function 'int File::file_read(void*, unsigned int)': BUILDSTDERR: OFILE.cpp:248:7: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 248 | fread(dataBuf, 1, bytesToRead, file_handle); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OFILE.cpp: In member function 'int16_t File::file_get_short()': BUILDSTDERR: 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] BUILDSTDERR: 300 | fread(&value, 1, sizeof(int16_t), file_handle); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OFILE.cpp: In member function 'uint16_t File::file_get_unsigned_short()': BUILDSTDERR: 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] BUILDSTDERR: 337 | fread(&value, 1, sizeof(uint16_t), file_handle); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OFILE.cpp: In member function 'int32_t File::file_get_long()': BUILDSTDERR: OFILE.cpp:374:10: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 374 | fread(&value, 1, sizeof(int32_t), file_handle); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from OEXPMASK.cpp:28: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from OFIRM2.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from ../include/OF_INN.h:28, BUILDSTDERR: from OFIRMAI.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OFIRM.cpp:28: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OFIRMA.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OFIRM2.cpp: In member function 'void Firm::kill_worker(int)': BUILDSTDERR: OFIRM2.cpp:86:8: warning: unused variable 'unitRecno' [-Wunused-variable] BUILDSTDERR: 86 | int unitRecno = 0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OFIRM.cpp: In member function 'virtual void Firm::assign_overseer(int)': BUILDSTDERR: OFIRM.cpp:648:7: warning: unused variable 'originalXLoc' [-Wunused-variable] BUILDSTDERR: 648 | int originalXLoc = unitPtr->next_x_loc(); BUILDSTDERR: | ^~~~~~~~~~~~ BUILDSTDERR: OFIRM.cpp:649:7: warning: unused variable 'originalYLoc' [-Wunused-variable] BUILDSTDERR: 649 | int originalYLoc = unitPtr->next_y_loc(); BUILDSTDERR: | ^~~~~~~~~~~~ BUILDSTDERR: OFIRM.cpp:607:6: warning: unused variable 'oldOverseerRecno' [-Wunused-variable] BUILDSTDERR: 607 | int oldOverseerRecno = overseer_recno; BUILDSTDERR: | ^~~~~~~~~~~~~~~~ BUILDSTDERR: OFIRM.cpp: In member function 'virtual void Firm::assign_worker(int)': BUILDSTDERR: OFIRM.cpp:958:39: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct Worker'; use assignment or value-initialization instead [-Wclass-memaccess] BUILDSTDERR: 958 | memset( workerPtr, 0, sizeof(Worker) ); BUILDSTDERR: | ^ BUILDSTDERR: In file included from OFIRM.cpp:40: BUILDSTDERR: ../include/OFIRM.h:94:8: note: 'struct Worker' declared here BUILDSTDERR: 94 | struct Worker BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OFIRM.cpp: In member function 'int Firm::find_settle_town()': BUILDSTDERR: OFIRM.cpp:1118:11: warning: unused variable 'nationPtr' [-Wunused-variable] BUILDSTDERR: 1118 | Nation* nationPtr = nation_array[nation_recno]; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OFIRM.cpp: In member function 'int Firm::year_expense()': BUILDSTDERR: OFIRM.cpp:1863:6: warning: unused variable 'payWorkerCount' [-Wunused-variable] BUILDSTDERR: 1863 | int payWorkerCount=0; BUILDSTDERR: | ^~~~~~~~~~~~~~ BUILDSTDERR: OFIRM.cpp: In member function 'virtual int Firm::pull_town_people(int, char, int, int)': BUILDSTDERR: OFIRM.cpp:2095:41: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct Worker'; use assignment or value-initialization instead [-Wclass-memaccess] BUILDSTDERR: 2095 | memset( workerPtr, 0, sizeof(Worker) ); BUILDSTDERR: | ^ BUILDSTDERR: In file included from OFIRM.cpp:40: BUILDSTDERR: ../include/OFIRM.h:94:8: note: 'struct Worker' declared here BUILDSTDERR: 94 | struct Worker BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OFIRM.cpp:2030:11: warning: unused variable 'popAdded' [-Wunused-variable] BUILDSTDERR: 2030 | int i, popAdded=0; BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OFIRM.cpp: In member function 'void Firm::update_worker()': BUILDSTDERR: OFIRM.cpp:2291:8: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 2291 | int loopCount=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OFIRM.cpp: In member function 'int Firm::create_worker_unit(Worker&)': BUILDSTDERR: OFIRM.cpp:2442:12: warning: unused variable 'unitInfo' [-Wunused-variable] BUILDSTDERR: 2442 | UnitInfo *unitInfo = unit_res[unitId]; BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OFIRM.cpp: In member function 'void Firm::mobilize_all_workers(char)': BUILDSTDERR: OFIRM.cpp:2558:8: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 2558 | int loopCount = 0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OFIRM.cpp: In member function 'void Firm::resign_all_worker(int)': BUILDSTDERR: OFIRM.cpp:2604:8: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 2604 | int loopCount=0, townRecno, raceId; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OFIRM.cpp: In member function 'void Firm::think_worker_migrate()': BUILDSTDERR: OFIRM.cpp:2705:8: warning: unused variable 'firmXLoc' [-Wunused-variable] BUILDSTDERR: 2705 | int firmXLoc = center_x, firmYLoc = center_y; BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OFIRM.cpp:2705:29: warning: unused variable 'firmYLoc' [-Wunused-variable] BUILDSTDERR: 2705 | int firmXLoc = center_x, firmYLoc = center_y; BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OFIRMA.cpp: In member function 'void FirmArray::del_firm(int)': BUILDSTDERR: OFIRMA.cpp:310:6: warning: unused variable 'xLoc' [-Wunused-variable] BUILDSTDERR: 310 | int xLoc = firmPtr->center_x; BUILDSTDERR: | ^~~~ BUILDSTDERR: OFIRMA.cpp:311:6: warning: unused variable 'yLoc' [-Wunused-variable] BUILDSTDERR: 311 | int yLoc = firmPtr->center_y; BUILDSTDERR: | ^~~~ BUILDSTDERR: OFIRM.cpp: In member function 'void Firm::setup_link()': BUILDSTDERR: OFIRM.cpp:3050:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 3050 | linked_firm_array[linked_firm_count] = firmRecno; BUILDSTDERR: | ^~~~~~~~~~~~~~~~~ BUILDSTDERR: OFIRM.cpp:3051:29: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 3051 | linked_firm_enable_array[linked_firm_count] = defaultLinkStatus; BUILDSTDERR: | ^~~~~~~~~~~~~~~~~ BUILDSTDERR: OFIRM.cpp:3068:40: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 3068 | firmPtr->linked_firm_array[firmPtr->linked_firm_count] = firm_recno; BUILDSTDERR: | ~~~~~~~~~^~~~~~~~~~~~~~~~~ BUILDSTDERR: OFIRM.cpp:3069:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 3069 | firmPtr->linked_firm_enable_array[firmPtr->linked_firm_count] = defaultLinkStatus; BUILDSTDERR: | ~~~~~~~~~^~~~~~~~~~~~~~~~~ BUILDSTDERR: OFIRM.cpp:3145:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 3145 | linked_town_array[linked_town_count] = townRecno; BUILDSTDERR: | ^~~~~~~~~~~~~~~~~ BUILDSTDERR: OFIRM.cpp:3146:29: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 3146 | linked_town_enable_array[linked_town_count] = defaultLinkStatus; BUILDSTDERR: | ^~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from ../include/OFIRMRES.h:32, BUILDSTDERR: from OFIRMDIE.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OFIRMAI.cpp: In member function 'int Firm::think_capture()': BUILDSTDERR: OFIRMAI.cpp:509:30: warning: 'nationPtr' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 509 | nationPtr->ai_attack_target( bestTarget->loc_x1, bestTarget->loc_y1, BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 510 | ((FirmCamp*)bestTarget)->total_combat_level(), 0, 0, 0, 0, useAllCamp ); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OFIRMDRW.cpp:27: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OFIRMIF2.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OFIRMIF.cpp:34: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OFIRMIF.cpp: In member function 'void Firm::disp_basic_info(int, int)': BUILDSTDERR: OFIRMIF.cpp:225:6: warning: variable 'sliderX1' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 225 | int sliderX1, sliderX2; BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OFIRMIF.cpp:225:16: warning: variable 'sliderX2' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 225 | int sliderX1, sliderX2; BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OFIRMIF.cpp: In member function 'void Firm::disp_worker_list(int, int)': BUILDSTDERR: OFIRMIF.cpp:362:6: warning: variable 'overseerRaceId' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 362 | int overseerRaceId=0; BUILDSTDERR: | ^~~~~~~~~~~~~~ BUILDSTDERR: OFIRMIF.cpp: In member function 'int Firm::detect_worker_list()': BUILDSTDERR: OFIRMIF.cpp:487:6: warning: unused variable 'liveInTown' [-Wunused-variable] BUILDSTDERR: 487 | int liveInTown = firm_res[firm_id]->live_in_town; BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OFIRMIF.cpp: In member function 'void Firm::disp_worker_info(int, int)': BUILDSTDERR: OFIRMIF.cpp:580:41: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] BUILDSTDERR: 580 | if( lastSelected != selected_worker_id > 0 ) BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~^~~ BUILDSTDERR: OFIRMDRW.cpp: In member function 'virtual void Firm::draw_full_size(int)': BUILDSTDERR: OFIRMDRW.cpp:210:7: warning: unused variable 'hitPerPixel' [-Wunused-variable] BUILDSTDERR: 210 | int hitPerPixel = (int) max_hit_points / bitmapWidth / bitmapHeight / 2; BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: OFIRMDRW.cpp: In member function 'int Firm::draw_detect_link_line(int)': BUILDSTDERR: OFIRMDRW.cpp:318:12: warning: unused variable 'firmInfo' [-Wunused-variable] BUILDSTDERR: 318 | FirmInfo* firmInfo = firm_res[firm_id]; BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OFIRMRES.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OFIRMIF3.cpp:27: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OFIRMIF3.cpp: In member function 'void Firm::disp_bribe_menu(int)': BUILDSTDERR: OFIRMIF3.cpp:110:7: warning: unused variable 'x' [-Wunused-variable] BUILDSTDERR: 110 | int x=INFO_X1+4, y=INFO_Y1+4, y2=y+font_san.height()-1; BUILDSTDERR: | ^ BUILDSTDERR: OFIRMIF3.cpp: In member function 'void Firm::disp_assassinate_result(int)': BUILDSTDERR: OFIRMIF3.cpp:539:6: warning: unused variable 'x' [-Wunused-variable] BUILDSTDERR: 539 | int x=INFO_X1+4, y=INFO_Y1+4, y2=y+font_san.height()-1; BUILDSTDERR: | ^ BUILDSTDERR: OFIRMIF3.cpp: In member function 'int Firm::spy_bribe_succeed_chance(int, short int, short int)': BUILDSTDERR: OFIRMIF3.cpp:443:51: warning: 'unitCommandPower' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 443 | succeedChance = spyPtr->spy_skill - unitLoyalty - unitCommandPower BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ BUILDSTDERR: OFIRMIF3.cpp:435:2: warning: 'targetSpyRecno' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 435 | if( targetSpyRecno ) // if the bribe target is also a spy BUILDSTDERR: | ^~ BUILDSTDERR: OFIRMIF3.cpp:452:31: warning: 'unitRaceId' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 452 | race_res.is_same_race(spyKingRaceId, unitRaceId) * 10; BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OFIRMIF3.cpp:464:33: warning: 'unitLoyalty' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 464 | succeedChance -= (unitLoyalty-90); BUILDSTDERR: | ~~~~~~~~~~~~^~~~ BUILDSTDERR: OFIRMIF3.cpp: In member function 'void Firm::disp_bribe_unit(int)': BUILDSTDERR: OFIRMIF3.cpp:486:36: warning: 'rankId' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 486 | int raceId, unitLoyalty, unitId, rankId; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OFIRMIF3.cpp:517:14: warning: 'unitName' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 517 | font_san.put( x+UNIT_LARGE_ICON_WIDTH+6, y+4, unitName ); BUILDSTDERR: | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OMATRIX.h:28, BUILDSTDERR: from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OFIRMIF3.cpp:27: BUILDSTDERR: ../include/OUNITRES.h:371:70: warning: 'unitId' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 371 | UnitInfo* operator[](int unitId) { return unit_info_array+unitId-1; } BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OFIRMIF3.cpp:486:28: note: 'unitId' was declared here BUILDSTDERR: 486 | int raceId, unitLoyalty, unitId, rankId; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OFIRMIF3.cpp:525:9: warning: 'unitLoyalty' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 525 | str += unitLoyalty; BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OFONT.cpp:33: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OF_BASE.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OF_BASE2.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OF_CAMP.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OF_CAMP.cpp:43: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OF_CAMP2.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OF_CAMP.cpp: In member function 'void FirmCamp::train_unit()': BUILDSTDERR: OF_CAMP.cpp:657:12: warning: unused variable 'overseerRaceInfo' [-Wunused-variable] BUILDSTDERR: 657 | RaceInfo* overseerRaceInfo = race_res[overseerUnit->race_id]; BUILDSTDERR: | ^~~~~~~~~~~~~~~~ BUILDSTDERR: OF_CAMP.cpp: In member function 'void FirmCamp::patrol()': BUILDSTDERR: OF_CAMP.cpp:880:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 880 | patrol_unit_array[patrol_unit_count++] = overseerRecno; BUILDSTDERR: | ~~~~~~~~~~~~~~~~~^~ BUILDSTDERR: OF_CAMP.cpp: In member function 'int FirmCamp::patrol_all_soldier()': BUILDSTDERR: OF_CAMP.cpp:935:39: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 935 | patrol_unit_array[patrol_unit_count++] = unitRecno; BUILDSTDERR: | ~~~~~~~~~~~~~~~~~^~ BUILDSTDERR: OF_CAMP.cpp: In member function 'void FirmCamp::defense(short int, int)': BUILDSTDERR: OF_CAMP.cpp:1035:6: warning: unused variable 'numOfUnitInside' [-Wunused-variable] BUILDSTDERR: 1035 | int numOfUnitInside = worker_count + (overseer_recno>0); BUILDSTDERR: | ^~~~~~~~~~~~~~~ BUILDSTDERR: OF_CAMP.cpp: At global scope: BUILDSTDERR: OF_CAMP.cpp:62:13: warning: 'void disp_debug_info(FirmCamp*, int)' declared 'static' but never defined [-Wunused-function] BUILDSTDERR: 62 | static void disp_debug_info(FirmCamp* firmPtr, int refreshFlag); BUILDSTDERR: | ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OF_FACT.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OF_CAMP2.cpp: In member function 'int FirmCamp::ai_recruit(int)': BUILDSTDERR: OF_CAMP2.cpp:431:6: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 431 | int loopCount=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OF_CAMP2.cpp: In member function 'int FirmCamp::ai_combat_level_needed()': BUILDSTDERR: OF_CAMP2.cpp:493:10: warning: unused variable 'nationPtr' [-Wunused-variable] BUILDSTDERR: 493 | Nation* nationPtr = nation_array[nation_recno]; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OF_CAMP2.cpp: In member function 'int FirmCamp::think_capture_target_town()': BUILDSTDERR: OF_CAMP2.cpp:735:8: warning: unused variable 'prefPeacefulness' [-Wunused-variable] BUILDSTDERR: 735 | int prefPeacefulness = nation_array[nation_recno]->pref_peacefulness; BUILDSTDERR: | ^~~~~~~~~~~~~~~~ BUILDSTDERR: OF_CAMP2.cpp: In member function 'int FirmCamp::think_capture_use_spy(Town*)': BUILDSTDERR: OF_CAMP2.cpp:1001:10: warning: unused variable 'ownNation' [-Wunused-variable] BUILDSTDERR: 1001 | Nation* ownNation = nation_array[nation_recno]; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OF_FACT2.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OF_HARB.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OF_HARB2.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OF_HARB.cpp:36: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OF_INN.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OF_INN2.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OF_HARB2.cpp: In member function 'int FirmHarbor::think_trade()': BUILDSTDERR: OF_HARB2.cpp:196:59: warning: 'firmHarbor' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 196 | unitMarine->set_stop( 2, firmHarbor->loc_x1, firmHarbor->loc_y1, COMMAND_AI); BUILDSTDERR: | ~~~~~~~~~~~~^~~~~~ BUILDSTDERR: OF_HARB.cpp: In member function 'void FirmHarbor::detect_build_menu()': BUILDSTDERR: OF_HARB.cpp:815:18: warning: unused variable 'x' [-Wunused-variable] BUILDSTDERR: 815 | int unitId, x=INFO_X1+2, y=INFO_Y1, rc, quitFlag; BUILDSTDERR: | ^ BUILDSTDERR: OF_HARB.cpp:816:12: warning: variable 'unitInfo' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 816 | UnitInfo* unitInfo; BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OF_HARB.cpp: In member function 'void FirmHarbor::disp_build_info(int)': BUILDSTDERR: OF_HARB.cpp:1006:6: warning: unused variable 'dispY1' [-Wunused-variable] BUILDSTDERR: 1006 | int dispY1 = INFO_Y1+26; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OF_HARB.cpp: In member function 'void FirmHarbor::update_linked_firm_info()': BUILDSTDERR: OF_HARB.cpp:1164:24: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 1164 | linked_mine_array[linked_mine_num] = firmPtr->firm_recno; BUILDSTDERR: | ^~~~~~~~~~~~~~~ BUILDSTDERR: OF_HARB.cpp:1173:27: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 1173 | linked_factory_array[linked_factory_num] = firmPtr->firm_recno; BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: OF_HARB.cpp:1182:26: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 1182 | linked_market_array[linked_market_num] = firmPtr->firm_recno; BUILDSTDERR: | ^~~~~~~~~~~~~~~~~ BUILDSTDERR: OF_HARB.cpp:1147:10: warning: variable 'nationPtr' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 1147 | Nation *nationPtr; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OF_HARB.cpp: In member function 'void FirmHarbor::add_queue(int, int)': BUILDSTDERR: OF_HARB.cpp:1224:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 1224 | build_queue_array[build_queue_count++] = unitId; BUILDSTDERR: | ~~~~~~~~~~~~~~~~~^~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OF_MARK.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OF_MARK2.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OF_MINE.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OF_MARK2.cpp: In member function 'virtual void FirmMarket::ai_update_link_status()': BUILDSTDERR: OF_MARK2.cpp:191:10: warning: unused variable 'nationPtr' [-Wunused-variable] BUILDSTDERR: 191 | Nation* nationPtr = nation_array[nation_recno]; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OF_MARK2.cpp: In member function 'int FirmMarket::think_import_specific_product(int)': BUILDSTDERR: OF_MARK2.cpp:415:7: warning: unused variable 'canHireCaravan' [-Wunused-variable] BUILDSTDERR: 415 | int canHireCaravan = can_hire_caravan(); BUILDSTDERR: | ^~~~~~~~~~~~~~ BUILDSTDERR: OF_MARK.cpp: In member function 'virtual void FirmMarket::detect_info()': BUILDSTDERR: OF_MARK.cpp:287:18: warning: unused variable 'marketGoods' [-Wunused-variable] BUILDSTDERR: 287 | MarketGoods* marketGoods = market_goods_array+i; BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: OF_MARK.cpp: In member function 'short int FirmMarket::hire_caravan(char)': BUILDSTDERR: OF_MARK.cpp:344:10: warning: unused variable 'nationPtr' [-Wunused-variable] BUILDSTDERR: 344 | Nation *nationPtr = nation_array[nation_recno]; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OF_MINE2.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OF_MONS.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OF_RESE.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OF_MONS.cpp: In member function 'virtual void FirmMonster::deinit_derived()': BUILDSTDERR: OF_MONS.cpp:111:6: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 111 | int loopCount=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OF_MONS.cpp: In member function 'void FirmMonster::disp_monster_info(int, int)': BUILDSTDERR: OF_MONS.cpp:180:6: warning: unused variable 'x' [-Wunused-variable] BUILDSTDERR: 180 | int x=INFO_X1+4, y=dispY1+3; BUILDSTDERR: | ^ BUILDSTDERR: OF_MONS.cpp:180:19: warning: unused variable 'y' [-Wunused-variable] BUILDSTDERR: 180 | int x=INFO_X1+4, y=dispY1+3; BUILDSTDERR: | ^ BUILDSTDERR: OF_MONS.cpp: In member function 'virtual void FirmMonster::assign_unit(int)': BUILDSTDERR: OF_MONS.cpp:308:12: warning: unused variable 'unitInfo' [-Wunused-variable] BUILDSTDERR: 308 | UnitInfo* unitInfo = unit_res[unitPtr->unit_id]; BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OF_MONS.cpp: In member function 'void FirmMonster::add_general(int)': BUILDSTDERR: OF_MONS.cpp:358:12: warning: unused variable 'unitInfo' [-Wunused-variable] BUILDSTDERR: 358 | UnitInfo* unitInfo = unit_res[unitPtr->unit_id]; BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OF_MONS.cpp: In member function 'void FirmMonster::add_soldier(int)': BUILDSTDERR: OF_MONS.cpp:427:46: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 427 | waiting_soldier_array[waiting_soldier_count++] = generalUnitRecno; // the soldier is waiting for this general. BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~^~ BUILDSTDERR: OF_MONS.cpp: In member function 'int FirmMonster::mobilize_general(int, int)': BUILDSTDERR: OF_MONS.cpp:557:40: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 557 | patrol_unit_array[patrol_unit_count++] = unitRecno; BUILDSTDERR: | ~~~~~~~~~~~~~~~~~^~ BUILDSTDERR: OF_MONS.cpp: In member function 'int FirmMonster::think_attack_neighbor()': BUILDSTDERR: OF_MONS.cpp:909:9: warning: unused variable 'totalCombatLevel' [-Wunused-variable] BUILDSTDERR: 909 | int totalCombatLevel=0; BUILDSTDERR: | ^~~~~~~~~~~~~~~~ BUILDSTDERR: OF_MONS.cpp: In member function 'int FirmMonster::think_attack_human()': BUILDSTDERR: OF_MONS.cpp:1071:9: warning: unused variable 'totalCombatLevel' [-Wunused-variable] BUILDSTDERR: 1071 | int totalCombatLevel=0; BUILDSTDERR: | ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OF_RESE2.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OF_WAR.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OF_RESE.cpp: In member function 'void FirmResearch::research_complete()': BUILDSTDERR: OF_RESE.cpp:592:8: warning: unused variable 'techId' [-Wunused-variable] BUILDSTDERR: 592 | short techId = tech_id; // backup tech_id BUILDSTDERR: | ^~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OF_WAR2.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OF_WAR.cpp: In member function 'void FirmWar::detect_build_menu()': BUILDSTDERR: OF_WAR.cpp:295:18: warning: unused variable 'x' [-Wunused-variable] BUILDSTDERR: 295 | int unitId, x=INFO_X1+2, y=INFO_Y1, rc, quitFlag; BUILDSTDERR: | ^ BUILDSTDERR: OF_WAR.cpp:296:12: warning: variable 'unitInfo' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 296 | UnitInfo* unitInfo; BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OF_WAR.cpp: In member function 'void FirmWar::add_queue(int, int)': BUILDSTDERR: OF_WAR.cpp:602:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 602 | build_queue_array[build_queue_count++] = unitId; BUILDSTDERR: | ~~~~~~~~~~~~~~~~~^~ BUILDSTDERR: OGAMENCY.cpp: In function 'int disp_picture(int, int, int)': BUILDSTDERR: OGAMENCY.cpp:585:84: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 585 | filename2[0] && misc.is_file_exist(filename2) && pictFile.file_open(filename2,0) && (palNamePtr = palname2) || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGAMENCY.cpp: At global scope: BUILDSTDERR: OGAMENCY.cpp:131:12: warning: 'fryhtan_page' defined but not used [-Wunused-variable] BUILDSTDERR: 131 | static int fryhtan_page; BUILDSTDERR: | ^~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OGAMEMP.cpp:33: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPATH.h:37, BUILDSTDERR: from ../include/OU_CARA.h:33, BUILDSTDERR: from ../include/OUNITALL.h:27, BUILDSTDERR: from OGAME.cpp:32: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OGAME.cpp:34: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGAMEMP.cpp: In constructor 'MpStructLoadGameNewPlayer::MpStructLoadGameNewPlayer(Nation*, DWORD, long int, char*, char*)': BUILDSTDERR: OGAMEMP.cpp:339:8: warning: 'MpStructLoadGameNewPlayer::random_seed' will be initialized after [-Wreorder] BUILDSTDERR: 339 | long random_seed; BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: OGAMEMP.cpp:331:11: warning: 'uint32_t MpStructLoadGameNewPlayer::ver1' [-Wreorder] BUILDSTDERR: 331 | uint32_t ver1; BUILDSTDERR: | ^~~~ BUILDSTDERR: OGAMEMP.cpp:343:2: warning: when initialized here [-Wreorder] BUILDSTDERR: 343 | MpStructLoadGameNewPlayer(Nation *n, DWORD frame, long seed, char *name, char *pass) : BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGAMEMP.cpp: In member function 'int Game::input_name_pass(const char**, char*, int, char*, int)': BUILDSTDERR: OGAMEMP.cpp:1673:6: warning: variable 'titleWidth' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 1673 | int titleWidth, titleHeight, fieldDesWidth, field_x_pos, boxWidth, boxHeight, buttonWidth1, ret; BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OGAMEMP.cpp:1673:46: warning: variable 'field_x_pos' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 1673 | int titleWidth, titleHeight, fieldDesWidth, field_x_pos, boxWidth, boxHeight, buttonWidth1, ret; BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from ../include/OGFILE.h:36, BUILDSTDERR: from OGAMEND.cpp:38: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGAMEMP.cpp: In member function 'int Game::mp_select_option(NewNationPara*, int*)': BUILDSTDERR: OGAMEMP.cpp:3636:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] BUILDSTDERR: 3636 | if( keyCode = mapIdField.detect() ) BUILDSTDERR: | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGAMEMP.cpp: In member function 'int Game::mp_select_load_option(char*)': BUILDSTDERR: OGAMEMP.cpp:5599:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 5599 | !nationPtr->is_own() && !nationPtr->is_remote() || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGAMEMP.cpp:4319:11: warning: variable 'hostPlayerId' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 4319 | PID_TYPE hostPlayerId = 0; BUILDSTDERR: | ^~~~~~~~~~~~ BUILDSTDERR: OGAMEMP.cpp:4334:6: warning: unused variable 'shareRace' [-Wunused-variable] BUILDSTDERR: 4334 | int shareRace = 1; // host only, 0= exclusive race of each player BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OGAME.cpp: In member function 'int Game::init(int)': BUILDSTDERR: OGAME.cpp:116:6: warning: unused variable 'originalRandomSeed' [-Wunused-variable] BUILDSTDERR: 116 | int originalRandomSeed = misc.get_random_seed(); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGAMEMP.cpp: At global scope: BUILDSTDERR: OGAMEMP.cpp:527:13: warning: 'void ingame_disconnect_handler(DWORD)' defined but not used [-Wunused-function] BUILDSTDERR: 527 | static void ingame_disconnect_handler(DWORD playerId) BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGAMEMP.cpp:506:13: warning: 'void pregame_disconnect_handler(DWORD)' defined but not used [-Wunused-function] BUILDSTDERR: 506 | static void pregame_disconnect_handler(DWORD playerId) BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OGAMHALL.cpp:35: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from ../include/OGFILE.h:36, BUILDSTDERR: from OGAMMAIN.cpp:35: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGAMEMP.cpp: In member function 'int Game::mp_select_session()': BUILDSTDERR: OGAMEMP.cpp:2082:64: warning: 'refreshTime' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 2082 | if( !(mouse.skey_state & SHIFT_KEY_MASK) && misc.get_time() - refreshTime > pollTime ) BUILDSTDERR: | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OGAMMENU.cpp:34: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OGAMSCE2.cpp:38: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/ALL.h:33, BUILDSTDERR: from ../include/OSYS.h:27, BUILDSTDERR: from OGAMSCE2.cpp:25: BUILDSTDERR: OGAMSCE2.cpp: In member function 'int Game::select_scenario(int, ScenInfo*)': BUILDSTDERR: OGAMSCE2.cpp:235:62: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 235 | pathName = DIR_SCENARIO_PATH(scenInfoArray[browseRecno-1].dir_id); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ BUILDSTDERR: ../include/GAMEDEF.h:83:52: note: in definition of macro 'DIR_SCENARIO_PATH' BUILDSTDERR: 83 | #define DIR_SCENARIO_PATH(p) sys.dir_scenario_path[p] BUILDSTDERR: | ^ BUILDSTDERR: In file included from /usr/include/string.h:494, BUILDSTDERR: from ../include/OSTR.h:28, BUILDSTDERR: from ../include/ALL.h:31, BUILDSTDERR: from ../include/OSYS.h:27, BUILDSTDERR: from OGAMEMP.cpp:25: BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'MpStructNewPlayer::MpStructNewPlayer(char*, char*)' at OGAMEMP.cpp:233:10, BUILDSTDERR: inlined from 'int Game::mp_select_option(NewNationPara*, int*)' at OGAMEMP.cpp:2479:3: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'MpStructAcceptNewPlayer::MpStructAcceptNewPlayer(uint32_t, char*, ENetAddress*, char)' at OGAMEMP.cpp:245:10, BUILDSTDERR: inlined from 'int Game::mp_select_option(NewNationPara*, int*)' at OGAMEMP.cpp:3187:10: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGAMMENU.cpp: In member function 'void Game::in_game_menu()': BUILDSTDERR: OGAMMENU.cpp:85:6: warning: unused variable 'x' [-Wunused-variable] BUILDSTDERR: 85 | int x=GAME_MENU_X1+20, y=GAME_MENU_Y1+17; BUILDSTDERR: | ^ BUILDSTDERR: OGAMMENU.cpp:85:25: warning: unused variable 'y' [-Wunused-variable] BUILDSTDERR: 85 | int x=GAME_MENU_X1+20, y=GAME_MENU_Y1+17; BUILDSTDERR: | ^ BUILDSTDERR: OGAMMENU.cpp: In function 'int detect_game_option()': BUILDSTDERR: OGAMMENU.cpp:187:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 187 | (menu_hot_key[i-1] && mouse.key_code == menu_hot_key[i-1] || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGAMMENU.cpp: At global scope: BUILDSTDERR: OGAMMENU.cpp:293:13: warning: 'reverse_race_table' defined but not used [-Wunused-variable] BUILDSTDERR: 293 | static char reverse_race_table[MAX_RACE_TABLE] = // race translation table BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from ../include/OGFILE.h:36, BUILDSTDERR: from OGAMSCEN.cpp:28: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OGAMSING.cpp:31: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/ALL.h:33, BUILDSTDERR: from ../include/OSYS.h:27, BUILDSTDERR: from OGAMSCEN.cpp:25: BUILDSTDERR: OGAMSCEN.cpp: In member function 'int Game::run_scenario(ScenInfo*)': BUILDSTDERR: OGAMSCEN.cpp:138:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 138 | str = DIR_SCENARIO_PATH(scenInfo->dir_id); BUILDSTDERR: | ~~~~~~~~~~^~~~~~ BUILDSTDERR: ../include/GAMEDEF.h:83:52: note: in definition of macro 'DIR_SCENARIO_PATH' BUILDSTDERR: 83 | #define DIR_SCENARIO_PATH(p) sys.dir_scenario_path[p] BUILDSTDERR: | ^ BUILDSTDERR: OGAMSING.cpp: At global scope: BUILDSTDERR: OGAMSING.cpp:52:13: warning: 'option_mode' defined but not used [-Wunused-variable] BUILDSTDERR: 52 | static char option_mode; BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OGENHILL.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OGENHILL.cpp:29: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OGENMAP.cpp:31: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OGENMAP.cpp:32: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGENMAP.cpp: In member function 'void World::remove_odd(Plasma&, short int, short int, short int)': BUILDSTDERR: OGENMAP.cpp:484:62: warning: 'sameY' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 484 | if( center == TerrainRes::terrain_height(plasma.get_pix(x,y+1)) ) BUILDSTDERR: | ~^~ BUILDSTDERR: OGENMAP.cpp:536:60: warning: 'sameX' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 536 | if( center == TerrainRes::terrain_height(plasma.get_pix(x+1,y)) ) BUILDSTDERR: | ~^~ BUILDSTDERR: OGENMAP.cpp:562:14: warning: 'diffHeight' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 562 | plasma.plot(x,y, diffHeight); BUILDSTDERR: | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'MpStructLoadGameNewPlayer::MpStructLoadGameNewPlayer(Nation*, DWORD, long int, char*, char*)' at OGAMEMP.cpp:350:10, BUILDSTDERR: inlined from 'int Game::mp_select_load_option(char*)' at OGAMEMP.cpp:4381:3: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'MpStructAcceptNewPlayer::MpStructAcceptNewPlayer(uint32_t, char*, ENetAddress*, char)' at OGAMEMP.cpp:245:10, BUILDSTDERR: inlined from 'int Game::mp_select_load_option(char*)' at OGAMEMP.cpp:5112:10: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 64 bytes from a string of length 64 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGAMEMP.cpp: In member function 'int Game::mp_select_load_option(char*)': BUILDSTDERR: OGAMEMP.cpp:4333:6: warning: 'maxPlayer' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 4333 | int maxPlayer; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OGENMAP.cpp: In member function 'void World::generate_map()': BUILDSTDERR: OGENMAP.cpp:138:53: warning: 'maxLandCount' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 138 | while( ++loopCount <= 4 && (landCountmaxLandCount) ) BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGENMAP.cpp:138:26: warning: 'minLandCount' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 138 | while( ++loopCount <= 4 && (landCountmaxLandCount) ) BUILDSTDERR: | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OGFILE.cpp:33: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from ../include/OFIRMRES.h:32, BUILDSTDERR: from OGFILE2.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGFILE2.cpp: In member function 'int GameFile::read_file(File*)': BUILDSTDERR: OGFILE2.cpp:191:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 191 | if( game_file_array.demo_format && game_file_array.load_file_game_version > 0 BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGFILE2.cpp:186:6: warning: unused variable 'originalRandomSeed' [-Wunused-variable] BUILDSTDERR: 186 | int originalRandomSeed = misc.get_random_seed(); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGFILE2.cpp: In member function 'int TownRes::read_file(File*)': BUILDSTDERR: OGFILE2.cpp:911:35: 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] BUILDSTDERR: 911 | memset(town_name_used_array, 0, sizeof(town_name_used_array)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGFILE2.cpp: In member function 'int GodRes::read_file(File*)': BUILDSTDERR: OGFILE2.cpp:1100:29: 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] BUILDSTDERR: 1100 | memset(god_info_array, 0, sizeof(god_info_array)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OGFILE3.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGFILE3.cpp: In function 'bool read_version_1_nation(File*, Version_1_Nation*)': BUILDSTDERR: OGFILE3.cpp:1704:57: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class DynArray'; use assignment instead [-Wclass-memaccess] BUILDSTDERR: 1704 | memset(&v1n->action_array, 0, sizeof(v1n->action_array)); BUILDSTDERR: | ^ BUILDSTDERR: In file included from ../include/ODYNARRB.h:28, BUILDSTDERR: from ../include/OSPRITE.h:28, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OGFILE3.cpp:25: BUILDSTDERR: ../include/ODYNARR.h:52:7: note: 'class DynArray' declared here BUILDSTDERR: 52 | class DynArray BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OGFILE3.cpp: In function 'bool read_nation(File*, Nation*)': BUILDSTDERR: OGFILE3.cpp:1950:57: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class DynArray'; use assignment instead [-Wclass-memaccess] BUILDSTDERR: 1950 | memset(&nat->action_array, 0, sizeof(nat->action_array)); BUILDSTDERR: | ^ BUILDSTDERR: In file included from ../include/ODYNARRB.h:28, BUILDSTDERR: from ../include/OSPRITE.h:28, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OGFILE3.cpp:25: BUILDSTDERR: ../include/ODYNARR.h:52:7: note: 'class DynArray' declared here BUILDSTDERR: 52 | class DynArray BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OGFILE3.cpp: At global scope: BUILDSTDERR: OGFILE3.cpp:54:14: warning: 'char* create_monster_func()' declared 'static' but never defined [-Wunused-function] BUILDSTDERR: 54 | static char* create_monster_func(); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from ../include/ONATIONA.h:32, BUILDSTDERR: from ../include/OGF_V1.h:29, BUILDSTDERR: from OGF_V1.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OGFILEA.cpp:44: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OGFILEA.cpp: In member function 'void GameFile::disp_info(int, int)': BUILDSTDERR: OGFILEA.cpp:654:11: warning: unused variable 'localFileTime' [-Wunused-variable] BUILDSTDERR: 654 | FILETIME localFileTime; BUILDSTDERR: | ^~~~~~~~~~~~~ BUILDSTDERR: OGFILEA.cpp: At global scope: BUILDSTDERR: OGFILEA.cpp:1001:13: warning: 'void key_search()' defined but not used [-Wunused-function] BUILDSTDERR: 1001 | static void key_search() BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OGFILEA.cpp:973:12: warning: 'int last_game_recno()' defined but not used [-Wunused-function] BUILDSTDERR: 973 | static int last_game_recno() BUILDSTDERR: | ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OGODRES.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OGRPSEL.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OHELP.cpp:30: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OHELP.cpp: In member function 'void Help::load(char*)': BUILDSTDERR: OHELP.cpp:145:8: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 145 | int loopCount=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OHELP.cpp: In member function 'void Help::save_scr(int, int, int, int)': BUILDSTDERR: OHELP.cpp:232:7: warning: unused variable 'saveSize' [-Wunused-variable] BUILDSTDERR: 232 | long saveSize = (long)(x2-x1+1) * (y2-y1+1); BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OHILLRES.cpp:28: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from OINFO.cpp:31: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from OLIGHTN.cpp:30: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OLIGHTN.cpp: At global scope: BUILDSTDERR: OLIGHTN.cpp:293:15: warning: 'double sqr(double)' defined but not used [-Wunused-function] BUILDSTDERR: 293 | static double sqr(double x) BUILDSTDERR: | ^~~ BUILDSTDERR: OINFO.cpp: In member function 'void Info::disp_heading()': BUILDSTDERR: OINFO.cpp:395:6: warning: unused variable 'x' [-Wunused-variable] BUILDSTDERR: 395 | int x=TOP_MENU_X2-250; BUILDSTDERR: | ^ BUILDSTDERR: OINFO.cpp: At global scope: BUILDSTDERR: OINFO.cpp:53:20: warning: 'skill_name_array' defined but not used [-Wunused-variable] BUILDSTDERR: 53 | static const char* skill_name_array[] = BUILDSTDERR: | ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from ../include/ONATIONA.h:32, BUILDSTDERR: from OINGMENU.cpp:35: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OINGMENU.cpp: In member function 'void InGameMenu::disp(int)': BUILDSTDERR: OINGMENU.cpp:133:11: warning: unused variable 'x' [-Wunused-variable] BUILDSTDERR: 133 | int x=GAME_MENU_X1+20, y=GAME_MENU_Y1+17; BUILDSTDERR: | ^ BUILDSTDERR: OINGMENU.cpp:133:30: warning: unused variable 'y' [-Wunused-variable] BUILDSTDERR: 133 | int x=GAME_MENU_X1+20, y=GAME_MENU_Y1+17; BUILDSTDERR: | ^ BUILDSTDERR: OINGMENU.cpp: In member function 'int InGameMenu::detect()': BUILDSTDERR: OINGMENU.cpp:176:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 176 | (menu_hot_key[i-1] && mouse.key_code == menu_hot_key[i-1] || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OLZW.cpp: In member function 'virtual short unsigned int BitFileRead::input_bits(unsigned int)': BUILDSTDERR: OLZW.cpp:121:29: warning: comparison of integer expressions of different signedness: 'long int' and 'long unsigned int' [-Wsign-compare] BUILDSTDERR: 121 | if( bit_offset + stringLen > (last_offset+sizeof(residue))*8 ) BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OLZW.cpp:125:17: warning: comparison of integer expressions of different signedness: 'long int' and 'long unsigned int' [-Wsign-compare] BUILDSTDERR: 125 | if( byteFetch >= sizeof(residue) ) // residue >>= 32 does not change to 0 BUILDSTDERR: | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OLZW.cpp:27: BUILDSTDERR: ../include/OLZW.h: In constructor 'BitFileWrite::BitFileWrite(File*)': BUILDSTDERR: ../include/OLZW.h:74:16: warning: 'BitFileWrite::residue' will be initialized after [-Wreorder] BUILDSTDERR: 74 | unsigned long residue; // always the 4 bytes at last_offset BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: ../include/OLZW.h:73:7: warning: 'long int BitFileWrite::residue_len' [-Wreorder] BUILDSTDERR: 73 | long residue_len; BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: OLZW.cpp:150:1: warning: when initialized here [-Wreorder] BUILDSTDERR: 150 | BitFileWrite::BitFileWrite(File *f) : filePtr(f), residue(0), residue_len(0) BUILDSTDERR: | ^~~~~~~~~~~~ BUILDSTDERR: OLZW.cpp: In member function 'virtual void BitFileWrite::output_bits(short unsigned int, unsigned int)': BUILDSTDERR: OLZW.cpp:168:30: warning: comparison of integer expressions of different signedness: 'long int' and 'long unsigned int' [-Wsign-compare] BUILDSTDERR: 168 | if( residue_len + stringLen > sizeof(residue)*8 ) BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OLZW.cpp:173:17: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] BUILDSTDERR: 173 | if( byteFlush >= sizeof(residue)) // if byteFlush == 4, residue >>= 32 does not set residue to 0 BUILDSTDERR: | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~ BUILDSTDERR: OLZW.cpp: In member function 'unsigned int Lzw::decode_string(unsigned int, short unsigned int)': BUILDSTDERR: OLZW.cpp:468:17: warning: unused variable 'initCode' [-Wunused-variable] BUILDSTDERR: 468 | unsigned short initCode = code; BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from OMATRIX.cpp:29: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OMATRIX.cpp:30: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OMATRIX.cpp: In member function 'void Location::set_site(int)': BUILDSTDERR: OMATRIX.cpp:444:22: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] BUILDSTDERR: 444 | loc_flag = loc_flag & ~LOCATE_SITE_MASK | LOCATE_HAS_SITE; BUILDSTDERR: OMATRIX.cpp: In member function 'void Location::set_dirt(int)': BUILDSTDERR: OMATRIX.cpp:506:22: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] BUILDSTDERR: 506 | loc_flag = loc_flag & ~LOCATE_SITE_MASK | LOCATE_HAS_DIRT; BUILDSTDERR: OMATRIX.cpp: In member function 'void Location::set_town(int)': BUILDSTDERR: OMATRIX.cpp:563:22: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] BUILDSTDERR: 563 | loc_flag = loc_flag & ~LOCATE_BLOCK_MASK | LOCATE_IS_TOWN; BUILDSTDERR: OMATRIX.cpp: In member function 'void Location::set_hill(int)': BUILDSTDERR: OMATRIX.cpp:616:23: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] BUILDSTDERR: 616 | loc_flag = loc_flag & ~(LOCATE_BLOCK_MASK | LOCATE_SITE_MASK ) BUILDSTDERR: | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OMATRIX.cpp: In member function 'void Location::set_wall(int, int, int)': BUILDSTDERR: OMATRIX.cpp:651:22: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] BUILDSTDERR: 651 | loc_flag = loc_flag & ~(LOCATE_BLOCK_MASK | LOCATE_SITE_MASK ) BUILDSTDERR: | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OMATRIX.cpp: In member function 'void Location::set_plant(int, int, int)': BUILDSTDERR: OMATRIX.cpp:785:22: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] BUILDSTDERR: 785 | loc_flag = loc_flag & ~(LOCATE_BLOCK_MASK | LOCATE_SITE_MASK ) BUILDSTDERR: | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OMATRIX.cpp: In member function 'void Location::set_rock(short int)': BUILDSTDERR: OMATRIX.cpp:817:22: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] BUILDSTDERR: 817 | loc_flag = loc_flag & ~LOCATE_BLOCK_MASK | LOCATE_IS_ROCK; BUILDSTDERR: OMISC.cpp: In member function 'int Misc::valid_char(char)': BUILDSTDERR: OMISC.cpp:526:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 526 | return ( ch>='a' && ch<='z' || BUILDSTDERR: | ~~~~~~~~^~~~~~~~~~ BUILDSTDERR: OMISC.cpp:528:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 528 | ch>='0' && ch<='9' || BUILDSTDERR: | ~~~~~~~~^~~~~~~~~~ BUILDSTDERR: OMISC.cpp: In member function 'int Misc::atoi(char*, int)': BUILDSTDERR: OMISC.cpp:932:16: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] BUILDSTDERR: 932 | if ( strLen >= sizeof( str_buf ) ) BUILDSTDERR: | ~~~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OMONSRES.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OMONSRES.cpp: In member function 'void MonsterRes::init_active_monster()': BUILDSTDERR: OMONSRES.cpp:130:6: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 130 | int loopCount=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OMISC.cpp: In member function 'void Misc::cal_move_around_a_point_v2(short int, short int, short int, int&, int&)': BUILDSTDERR: OMISC.cpp:1464:6: warning: 'xMag' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 1464 | int xMag; BUILDSTDERR: | ^~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from ../include/OU_GOD.h:28, BUILDSTDERR: from OMP_CRC.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OMOUSECR.cpp:27: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OMP_CRC.cpp: In member function 'virtual UCHAR Sprite::crc8()': BUILDSTDERR: OMP_CRC.cpp:99:43: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class Sprite' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] BUILDSTDERR: 99 | memcpy(&dummySprite, this, sizeof(Sprite)); BUILDSTDERR: | ^ BUILDSTDERR: In file included from ../include/OUNIT.h:28, BUILDSTDERR: from ../include/OU_GOD.h:28, BUILDSTDERR: from OMP_CRC.cpp:26: BUILDSTDERR: ../include/OSPRITE.h:58:7: note: 'class Sprite' declared here BUILDSTDERR: 58 | class Sprite BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OMP_CRC.cpp: In member function 'virtual UCHAR Unit::crc8()': BUILDSTDERR: OMP_CRC.cpp:122:39: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class Unit' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] BUILDSTDERR: 122 | memcpy(&dummyUnit, this, sizeof(Unit)); BUILDSTDERR: | ^ BUILDSTDERR: In file included from ../include/OU_GOD.h:28, BUILDSTDERR: from OMP_CRC.cpp:26: BUILDSTDERR: ../include/OUNIT.h:205:7: note: 'class Unit' declared here BUILDSTDERR: 205 | class Unit : public Sprite BUILDSTDERR: | ^~~~ BUILDSTDERR: OMP_CRC.cpp: In member function 'virtual UCHAR UnitGod::crc8()': BUILDSTDERR: OMP_CRC.cpp:165:45: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class UnitGod' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] BUILDSTDERR: 165 | memcpy(&dummyUnitGod, this, sizeof(UnitGod)); BUILDSTDERR: | ^ BUILDSTDERR: In file included from OMP_CRC.cpp:26: BUILDSTDERR: ../include/OU_GOD.h:38:7: note: 'class UnitGod' declared here BUILDSTDERR: 38 | class UnitGod : public Unit BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OMP_CRC.cpp: In member function 'virtual UCHAR UnitVehicle::crc8()': BUILDSTDERR: OMP_CRC.cpp:197:53: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class UnitVehicle' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] BUILDSTDERR: 197 | memcpy(&dummyUnitVehicle, this, sizeof(UnitVehicle)); BUILDSTDERR: | ^ BUILDSTDERR: In file included from OMP_CRC.cpp:27: BUILDSTDERR: ../include/OU_VEHI.h:34:7: note: 'class UnitVehicle' declared here BUILDSTDERR: 34 | class UnitVehicle : public Unit BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: OMP_CRC.cpp: In member function 'virtual UCHAR UnitMonster::crc8()': BUILDSTDERR: OMP_CRC.cpp:220:53: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class UnitMonster' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] BUILDSTDERR: 220 | memcpy(&dummyUnitMonster, this, sizeof(UnitMonster)); BUILDSTDERR: | ^ BUILDSTDERR: In file included from OMP_CRC.cpp:28: BUILDSTDERR: ../include/OU_MONS.h:40:7: note: 'class UnitMonster' declared here BUILDSTDERR: 40 | class UnitMonster : public Unit BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: OMP_CRC.cpp: In member function 'virtual UCHAR UnitExpCart::crc8()': BUILDSTDERR: OMP_CRC.cpp:243:53: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class UnitExpCart' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] BUILDSTDERR: 243 | memcpy(&dummyUnitExpCart, this, sizeof(UnitExpCart)); BUILDSTDERR: | ^ BUILDSTDERR: In file included from OMP_CRC.cpp:29: BUILDSTDERR: ../include/OU_CART.h:30:7: note: 'class UnitExpCart' declared here BUILDSTDERR: 30 | class UnitExpCart : public Unit BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: OMP_CRC.cpp: In member function 'virtual UCHAR UnitMarine::crc8()': BUILDSTDERR: OMP_CRC.cpp:266:51: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class UnitMarine' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] BUILDSTDERR: 266 | memcpy(&dummyUnitMarine, this, sizeof(UnitMarine)); BUILDSTDERR: | ^ BUILDSTDERR: In file included from OMP_CRC.cpp:30: BUILDSTDERR: ../include/OU_MARI.h:74:7: note: 'class UnitMarine' declared here BUILDSTDERR: 74 | class UnitMarine : public Unit BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OMP_CRC.cpp: In member function 'virtual void UnitMarine::clear_ptr()': BUILDSTDERR: OMP_CRC.cpp:280:35: 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] BUILDSTDERR: 280 | memset(&splash, 0, sizeof(splash)); BUILDSTDERR: | ^ BUILDSTDERR: In file included from ../include/OUNIT.h:28, BUILDSTDERR: from ../include/OU_GOD.h:28, BUILDSTDERR: from OMP_CRC.cpp:26: BUILDSTDERR: ../include/OSPRITE.h:58:7: note: 'class Sprite' declared here BUILDSTDERR: 58 | class Sprite BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OMP_CRC.cpp:57:32: warning: comparison of integer expressions of different signedness: 'char' and 'long unsigned int' [-Wsign-compare] BUILDSTDERR: 57 | #define RTRIM_ARRAY(a,s) { if(sTERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OPLASMA.cpp: In member function 'void Plasma::shuffle_level(short int, short int, short int)': BUILDSTDERR: OPLASMA.cpp:532:9: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 532 | int loopCount = 20; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ORAIN1.cpp:28: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OPOWER.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OPOWER.cpp: In member function 'int Power::detect_frame()': BUILDSTDERR: OPOWER.cpp:420:8: warning: unused variable 'mouseX' [-Wunused-variable] BUILDSTDERR: 420 | int mouseX = mouse.click_x(LEFT_BUTTON); BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OPOWER.cpp:421:8: warning: unused variable 'mouseY' [-Wunused-variable] BUILDSTDERR: 421 | int mouseY = mouse.click_y(LEFT_BUTTON); BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OPOWER.cpp:245:12: warning: unused variable 'selectedCount' [-Wunused-variable] BUILDSTDERR: 245 | int rc=0, selectedCount=0; BUILDSTDERR: | ^~~~~~~~~~~~~ BUILDSTDERR: OPOWER.cpp: In member function 'int Power::detect_action()': BUILDSTDERR: OPOWER.cpp:718:12: warning: variable 'selectedUnit' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 718 | Unit *selectedUnit; BUILDSTDERR: | ^~~~~~~~~~~~ BUILDSTDERR: OPOWER.cpp:702:8: warning: unused variable 'assignedFlag' [-Wunused-variable] BUILDSTDERR: 702 | int assignedFlag=0; BUILDSTDERR: | ^~~~~~~~~~~~ BUILDSTDERR: OPOWER.cpp:554:10: warning: variable 'targetWall' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 554 | char targetWall=0; BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OPOWER.cpp:555:8: warning: unused variable 'mobileType' [-Wunused-variable] BUILDSTDERR: 555 | int mobileType = activeUnit->mobile_type; // mobile type of the selected units BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OPOWER.cpp:557:10: warning: unused variable 'nationRecno' [-Wunused-variable] BUILDSTDERR: 557 | short nationRecno = activeUnit->nation_recno; BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: OPOWER.cpp: In member function 'int Power::detect_select(int, int, int, int, int, int)': BUILDSTDERR: OPOWER.cpp:1169:26: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] BUILDSTDERR: 1169 | for( int mt = 0; mt < sizeof(mobileTypeList)/sizeof(char); ++mt ) BUILDSTDERR: | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OPOWER.cpp:1185:36: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 1185 | selectNationCount[unitPtr->nation_recno]++; BUILDSTDERR: | ~~~~~~~~~^~~~~~~~~~~~ BUILDSTDERR: OPOWER.cpp:1207:25: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] BUILDSTDERR: 1207 | for( int mt = 0; mt < sizeof(mobileTypeList)/sizeof(char); ++mt ) BUILDSTDERR: | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OPOWER.cpp:1019:6: warning: unused variable 'firstXLoc' [-Wunused-variable] BUILDSTDERR: 1019 | int firstXLoc = selXLoc1, firstYLoc = selYLoc1; // first location to be tested BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OPOWER.cpp:1019:28: warning: unused variable 'firstYLoc' [-Wunused-variable] BUILDSTDERR: 1019 | int firstXLoc = selXLoc1, firstYLoc = selYLoc1; // first location to be tested BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OPOWER.cpp:1050:7: warning: unused variable 'firstTest' [-Wunused-variable] BUILDSTDERR: 1050 | int firstTest=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OPOWER.cpp: In member function 'int Power::choose_cursor(int, int, ScreenObjectType, short int, ScreenObjectType, short int)': BUILDSTDERR: OPOWER.cpp:1827:12: warning: unused variable 'townPtr' [-Wunused-variable] BUILDSTDERR: 1827 | Town *townPtr = town_array[selectedObjectRecno]; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OPOWER.cpp:1487:6: warning: variable 'pointingObjectId' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 1487 | int pointingObjectId = 0; BUILDSTDERR: | ^~~~~~~~~~~~~~~~ BUILDSTDERR: OPOWER.cpp: In member function 'ScreenObjectType Power::find_selected_type(short int*)': BUILDSTDERR: OPOWER.cpp:2132:9: warning: unused variable 'sitePtr' [-Wunused-variable] BUILDSTDERR: 2132 | Site *sitePtr = site_array[*selectedRecno = site_array.selected_recno]; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OPOWER.cpp: In member function 'ScreenObjectType Power::find_pointing_type(Location*, short int*)': BUILDSTDERR: OPOWER.cpp:2202:9: warning: unused variable 'sitePtr' [-Wunused-variable] BUILDSTDERR: 2202 | Site *sitePtr = site_array[*pointingRecno = locPtr->site_recno()]; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ORAWRES.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ORAIN3.cpp:28: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OREBEL.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OREGION.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OREGIONS.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OREBEL.cpp: In member function 'void Rebel::think_new_action()': BUILDSTDERR: OREBEL.cpp:627:2: warning: 'rc' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 627 | if( rc ) BUILDSTDERR: | ^~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OREMOTE.cpp:34: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OREGIONS.cpp: In member function 'void RegionStat::init()': BUILDSTDERR: OREGIONS.cpp:132:28: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 132 | reachable_region_array[reachable_region_count].sea_region_id = seaRegionId; BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OREGIONS.cpp:133:28: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 133 | reachable_region_array[reachable_region_count].land_region_stat_id = i; BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OREMOTE.cpp: At global scope: BUILDSTDERR: OREMOTE.cpp:224:13: warning: 'void connect_game_disconnect_handler(DWORD)' defined but not used [-Wunused-function] BUILDSTDERR: 224 | static void connect_game_disconnect_handler(DWORD playerId) BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OREMOTEM.cpp:1545:6: warning: "/*" within comment [-Wcomment] BUILDSTDERR: 1545 | /* //**BUGHERE, no more training in game BUILDSTDERR: | BUILDSTDERR: OREMOTEQ.cpp: In member function 'int RemoteQueue::validate_queue(int)': BUILDSTDERR: OREMOTEQ.cpp:59:6: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 59 | int loopCount = 0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OREMOTE2.cpp:34: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OREMOTEM.cpp:28: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OREMOTE2.cpp: In member function 'int Remote::poll_msg()': BUILDSTDERR: OREMOTE2.cpp:283:15: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 283 | int loopCount=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OREMOTE2.cpp: In member function 'void Remote::process_receive_queue()': BUILDSTDERR: OREMOTE2.cpp:400:6: warning: variable 'loopCount' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 400 | int loopCount=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OREMOTE2.cpp: In member function 'void Remote::process_specific_msg(DWORD)': BUILDSTDERR: OREMOTE2.cpp:516:6: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 516 | int loopCount=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OREMOTEM.cpp: In member function 'void RemoteMsg::new_nation()': BUILDSTDERR: OREMOTEM.cpp:250:6: warning: unused variable 'nationRecno' [-Wunused-variable] BUILDSTDERR: 250 | int nationRecno = nation_array.new_nation( NATION_REMOTE, nationPtr->race_id, nationPtr->color_scheme_id, nationPtr->player_id ); BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: OREMOTEM.cpp: In member function 'void RemoteMsg::firm_bribe()': BUILDSTDERR: OREMOTEM.cpp:1744:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 1744 | && (shortPtr[2] == 0 && firmPtr->overseer_recno || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OREMOTEM.cpp: In member function 'void RemoteMsg::firm_reward()': BUILDSTDERR: OREMOTEM.cpp:1840:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 1840 | if( shortPtr[1] == 0 && firmPtr->overseer_recno || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OROCKRES.cpp:29: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OROCKRES.cpp:31: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OROCKRES.cpp: In member function 'void RockRes::load_block_info()': BUILDSTDERR: OROCKRES.cpp:275:42: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 275 | rockInfo->block_offset[rockBlockInfo->loc_y][rockBlockInfo->loc_x] = i + 1; BUILDSTDERR: | ~~~~~~~~~~~~~~~^~~~~ BUILDSTDERR: OROCKRES.cpp:275:64: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 275 | rockInfo->block_offset[rockBlockInfo->loc_y][rockBlockInfo->loc_x] = i + 1; BUILDSTDERR: | ~~~~~~~~~~~~~~~^~~~~ BUILDSTDERR: OROCKRES.cpp: In member function 'char RockRes::choose_next(short int, char, long int)': BUILDSTDERR: OROCKRES.cpp:436:12: warning: unused variable 'rockInfo' [-Wunused-variable] BUILDSTDERR: 436 | RockInfo *rockInfo = get_rock_info(rockRecno); BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OROCKRES.cpp: In member function 'void RockRes::draw_block(short int, short int, short int, short int, short int, char)': BUILDSTDERR: OROCKRES.cpp:487:12: warning: unused variable 'rockInfo' [-Wunused-variable] BUILDSTDERR: 487 | RockInfo *rockInfo = rock_res.get_rock_info(rockRecno); BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OROCKRES.cpp: In member function 'short int RockRes::search(const char*, short int, short int, short int, short int, int, int, char)': BUILDSTDERR: OROCKRES.cpp:533:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 533 | && (animatedFlag < 0 || animatedFlag == 0 && rockInfo->max_frame == 1 || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OROCKRES.cpp:534:22: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 534 | animatedFlag > 0 && rockInfo->max_frame > 1) ) BUILDSTDERR: | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from OR_ECO.cpp:30: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from ../include/OFIRMRES.h:32, BUILDSTDERR: from OR_AI.cpp:29: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OR_AI.cpp: At global scope: BUILDSTDERR: OR_AI.cpp:74:33: warning: 'total_peasant' defined but not used [-Wunused-variable] BUILDSTDERR: 74 | static int total_population, total_peasant; BUILDSTDERR: | ^~~~~~~~~~~~~ BUILDSTDERR: OR_AI.cpp:74:15: warning: 'total_population' defined but not used [-Wunused-variable] BUILDSTDERR: 74 | static int total_population, total_peasant; BUILDSTDERR: | ^~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from ../include/OF_CAMP.h:28, BUILDSTDERR: from OR_MIL.cpp:32: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OR_NAT.cpp:38: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OR_MIL.cpp: In function 'int unit_filter(int)': BUILDSTDERR: OR_MIL.cpp:420:10: warning: unused variable 'nationPtr' [-Wunused-variable] BUILDSTDERR: 420 | Nation* nationPtr = nation_array[info.viewing_nation_recno]; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OR_MIL.cpp: In function 'void put_unit_rec(int, int, int, int)': BUILDSTDERR: OR_MIL.cpp:456:10: warning: unused variable 'unitId' [-Wunused-variable] BUILDSTDERR: 456 | int unitId = unit_filter(recNo); BUILDSTDERR: | ^~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OR_NEWS.cpp:34: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OR_NEWS.cpp: In member function 'void Info::disp_news_log(int)': BUILDSTDERR: OR_NEWS.cpp:56:6: warning: unused variable 'x' [-Wunused-variable] BUILDSTDERR: 56 | int x=NEWS_BROWSE_X1+9; BUILDSTDERR: | ^ BUILDSTDERR: OR_NEWS.cpp:57:6: warning: unused variable 'y' [-Wunused-variable] BUILDSTDERR: 57 | int y=NEWS_BROWSE_Y1+4; BUILDSTDERR: | ^ BUILDSTDERR: OR_NAT.cpp: In function 'void disp_debug_info()': BUILDSTDERR: OR_NAT.cpp:656:6: warning: unused variable 'refreshFlag' [-Wunused-variable] BUILDSTDERR: 656 | int refreshFlag = INFO_REPAINT; BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: OR_NAT.cpp: In function 'void disp_nation_chat(int)': BUILDSTDERR: OR_NAT.cpp:909:85: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 909 | if( !(sys.debug_session || nation_array[nationRecno]->nation_type == NATION_REMOTE && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ BUILDSTDERR: 910 | info.viewing_nation_recno == nation_array.player_recno ) ) BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OR_NAT.cpp: In function 'void detect_nation_chat()': BUILDSTDERR: OR_NAT.cpp:965:83: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 965 | if( sys.debug_session || nation_array[nationRecno]->nation_type == NATION_REMOTE && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ BUILDSTDERR: 966 | info.viewing_nation_recno == nation_array.player_recno ) BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OR_MIL.cpp: In function 'void put_troop_rec(int, int, int, int)': BUILDSTDERR: OR_MIL.cpp:397:14: warning: 'statusStr' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 397 | font_san.put( x+486, y, statusStr ); BUILDSTDERR: | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OR_RANK.cpp:29: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from ../include/OFIRMRES.h:32, BUILDSTDERR: from OR_SPY.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OR_RANK.cpp: In member function 'void Info::set_rank_data(int)': BUILDSTDERR: OR_RANK.cpp:424:9: warning: unused variable 'rankPos' [-Wunused-variable] BUILDSTDERR: 424 | int rankPos=0; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from ../include/OGODRES.h:28, BUILDSTDERR: from OR_TECH.cpp:31: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OR_RANK.cpp: In member function 'int Info::get_rank_score(int, int)': BUILDSTDERR: OR_RANK.cpp:517:6: warning: 'maxValue' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 517 | int rankScore = 100 * nation_rank_data_array[rankType-1][nationRecno-1] / maxValue; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from OR_TOWN.cpp:30: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OSCROLL.cpp:30: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OSCROLL.cpp: In member function 'int ScrollBar::detect()': BUILDSTDERR: OSCROLL.cpp:254:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 254 | if( type==VERTICAL && mouse.any_click( x1+2, y1+2, x2-2 , y1+13 ) || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OSCROLL.cpp:265:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 265 | if( type==VERTICAL && mouse.any_click( x1+2, y2-13, x2-2, y2-2 ) || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OSCROLL.cpp:284:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 284 | if( type==VERTICAL && mouse.any_click( x1+2 , y1+14, x2-2 , y2-14 ) || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OSCROLL.cpp:328:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 328 | if( type==VERTICAL && mouse.any_click( x1+2 , indicator_y, x2-2, indicator_y+indicator_height-1 ) || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from OR_TRADE.cpp:31: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OR_TOWN.cpp: At global scope: BUILDSTDERR: OR_TOWN.cpp:64:16: warning: 'total_expense' defined but not used [-Wunused-variable] BUILDSTDERR: 64 | static float total_expense; BUILDSTDERR: | ^~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OSITE.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OSITEDRW.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OSERES.cpp:31: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OSITEDRW.cpp: In member function 'void Site::draw(int, int)': BUILDSTDERR: OSITEDRW.cpp:127:27: warning: 'bmpPtr' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 127 | vga_back.put_bitmap_trans( x, y, bmpPtr ); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ BUILDSTDERR: OSLIDCUS.cpp: In member function 'int SlideBar::detect()': BUILDSTDERR: OSLIDCUS.cpp:164:7: warning: unused variable 'oldValue' [-Wunused-variable] BUILDSTDERR: 164 | int oldValue = view_recno; BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OSLIDCUS.cpp: In member function 'int SlideVBar::detect()': BUILDSTDERR: OSLIDCUS.cpp:377:7: warning: unused variable 'oldValue' [-Wunused-variable] BUILDSTDERR: 377 | int oldValue = view_recno; BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OSERES.cpp: In member function 'void SERes::build_index()': BUILDSTDERR: OSERES.cpp:279:4: warning: 'lastId' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 279 | if( lastId != seInfo->subject_id) BUILDSTDERR: | ^~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from OSNOWG.cpp:28: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OSNOWRES.cpp:29: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OSPATH.cpp:28: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPATH.h:37, BUILDSTDERR: from OSPATHBT.cpp:21: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OSPATH.cpp: In function 'int can_move_to(int, int)': BUILDSTDERR: OSPATH.cpp:218:22: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 218 | !nation_passable[powerNationRecno]) BUILDSTDERR: | ^~~~~~~~~~~~~~~~ BUILDSTDERR: OSPATH.cpp: In member function 'ResultNode* SeekPath::get_result(int&, short int&)': BUILDSTDERR: OSPATH.cpp:987:8: warning: unused variable 'baseNodePtr' [-Wunused-variable] BUILDSTDERR: 987 | Node* baseNodePtr = result_node_ptr; // the first end node for connecting the other end node for the path in that direction. BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: OSPATH.cpp: In member function 'void SeekPath::get_real_result_node(int&, short int, short int, short int, short int, short int)': BUILDSTDERR: OSPATH.cpp:1353:6: warning: variable 'exitArrowRight' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 1353 | int exitArrowRight = 0; BUILDSTDERR: | ^~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPATH.h:37, BUILDSTDERR: from ../include/OSPREUSE.h:29, BUILDSTDERR: from OSPREDBG.cpp:35: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OSPATH.cpp: In member function 'ResultNode* SeekPath::get_result2(int&, short int&)': BUILDSTDERR: OSPATH.cpp:2921:8: warning: variable 'useClosestNode' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 2921 | short useClosestNode = 0; // indicate whether closest node is returned instead of the actual node BUILDSTDERR: | ^~~~~~~~~~~~~~ BUILDSTDERR: OSPATH.cpp: In member function 'short int Node::generate_successors2(short int, short int)': BUILDSTDERR: OSPATH.cpp:3058:8: warning: unused variable 'cost' [-Wunused-variable] BUILDSTDERR: 3058 | short cost = 2; BUILDSTDERR: | ^~~~ BUILDSTDERR: OSPATH.cpp: At global scope: BUILDSTDERR: OSPATH.cpp:189:13: warning: 'void sys_yield()' defined but not used [-Wunused-function] BUILDSTDERR: 189 | static void sys_yield() BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPATH.h:37, BUILDSTDERR: from ../include/OSPREUSE.h:29, BUILDSTDERR: from OSPREOFF.cpp:21: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OSPREOFF.cpp: In static member function 'static int SeekPathReuse::can_walk(int, int)': BUILDSTDERR: OSPREOFF.cpp:67:36: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 67 | !reuse_nation_passable[locPtr->power_nation_recno]) BUILDSTDERR: | ~~~~~~~~^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPATH.h:37, BUILDSTDERR: from ../include/OSPREUSE.h:29, BUILDSTDERR: from OSPRESMO.cpp:21: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OSPREOFF.cpp: In member function 'void SeekPathReuse::use_offset_method(int, int)': BUILDSTDERR: OSPREOFF.cpp:589:10: warning: unused variable 'pathSeekResult' [-Wunused-variable] BUILDSTDERR: 589 | int pathSeekResult= seek_path.seek(preNonblockedXLoc, preNonblockedYLoc, virDestX, virDestY, cur_group_id, mobile_type, SEARCH_MODE_IN_A_GROUP); BUILDSTDERR: | ^~~~~~~~~~~~~~ BUILDSTDERR: OSPREOFF.cpp:475:6: warning: variable 'preLeaderVecX' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 475 | int preLeaderVecX, preLeaderVecY; BUILDSTDERR: | ^~~~~~~~~~~~~ BUILDSTDERR: OSPREOFF.cpp:475:21: warning: variable 'preLeaderVecY' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 475 | int preLeaderVecX, preLeaderVecY; BUILDSTDERR: | ^~~~~~~~~~~~~ BUILDSTDERR: OSPREOFF.cpp: In member function 'void SeekPathReuse::copy_leader_path_offset()': BUILDSTDERR: OSPREOFF.cpp:920:70: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 920 | if(locPtr->power_nation_recno && !reuse_nation_passable[locPtr->power_nation_recno]) BUILDSTDERR: | ~~~~~~~~^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPATH.h:37, BUILDSTDERR: from ../include/OSPREUSE.h:29, BUILDSTDERR: from OSPREUSE.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OSPREUSE.cpp: In member function 'void SeekPathReuse::move_outside_map(int, int, int, int)': BUILDSTDERR: OSPREUSE.cpp:546:6: warning: variable 'vertical' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 546 | int vertical=0; // 1 for upper edge, 2 for lower edge BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OSPREUSE.cpp:547:6: warning: variable 'horizontal' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 547 | int horizontal=0; // 1 for left edge, 2 for right edge BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OSPREUSE.cpp:577:26: warning: 'yStep' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 577 | int addYLoc = preY+yStep*vecY; BUILDSTDERR: | ~~~~~^~~~~ BUILDSTDERR: OSPREUSE.cpp:576:26: warning: 'xStep' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 576 | int addXLoc = preX+xStep*vecX; BUILDSTDERR: | ~~~~~^~~~~ BUILDSTDERR: OSPATH.cpp: In member function 'void Node::propagate_down()': BUILDSTDERR: OSPATH.cpp:2530:6: warning: 'childEnterDirection' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 2530 | switch(childEnterDirection) BUILDSTDERR: | ^~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OSPRITE.cpp:27: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OSPRITE2.cpp:28: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from OSPRITEA.cpp:29: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OSPRITE2.cpp: In member function 'int Sprite::match_dir()': BUILDSTDERR: OSPRITE2.cpp:135:45: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 135 | char turnAmount = turn_amount[sprite_info->need_turning]; BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OSPRTRES.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OSPRTRES.cpp: In member function 'void SpriteRes::load_sprite_info()': BUILDSTDERR: OSPRTRES.cpp:83:69: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct SpriteInfo'; use assignment or value-initialization instead [-Wclass-memaccess] BUILDSTDERR: 83 | memset( sprite_info_array, 0, sizeof(SpriteInfo)*sprite_info_count ); BUILDSTDERR: | ^ BUILDSTDERR: In file included from OSPRTRES.cpp:28: BUILDSTDERR: ../include/OSPRTRES.h:134:8: note: 'struct SpriteInfo' declared here BUILDSTDERR: 134 | struct SpriteInfo BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OSPY2.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OSPY.cpp:29: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/string.h:494, BUILDSTDERR: from ../include/OSTR.h:28, BUILDSTDERR: from OSTR.cpp:25: BUILDSTDERR: In function 'char* strncat(char*, const char*, size_t)', BUILDSTDERR: inlined from 'String& String::operator*=(int)' at OSTR.cpp:211:13: BUILDSTDERR: /usr/include/bits/string_fortified.h:136:34: warning: 'char* __builtin_strncat(char*, const char*, long unsigned int)' output may be truncated copying 200 bytes from a string of length 200 [-Wstringop-truncation] BUILDSTDERR: 136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OSPYA.cpp:29: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OSPYA.cpp: In member function 'int SpyArray::add_spy(int, int)': BUILDSTDERR: OSPYA.cpp:104:31: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class Spy'; use assignment or value-initialization instead [-Wclass-memaccess] BUILDSTDERR: 104 | memset( &spy, 0, sizeof(spy) ); BUILDSTDERR: | ^ BUILDSTDERR: In file included from OSPYA.cpp:37: BUILDSTDERR: ../include/OSPY.h:55:7: note: 'class Spy' declared here BUILDSTDERR: 55 | class Spy BUILDSTDERR: | ^~~ BUILDSTDERR: OSPYA.cpp: In member function 'int SpyArray::add_spy()': BUILDSTDERR: OSPYA.cpp:146:31: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class Spy'; use assignment or value-initialization instead [-Wclass-memaccess] BUILDSTDERR: 146 | memset( &spy, 0, sizeof(spy) ); BUILDSTDERR: | ^ BUILDSTDERR: In file included from OSPYA.cpp:37: BUILDSTDERR: ../include/OSPY.h:55:7: note: 'class Spy' declared here BUILDSTDERR: 55 | class Spy BUILDSTDERR: | ^~~ BUILDSTDERR: OSPYA.cpp: In member function 'int SpyArray::catch_spy(int, int)': BUILDSTDERR: OSPYA.cpp:581:2: warning: 'totalPop' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 581 | if( enemySpyCount == totalPop ) BUILDSTDERR: | ^~ BUILDSTDERR: OSPYA.cpp:599:44: warning: 'nationRecno' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 598 | if( spyPtr->spy_place == spyPlace && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 599 | spyPtr->spy_place_para == spyPlacePara && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ BUILDSTDERR: 600 | spyPtr->true_nation_recno != nationRecno ) // doesn't get caught in sleep mode BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OSYS2.cpp:30: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from ../include/OGFILE.h:36, BUILDSTDERR: from OSYS.cpp:45: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OSYS.cpp:71: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OSYS.cpp: In constructor 'Sys::Sys()': BUILDSTDERR: OSYS.cpp:153:32: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class Sys'; use assignment or value-initialization instead [-Wclass-memaccess] BUILDSTDERR: 153 | memset(this, 0, sizeof(Sys) ); BUILDSTDERR: | ^ BUILDSTDERR: In file included from OSYS.cpp:58: BUILDSTDERR: ../include/OSYS.h:79:7: note: 'class Sys' declared here BUILDSTDERR: 79 | class Sys BUILDSTDERR: | ^~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OTALKENG.cpp:29: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OSYS.cpp: In member function 'void Sys::main_loop(int)': BUILDSTDERR: OSYS.cpp:804:14: warning: unused variable 'x2' [-Wunused-variable] BUILDSTDERR: 804 | int x2 = font_news.put( x, y, newsStr ); BUILDSTDERR: | ^~ BUILDSTDERR: OSYS.cpp: In member function 'int Sys::chdir_to_game_dir()': BUILDSTDERR: OSYS.cpp:2685:12: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 2685 | chdir(env_data_path); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~ BUILDSTDERR: OSYS.cpp:2694:12: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 2694 | chdir(bundle_resources_path.c_str()); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OSYS.cpp:2701:9: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 2701 | chdir(PACKAGE_DATA_PATH); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OSYS.cpp: At global scope: BUILDSTDERR: OSYS.cpp:505:13: warning: 'void test_lzw()' defined but not used [-Wunused-function] BUILDSTDERR: 505 | static void test_lzw() BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OSYS2.cpp: In member function 'void Sys::disp_zoom()': BUILDSTDERR: OSYS2.cpp:991:8: warning: unused variable 'backupSeed' [-Wunused-variable] BUILDSTDERR: 991 | long backupSeed = misc.get_random_seed(); BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OSPY.cpp: In member function 'int Spy::get_assassinate_rating(int, int&, int&, int&)': BUILDSTDERR: OSPY.cpp:1390:42: warning: 'spyHitPoints' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 1390 | attackRating = spy_skill + spyHitPoints/2; BUILDSTDERR: | ~~~~~~~~~~~~^~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OTALKMSG.cpp:27: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from ../include/OF_RESE.h:28, BUILDSTDERR: from OTECHRES.cpp:27: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OTALKMSG.cpp: In member function 'void TalkMsg::process_accepted_reply()': BUILDSTDERR: OTALKMSG.cpp:145:40: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct TalkMsg'; use assignment or value-initialization instead [-Wclass-memaccess] BUILDSTDERR: 145 | memset(&talkMsg, 0, sizeof(TalkMsg)); BUILDSTDERR: | ^ BUILDSTDERR: In file included from OTALKMSG.cpp:33: BUILDSTDERR: ../include/OTALKRES.h:58:8: note: 'struct TalkMsg' declared here BUILDSTDERR: 58 | struct TalkMsg BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OTALKMSG.cpp:174:41: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct TalkMsg'; use assignment or value-initialization instead [-Wclass-memaccess] BUILDSTDERR: 174 | memset(&talkMsg, 0, sizeof(TalkMsg)); BUILDSTDERR: | ^ BUILDSTDERR: In file included from OTALKMSG.cpp:33: BUILDSTDERR: ../include/OTALKRES.h:58:8: note: 'struct TalkMsg' declared here BUILDSTDERR: 58 | struct TalkMsg BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OTALKMSG.cpp:185:41: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct TalkMsg'; use assignment or value-initialization instead [-Wclass-memaccess] BUILDSTDERR: 185 | memset(&talkMsg, 0, sizeof(TalkMsg)); BUILDSTDERR: | ^ BUILDSTDERR: In file included from OTALKMSG.cpp:33: BUILDSTDERR: ../include/OTALKRES.h:58:8: note: 'struct TalkMsg' declared here BUILDSTDERR: 58 | struct TalkMsg BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OTALKMSG.cpp:196:40: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct TalkMsg'; use assignment or value-initialization instead [-Wclass-memaccess] BUILDSTDERR: 196 | memset(&talkMsg, 0, sizeof(TalkMsg)); BUILDSTDERR: | ^ BUILDSTDERR: In file included from OTALKMSG.cpp:33: BUILDSTDERR: ../include/OTALKRES.h:58:8: note: 'struct TalkMsg' declared here BUILDSTDERR: 58 | struct TalkMsg BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OTALKMSG.cpp:287:6: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 287 | int loopCount=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OTALKMSG.cpp: In member function 'int TalkMsg::is_valid_to_disp(int)': BUILDSTDERR: OTALKMSG.cpp:436:10: warning: unused variable 'toNation' [-Wunused-variable] BUILDSTDERR: 436 | Nation* toNation = nation_array[to_nation_recno]; BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OTALKMSG.cpp:437:10: warning: unused variable 'fromNation' [-Wunused-variable] BUILDSTDERR: 437 | Nation* fromNation = nation_array[from_nation_recno]; BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OTALKRES.cpp:27: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OTECHRES.cpp: In member function 'void TechRes::load_tech_info()': BUILDSTDERR: OTECHRES.cpp:171:25: warning: 'techClass' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 171 | techClass->tech_count++; BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~^~ BUILDSTDERR: OTALKRES.cpp: In member function 'void TalkRes::init()': BUILDSTDERR: OTALKRES.cpp:70:60: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class TalkRes'; use assignment or value-initialization instead [-Wclass-memaccess] BUILDSTDERR: 70 | memset( this, 0, sizeof(TalkRes) - sizeof(talk_msg_array) ); BUILDSTDERR: | ^ BUILDSTDERR: In file included from OTALKRES.cpp:33: BUILDSTDERR: ../include/OTALKRES.h:135:7: note: 'class TalkRes' declared here BUILDSTDERR: 135 | class TalkRes BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OTALKRES.cpp: In member function 'void TalkRes::init_conversion(int)': BUILDSTDERR: OTALKRES.cpp:92:44: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct TalkMsg'; use assignment or value-initialization instead [-Wclass-memaccess] BUILDSTDERR: 92 | memset( &cur_talk_msg, 0, sizeof(TalkMsg) ); BUILDSTDERR: | ^ BUILDSTDERR: In file included from OTALKRES.cpp:33: BUILDSTDERR: ../include/OTALKRES.h:58:8: note: 'struct TalkMsg' declared here BUILDSTDERR: 58 | struct TalkMsg BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OTALKRES.cpp: In member function 'int TalkRes::set_talk_choices()': BUILDSTDERR: OTALKRES.cpp:115:10: warning: unused variable 'playerNation' [-Wunused-variable] BUILDSTDERR: 115 | Nation* playerNation = ~nation_array; BUILDSTDERR: | ^~~~~~~~~~~~ BUILDSTDERR: OTALKRES.cpp: In member function 'void TalkRes::add_main_choices()': BUILDSTDERR: OTALKRES.cpp:229:6: warning: unused variable 'relationStatus' [-Wunused-variable] BUILDSTDERR: 229 | int relationStatus = (~nation_array)->get_relation_status(cur_talk_msg.to_nation_recno); BUILDSTDERR: | ^~~~~~~~~~~~~~ BUILDSTDERR: OTALKRES.cpp: In member function 'int TalkRes::ai_send_talk_msg(int, int, int, int, int, int)': BUILDSTDERR: OTALKRES.cpp:701:37: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct TalkMsg'; use assignment or value-initialization instead [-Wclass-memaccess] BUILDSTDERR: 701 | memset(&talkMsg, 0, sizeof(TalkMsg)); BUILDSTDERR: | ^ BUILDSTDERR: In file included from OTALKRES.cpp:33: BUILDSTDERR: ../include/OTALKRES.h:58:8: note: 'struct TalkMsg' declared here BUILDSTDERR: 58 | struct TalkMsg BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OTERRAIN.cpp:29: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OTERRAIN.cpp:30: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OTERRAIN.cpp: In static member function 'static int TerrainRes::terrain_height(int, int*)': BUILDSTDERR: OTERRAIN.cpp:142:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 142 | if( height >= terrain_type_min_height_array[tc][0]) BUILDSTDERR: | ^~ BUILDSTDERR: OTERRAIN.cpp:146:48: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 146 | if(height >= terrain_type_min_height_array[tc][subtc]) BUILDSTDERR: | ^~ BUILDSTDERR: OTERRAIN.cpp:146:52: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 146 | if(height >= terrain_type_min_height_array[tc][subtc]) BUILDSTDERR: | ^~~~~ BUILDSTDERR: OTERRAIN.cpp: At global scope: BUILDSTDERR: OTERRAIN.cpp:52:12: warning: 'terrain_type_color_array' defined but not used [-Wunused-variable] BUILDSTDERR: 52 | static int terrain_type_color_array[TOTAL_TERRAIN_TYPE] = // the color of each terrain type on the small map BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OTERRAIN.cpp: In member function 'void TerrainRes::load_info()': BUILDSTDERR: OTERRAIN.cpp:385:59: warning: 'firstId' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 385 | terrainInfo->alternative_count_with_extra = firstId -1 -i; BUILDSTDERR: | ~~~~~~~~~~~^~ BUILDSTDERR: OTERRAIN.cpp:376:43: warning: 'firstSpFlag' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 369 | if( firstNw == terrainInfo->nw_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 370 | firstNwSub == terrainInfo->nw_subtype && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 371 | firstNe == terrainInfo->ne_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 372 | firstNeSub == terrainInfo->ne_subtype && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 373 | firstSw == terrainInfo->sw_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 374 | firstSwSub == terrainInfo->sw_subtype && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 375 | firstSe == terrainInfo->se_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 376 | firstSeSub == terrainInfo->se_subtype && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ BUILDSTDERR: 377 | firstSpFlag == terrainInfo->special_flag ) BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OTERRAIN.cpp:375:43: warning: 'firstSeSub' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 369 | if( firstNw == terrainInfo->nw_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 370 | firstNwSub == terrainInfo->nw_subtype && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 371 | firstNe == terrainInfo->ne_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 372 | firstNeSub == terrainInfo->ne_subtype && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 373 | firstSw == terrainInfo->sw_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 374 | firstSwSub == terrainInfo->sw_subtype && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 375 | firstSe == terrainInfo->se_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ BUILDSTDERR: 376 | firstSeSub == terrainInfo->se_subtype && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OTERRAIN.cpp:373:43: warning: 'firstSwSub' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 369 | if( firstNw == terrainInfo->nw_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 370 | firstNwSub == terrainInfo->nw_subtype && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 371 | firstNe == terrainInfo->ne_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 372 | firstNeSub == terrainInfo->ne_subtype && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 373 | firstSw == terrainInfo->sw_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ BUILDSTDERR: 374 | firstSwSub == terrainInfo->sw_subtype && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OTERRAIN.cpp:371:43: warning: 'firstNeSub' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 369 | if( firstNw == terrainInfo->nw_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 370 | firstNwSub == terrainInfo->nw_subtype && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 371 | firstNe == terrainInfo->ne_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ BUILDSTDERR: 372 | firstNeSub == terrainInfo->ne_subtype && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OTERRAIN.cpp:374:43: warning: 'firstSe' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 369 | if( firstNw == terrainInfo->nw_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 370 | firstNwSub == terrainInfo->nw_subtype && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 371 | firstNe == terrainInfo->ne_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 372 | firstNeSub == terrainInfo->ne_subtype && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 373 | firstSw == terrainInfo->sw_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 374 | firstSwSub == terrainInfo->sw_subtype && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ BUILDSTDERR: 375 | firstSe == terrainInfo->se_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OTERRAIN.cpp:372:43: warning: 'firstSw' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 369 | if( firstNw == terrainInfo->nw_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 370 | firstNwSub == terrainInfo->nw_subtype && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 371 | firstNe == terrainInfo->ne_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 372 | firstNeSub == terrainInfo->ne_subtype && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ BUILDSTDERR: 373 | firstSw == terrainInfo->sw_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OTERRAIN.cpp:370:43: warning: 'firstNe' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 369 | if( firstNw == terrainInfo->nw_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 370 | firstNwSub == terrainInfo->nw_subtype && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ BUILDSTDERR: 371 | firstNe == terrainInfo->ne_type && BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OTORNADO.cpp:27: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OTOWN.cpp:27: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OTOWN.cpp:41: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OTOWNA.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OTOWNAI.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OTOWNA.cpp: In member function 'void TownArray::think_new_independent_town()': BUILDSTDERR: OTOWNA.cpp:319:6: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 319 | int loopCount=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OTOWNA.cpp: In member function 'void TownArray::draw_dot()': BUILDSTDERR: OTOWNA.cpp:522:14: warning: variable 'townLayout' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 522 | TownLayout* townLayout; BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OTOWN.cpp: In member function 'void Town::set_nation(int)': BUILDSTDERR: OTOWN.cpp:752:11: warning: unused variable 'rebelPtr' [-Wunused-variable] BUILDSTDERR: 752 | Rebel* rebelPtr = rebel_array[rebel_recno]; BUILDSTDERR: | ^~~~~~~~ BUILDSTDERR: OTOWN.cpp: In member function 'void Town::population_grow()': BUILDSTDERR: OTOWN.cpp:1119:7: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 1119 | int loopCount=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OTOWN.cpp: In member function 'void Town::update_target_loyalty()': BUILDSTDERR: OTOWN.cpp:1245:40: warning: variable 'commanderRaceId' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 1245 | int baseInfluence, thisInfluence, commanderRaceId; BUILDSTDERR: | ^~~~~~~~~~~~~~~ BUILDSTDERR: OTOWN.cpp: In member function 'void Town::think_migrate()': BUILDSTDERR: OTOWN.cpp:2225:8: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 2225 | int loopCount=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OTOWN.cpp: In member function 'void Town::being_attacked(int, float)': BUILDSTDERR: OTOWN.cpp:2659:7: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 2659 | int loopCount=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OTOWN.cpp: In member function 'int Town::unjob_town_people(int, int, int)': BUILDSTDERR: OTOWN.cpp:3031:6: warning: unused variable 'racePop' [-Wunused-variable] BUILDSTDERR: 3031 | int racePop = jobless_race_pop_array[raceId-1]; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OTOWN.cpp: In member function 'void Town::setup_link()': BUILDSTDERR: OTOWN.cpp:3311:40: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 3311 | firmPtr->linked_town_array[firmPtr->linked_town_count] = town_recno; BUILDSTDERR: | ~~~~~~~~~^~~~~~~~~~~~~~~~~ BUILDSTDERR: OTOWN.cpp:3312:47: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 3312 | firmPtr->linked_town_enable_array[firmPtr->linked_town_count] = defaultLinkStatus; BUILDSTDERR: | ~~~~~~~~~^~~~~~~~~~~~~~~~~ BUILDSTDERR: OTOWN.cpp: In member function 'void Town::auto_set_layout()': BUILDSTDERR: OTOWN.cpp:3776:8: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 3776 | int loopCount=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OTOWN.cpp: In member function 'void Town::get_most_populated_race(int&, int&)': BUILDSTDERR: OTOWN.cpp:4116:24: warning: variable 'mostRacePop2' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 4116 | int mostRacePop1=0, mostRacePop2=0; BUILDSTDERR: | ^~~~~~~~~~~~ BUILDSTDERR: OTOWNAI.cpp: In member function 'void Town::think_move_between_town()': BUILDSTDERR: OTOWNAI.cpp:1196:18: warning: variable 'loopCount' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 1196 | int raceId, rc, loopCount; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OTOWNBLD.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OTOWNIF.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OTOWNDRW.cpp:29: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OTOWNIF.cpp: In member function 'void Town::disp_train_info(int)': BUILDSTDERR: OTOWNIF.cpp:663:6: warning: unused variable 'dispY1' [-Wunused-variable] BUILDSTDERR: 663 | int dispY1 = INFO_Y1+26; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OTOWNIF.cpp: In member function 'void Town::disp_train_menu(int)': BUILDSTDERR: OTOWNIF.cpp:852:7: warning: unused variable 'x' [-Wunused-variable] BUILDSTDERR: 852 | int x=INFO_X1, y=INFO_Y1+24; BUILDSTDERR: | ^ BUILDSTDERR: OTOWNIF.cpp: In member function 'void Town::detect_train_menu()': BUILDSTDERR: OTOWNIF.cpp:993:6: warning: unused variable 'x' [-Wunused-variable] BUILDSTDERR: 993 | int x=INFO_X1+2, y=INFO_Y1+24, rc, quitFlag; BUILDSTDERR: | ^ BUILDSTDERR: OTOWNIF.cpp: In member function 'void Town::disp_auto_menu(int)': BUILDSTDERR: OTOWNIF.cpp:1086:10: warning: unused variable 'nationPtr' [-Wunused-variable] BUILDSTDERR: 1086 | Nation* nationPtr = nation_array[nation_recno]; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OTOWNIF.cpp: In member function 'void Town::process_queue()': BUILDSTDERR: OTOWNIF.cpp:1903:39: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 1903 | if(can_train(train_queue_race_array[i])) BUILDSTDERR: | ^ BUILDSTDERR: OTOWNIF.cpp:1905:38: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 1905 | skillId = train_queue_skill_array[i]; BUILDSTDERR: | ^ BUILDSTDERR: OTOWNIF.cpp:1906:36: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 1906 | raceId = train_queue_race_array[i]; BUILDSTDERR: | ^ BUILDSTDERR: OTOWNIF.cpp: In member function 'void Town::add_queue(char, char, int)': BUILDSTDERR: OTOWNIF.cpp:1938:27: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 1938 | train_queue_skill_array[train_queue_count] = skillId; BUILDSTDERR: | ^~~~~~~~~~~~~~~~~ BUILDSTDERR: OTOWNIF.cpp:1939:43: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 1939 | train_queue_race_array[train_queue_count++] = raceId; BUILDSTDERR: | ~~~~~~~~~~~~~~~~~^~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OTOWNIND.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OTOWNRES.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OTOWNIND.cpp: In member function 'int Town::form_new_nation()': BUILDSTDERR: OTOWNIND.cpp:264:10: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 264 | int loopCount=0; // no spying skill BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OTOWNIND.cpp: In member function 'int Town::independent_unit_join_nation(int, int)': BUILDSTDERR: OTOWNIND.cpp:423:9: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 423 | int loopCount=0; // no spying skill BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OTOWNIND.cpp:397:6: warning: 'skillId' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 397 | int skillId, skillLevel, combatLevel; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OTOWNIND.cpp:397:15: warning: 'skillLevel' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 397 | int skillId, skillLevel, combatLevel; BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OTOWNIND.cpp:442:27: warning: 'combatLevel' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 442 | unitPtr->set_combat_level( combatLevel ); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OTUTOR2.cpp:39: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from ../include/OF_MONS.h:28, BUILDSTDERR: from OTUTOR.cpp:30: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OUNIT.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OTUTOR.cpp: In member function 'void Tutor::load(int)': BUILDSTDERR: OTUTOR.cpp:241:8: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 241 | int loopCount=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OUNIT2.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNIT.cpp: In member function 'void Unit::update_loyalty()': BUILDSTDERR: OUNIT.cpp:1116:9: warning: unused variable 'rc' [-Wunused-variable] BUILDSTDERR: 1116 | int rc=0; BUILDSTDERR: | ^~ BUILDSTDERR: OUNIT.cpp: In member function 'int Unit::think_betray()': BUILDSTDERR: OUNIT.cpp:1285:6: warning: unused variable 'unitRecno' [-Wunused-variable] BUILDSTDERR: 1285 | int unitRecno = sprite_recno; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OUNIT.cpp: In member function 'int Unit::betray(int)': BUILDSTDERR: OUNIT.cpp:1463:12: warning: unused variable 'nationReputation' [-Wunused-variable] BUILDSTDERR: 1463 | int i, nationReputation = (int) nation_array[nation_recno]->reputation; BUILDSTDERR: | ^~~~~~~~~~~~~~~~ BUILDSTDERR: OUNIT.cpp:1390:6: warning: unused variable 'unitRecno' [-Wunused-variable] BUILDSTDERR: 1390 | int unitRecno = sprite_recno; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OUNITA.cpp:30: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITA.cpp: In member function 'void UnitArray::disappear_in_firm(int)': BUILDSTDERR: OUNITA.cpp:235:8: warning: unused variable 'unitPtr' [-Wunused-variable] BUILDSTDERR: 235 | Unit* unitPtr = unit_array[unitRecno]; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OUNITA.cpp: In member function 'void UnitArray::draw_dot()': BUILDSTDERR: OUNITA.cpp:413:30: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 413 | nationColorArray[unitPtr->nation_recno] : BUILDSTDERR: | ~~~~~~~~~^~~~~~~~~~~~ BUILDSTDERR: OUNITA.cpp:414:31: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 414 | excitedColorArray[unitPtr->nation_recno][sys.frame_count % excitedColorCount]; BUILDSTDERR: | ~~~~~~~~~^~~~~~~~~~~~ BUILDSTDERR: OUNITA.cpp: At global scope: BUILDSTDERR: OUNITA.cpp:527:13: warning: 'void put_profile(int, const char*, int)' defined but not used [-Wunused-function] BUILDSTDERR: 527 | static void put_profile(int y, const char* dispDes, int dispValue) BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OUNITAAC.cpp:31: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OUNITAAC.cpp:35: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITAAC.cpp: In member function 'int UnitArray::divide_attack_by_nation(short int, short int*, int)': BUILDSTDERR: OUNITAAC.cpp:1225:6: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 1225 | int loopCount = selectedCount+2; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OUNITAAT.cpp:29: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OUNITAAT.cpp:33: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITAAT.cpp: In member function 'void UnitArray::check_nearby_location(int, int, char, char, int, int, char, int&)': BUILDSTDERR: OUNITAAT.cpp:1600:7: warning: variable 'haveValidSituation' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 1600 | bool haveValidSituation = true; BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITAAT.cpp: In member function 'int UnitArray::analyse_surround_location(int, int, int, int, char)': BUILDSTDERR: OUNITAAT.cpp:1526:28: warning: 'yIncre' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 1526 | int increCount=4, xIncre, yIncre, found=0; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITAAT.cpp:1552:8: warning: 'xIncre' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 1552 | xLoc += xIncre; BUILDSTDERR: | ~~~~~^~~~~~~~~ BUILDSTDERR: OUNITAAT.cpp: In member function 'void UnitArray::check_nearby_location(int, int, char, char, int, int, char, int&)': BUILDSTDERR: OUNITAAT.cpp:1793:14: warning: 'rightYIncre' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 1793 | rightYLoc += rightYIncre; BUILDSTDERR: | ~~~~~~~~~~^~~~~~~~~~~~~~ BUILDSTDERR: OUNITAAT.cpp:1792:14: warning: 'rightXIncre' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 1792 | rightXLoc += rightXIncre; BUILDSTDERR: | ~~~~~~~~~~^~~~~~~~~~~~~~ BUILDSTDERR: OUNITAAT.cpp:1745:26: warning: 'leftIncreCount' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 1745 | if((++leftIncreCount)>=4) BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~^~~ BUILDSTDERR: OUNITAAT.cpp:1742:13: warning: 'leftYIncre' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 1742 | leftYLoc += leftYIncre; BUILDSTDERR: | ~~~~~~~~~^~~~~~~~~~~~~ BUILDSTDERR: OUNITAAT.cpp:1741:13: warning: 'leftXIncre' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 1741 | leftXLoc += leftXIncre; BUILDSTDERR: | ~~~~~~~~~^~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OUNITAC.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITAAT.cpp: In member function 'void UnitArray::attack_unit(int, int, short int, short int*, int)': BUILDSTDERR: OUNITAAT.cpp:598:42: warning: 'unitPos' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 598 | unitPtr = (Unit*) get_ptr(curArrayPtr[unitPos]); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OUNITAC.cpp: In member function 'void Unit::assign(int, int, short int)': BUILDSTDERR: OUNITAC.cpp:537:7: warning: unused variable 'firmNeedUnit' [-Wunused-variable] BUILDSTDERR: 537 | int firmNeedUnit=1; BUILDSTDERR: | ^~~~~~~~~~~~ BUILDSTDERR: OUNITAC.cpp: In member function 'int Unit::set_move_to_surround(int, int, int, int, int, int, int, short int)': BUILDSTDERR: OUNITAC.cpp:845:6: warning: unused variable 'found' [-Wunused-variable] BUILDSTDERR: 845 | int found=0, foundAgain=0; BUILDSTDERR: | ^~~~~ BUILDSTDERR: OUNITAC.cpp:845:15: warning: unused variable 'foundAgain' [-Wunused-variable] BUILDSTDERR: 845 | int found=0, foundAgain=0; BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OUNITAC.cpp: In member function 'void Unit::process_build_firm()': BUILDSTDERR: OUNITAC.cpp:1216:9: warning: unused variable 'aiUnit' [-Wunused-variable] BUILDSTDERR: 1216 | int aiUnit = ai_unit; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITAC.cpp:1217:9: warning: unused variable 'actionXLoc' [-Wunused-variable] BUILDSTDERR: 1217 | int actionXLoc = action_x_loc; BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OUNITAC.cpp:1218:9: warning: unused variable 'actionYLoc' [-Wunused-variable] BUILDSTDERR: 1218 | int actionYLoc = action_y_loc; BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OUNITAC.cpp:1219:11: warning: unused variable 'unitRecno' [-Wunused-variable] BUILDSTDERR: 1219 | short unitRecno = sprite_recno; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OUNITAC.cpp: In member function 'void Unit::process_assign()': BUILDSTDERR: OUNITAC.cpp:1366:10: warning: unused variable 'actionXLoc' [-Wunused-variable] BUILDSTDERR: 1366 | int actionXLoc = action_x_loc; BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OUNITAC.cpp:1367:10: warning: unused variable 'actionYLoc' [-Wunused-variable] BUILDSTDERR: 1367 | int actionYLoc = action_y_loc; BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OUNITAC.cpp:1369:11: warning: unused variable 'aiUnit' [-Wunused-variable] BUILDSTDERR: 1369 | char aiUnit = ai_unit; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITAAT.cpp: In member function 'void UnitArray::attack_firm(int, int, short int, short int*, int)': BUILDSTDERR: OUNITAAT.cpp:860:42: warning: 'unitPos' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 860 | unitPtr = (Unit*) get_ptr(curArrayPtr[unitPos]); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OUNITAAT.cpp: In member function 'void UnitArray::attack_town(int, int, short int, short int*, int)': BUILDSTDERR: OUNITAAT.cpp:1110:42: warning: 'unitPos' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 1110 | unitPtr = (Unit*) get_ptr(curArrayPtr[unitPos]); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OUNITAI.cpp:27: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITAAT.cpp: In member function 'void UnitArray::attack_wall(int, int, short int*, int)': BUILDSTDERR: OUNITAAT.cpp:1356:42: warning: 'unitPos' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 1356 | unitPtr = (Unit*) get_ptr(curArrayPtr[unitPos]); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OUNITAC.cpp: In member function 'int Unit::set_move_to_surround(int, int, int, int, int, int, int, short int)': BUILDSTDERR: OUNITAC.cpp:928:3: warning: 'searchResult' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 928 | if(!searchResult) BUILDSTDERR: | ^~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OUNITAM.cpp:33: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITAI.cpp: In member function 'void Unit::ai_move_to_nearby_town()': BUILDSTDERR: OUNITAI.cpp:314:10: warning: unused variable 'ownNation' [-Wunused-variable] BUILDSTDERR: 314 | Nation* ownNation = nation_array[nation_recno]; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: In file included from OUNITAM.cpp:34: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITAI.cpp: In member function 'int Unit::think_normal_human_action()': BUILDSTDERR: OUNITAI.cpp:586:7: warning: unused variable 'skillLevel' [-Wunused-variable] BUILDSTDERR: 586 | int skillLevel = skill.skill_level; BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OUNITAM.cpp: In member function 'void UnitArray::move_to_now(int, int, short int*, int)': BUILDSTDERR: OUNITAM.cpp:530:7: warning: unused variable 'autoCorrectStartX' [-Wunused-variable] BUILDSTDERR: 530 | int autoCorrectStartX = x; BUILDSTDERR: | ^~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITAM.cpp: In member function 'void UnitArray::construct_sorted_array(short int*, int)': BUILDSTDERR: OUNITAM.cpp:1013:13: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 1013 | done_flag[k] = 1; BUILDSTDERR: | ^ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OUNITAMT.cpp:104: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITAM.cpp: In member function 'void UnitArray::move_to_now(int, int, short int*, int)': BUILDSTDERR: OUNITAM.cpp:522:25: warning: 'selectedSizeOneUnitArray' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 522 | construct_sorted_array(selectedSizeOneUnitArray, sizeOneSelectedCount); // distance and sorted_member should be initialized first BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OUNITAM.cpp:28: BUILDSTDERR: ../include/ALL.h:85:52: warning: argument 1 range [18446744069414584320, 18446744073709551614] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] BUILDSTDERR: 85 | #define mem_add(memSize) ((char*)malloc(memSize)) BUILDSTDERR: | ~~~~~~^~~~~~~~~ BUILDSTDERR: OUNITAM.cpp:370:38: note: in expansion of macro 'mem_add' BUILDSTDERR: 370 | selectedSizeOneUnitArray = (short*)mem_add(sizeof(short)*sizeOneSelectedCount); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: ../include/ALL.h:85:52: note: in a call to built-in allocation function 'void* __builtin_calloc(long unsigned int, long unsigned int)' BUILDSTDERR: 85 | #define mem_add(memSize) ((char*)malloc(memSize)) BUILDSTDERR: | ~~~~~~^~~~~~~~~ BUILDSTDERR: OUNITAM.cpp:370:38: note: in expansion of macro 'mem_add' BUILDSTDERR: 370 | selectedSizeOneUnitArray = (short*)mem_add(sizeof(short)*sizeOneSelectedCount); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OUNITAT2.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OUNITAT.cpp:27: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OUNITAT3.cpp:27: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITAT.cpp: In member function 'void Unit::set_unreachable_location(int, int)': BUILDSTDERR: OUNITAT.cpp:1227:24: warning: unused variable 'bitFlag' [-Wunused-variable] BUILDSTDERR: 1227 | static unsigned short bitFlag[16] = {0x0001, 0x0002, 0x0004, 0x0008, 0x0010, 0x0020, 0x0040, 0x0080, BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OUNITAT.cpp: In member function 'void Unit::cycle_eqv_attack()': BUILDSTDERR: OUNITAT.cpp:1278:6: warning: unused variable 'trial' [-Wunused-variable] BUILDSTDERR: 1278 | int trial = MAX_UNIT_ATTACK_TYPE+2; BUILDSTDERR: | ^~~~~ BUILDSTDERR: OUNITAT.cpp: At global scope: BUILDSTDERR: OUNITAT.cpp:1227:24: warning: 'bitFlag' defined but not used [-Wunused-variable] BUILDSTDERR: 1227 | static unsigned short bitFlag[16] = {0x0001, 0x0002, 0x0004, 0x0008, 0x0010, 0x0020, 0x0040, 0x0080, BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OUNITAT2.cpp: In member function 'void Unit::process_attack_unit()': BUILDSTDERR: OUNITAT2.cpp:495:6: warning: unused variable 'spriteXLoc' [-Wunused-variable] BUILDSTDERR: 495 | int spriteXLoc = next_x_loc(); BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OUNITAT2.cpp:496:6: warning: unused variable 'spriteYLoc' [-Wunused-variable] BUILDSTDERR: 496 | int spriteYLoc = next_y_loc(); BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OUNITAT2.cpp:497:14: warning: unused variable 'attackInfo' [-Wunused-variable] BUILDSTDERR: 497 | AttackInfo* attackInfo = attack_info_array+cur_attack; BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OUNITATB.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITATB.cpp: In member function 'char* UnitArray::get_target_x_offset(int, int, char)': BUILDSTDERR: OUNITATB.cpp:350:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 350 | case 11: return attack_x_offset11[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:351:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 351 | case 12: return attack_x_offset12[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:352:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 352 | case 13: return attack_x_offset13[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:353:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 353 | case 14: return attack_x_offset14[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:354:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 354 | case 21: return attack_x_offset21[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:355:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 355 | case 22: return attack_x_offset22[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:356:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 356 | case 23: return attack_x_offset23[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:357:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 357 | case 24: return attack_x_offset24[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:358:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 358 | case 31: return attack_x_offset31[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:359:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 359 | case 32: return attack_x_offset32[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:360:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 360 | case 33: return attack_x_offset33[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:361:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 361 | case 34: return attack_x_offset34[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:362:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 362 | case 41: return attack_x_offset41[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:363:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 363 | case 42: return attack_x_offset42[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:364:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 364 | case 43: return attack_x_offset43[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:365:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 365 | case 44: return attack_x_offset44[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp: In member function 'char* UnitArray::get_target_y_offset(int, int, char)': BUILDSTDERR: OUNITATB.cpp:387:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 387 | case 11: return attack_y_offset11[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:388:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 388 | case 12: return attack_y_offset12[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:389:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 389 | case 13: return attack_y_offset13[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:390:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 390 | case 14: return attack_y_offset14[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:391:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 391 | case 21: return attack_y_offset21[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:392:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 392 | case 22: return attack_y_offset22[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:393:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 393 | case 23: return attack_y_offset23[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:394:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 394 | case 24: return attack_y_offset24[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:395:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 395 | case 31: return attack_y_offset31[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:396:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 396 | case 32: return attack_y_offset32[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:397:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 397 | case 33: return attack_y_offset33[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:398:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 398 | case 34: return attack_y_offset34[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:399:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 399 | case 41: return attack_y_offset41[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:400:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 400 | case 42: return attack_y_offset42[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:401:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 401 | case 43: return attack_y_offset43[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITATB.cpp:402:37: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 402 | case 44: return attack_y_offset44[curDir]; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITD.cpp:1097:13: warning: "/*" within comment [-Wcomment] BUILDSTDERR: 1097 | stop2(); //**** BUGHERE BUILDSTDERR: | BUILDSTDERR: OUNITD.cpp:1098:19: warning: "/*" within comment [-Wcomment] BUILDSTDERR: 1098 | //set_mode(0); //***BUGHERE BUILDSTDERR: | BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OUNITD.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITD.cpp: In member function 'void Unit::general_defend_mode_detect_target(int)': BUILDSTDERR: OUNITD.cpp:87:12: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: 87 | default: if(checkDefendMode) BUILDSTDERR: | ^~ BUILDSTDERR: OUNITD.cpp:89:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: 89 | break; BUILDSTDERR: | ^~~~~ BUILDSTDERR: OUNITD.cpp: In member function 'int Unit::general_defend_mode_process_attack_target()': BUILDSTDERR: OUNITD.cpp:207:34: warning: 'firmPtr' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 207 | firmInfo = firm_res[firmPtr->firm_id]; BUILDSTDERR: | ~~~~~~~~~^~~~~~~ BUILDSTDERR: In file included from ../include/OUNIT.h:28, BUILDSTDERR: from OUNITD.cpp:26: BUILDSTDERR: ../include/OSPRITE.h:98:31: warning: 'unitPtr' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 98 | short next_x_loc() { return next_x>>ZOOM_X_SHIFT_COUNT; } // >>5 = divided by 32, which is ZOOM_LOC_WIDTH & ZOOM_LOC_HEIGHT BUILDSTDERR: | ^~~~~~ BUILDSTDERR: OUNITD.cpp:104:8: note: 'unitPtr' was declared here BUILDSTDERR: 104 | Unit *unitPtr; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OUNITHB.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OUNITDRW.cpp:27: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CXX OBUTT3D.o CXX OBUTTCUS.o CXX OBUTTON.o CXX OB_FLAME.o CXX OB_HOMIN.o CXX OB_PROJ.o CXX OCOLTBL.o CXX OCONFIG.o CXX OCRC_STO.o CXX ODATE.o CXX ODB.o CXX ODIR.o CXX ODYNARR.o CXX ODYNARRB.o CXX OEFFECT.o CXX OERRCTRL.o CXX OERROR.o CXX OEXPMASK.o CXX OFILE.o CXX OFILETXT.o CXX OFIRM.o CXX OFIRM2.o CXX OFIRMA.o CXX OFIRMAI.o CXX OFIRMDIE.o CXX OFIRMDRW.o CXX OFIRMIF.o CXX OFIRMIF2.o CXX OFIRMIF3.o CXX OFIRMRES.o CXX OFLAME.o CXX OFONT.o CXX OF_BASE.o CXX OF_BASE2.o CXX OF_CAMP.o CXX OF_CAMP2.o CXX OF_FACT.o CXX OF_FACT2.o CXX OF_HARB.o CXX OF_HARB2.o CXX OF_INN.o CXX OF_INN2.o CXX OF_MARK.o CXX OF_MARK2.o CXX OF_MINE.o CXX OF_MINE2.o CXX OF_MONS.o CXX OF_RESE.o CXX OF_RESE2.o CXX OF_WAR.o CXX OF_WAR2.o CXX OGAMCRED.o CXX OGAME.o CXX OGAMEMP.o CXX OGAMENCY.o CXX OGAMEND.o CXX OGAMESET.o CXX OGAMHALL.o CXX OGAMMAIN.o CXX OGAMMENU.o CXX OGAMSCE2.o CXX OGAMSCEN.o CXX OGAMSING.o CXX OGENHILL.o CXX OGENMAP.o CXX OGETA.o CXX OGFILE.o CXX OGFILE2.o CXX OGFILE3.o CXX OGFILEA.o CXX OGF_V1.o CXX OGODRES.o CXX OGRPSEL.o CXX OHELP.o CXX OHILLRES.o CXX OIMGRES.o CXX OINFO.o CXX OINGMENU.o CXX OLIGHTN.o CXX OLIGHTN2.o CXX OLOG.o CXX OLONGLOG.o CXX OLZW.o CXX OMATRIX.o CXX OMEM.o CXX OMISC.o CXX OMONSRES.o CXX OMOUSE.o CXX OMOUSECR.o CXX OMP_CRC.o CXX OMUSIC.o CXX ONATIONA.o CXX ONATIONB.o CXX ONEWS.o CXX ONEWS2.o CXX ONEWSENG.o CXX ONEWSFRE.o CXX ONEWSGER.o CXX ONEWSSPA.o CXX OOPTMENU.o CXX OPLANT.o CXX OPLASMA.o CXX OPOWER.o CXX ORACERES.o CXX ORAIN1.o CXX ORAIN2.o CXX ORAIN3.o CXX ORAWRES.o CXX OREBEL.o CXX OREGION.o CXX OREGIONS.o CXX OREMOTE.o CXX OREMOTE2.o CXX OREMOTEM.o CXX OREMOTEQ.o CXX ORES.o CXX ORESDB.o CXX ORESX.o CXX OROCK.o CXX OROCKRES.o CXX OR_AI.o CXX OR_ECO.o CXX OR_MIL.o CXX OR_NAT.o CXX OR_NEWS.o CXX OR_RANK.o CXX OR_SPY.o CXX OR_TECH.o CXX OR_TOWN.o CXX OR_TRADE.o CXX OSCROLL.o CXX OSE.o CXX OSERES.o CXX OSFRMRES.o CXX OSITE.o CXX OSITEDRW.o CXX OSKILL.o CXX OSLIDCUS.o CXX OSNOW1.o CXX OSNOW2.o CXX OSNOWG.o CXX OSNOWRES.o CXX OSPATH.o CXX OSPATHBT.o CXX OSPREDBG.o CXX OSPREOFF.o CXX OSPRESMO.o CXX OSPREUSE.o CXX OSPRITE.o CXX OSPRITE2.o CXX OSPRITEA.o CXX OSPRTRES.o CXX OSPY.o CXX OSPY2.o CXX OSPYA.o CXX OSTR.o CXX OSYS.o CXX OSYS2.o CXX OSYS3.o CXX OTALKENG.o CXX OTALKFRE.o CXX OTALKGER.o CXX OTALKMSG.o CXX OTALKRES.o CXX OTALKSPA.o CXX OTECHRES.o CXX OTERRAIN.o CXX OTORNADO.o CXX OTOWN.o CXX OTOWNA.o CXX OTOWNAI.o CXX OTOWNBLD.o CXX OTOWNDRW.o CXX OTOWNIF.o CXX OTOWNIND.o CXX OTOWNRES.o CXX OTUTOR.o CXX OTUTOR2.o CXX OTownNetwork.o CXX OUNIT.o CXX OUNIT2.o CXX OUNITA.o CXX OUNITAAC.o CXX OUNITAAT.o CXX OUNITAC.o CXX OUNITAI.o CXX OUNITAM.o CXX OUNITAMT.o CXX OUNITAT.o CXX OUNITAT2.o CXX OUNITAT3.o CXX OUNITATB.o CXX OUNITD.o CXX OUNITDRW.o CXX OUNITHB.o BUILDSTDERR: CXX OUNITI.In file included from OUNITHB.cpp:29: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OUNITI.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITI.cpp: In member function 'int Unit::reactivate_idle_action()': BUILDSTDERR: OUNITI.cpp:322:16: warning: unused variable 'canMove' [-Wunused-variable] BUILDSTDERR: 322 | int canMove = 1; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OUNITI.cpp: In member function 'int Unit::idle_detect_firm_checking(short int)': BUILDSTDERR: OUNITI.cpp:888:13: warning: unused variable 'targetMobileType' [-Wunused-variable] BUILDSTDERR: 888 | char targetMobileType = mobile_type==UNIT_SEA ? UNIT_SEA : UNIT_LAND; BUILDSTDERR: | ^~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITI.cpp: At global scope: BUILDSTDERR: OUNITI.cpp:59:14: warning: 'idle_detect_target_wall_y1' defined but not used [-Wunused-variable] BUILDSTDERR: 59 | static short idle_detect_target_wall_y1; BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITI.cpp:58:14: warning: 'idle_detect_target_wall_x1' defined but not used [-Wunused-variable] BUILDSTDERR: 58 | static short idle_detect_target_wall_x1; BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITI.cpp:57:14: warning: 'idle_detect_target_town_recno' defined but not used [-Wunused-variable] BUILDSTDERR: 57 | static short idle_detect_target_town_recno; BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OUNITIF.cpp:31: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from OUNITIND.cpp:27: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OUNITM.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITM.cpp: In member function 'int Unit::avail_node_enough_for_search(short int, short int, short int, short int)': BUILDSTDERR: OUNITM.cpp:1640:8: warning: unused variable 'minDist' [-Wunused-variable] BUILDSTDERR: 1640 | short minDist = abs(dispX-dispY); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OUNITIF.cpp: In member function 'void Unit::disp_hit_point(int)': BUILDSTDERR: OUNITIF.cpp:1532:6: warning: variable 'hitPoints' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 1532 | int hitPoints; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OUNITIF.cpp: At global scope: BUILDSTDERR: OUNITIF.cpp:128:13: warning: 'void disp_debug_info(Unit*, int, int)' declared 'static' but never defined [-Wunused-function] BUILDSTDERR: 128 | static void disp_debug_info(Unit* unitPtr, int dispY1, int refreshFlag); BUILDSTDERR: | ^~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OUNITRES.cpp:28: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from ../include/OU_MARI.h:28, BUILDSTDERR: from OUNITS.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OUNITS.cpp:26: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITS.cpp: In member function 'void Unit::assign_to_ship(int, int, short int, int)': BUILDSTDERR: OUNITS.cpp:96:7: warning: variable 'resultXYLocWritten' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 96 | bool resultXYLocWritten = false; BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITS.cpp: In member function 'int Unit::ship_to_beach_path_edit(int&, int&, UCHAR)': BUILDSTDERR: OUNITS.cpp:377:14: warning: unused variable 'shipPtr' [-Wunused-variable] BUILDSTDERR: 377 | UnitMarine *shipPtr = (UnitMarine*) this; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OUNITS.cpp: In member function 'void Unit::ship_leave_beach(int, int)': BUILDSTDERR: OUNITS.cpp:621:14: warning: unused variable 'shipPtr' [-Wunused-variable] BUILDSTDERR: 621 | UnitMarine *shipPtr = (UnitMarine*) this; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OUNITS.cpp: In member function 'void Unit::assign_to_ship(int, int, short int, int)': BUILDSTDERR: OUNITS.cpp:153:9: warning: 'resultYLoc' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 153 | search(resultXLoc, resultYLoc, 1); BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OUNITS.cpp:153:9: warning: 'resultXLoc' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OU_CARA2.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OU_CARA.cpp:29: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPATH.h:37, BUILDSTDERR: from ../include/OU_CARA.h:33, BUILDSTDERR: from OU_CARAS.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OU_CARAS.cpp: In member function 'int CaravanStop::update_pick_up(char*)': BUILDSTDERR: OU_CARAS.cpp:165:14: warning: variable 'selectiveMode' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 165 | int id, i, selectiveMode; BUILDSTDERR: | ^~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from OU_CARAT.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OU_CARA.cpp: In member function 'void UnitCaravan::disp_stop(int, int)': BUILDSTDERR: OU_CARA.cpp:154:31: warning: variable 'needRefresh' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 154 | int i, x=INFO_X1, y=dispY1, needRefresh; BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: OU_CARA.cpp: In member function 'void UnitCaravan::detect_stop()': BUILDSTDERR: OU_CARA.cpp:234:9: warning: unused variable 'x' [-Wunused-variable] BUILDSTDERR: 234 | int i, x=INFO_X1; BUILDSTDERR: | ^ BUILDSTDERR: OU_CARA.cpp: In member function 'void UnitCaravan::caravan_in_firm()': BUILDSTDERR: OU_CARA.cpp:1154:15: warning: unused variable 'stopPtr' [-Wunused-variable] BUILDSTDERR: 1154 | CaravanStop *stopPtr = stop_array + dest_stop_id - 1; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from ../include/OU_CART.h:27, BUILDSTDERR: from OU_CART.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from ../include/OGODRES.h:28, BUILDSTDERR: from OU_GOD.cpp:27: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OU_CARAT.cpp: In member function 'void UnitCaravan::market_load_goods_now(MarketGoods*, float)': BUILDSTDERR: OU_CARAT.cpp:426:2: warning: 'qty' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 426 | if( qty > 0 ) BUILDSTDERR: | ^~ BUILDSTDERR: In file included from OU_GOD.cpp:26: BUILDSTDERR: ../include/OBUTT3D.h: In member function 'virtual void UnitGod::disp_info(int)': BUILDSTDERR: ../include/OBUTT3D.h:79:13: warning: 'buttonName' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 79 | { create( pX1, pY1, buttonStyle, buttonName, elasticFlag, defIsPushed ); paint(); } BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OU_GOD.cpp:155:15: note: 'buttonName' was declared here BUILDSTDERR: 155 | const char* buttonName; BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/ONATIONB.h:28, BUILDSTDERR: from ../include/ONATION.h:29, BUILDSTDERR: from ../include/OGODRES.h:28, BUILDSTDERR: from OU_GOD2.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OU_MARI.cpp:25: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OU_GOD2.cpp: In member function 'int UnitGod::think_god_attack_target(int&, int&)': BUILDSTDERR: OU_GOD2.cpp:289:7: warning: unused variable 'curXLoc' [-Wunused-variable] BUILDSTDERR: 289 | int curXLoc=next_x_loc(), curYLoc=next_y_loc(); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OU_GOD2.cpp:289:29: warning: unused variable 'curYLoc' [-Wunused-variable] BUILDSTDERR: 289 | int curXLoc=next_x_loc(), curYLoc=next_y_loc(); BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OU_GOD2.cpp: In member function 'void UnitGod::think_egyptian_god()': BUILDSTDERR: OU_GOD2.cpp:409:10: warning: unused variable 'ownNation' [-Wunused-variable] BUILDSTDERR: 409 | Nation* ownNation = nation_array[nation_recno]; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OU_GOD2.cpp: In member function 'void UnitGod::think_indian_god()': BUILDSTDERR: OU_GOD2.cpp:497:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 497 | && (unitPtr->loyalty >= 20 && unitPtr->loyalty <= 60 || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OU_GOD2.cpp:545:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 545 | && (unitPtr->loyalty >= 20 && unitPtr->loyalty <= 60 || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPATH.h:37, BUILDSTDERR: from ../include/OU_CARA.h:33, BUILDSTDERR: from OU_MARI.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OU_MARI2.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OU_MARI.cpp: In member function 'void UnitMarine::load_unit(int)': BUILDSTDERR: OU_MARI.cpp:338:29: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 338 | unit_recno_array[unit_count++] = unitRecno; BUILDSTDERR: | ~~~~~~~~~~^~ BUILDSTDERR: OU_MARI.cpp: In member function 'int UnitMarine::is_on_coast()': BUILDSTDERR: OU_MARI.cpp:524:46: warning: unused variable 'found' [-Wunused-variable] BUILDSTDERR: 524 | int xShift, yShift, checkXLoc, checkYLoc, found=0; BUILDSTDERR: | ^~~~~ BUILDSTDERR: OU_GOD2.cpp: In member function 'void UnitGod::think_egyptian_god()': BUILDSTDERR: OU_GOD2.cpp:451:16: warning: 'targetYLoc' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 451 | go_cast_power(targetXLoc, targetYLoc, 1, COMMAND_AI); // 1 - cast power type BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OU_GOD2.cpp:451:16: warning: 'targetXLoc' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: In file included from ../include/OSPATH.h:37, BUILDSTDERR: from ../include/OU_CARA.h:33, BUILDSTDERR: from OU_MARI.cpp:26: BUILDSTDERR: ../include/OWORLD.h: In member function 'void UnitMarine::extra_move()': BUILDSTDERR: ../include/OWORLD.h:112:45: warning: 'checkYLoc' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 112 | { return loc_matrix + MAX_WORLD_X_LOC * yLoc + xLoc; } BUILDSTDERR: OU_MARI.cpp:562:17: note: 'checkYLoc' was declared here BUILDSTDERR: 562 | int checkXLoc, checkYLoc, i, found=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: In file included from ../include/OSPATH.h:37, BUILDSTDERR: from ../include/OU_CARA.h:33, BUILDSTDERR: from OU_MARI.cpp:26: BUILDSTDERR: ../include/OWORLD.h:112:52: warning: 'checkXLoc' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 112 | { return loc_matrix + MAX_WORLD_X_LOC * yLoc + xLoc; } BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ BUILDSTDERR: OU_MARI.cpp:562:6: note: 'checkXLoc' was declared here BUILDSTDERR: 562 | int checkXLoc, checkYLoc, i, found=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from OU_MARIF.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPRITE.h:36, BUILDSTDERR: from ../include/OUNIT.h:28, BUILDSTDERR: from ../include/OU_MARI.h:28, BUILDSTDERR: from OU_MARIS.cpp:21: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OU_MONS.cpp:24: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OSPATH.h:37, BUILDSTDERR: from ../include/OU_CARA.h:33, BUILDSTDERR: from OU_MARIT.cpp:26: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OU_MARIS.cpp: In member function 'int ShipStop::update_pick_up(char*)': BUILDSTDERR: OU_MARIS.cpp:48:6: warning: unused variable 'selectiveMode' [-Wunused-variable] BUILDSTDERR: 48 | int selectiveMode = (pick_up_type!=AUTO_PICK_UP && pick_up_type!=NO_PICK_UP); BUILDSTDERR: | ^~~~~~~~~~~~~ BUILDSTDERR: OU_MARIT.cpp: In member function 'void UnitMarine::ship_in_firm(int)': BUILDSTDERR: OU_MARIT.cpp:460:12: warning: unused variable 'stopPtr' [-Wunused-variable] BUILDSTDERR: 460 | ShipStop *stopPtr = stop_array + dest_stop_id - 1; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: OU_MARIT.cpp: In member function 'void UnitMarine::harbor_unload_raw()': BUILDSTDERR: OU_MARIT.cpp:936:68: warning: right operand of comma operator has no effect [-Wunused-value] BUILDSTDERR: 936 | for(j=0; jTERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OWORLD_M.cpp:36: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OWORLD_M.cpp: In member function 'void MapMatrix::draw_map()': BUILDSTDERR: OWORLD_M.cpp:274:44: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 274 | *writePtr = nationColorArray[locPtr->power_nation_recno]; BUILDSTDERR: | ~~~~~~~~^~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OWORLD.cpp:38: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OWORLD.cpp: In member function 'void World::explore(int, int, int, int)': BUILDSTDERR: OWORLD.cpp:557:45: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 557 | *writePtr = nationColorArray[locPtr->power_nation_recno]; BUILDSTDERR: | ~~~~~~~~^~~~~~~~~~~~~~~~~~ BUILDSTDERR: OWORLD.cpp: In member function 'int World::locate_space(int*, int*, int, int, int, int, int, int, int)': BUILDSTDERR: OWORLD.cpp:821:6: warning: unused variable 'loopCount' [-Wunused-variable] BUILDSTDERR: 821 | int loopCount=0; BUILDSTDERR: | ^~~~~~~~~ BUILDSTDERR: OWORLD_M.cpp: In member function 'void MapMatrix::disp_mode_button(int)': BUILDSTDERR: OWORLD_M.cpp:111:25: warning: 'iconName' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 111 | image_button.put_front( 579, 2, iconName, 1 ); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from ../include/OINFO.h:31, BUILDSTDERR: from ../include/OFIRM.h:36, BUILDSTDERR: from OWORLD_Z.cpp:32: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OWORLD_Z.cpp:40: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OW_PLANT.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OW_PLANT.cpp:30: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OW_PLANT.cpp: In member function 'void World::plant_spread(int)': BUILDSTDERR: OW_PLANT.cpp:247:42: warning: array subscript has type 'char' [-Wchar-subscripts] BUILDSTDERR: 247 | if( misc.random(5) > abs(t- opt_temp[j]) ) BUILDSTDERR: | ^ BUILDSTDERR: OW_PLANT.cpp: In member function 'void World::plant_init()': BUILDSTDERR: OW_PLANT.cpp:410:10: warning: unused variable 'plantBitmap' [-Wunused-variable] BUILDSTDERR: 410 | short plantBitmap = plant_res.scan( 0, teraType, 0); BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OW_ROCK.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from OW_ROCK.cpp:28: BUILDSTDERR: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': BUILDSTDERR: ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 103 | int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: OWORLD_Z.cpp: In member function 'virtual void ZoomMatrix::draw()': BUILDSTDERR: OWORLD_Z.cpp:314:12: warning: unused variable 'i' [-Wunused-variable] BUILDSTDERR: 314 | int i=0, x, y, xLoc, yLoc, dispPower; BUILDSTDERR: | ^ BUILDSTDERR: OWORLD_Z.cpp: In member function 'void ZoomMatrix::draw_white_site()': BUILDSTDERR: OWORLD_Z.cpp:459:12: warning: unused variable 'i' [-Wunused-variable] BUILDSTDERR: 459 | int i=0, x, y, xLoc, yLoc; BUILDSTDERR: | ^ BUILDSTDERR: OWORLD_Z.cpp: In member function 'void ZoomMatrix::draw_weather_effects()': BUILDSTDERR: OWORLD_Z.cpp:677:8: warning: unused variable 'backupSeed' [-Wunused-variable] BUILDSTDERR: 677 | long backupSeed = misc.get_random_seed(); BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: OWORLD.cpp: In member function 'void World::restore_power(int, int, int, int, int, int)': BUILDSTDERR: OWORLD.cpp:1574:4: warning: 'nationRecno' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 1574 | if( locPtr->power_nation_recno==nationRecno ) BUILDSTDERR: | ^~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OW_WALL.cpp:25: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from ../include/OWORLDMT.h:28, BUILDSTDERR: from ../include/OWORLD.h:28, BUILDSTDERR: from OW_SOUND.cpp:29: BUILDSTDERR: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': BUILDSTDERR: ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] BUILDSTDERR: 205 | !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } BUILDSTDERR: | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + convert data/image/7k_icon.bmp 7kaa_icon.png + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 o CXX OUNITIF.o CXX OUNITIND.o CXX OUNITM.o CXX OUNITRES.o CXX OUNITS.o CXX OU_CARA.o CXX OU_CARA2.o CXX OU_CARAS.o CXX OU_CARAT.o CXX OU_CART.o CXX OU_GOD.o CXX OU_GOD2.o CXX OU_MARI.o CXX OU_MARI2.o CXX OU_MARIF.o CXX OU_MARIS.o CXX OU_MARIT.o CXX OU_MONS.o CXX OU_VEHI.o CXX OVBROWIF.o CXX OVBROWSE.o CXX OVGABUF.o CXX OVGABUF2.o CXX OVGALOCK.o CXX OVIDEO.o CXX OVOLUME.o CXX OVQUEUE.o CXX OWALLRES.o CXX OWARPT.o CXX OWEATHER.o CXX OWORLD.o CXX OWORLD_M.o CXX OWORLD_Z.o CXX OW_FIRE.o CXX OW_PLANT.o CXX OW_ROCK.o CXX OW_SOUND.o CXX OW_WALL.o CXX dbglog.o CXX file_input_stream.o CXX file_output_stream.o CXX file_reader.o CXX file_util.o CXX file_writer.o CXX input_stream.o CXX mem_input_stream.o CXX misc_uuid.o CXX output_stream.o CXX player_desc.o CXX surface_sdl.o CXX vga_sdl.o CXX vgautil.o CXX vgautil2.o CXXLD 7kaa make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src' make[1]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src' Making all in po make[1]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/po' make[1]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/po' make[1]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7' make[1]: Nothing to be done for 'all-am'. make[1]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7' Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.fOmFuR + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64 + cd 7kaa-2.14.7 + /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64 'INSTALL=/usr/bin/install -p' Making install in data make[1]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/data' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/data' make[2]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/resource' /usr/bin/install -p -m 644 resource/a_wave1.res resource/a_wave2.res resource/cursor.res resource/explmask.bin resource/expremap.bin resource/fnt_bard.res resource/fnt_casa.res resource/fnt_hitp.res resource/fnt_mid.res resource/fnt_news.res resource/fnt_san.res resource/fnt_smal.res resource/fnt_std.res resource/help.res resource/hill1.res resource/hill2.res resource/hill3.res resource/i_button.res resource/i_cursor.res resource/i_encyc.res resource/i_firm.res resource/i_firmdi.res resource/i_hill1.res resource/i_hill2.res resource/i_hill3.res resource/i_icon.res resource/i_if.res resource/i_menu.res resource/i_menu2.res resource/i_plant1.res resource/i_plant2.res resource/i_plant3.res resource/i_race.res resource/i_raw.res resource/i_rock1.res resource/i_rock2.res resource/i_rock3.res resource/i_snow.res resource/i_spict.res resource/i_tech.res '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/resource' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/resource' /usr/bin/install -p -m 644 resource/i_tera1.res resource/i_tera2.res resource/i_tera3.res resource/i_tern1.res resource/i_tern2.res resource/i_tern3.res resource/i_town.res resource/i_tpict1.res resource/i_tpict2.res resource/i_tpict3.res resource/i_unitgi.res resource/i_unitki.res resource/i_unitli.res resource/i_unitsi.res resource/i_unitti.res resource/i_unitui.res resource/i_wall.res resource/pal_enc.res resource/pal_menu.res resource/pal_std.res resource/pal_win.res resource/plant1.res resource/plant2.res resource/plant3.res resource/plantbm1.res resource/plantbm2.res resource/plantbm3.res resource/rock1.res resource/rock2.res resource/rock3.res resource/rockani1.res resource/rockani2.res resource/rockani3.res resource/rockblk1.res resource/rockblk2.res resource/rockblk3.res resource/rockbmp1.res resource/rockbmp2.res resource/rockbmp3.res resource/std.set '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/resource' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/scenari2' /usr/bin/install -p -m 644 scenari2/scn_01.scn scenari2/scn_01.scp scenari2/scn_01.sct scenari2/scn_02.scn scenari2/scn_02.scp scenari2/scn_02.sct scenari2/scn_03.scn scenari2/scn_03.scp scenari2/scn_03.sct scenari2/scn_04.scn scenari2/scn_04.scp scenari2/scn_04.sct scenari2/scn_05.scn scenari2/scn_05.scp scenari2/scn_05.sct scenari2/scn_06.scn scenari2/scn_06.scp scenari2/scn_06.sct scenari2/scn_07.scn scenari2/scn_07.scp scenari2/scn_07.sct scenari2/scn_08.scn scenari2/scn_08.scp scenari2/scn_08.sct scenari2/scn_09.scn scenari2/scn_09.scp scenari2/scn_09.sct scenari2/scn_10.scn scenari2/scn_10.scp scenari2/scn_10.sct scenari2/scn_11.scn scenari2/scn_11.scp scenari2/scn_11.sct scenari2/scn_12.scn scenari2/scn_12.scp scenari2/scn_12.sct scenari2/scn_13.scn scenari2/scn_13.scp scenari2/scn_13.sct scenari2/scn_14.scn '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/scenari2' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/scenario' /usr/bin/install -p -m 644 scenario/7for7.scn scenario/7for7.scp scenario/7for7.sct scenario/c&d.scn scenario/c&d.scp scenario/c&d.sct scenario/desbow.scn scenario/desbow.scp scenario/desbow.sct scenario/desperdo.scn scenario/desperdo.scp scenario/desperdo.sct scenario/eradicat.scn scenario/eradicat.scp scenario/eradicat.sct scenario/ftfrautn.scn scenario/ftfrautn.scp scenario/ftfrautn.sct scenario/h&m.scn scenario/h&m.scp scenario/h&m.sct scenario/insulpos.scn scenario/insulpos.scp scenario/insulpos.sct scenario/ironfist.scn scenario/ironfist.scp scenario/ironfist.sct scenario/kukulcns.scn scenario/kukulcns.scp scenario/kukulcns.sct scenario/makebrek.scn scenario/makebrek.scp scenario/makebrek.sct scenario/meltpot.scn scenario/meltpot.scp scenario/meltpot.sct scenario/monorwar.scn scenario/monorwar.scp scenario/monorwar.sct scenario/newworld.scn '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/scenario' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/sprite' /usr/bin/install -p -m 644 sprite/baatezu.spr sprite/ballista.spr sprite/canball.spr sprite/canballa.spr sprite/canballs.spr sprite/cannon.spr sprite/cansmoke.spr sprite/caravan.spr sprite/carave_s.spr sprite/caravel.spr sprite/catapult.spr sprite/catfire.spr sprite/catfirea.spr sprite/catfires.spr sprite/catstona.spr sprite/catstone.spr sprite/catstons.spr sprite/ch_arrow.spr sprite/chdragon.spr sprite/chinese.spr sprite/dr_arrow.spr sprite/dragon.spr sprite/eg_arrow.spr sprite/eg_god.spr sprite/eg_powar.spr sprite/egyptian.spr sprite/expcart.spr sprite/f_ballis.spr sprite/fb_arra0.spr sprite/fb_arrow.spr sprite/fb_arrs0.spr sprite/fcatapul.spr sprite/firekin.spr sprite/fl_arrow.spr sprite/flamethr.spr sprite/fpersian.spr sprite/galleo_s.spr sprite/galleon.spr sprite/gc_arrow.spr sprite/ge_star.spr '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/sprite' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/sprite' /usr/bin/install -p -m 644 sprite/gi_star.spr sprite/giantet.spr sprite/gith.spr sprite/gj_star.spr sprite/gnoll.spr sprite/goblin.spr sprite/gp_star.spr sprite/greek.spr sprite/gremjerm.spr sprite/gz_star.spr sprite/headless.spr sprite/hitspar2.spr sprite/hitspark.spr sprite/hobglob.spr sprite/in_god.spr sprite/indian.spr sprite/ja_god.spr sprite/ja_power.spr sprite/japanese.spr sprite/kukulcan.spr sprite/lizard.spr sprite/lyw.spr sprite/man.spr sprite/maya.spr sprite/moldman.spr sprite/no_arrow.spr sprite/norman.spr sprite/pe_arrow.spr sprite/pe_powar.spr sprite/pehealer.spr sprite/persian.spr sprite/pheonix.spr sprite/rm_arrow.spr sprite/rockman.spr sprite/skeleton.spr sprite/steam.spr sprite/tc_arr00.spr sprite/tc_arr01.spr sprite/tc_arr02.spr sprite/tc_arra0.spr '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/sprite' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/encyc2/unit' /usr/bin/install -p -m 644 encyc2/unit/egyptian.col encyc2/unit/egyptian.icn encyc2/unit/f_ballis.col encyc2/unit/f_ballis.icn encyc2/unit/indian.col encyc2/unit/indian.icn encyc2/unit/zulu.col encyc2/unit/zulu.icn '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/encyc2/unit' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/sprite' /usr/bin/install -p -m 644 sprite/tc_arra1.spr sprite/tc_arra2.spr sprite/tc_arrs0.spr sprite/tc_arrs1.spr sprite/tc_arrs2.spr sprite/tornado.spr sprite/transp_s.spr sprite/transpor.spr sprite/v_arrow.spr sprite/v_splash.spr sprite/vessel.spr sprite/vessel_s.spr sprite/vi_god.spr sprite/viking.spr sprite/zu_arrow.spr sprite/zu_god.spr sprite/zulu.spr '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/sprite' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/encyc/seat' /usr/bin/install -p -m 644 encyc/seat/chinese.col encyc/seat/chinese.icn encyc/seat/greek.col encyc/seat/greek.icn encyc/seat/japanese.col encyc/seat/japanese.icn encyc/seat/maya.col encyc/seat/maya.icn encyc/seat/norman.col encyc/seat/norman.icn encyc/seat/persian.col encyc/seat/persian.icn encyc/seat/viking.col encyc/seat/viking.icn '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/encyc/seat' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/scenari2' /usr/bin/install -p -m 644 scenari2/scn_14.scp scenari2/scn_14.sct scenari2/scn_15.scn scenari2/scn_15.scp scenari2/scn_15.sct '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/scenari2' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/resource' /usr/bin/install -p -m 644 resource/teranm1.res resource/teranm2.res resource/teranm3.res resource/terrain1.res resource/terrain2.res resource/terrain3.res resource/tersub.res resource/tut_intr.res resource/tut_list.res resource/tut_list.txt resource/tut_pict.res resource/tut_text.res '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/resource' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/encyc/monster' /usr/bin/install -p -m 644 encyc/monster/firekin.col encyc/monster/firekin.icn encyc/monster/giantet.col encyc/monster/giantet.icn encyc/monster/gith.col encyc/monster/gith.icn encyc/monster/gnoll.col encyc/monster/gnoll.icn encyc/monster/goblin.col encyc/monster/goblin.icn encyc/monster/gremjerm.col encyc/monster/gremjerm.icn encyc/monster/headless.col encyc/monster/headless.icn encyc/monster/hobglob.col encyc/monster/hobglob.icn encyc/monster/lizard.col encyc/monster/lizard.icn encyc/monster/lyw.col encyc/monster/lyw.icn encyc/monster/man.col encyc/monster/man.icn encyc/monster/rockman.col encyc/monster/rockman.icn encyc/monster/skeleton.col encyc/monster/skeleton.icn encyc/monster/struct_1.col encyc/monster/struct_1.icn encyc/monster/struct_2.col encyc/monster/struct_2.icn encyc/monster/struct_3.col encyc/monster/struct_3.icn encyc/monster/struct_4.col encyc/monster/struct_4.icn '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/encyc/monster' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/encyc/unit' /usr/bin/install -p -m 644 encyc/unit/ballista.col encyc/unit/ballista.icn encyc/unit/cannon.col encyc/unit/cannon.icn encyc/unit/caravel.col encyc/unit/caravel.icn encyc/unit/catapult.col encyc/unit/catapult.icn encyc/unit/chinese.col encyc/unit/chinese.icn encyc/unit/expcart.col encyc/unit/expcart.icn encyc/unit/flamethr.col encyc/unit/flamethr.icn encyc/unit/galleon.col encyc/unit/galleon.icn encyc/unit/greek.col encyc/unit/greek.icn encyc/unit/japanese.col encyc/unit/japanese.icn encyc/unit/maya.col encyc/unit/maya.icn encyc/unit/norman.col encyc/unit/norman.icn encyc/unit/persian.col encyc/unit/persian.icn encyc/unit/transpor.col encyc/unit/transpor.icn encyc/unit/vessel.col encyc/unit/vessel.icn encyc/unit/viking.col encyc/unit/viking.icn '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/encyc/unit' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/encyc/firm' /usr/bin/install -p -m 644 encyc/firm/factory.col encyc/firm/factory.icn encyc/firm/fort.col encyc/firm/fort.icn encyc/firm/harbor.col encyc/firm/harbor.icn encyc/firm/inn.col encyc/firm/inn.icn encyc/firm/market.col encyc/firm/market.icn encyc/firm/mine.col encyc/firm/mine.icn encyc/firm/science.col encyc/firm/science.icn encyc/firm/warfact.col encyc/firm/warfact.icn '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/encyc/firm' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/encyc2/seat' /usr/bin/install -p -m 644 encyc2/seat/egyptian.col encyc2/seat/egyptian.icn encyc2/seat/indian.col encyc2/seat/indian.icn encyc2/seat/zulu.col encyc2/seat/zulu.icn '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/encyc2/seat' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/sound' /usr/bin/install -p -m 644 sound/fire.wav sound/quake.wav sound/rain.wav sound/thunder.wav sound/wind.wav '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/sound' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/image' /usr/bin/install -p -m 644 image/7k_icon.bmp image/chinese.col image/chinese.icn image/credits1.col image/credits1.icn image/credits2.col image/credits2.icn image/credits3.col image/credits3.icn image/credits4.col image/credits4.icn image/egyptian.col image/egyptian.icn image/greek.col image/greek.icn image/hallfame.col image/hallfame.icn image/indian.col image/indian.icn image/japanese.col image/japanese.icn image/losegame.col image/losegame.icn image/mainmenu.col image/mainmenu.icn image/maya.col image/maya.icn image/norman.col image/norman.icn image/persian.col image/persian.icn image/results.col image/results.icn image/viking.col image/viking.icn image/zulu.col image/zulu.icn '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/image' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/encyc/god' /usr/bin/install -p -m 644 encyc/god/chinese.col encyc/god/chinese.icn encyc/god/greek.col encyc/god/greek.icn encyc/god/japanese.col encyc/god/japanese.icn encyc/god/maya.col encyc/god/maya.icn encyc/god/norman.col encyc/god/norman.icn encyc/god/persian.col encyc/god/persian.icn encyc/god/viking.col encyc/god/viking.icn '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/encyc/god' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/tutorial' /usr/bin/install -p -m 644 tutorial/10captur.int tutorial/10captur.tut tutorial/10captur.txt tutorial/1bas_mil.int tutorial/1bas_mil.tut tutorial/1bas_mil.txt tutorial/2b_trade.int tutorial/2b_trade.tut tutorial/2b_trade.txt tutorial/2bas_eco.int tutorial/2bas_eco.tut tutorial/2bas_eco.txt tutorial/3researc.int tutorial/3researc.tut tutorial/3researc.txt tutorial/4weapons.int tutorial/4weapons.tut tutorial/4weapons.txt tutorial/5bas_nav.int tutorial/5bas_nav.tut tutorial/5bas_nav.txt tutorial/6seatrad.int tutorial/6seatrad.tut tutorial/6seatrad.txt tutorial/7mercena.int tutorial/7mercena.tut tutorial/7mercena.txt tutorial/8fryhtan.int tutorial/8fryhtan.tut tutorial/8fryhtan.txt tutorial/9seatpow.int tutorial/9seatpow.tut tutorial/9seatpow.txt tutorial/loyalty.int tutorial/loyalty.tut tutorial/loyalty.txt tutorial/spying.int tutorial/spying.tut tutorial/spying.txt '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/tutorial' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/scenario' /usr/bin/install -p -m 644 scenario/newworld.scp scenario/newworld.sct scenario/norman.scn scenario/norman.scp scenario/norman.sct scenario/notlost.scn scenario/notlost.scp scenario/notlost.sct scenario/pirates.scn scenario/pirates.scp scenario/pirates.sct scenario/prnctkao.scn scenario/prnctkao.scp scenario/prnctkao.sct scenario/quesuccn.scn scenario/quesuccn.scp scenario/quesuccn.sct scenario/resdep.scn scenario/resdep.scp scenario/resdep.sct scenario/treadcar.scn scenario/treadcar.scp scenario/treadcar.sct scenario/vikblitz.scn scenario/vikblitz.scp scenario/vikblitz.sct scenario/weakened.scn scenario/weakened.scp scenario/weakened.sct '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/scenario' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/encyc2/god' /usr/bin/install -p -m 644 encyc2/god/egyptian.col encyc2/god/egyptian.icn encyc2/god/indian.col encyc2/god/indian.icn encyc2/god/zulu.col encyc2/god/zulu.icn '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/encyc2/god' make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/data' make[1]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/data' Making install in include make[1]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/include' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/include' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/include' make[1]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/include' Making install in src make[1]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src' Making install in enet make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/enet' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/enet' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/enet' make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/enet' Making install in imgfun make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/imgfun' Making install in generic make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/imgfun/generic' make[4]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/imgfun/generic' make[4]: Nothing to be done for 'install-exec-am'. make[4]: Nothing to be done for 'install-data-am'. make[4]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/imgfun' make[4]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/imgfun' make[4]: Nothing to be done for 'install-exec-am'. make[4]: Nothing to be done for 'install-data-am'. make[4]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/imgfun' make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/imgfun' make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/imgfun' Making install in openal make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/openal' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/openal' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/openal' make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/openal' Making install in platform make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/platform' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/platform' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/platform' make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/platform' Making install in curl make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/curl' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src/curl' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/curl' make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src/curl' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src' make[3]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/src' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/bin' /usr/bin/install -p 7kaa '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/bin' make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src' make[2]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src' make[1]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/src' Making install in po make[1]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7/po' if test "7kaa" = "gettext-tools"; then \ /usr/bin/mkdir -p /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/gettext/po; \ for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot Makevars.template; do \ /usr/bin/install -p -m 644 ./$file \ /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/gettext/po/$file; \ done; \ for file in Makevars; do \ rm -f /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/gettext/po/$file; \ done; \ else \ : ; \ fi make[1]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7/po' make[1]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7' make[2]: Entering directory '/builddir/build/BUILD/7kaa-2.14.7' make[2]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/doc/7kaa' /usr/bin/install -p -m 644 COPYING README '/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/doc/7kaa' BUILDSTDERR: make[2]: Leaving directory '/builddir/b+ mkdir -p /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/icons/hicolor/32x32/apps + install -m 644 7kaa_icon.png /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/icons/hicolor/32x32/apps + cat + desktop-file-install --dir=/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/applications 7kaa.desktop + mkdir -p /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/music + mkdir -p /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/doc/7kaa-music + cat + install -m 755 7kaa-data-installer /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/bin/7kaa-data-installer + install -m 644 /builddir/build/SOURCES/7kaa.autodlrc /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/7kaa/music + rm -f /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/doc/7kaa/COPYING + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 2.14.7-6.fc31 --unique-debug-suffix -2.14.7-6.fc31.riscv64 --unique-debug-src-base 7kaa-2.14.7-6.fc31.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/7kaa-2.14.7 BUILDSTDERR: 11746 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs uild/BUILD/7kaa-2.14.7' make[1]: Leaving directory '/builddir/build/BUILD/7kaa-2.14.7' explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/bin/7kaa extracting debug info from /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/bin/7kaa original debug info size: 24812kB, size after compression: 11356kB /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. mangling shebang in /usr/bin/7kaa-data-installer from /bin/bash to #!/usr/bin/bash Processing files: 7kaa-2.14.7-6.fc31.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.V7GVjQ + umask 022 + cd /builddir/build/BUILD + cd 7kaa-2.14.7 + DOCDIR=/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/doc/7kaa + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/doc/7kaa + cp -pr README /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/doc/7kaa + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.3Pl8iS + umask 022 + cd /builddir/build/BUILD + cd 7kaa-2.14.7 + LICENSEDIR=/builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/licenses/7kaa + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/licenses/7kaa + cp -pr COPYING /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64/usr/share/licenses/7kaa + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Provides: 7kaa = 2.14.7-6.fc31 7kaa(riscv-64) = 2.14.7-6.fc31 application() application(7kaa.desktop) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libSDL2-2.0.so.0()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libcurl.so.4()(64bit) libenet.so.7()(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.27)(64bit) libopenal.so.1()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.8)(64bit) libstdc++.so.6(CXXABI_1.3.9)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) rtld(GNU_HASH) Processing files: 7kaa-data-2.14.7-6.fc31.noarch Provides: 7kaa-data = 2.14.7-6.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: 7kaa-music-2.14.7-6.fc31.noarch Provides: 7kaa-music = 2.14.7-6.fc31 Requires(interp): /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(postun): /bin/sh Requires: /usr/bin/bash Processing files: 7kaa-debugsource-2.14.7-6.fc31.riscv64 Provides: 7kaa-debugsource = 2.14.7-6.fc31 7kaa-debugsource(riscv-64) = 2.14.7-6.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: 7kaa-debuginfo-2.14.7-6.fc31.riscv64 Provides: 7kaa-debuginfo = 2.14.7-6.fc31 7kaa-debuginfo(riscv-64) = 2.14.7-6.fc31 debuginfo(build-id) = 5bbc990cc2624062df72921ab2a0bda76178c750 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: 7kaa-debugsource(riscv-64) = 2.14.7-6.fc31 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64 Wrote: /builddir/build/RPMS/7kaa-music-2.14.7-6.fc31.noarch.rpm Wrote: /builddir/build/RPMS/7kaa-2.14.7-6.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/7kaa-debugsource-2.14.7-6.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/7kaa-debuginfo-2.14.7-6.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/7kaa-data-2.14.7-6.fc31.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.1JoiNQ + umask 022 + cd /builddir/build/BUILD + cd 7kaa-2.14.7 + /usr/bin/rm -rf /builddir/build/BUILDROOT/7kaa-2.14.7-6.fc31.riscv64 + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Child return code was: 0