<86>Dec 15 08:26:35 userdel[9552]: delete user 'rooter' <86>Dec 15 08:26:35 groupadd[9602]: group added to /etc/group: name=rooter, GID=633 <86>Dec 15 08:26:35 groupadd[9602]: group added to /etc/gshadow: name=rooter <86>Dec 15 08:26:35 groupadd[9602]: new group: name=rooter, GID=633 <86>Dec 15 08:26:35 useradd[9614]: new user: name=rooter, UID=633, GID=633, home=/root, shell=/bin/bash <86>Dec 15 08:26:35 userdel[9678]: delete user 'builder' <86>Dec 15 08:26:35 userdel[9678]: removed group 'builder' owned by 'builder' <86>Dec 15 08:26:35 userdel[9678]: removed shadow group 'builder' owned by 'builder' <86>Dec 15 08:26:35 groupadd[9738]: group added to /etc/group: name=builder, GID=634 <86>Dec 15 08:26:35 groupadd[9738]: group added to /etc/gshadow: name=builder <86>Dec 15 08:26:35 groupadd[9738]: new group: name=builder, GID=634 <86>Dec 15 08:26:35 useradd[9753]: new user: name=builder, UID=634, GID=634, home=/usr/src, shell=/bin/bash <13>Dec 15 08:26:44 rpmi: libjpeg-2:1.5.1-alt1 1498218318 installed <13>Dec 15 08:26:44 rpmi: libpng16-1.6.35-alt1 sisyphus.214397.100 1539159349 installed <13>Dec 15 08:26:44 rpmi: libtiff5-4.0.3-alt1 1348347501 installed <13>Dec 15 08:26:44 rpmi: libglvnd-7:1.1.0-alt3 sisyphus.215982.100 1541498632 installed <13>Dec 15 08:26:44 rpmi: libexpat-2.2.4-alt1 1503305345 installed <13>Dec 15 08:26:44 rpmi: libidn2-2.0.5-alt1 1526923875 installed <13>Dec 15 08:26:44 rpmi: libSDL2-2.0.9-alt1 sisyphus.216057.100 1541183831 installed <13>Dec 15 08:26:44 rpmi: xorg-proto-devel-2018.4-alt3 1527685079 installed <13>Dec 15 08:26:44 rpmi: libopenjpeg2.0-2.3.0-alt2 sisyphus.216213.100 1541598437 installed <13>Dec 15 08:26:44 rpmi: libwebp7-1.0.1-alt1 sisyphus.216740.100 1542890911 installed <13>Dec 15 08:26:44 rpmi: libICE-1.0.9-alt1 1409902721 installed <13>Dec 15 08:26:44 rpmi: libwayland-server-1.16.0-alt1 1535614871 installed <13>Dec 15 08:26:44 rpmi: ilmbase12-common-2.2.0-alt1.1 1434452921 installed <13>Dec 15 08:26:44 rpmi: libiex12-2.2.0-alt1.1 1434452921 installed <13>Dec 15 08:26:44 rpmi: libilmthread12-2.2.0-alt1.1 1434452921 installed <13>Dec 15 08:26:44 rpmi: libhalf12-2.2.0-alt1.1 1434452921 installed <13>Dec 15 08:26:44 rpmi: libSM-1.2.3-alt1 sisyphus.215747.100 1540812795 installed <13>Dec 15 08:26:44 rpmi: libSDL2_net-2.0.1-alt1 1453488111 installed <13>Dec 15 08:26:44 rpmi: libOpenGL-7:1.1.0-alt3 sisyphus.215982.100 1541498632 installed <13>Dec 15 08:26:44 rpmi: libGLES-7:1.1.0-alt3 sisyphus.215982.100 1541498632 installed <13>Dec 15 08:26:44 rpmi: libjasper-2.0.14-alt1 1530105217 installed <13>Dec 15 08:26:44 rpmi: libopenal1-1.19.1-alt1 sisyphus.217618.20 1544481871 installed <13>Dec 15 08:26:44 rpmi: libenet-1.3.13-alt1 1442225972 installed <13>Dec 15 08:26:44 rpmi: publicsuffix-list-dafsa-20181106-alt1 sisyphus.216228.100 1541611754 installed <13>Dec 15 08:26:44 rpmi: libpsl-0.20.2-alt2 sisyphus.216228.200 1541611889 installed <13>Dec 15 08:26:44 rpmi: libnghttp2-1.34.0-alt1 sisyphus.214524.100 1539249634 installed <13>Dec 15 08:26:44 rpmi: libbrotlicommon-1.0.7-alt1 sisyphus.215491.100 1540428597 installed <13>Dec 15 08:26:44 rpmi: libbrotlidec-1.0.7-alt1 sisyphus.215491.100 1540428597 installed <13>Dec 15 08:26:44 rpmi: gcc-c++-common-1.4.22-alt1 1519183788 installed <13>Dec 15 08:26:45 rpmi: libstdc++8-devel-8.2.1-alt1 sisyphus.214000.20 1542662379 installed <13>Dec 15 08:26:45 rpmi: gcc8-c++-8.2.1-alt1 sisyphus.214000.20 1542662379 installed <13>Dec 15 08:26:45 rpmi: bc-1:1.06-alt4 1461014970 installed <13>Dec 15 08:26:45 rpmi: libwmflite-0.2.8.4-alt13 1506519339 installed <13>Dec 15 08:26:45 rpmi: libltdl7-2.4.2-alt7 sisyphus.216946.100 1543650637 installed <13>Dec 15 08:26:45 rpmi: liblqr-0.4.2-alt1 1383038438 installed <13>Dec 15 08:26:45 rpmi: liblcms2-2.9-alt1 1516411892 installed <13>Dec 15 08:26:45 rpmi: libjbig-2.1-alt1 1401380926 installed <13>Dec 15 08:26:45 rpmi: libgomp1-8.2.1-alt1 sisyphus.214000.20 1542662379 installed <13>Dec 15 08:26:45 rpmi: djvu-common-3.5.25.3-alt1 1365826139 installed <13>Dec 15 08:26:46 rpmi: libdjvu-3.5.25.3-alt1 1365826139 installed <13>Dec 15 08:26:46 rpmi: libgts-0.7.6-alt2.drc20130205 1360123649 installed <13>Dec 15 08:26:46 rpmi: libpaper-1.1.24-alt4 1315383465 installed <13>Dec 15 08:26:46 rpmi: libgtk+2-locales-2.24.32-alt2 1518699309 installed <13>Dec 15 08:26:46 rpmi: libverto-0.3.0-alt1_5 1525957714 installed <13>Dec 15 08:26:46 rpmi: libkeyutils-1.6-alt2 sisyphus.217337.100 1544003161 installed <13>Dec 15 08:26:46 rpmi: libtasn1-4.13-alt2 1521133850 installed <13>Dec 15 08:26:46 rpmi: rpm-macros-alternatives-0.4.5-alt1.1 1404382149 installed <13>Dec 15 08:26:46 rpmi: alternatives-0.4.5-alt1.1 1404382149 installed <13>Dec 15 08:26:46 rpmi: libp11-kit-0.23.9-alt5 1525798298 installed <13>Dec 15 08:26:46 rpmi: ca-certificates-2018.11.12-alt1 sisyphus.216395.300 1542114035 installed <13>Dec 15 08:26:46 rpmi: ca-trust-0.1.1-alt2 1515595785 installed <13>Dec 15 08:26:46 rpmi: p11-kit-trust-0.23.9-alt5 1525798298 installed <13>Dec 15 08:26:46 rpmi: libcrypto1.1-1.1.0j-alt1 sisyphus.216647.100 1542743878 installed <13>Dec 15 08:26:46 rpmi: libssl1.1-1.1.0j-alt1 sisyphus.216647.100 1542743878 installed <13>Dec 15 08:26:46 rpmi: libcom_err-1.44.3-alt1 1532134732 installed <86>Dec 15 08:26:46 groupadd[40961]: group added to /etc/group: name=_keytab, GID=499 <86>Dec 15 08:26:46 groupadd[40961]: group added to /etc/gshadow: name=_keytab <86>Dec 15 08:26:46 groupadd[40961]: new group: name=_keytab, GID=499 <13>Dec 15 08:26:46 rpmi: libkrb5-1.16.2-alt2 sisyphus.216877.200 1543483297 installed <86>Dec 15 08:26:46 groupadd[41298]: group added to /etc/group: name=sasl, GID=498 <86>Dec 15 08:26:46 groupadd[41298]: group added to /etc/gshadow: name=sasl <86>Dec 15 08:26:46 groupadd[41298]: new group: name=sasl, GID=498 <13>Dec 15 08:26:46 rpmi: libsasl2-3-2.1.27-alt0.2 1535660695 installed <13>Dec 15 08:26:46 rpmi: libldap-2.4.46-alt1 1535562135 installed <13>Dec 15 08:26:46 rpmi: libcurl-7.63.0-alt1 sisyphus.217831.100 1544762811 installed <13>Dec 15 08:26:46 rpmi: liblz4-1:1.8.3-alt1 sisyphus.213737.100 1538009686 installed <13>Dec 15 08:26:47 rpmi: libgpg-error-1.31-alt1.S1 1529015802 installed <13>Dec 15 08:26:47 rpmi: libgcrypt20-1.8.3-alt3 sisyphus.214019.140 1538990448 installed <13>Dec 15 08:26:47 rpmi: libsystemd-1:239-alt3 sisyphus.215710.300 1540765641 installed <13>Dec 15 08:26:47 rpmi: libdbus-1.12.12-alt1 sisyphus.217336.100 1544000923 installed <13>Dec 15 08:26:47 rpmi: libavahi-0.6.32-alt1 1500485702 installed <13>Dec 15 08:26:47 rpmi: libcups-2.2.6-alt1 1510070343 installed <13>Dec 15 08:26:47 rpmi: icon-theme-hicolor-0.17-alt1 1505715846 installed <13>Dec 15 08:26:47 rpmi: libgdk-pixbuf-locales-2.38.0-alt2 sisyphus.213523.100 1537685512 installed <13>Dec 15 08:26:47 rpmi: shared-mime-info-1.10-alt1.1 1530525599 installed <13>Dec 15 08:26:47 rpmi: gsettings-desktop-schemas-data-3.28.1-alt1 sisyphus.212587.100 1536082062 installed <13>Dec 15 08:26:47 rpmi: libgio-2.58.1-alt3 sisyphus.214034.100 1538601697 installed <13>Dec 15 08:26:47 rpmi: libgdk-pixbuf-2.38.0-alt2 sisyphus.213523.100 1537685557 installed <13>Dec 15 08:26:47 rpmi: gtk-update-icon-cache-3.24.1-alt1 sisyphus.213271.100 1537346078 installed <13>Dec 15 08:26:47 rpmi: libatk-locales-2.30.0-alt1 sisyphus.212779.100 1536768328 installed <13>Dec 15 08:26:47 rpmi: libatk-2.30.0-alt1 sisyphus.212779.100 1536768334 installed <13>Dec 15 08:26:48 rpmi: libdatrie-0.2.9-alt1_6 1511686676 installed <13>Dec 15 08:26:48 rpmi: libthai-0.1.28-alt1_1 sisyphus.214516.100 1539257851 installed <13>Dec 15 08:26:48 rpmi: libfribidi-1.0.5-alt1 1532424345 installed <13>Dec 15 08:26:48 rpmi: libpixman-3:0.34.0-alt1 1480491657 installed <13>Dec 15 08:26:48 rpmi: libxshmfence-1.2-alt2 1518613552 installed <13>Dec 15 08:26:48 rpmi: libwayland-client-1.16.0-alt1 1535614871 installed <13>Dec 15 08:26:48 rpmi: libpciaccess-1:0.14-alt1 1528969252 installed <13>Dec 15 08:26:48 rpmi: libdrm-1:2.4.96-alt1 sisyphus.215486.100 1540374027 installed <13>Dec 15 08:26:48 rpmi: libgbm-4:18.3.1-alt1 sisyphus.217710.100 1544601480 installed <13>Dec 15 08:26:48 rpmi: libgraphite2-1.3.12-alt2.1 sisyphus.215942.100 1540990757 installed <13>Dec 15 08:26:48 rpmi: libharfbuzz-2.1.3-alt1 sisyphus.216837.100 1543085735 installed <13>Dec 15 08:26:48 rpmi: libfreetype-2.9.1-alt1.S1 1530781053 installed <13>Dec 15 08:26:48 rpmi: fontconfig-2.13.1-alt1 sisyphus.215917.100 1540973886 installed Updating fonts cache: <29>Dec 15 08:26:49 fontconfig: Updating fonts cache: succeeded [ DONE ] <13>Dec 15 08:26:49 rpmi: libgs-9.26-alt1 sisyphus.217431.100 1544113958 installed <13>Dec 15 08:26:49 rpmi: libX11-locales-3:1.6.7-alt1 sisyphus.214413.200 1539171080 installed <13>Dec 15 08:26:49 rpmi: libXdmcp-1.1.1-alt1 1334617701 installed <13>Dec 15 08:26:49 rpmi: libXau-1.0.8-alt1 1369565808 installed <13>Dec 15 08:26:49 rpmi: libxcb-1.13.1-alt1 sisyphus.214413.100 1539170896 installed <13>Dec 15 08:26:50 rpmi: libX11-3:1.6.7-alt1 sisyphus.214413.200 1539171143 installed <13>Dec 15 08:26:50 rpmi: libXext-1.3.3-alt1 1409902959 installed <13>Dec 15 08:26:50 rpmi: libXrender-0.9.8-alt1 1371312112 installed <13>Dec 15 08:26:50 rpmi: libXfixes-5.0.3-alt1 sisyphus.216396.300 1542022162 installed <13>Dec 15 08:26:50 rpmi: libXdamage-1.1.3-alt4 1297162593 installed <13>Dec 15 08:26:50 rpmi: libXcursor-1.1.15-alt1.S1 1512373366 installed <13>Dec 15 08:26:50 rpmi: libXft-2.3.2-alt1 1409902660 installed <13>Dec 15 08:26:50 rpmi: libXrandr-1.5.0-alt1 1431936189 installed <13>Dec 15 08:26:50 rpmi: libXxf86vm-1.1.4-alt2 1527672187 installed <13>Dec 15 08:26:50 rpmi: libGLX-mesa-4:18.3.1-alt1 sisyphus.217710.100 1544601480 installed <13>Dec 15 08:26:50 rpmi: libEGL-mesa-4:18.3.1-alt1 sisyphus.217710.100 1544601480 installed <13>Dec 15 08:26:50 rpmi: libEGL-7:1.1.0-alt3 sisyphus.215982.100 1541498632 installed <13>Dec 15 08:26:50 rpmi: libGLX-7:1.1.0-alt3 sisyphus.215982.100 1541498632 installed <13>Dec 15 08:26:50 rpmi: libGL-7:1.1.0-alt3 sisyphus.215982.100 1541498632 installed <13>Dec 15 08:26:50 rpmi: libcairo-1:1.16.0-alt1 sisyphus.215566.100 1540457683 installed <13>Dec 15 08:26:50 rpmi: libpango-1.42.4-alt1 1534787259 installed <13>Dec 15 08:26:50 rpmi: libglvnd-devel-7:1.1.0-alt3 sisyphus.215982.100 1541498632 installed <13>Dec 15 08:26:50 rpmi: liblasi-1.1.2-alt1.qa1 1460141148 installed <13>Dec 15 08:26:50 rpmi: librsvg-1:2.44.9-alt1 sisyphus.216758.100 1542923235 installed <13>Dec 15 08:26:50 rpmi: libXi-1.7.9-alt1.S1 1515755342 installed <13>Dec 15 08:26:50 rpmi: libXinerama-1.1.3-alt2 1527671619 installed <13>Dec 15 08:26:50 rpmi: libXt-1.1.4-alt1 1369984722 installed <13>Dec 15 08:26:50 rpmi: libXpm-3.5.11-alt1 1391072398 installed <13>Dec 15 08:26:50 rpmi: libgd3-2.2.5-alt2.S1 1525496226 installed <13>Dec 15 08:26:50 rpmi: libXcomposite-0.4.3-alt3 1297306936 installed <13>Dec 15 08:26:51 rpmi: libgtk+2-2.24.32-alt2 1518699309 installed <13>Dec 15 08:26:51 rpmi: libgraphviz-2.40.1-alt4 1534164028 installed <13>Dec 15 08:26:52 rpmi: libxcb-devel-1.13.1-alt1 sisyphus.214413.100 1539170896 installed <13>Dec 15 08:26:53 rpmi: libX11-devel-3:1.6.7-alt1 sisyphus.214413.200 1539171143 installed <13>Dec 15 08:26:53 rpmi: libEGL-devel-4:18.3.1-alt1 sisyphus.217710.100 1544601480 installed <13>Dec 15 08:26:53 rpmi: libGLES-devel-4:18.3.1-alt1 sisyphus.217710.100 1544601480 installed <13>Dec 15 08:26:53 rpmi: libSDL2-devel-2.0.9-alt1 sisyphus.216057.100 1541183831 installed <13>Dec 15 08:26:53 rpmi: openexr22-common-2.2.0-alt1.1 1434453376 installed <13>Dec 15 08:26:53 rpmi: libilmimf22-2.2.0-alt1.1 1434453376 installed <13>Dec 15 08:26:53 rpmi: libImageMagick6.6-6.9.10.16-alt1 sisyphus.217812.100 1544714798 installed <13>Dec 15 08:26:53 rpmi: ImageMagick-tools-6.9.10.16-alt1 sisyphus.217812.100 1544714798 installed <13>Dec 15 08:26:53 rpmi: libSDL2_net-devel-2.0.1-alt1 1453488111 installed <13>Dec 15 08:26:53 rpmi: libcurl-devel-7.63.0-alt1 sisyphus.217831.100 1544762811 installed <13>Dec 15 08:26:53 rpmi: gcc-c++-8-alt1 sisyphus.214000.40 1542664775 installed <13>Dec 15 08:26:53 rpmi: libenet-devel-1.3.13-alt1 1442225972 installed <13>Dec 15 08:26:53 rpmi: libopenal-devel-1.19.1-alt1 sisyphus.217618.20 1544481871 installed <13>Dec 15 08:26:53 rpmi: desktop-file-utils-0.23-alt1 sisyphus.214313.100 1539037620 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/7kaa-2.14.7-alt1.nosrc.rpm Installing 7kaa-2.14.7-alt1.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.55379 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf 7kaa-2.14.7 + echo 'Source #0 (7kaa-2.14.7.tar):' Source #0 (7kaa-2.14.7.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/7kaa-2.14.7.tar + cd 7kaa-2.14.7 + /bin/chmod -c -Rf u+rwX,go-w . + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.55379 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd 7kaa-2.14.7 + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fsigned-char' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + '[' -n '' ']' ++ sed -r 's/(^|[[:space:]]+)-[^m][^[:space:]]*//g' ++ printf %s '-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + ASFLAGS=' -march=i586 -mtune=generic' + export ASFLAGS + export lt_cv_deplibs_check_method=pass_all + lt_cv_deplibs_check_method=pass_all + sort -u + xargs -ri find '{}' -type f '(' -name config.sub -or -name config.guess ')' -printf '%h/\n' + xargs -ri dirname -- '{}' + readlink -e -- ./configure + xargs -rn1 install -pm755 -- /usr/share/gnu-config/config.sub /usr/share/gnu-config/config.guess + ./configure --build=i586-alt-linux --host=i586-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --without-included-gettext configure: WARNING: unrecognized options: --without-included-gettext checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /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 i586-alt-linux-g++... i586-alt-linux-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 i586-alt-linux-g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of i586-alt-linux-g++... none checking for i586-alt-linux-gcc... i586-alt-linux-gcc checking whether we are using the GNU C compiler... yes checking whether i586-alt-linux-gcc accepts -g... yes checking for i586-alt-linux-gcc option to accept ISO C89... none needed checking whether i586-alt-linux-gcc understands -c and -o together... yes checking dependency style of i586-alt-linux-gcc... none checking for i586-alt-linux-ranlib... no checking for ranlib... ranlib checking whether ln -s works... yes checking for i586-alt-linux-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking whether i586-alt-linux-g++ supports C++11 features by default... yes checking build system type... i586-alt-linux-gnu checking host system type... i586-alt-linux-gnu checking how to run the C preprocessor... i586-alt-linux-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /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 config.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: WARNING: unrecognized options: --without-included-gettext configure: audio backend: openal configure: video backend: sdl configure: input backend: sdl configure: x86 asm: no configure: debugging features: no + make -j8 Making all in data make[1]: Nothing to be done for 'all'. Making all in include make all-am Making all in src Making all in enet make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/enet' CXX multiplayer.o multiplayer.cpp: In member function 'int MultiPlayer::poll_sessions()': multiplayer.cpp:420:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (prev = get_session(m->session_id)) { ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ multiplayer.cpp: In member function 'void MultiPlayer::do_host_nat_punch(MpMsgHostNatPunch*)': multiplayer.cpp:1291:13: warning: unused variable 'b' [-Wunused-variable] ENetBuffer b; ^ multiplayer.cpp:1292:12: warning: unused variable 'm' [-Wunused-variable] MpMsgPing m; ^ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/enet' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/enet' AR libmultiplayer.a make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/enet' Making all in imgfun Making all in generic make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX CRC.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB_AR.o IB_AR.cpp: In function 'void IMGbltAreaRemap(char*, int, int, int, char*, int, int, int, int, char*)': IB_AR.cpp:70:58: warning: array subscript has type 'char' [-Wchar-subscripts] imageBuf[ dest + i ] = colorTable[ bitmapBuf[esi + i] ]; ^ make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB_AT.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB_ATD.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB_32.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB_ATDM.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB_ATRD.o IB_ATRD.cpp: In function 'void IMGbltAreaTransRemapDecompress(char*, int, int, int, char*, int, int, int, int, char*)': IB_ATRD.cpp:92:6: warning: unused variable 'bitmapHeight' [-Wunused-variable] int bitmapHeight = ((unsigned char*)bitmapBuf)[2] + (((unsigned char*)bitmapBuf)[3]<<8); ^~~~~~~~~~~~ make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB2.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB_A.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB_R.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB_ATRDM.o IB_ATRDM.cpp: In function 'void IMGbltAreaTransRemapDecompressHMirror(char*, int, int, int, char*, int, int, int, int, char*)': IB_ATRDM.cpp:95:6: warning: unused variable 'bitmapHeight' [-Wunused-variable] int bitmapHeight = ((unsigned char*)bitmapBuf)[2] + (((unsigned char*)bitmapBuf)[3]<<8); ^~~~~~~~~~~~ make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB_TD.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB_ATR.o IB_ATR.cpp: In function 'void IMGbltAreaTransRemap(char*, int, int, int, char*, int, int, int, int, char*)': IB_ATR.cpp:74:59: warning: array subscript has type 'char' [-Wchar-subscripts] imageBuf[destline + i] = colorTable[ bitmapBuf[esi+i] ]; ^ make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB_TRD.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB_TDM.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB_DW.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB_TRDM.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB_TR.o IB_TR.cpp: In function 'void IMGbltTransRemap(char*, int, int, int, char*, char*)': IB_TR.cpp:68:59: warning: array subscript has type 'char' [-Wchar-subscripts] imageBuf[destline + i] = colorTable[ bitmapBuf[esi+i] ]; ^ make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB_T.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IR.o IR.cpp: In function 'void IMGremap(char*, int, int, int, char*, unsigned char**)': IR.cpp:59:49: warning: array subscript has type 'char' [-Wchar-subscripts] colorTableArray[ al ][ imageBuf[destline+i] ]; ^ make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IB_RD.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IC_R.o IC_R.cpp: In function 'void IMGcopyRemap(char*, int, char*, int, int, int, int, int, unsigned char*)': IC_R.cpp:56:56: warning: array subscript has type 'char' [-Wchar-subscripts] imageBuf[ dest + i ] = colorTable[ backBuf[src + i] ]; ^ make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IJ_T.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IR_AM.o IR_AM.cpp: In function 'void IMGremapAreaHMirror(char*, int, int, int, char*, unsigned char**, int, int, int, int)': IR_AM.cpp:60:45: warning: array subscript has type 'char' [-Wchar-subscripts] colorTableArray[ al ][ imageBuf[dest+i] ]; ^ make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX I_BAR.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IR_A.o IR_A.cpp: In function 'void IMGremapArea(char*, int, int, int, char*, unsigned char**, int, int, int, int)': IR_A.cpp:59:45: warning: array subscript has type 'char' [-Wchar-subscripts] colorTableArray[ al ][ imageBuf[dest+i] ]; ^ make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX I_EMASK.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IC.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IR_BAR.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX IR_M.o IR_M.cpp: In function 'void IMGremapHMirror(char*, int, int, int, char*, unsigned char**)': IR_M.cpp:59:49: warning: array subscript has type 'char' [-Wchar-subscripts] colorTableArray[ al ][ imageBuf[destline+i] ]; ^ make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX I_EREMAP.o I_EREMAP.cpp: In function 'void IMGremap16x16(char*, int, int, int, char*, char**)': I_EREMAP.cpp:91:52: warning: array subscript has type 'char' [-Wchar-subscripts] table = colorTableArray[ maskPtr[ srcline + i ] ]; ^ I_EREMAP.cpp:85:6: warning: unused variable 'al' [-Wunused-variable] int al; ^~ make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX I_FONT.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX I_BLACK.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX I_PIXEL.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX I_SNOW.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX I_LINE.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX I_READ.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' CXX I_FREMAP.o make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' AR libimgfun_generic.a make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Nothing to be done for 'all-am'. Making all in openal make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/openal' CXX wav_stream.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/openal' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/openal' CXX openal_audio.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/openal' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/openal' AR libaudio_openal.a make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/openal' Making all in platform make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/platform' CXX windows.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/platform' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/platform' AR libplatform.a make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/platform' Making all in curl make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/curl' CXX WebService.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/curl' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/curl' AR libWebService.a make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/curl' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_DEFE.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OAI_DEFE.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_BUIL.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OAI_BUIL.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OAI_BUIL.cpp: In member function 'int Nation::ai_supported_inn_count()': OAI_BUIL.cpp:305:8: warning: unused variable 'fixedExpense' [-Wunused-variable] float fixedExpense = fixed_expense_365days(); ^~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_CAP2.o OAI_CAP2.cpp:460:60: warning: "/*" within comment [-Wcomment] if( townPtr->nation_recno == targetTown->nation_recno ) //**BUGHERE In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OAI_CAP2.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OAI_CAP2.cpp: In member function 'Town* Nation::think_capture_enemy_town_target(Town*)': OAI_CAP2.cpp:264:10: warning: unused variable 'ownNation' [-Wunused-variable] Nation* ownNation = nation_array[nation_recno]; ^~~~~~~~~ OAI_CAP2.cpp:267:8: warning: variable 'neededCombatLevel' set but not used [-Wunused-but-set-variable] int neededCombatLevel=0; ^~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_ACT2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OAI_ACT2.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OAI_ACT2.cpp: In member function 'int Nation::ai_assign_overseer(ActionNode*)': OAI_ACT2.cpp:151:12: warning: unused variable 'firmInfo' [-Wunused-variable] FirmInfo* firmInfo = firm_res[firmId]; ^~~~~~~~ OAI_ACT2.cpp: In member function 'int Nation::ai_assign_worker(ActionNode*)': OAI_ACT2.cpp:322:12: warning: unused variable 'firmInfo' [-Wunused-variable] FirmInfo* firmInfo = firm_res[firmId]; ^~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_ATTK.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OAI_ATTK.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_ECO.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OAI_ECO.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_ACT.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OAI_ACT.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OAI_ACT.cpp: In member function 'int Nation::process_action(int, int)': OAI_ACT.cpp:203:8: warning: 'rc' may be used uninitialized in this function [-Wmaybe-uninitialized] else if( rc== -1 ) // action failed, remove immediately if return -1 ^~ OAI_ACT.cpp: In member function 'void Nation::action_finished(WORD, short int, int)': OAI_ACT.cpp:581:31: warning: 'actionNode' may be used uninitialized in this function [-Wmaybe-uninitialized] actionNode->action_para2 = unitRecno; ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_CAPT.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OAI_CAPT.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OAI_CAPT.cpp: In member function 'int Nation::capture_expected_resistance(int, int*)': OAI_CAPT.cpp:228:6: warning: unused variable 'captureRating' [-Wunused-variable] int captureRating = 0; ^~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX AM.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OBULLET.h:29, from AM.cpp:39: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from AM.cpp:70: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_MAR2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from ../include/OU_MARI.h:28, from OAI_MAR2.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OAI_MAR2.cpp: In member function 'int Nation::ai_sea_travel3(ActionNode*)': OAI_MAR2.cpp:202:8: warning: variable 'unitCount' set but not used [-Wunused-but-set-variable] short unitCount; ^~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_MAIN.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OAI_MAIN.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_DIPL.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OAI_DIPL.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OAI_DIPL.cpp: In member function 'int Nation::think_request_cease_war()': OAI_DIPL.cpp:365:14: warning: variable 'nationPtr' set but not used [-Wunused-but-set-variable] Nation* nationPtr; ^~~~~~~~~ OAI_DIPL.cpp: In member function 'int Nation::think_trade_treaty()': OAI_DIPL.cpp:479:13: warning: variable 'nationPtr' set but not used [-Wunused-but-set-variable] Nation* nationPtr; ^~~~~~~~~ OAI_DIPL.cpp: In member function 'int Nation::think_declare_war()': OAI_DIPL.cpp:636:6: warning: unused variable 'rc' [-Wunused-variable] int rc=0; ^~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_MAR3.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from ../include/OU_MARI.h:28, from OAI_MAR3.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OAI_MAR3.cpp: In member function 'int Nation::ai_settle_to_region(int, int, int)': OAI_MAR3.cpp:96:6: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount=0; ^~~~~~~~~ OAI_MAR3.cpp: In member function 'int Nation::think_move_to_region_with_mine()': OAI_MAR3.cpp:322:24: warning: 'sitePtr' may be used uninitialized in this function [-Wmaybe-uninitialized] sitePtr->map_x_loc+1, sitePtr->map_y_loc+1 ); ~~~~~~~~~^~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_GRAN.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OF_CAMP.h:28, from OAI_GRAN.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OAI_GRAN.cpp: In member function 'int Nation::think_ally_against_big_enemy()': OAI_GRAN.cpp:724:10: warning: variable 'nationPtr' set but not used [-Wunused-but-set-variable] Nation* nationPtr; ^~~~~~~~~ OAI_GRAN.cpp:726:18: warning: variable 'ourNationRelation' set but not used [-Wunused-but-set-variable] NationRelation *ourNationRelation, *enemyNationRelation; ^~~~~~~~~~~~~~~~~ OAI_GRAN.cpp:726:38: warning: variable 'enemyNationRelation' set but not used [-Wunused-but-set-variable] NationRelation *ourNationRelation, *enemyNationRelation; ^~~~~~~~~~~~~~~~~~~ OAI_GRAN.cpp: In member function 'int Nation::think_attack_enemy_firm(int, int)': OAI_GRAN.cpp:829:11: warning: unused variable 'nationPtr' [-Wunused-variable] Nation *nationPtr = nation_array[enemyNationRecno]; ^~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_INFO.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OF_MARK.h:28, from OAI_INFO.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OAI_INFO.cpp: In member function 'void Nation::update_ai_region()': OAI_INFO.cpp:251:37: warning: array subscript has type 'char' [-Wchar-subscripts] ai_region_array[ai_region_count++].region_id = townPtr->region_id; ^ OAI_INFO.cpp: In member function 'void Nation::add_general_info(short int)': OAI_INFO.cpp:307:8: warning: unused variable 'unitPtr' [-Wunused-variable] Unit* unitPtr = unit_array[unitRecno]; ^~~~~~~ OAI_INFO.cpp: In member function 'void Nation::del_general_info(short int)': OAI_INFO.cpp:321:8: warning: unused variable 'unitPtr' [-Wunused-variable] Unit* unitPtr = unit_array[unitRecno]; ^~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_SPY.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from OAI_SPY.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_MARI.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from ../include/OU_MARI.h:28, from OAI_MARI.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OAI_MARI.cpp: In member function 'int Nation::ai_build_harbor(int, int)': OAI_MARI.cpp:198:34: warning: variable 'bestYLoc' set but not used [-Wunused-but-set-variable] int xLoc, yLoc, bestXLoc= -1, bestYLoc= -1, maxEnemyDistance=0; ^~~~~~~~ OAI_MARI.cpp:193:26: warning: 'townPtr' may be used uninitialized in this function [-Wmaybe-uninitialized] int homeYLoc = townPtr->center_y; ~~~~~~~~~^~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_MILI.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OF_CAMP.h:28, from OAI_MILI.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_MONS.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OF_MONS.h:28, from OAI_MONS.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_QUER.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from OAI_QUER.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OBLOB.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_TOWN.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OAI_TOWN.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_SEEK.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OAI_SEEK.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OAI_SEEK.cpp: In member function 'int Nation::find_best_firm_loc(short int, short int, short int, short int&, short int&)': OAI_SEEK.cpp:450:26: warning: 'refX1' may be used uninitialized in this function [-Wmaybe-uninitialized] short centerX, centerY, refX1, refY1, refX2, refY2; ^~~~~ OAI_SEEK.cpp:450:33: warning: 'refY1' may be used uninitialized in this function [-Wmaybe-uninitialized] short centerX, centerY, refX1, refY1, refX2, refY2; ^~~~~ OAI_SEEK.cpp:517:9: warning: 'refY2' may be used uninitialized in this function [-Wmaybe-uninitialized] refY2 -= firmLocHeight/2; ~~~~~~^~~~~~~~~~~~~~~~~~ OAI_SEEK.cpp:512:9: warning: 'refX2' may be used uninitialized in this function [-Wmaybe-uninitialized] refX2 -= firmLocWidth/2; ~~~~~~^~~~~~~~~~~~~~~~~ OAI_SEEK.cpp:450:17: warning: 'centerY' may be used uninitialized in this function [-Wmaybe-uninitialized] short centerX, centerY, refX1, refY1, refX2, refY2; ^~~~~~~ OAI_SEEK.cpp:450:8: warning: 'centerX' may be used uninitialized in this function [-Wmaybe-uninitialized] short centerX, centerY, refX1, refY1, refX2, refY2; ^~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_TALK.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OF_MARK.h:28, from OAI_TALK.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OAI_TALK.cpp: In member function 'int Nation::consider_give_tribute(TalkMsg*)': OAI_TALK.cpp:767:6: warning: unused variable 'relationStatus' [-Wunused-variable] int relationStatus = get_relation_status(talkMsg->from_nation_recno); ^~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_TRAD.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPATH.h:37, from ../include/OU_CARA.h:33, from OAI_TRAD.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OBULLETA.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OBULLETA.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OBULLETA.cpp: In member function 'short int BulletArray::add_bullet(Unit*, Unit*)': OBULLETA.cpp:355:14: warning: unused variable 'attackInfo' [-Wunused-variable] AttackInfo *attackInfo = parentUnit->attack_info_array+parentUnit->cur_attack; ^~~~~~~~~~ OBULLETA.cpp: In member function 'short int BulletArray::add_bullet(Unit*, short int, short int)': OBULLETA.cpp:402:14: warning: unused variable 'attackInfo' [-Wunused-variable] AttackInfo *attackInfo = parentUnit->attack_info_array+parentUnit->cur_attack; ^~~~~~~~~~ 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)': OBULLETA.cpp:261:8: warning: 'leftXOffset' may be used uninitialized in this function [-Wmaybe-uninitialized] short leftXOffset, leftYOffset; ^~~~~~~~~~~ OBULLETA.cpp:261:21: warning: 'leftYOffset' may be used uninitialized in this function [-Wmaybe-uninitialized] short leftXOffset, leftYOffset; ^~~~~~~~~~~ OBULLETA.cpp:319:10: warning: 'rightYOffset' may be used uninitialized in this function [-Wmaybe-uninitialized] rightY += rightYOffset; ~~~~~~~^~~~~~~~~~~~~~~ OBULLETA.cpp:318:10: warning: 'rightXOffset' may be used uninitialized in this function [-Wmaybe-uninitialized] rightX += rightXOffset; ~~~~~~~^~~~~~~~~~~~~~~ OBULLETA.cpp: In member function 'short int BulletArray::add_bullet(Unit*, short int, short int)': OBULLETA.cpp:432:54: warning: 'height' may be used uninitialized in this function [-Wmaybe-uninitialized] attackYLoc >= targetYLoc && attackYLoc < targetYLoc+height) ~~~~~~~~~~^~~~~~~ OBULLETA.cpp:431:56: warning: 'width' may be used uninitialized in this function [-Wmaybe-uninitialized] if(attackXLoc >= targetXLoc && attackXLoc < targetXLoc+width && ~~~~~~~~~~^~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OAI_UNIT.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OAI_UNIT.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OBUTTCUS.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OANLINE.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OBUTT3D.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OBOX.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OBATTLE.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OBATTLE.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OBATTLE.cpp: In member function 'void Battle::create_ai_nation(int)': OBATTLE.cpp:395:7: warning: variable 'nationRecno' set but not used [-Wunused-but-set-variable] int nationRecno; ^~~~~~~~~~~ OBATTLE.cpp: At global scope: OBATTLE.cpp:922:12: warning: 'int is_space(int, int, int, int, char)' defined but not used [-Wunused-function] static int is_space(int xLoc1, int yLoc1, int xLoc2, int yLoc2, char mobileType) ^~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OBULLET.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OBULLET.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OBULLET.cpp: In member function 'void Bullet::hit_wall(short int, short int)': OBULLET.cpp:423:3: warning: 'virtualUnit' may be used uninitialized in this function [-Wmaybe-uninitialized] if(!virtualUnit) ^~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX ODATE.o ODATE.cpp: In member function 'int DateInfo::get_date(long int, char)': ODATE.cpp:154:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (year%4 == 0 && year%100 != 0 || year%400 == 0) ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ODATE.cpp: In member function 'char* DateInfo::date_str(long int, int)': ODATE.cpp:224:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (year%4 == 0 && year%100 != 0 || year%400 == 0) ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ODATE.cpp: In member function 'int DateInfo::day_year(int, int, int)': ODATE.cpp:285:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses] isLeap = ( year%4 == 0 && year%100 != 0 || year%400 == 0 ) ? 1 : 0 ; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ODATE.cpp: In member function 'int DateInfo::month_day(int, int, int&, int&)': ODATE.cpp:333:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses] isLeap = ( year%4 == 0 && year%100 != 0 || year%400 == 0 ) ? 1 : 0 ; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OB_HOMIN.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OBULLET.h:29, from ../include/OB_HOMIN.h:27, from OB_HOMIN.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OB_FLAME.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OBULLET.h:29, from ../include/OB_FLAME.h:28, from OB_FLAME.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OBUTTON.o OBUTTON.cpp: In member function 'void Button::wait_press(int)': OBUTTON.cpp:481:34: warning: 'lastMouseY' may be used uninitialized in this function [-Wmaybe-uninitialized] if( lastMouseX == mouse.cur_x && lastMouseY == mouse.cur_y ) ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX ODB.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OCOLTBL.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX ODIR.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OEFFECT.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OEFFECT.h:27, from OEFFECT.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX ODYNARR.o ODYNARR.cpp: In member function 'void DynArray::linkin_sort_scan_from_bottom(void*)': ODYNARR.cpp:636:3: warning: 'cmpRet' may be used uninitialized in this function [-Wmaybe-uninitialized] if( cmpRet >= 0 ) ^~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OB_PROJ.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OBULLET.h:29, from ../include/OB_PROJ.h:27, from OB_PROJ.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OB_PROJ.cpp: In member function 'virtual void Projectile::init(char, short int, short int, short int, char)': OB_PROJ.cpp:82:15: warning: unused variable 'spriteFrame' [-Wunused-variable] SpriteFrame* spriteFrame = cur_sprite_frame(); ^~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX ODYNARRB.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ODYNARRB.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OCONFIG.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OCONFIG.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OFILETXT.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OFILE.o OFILE.cpp: In member function 'int File::file_read(void*, unsigned int)': 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] fread(dataBuf, 1, bytesToRead, file_handle); ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OFILE.cpp: In member function 'int16_t File::file_get_short()': OFILE.cpp:300:10: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fread(&value, 1, sizeof(int16_t), file_handle); ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OFILE.cpp: In member function 'uint16_t File::file_get_unsigned_short()': 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] fread(&value, 1, sizeof(uint16_t), file_handle); ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OFILE.cpp: In member function 'int32_t File::file_get_long()': 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] fread(&value, 1, sizeof(int32_t), file_handle); ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OCRC_STO.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from ../include/ONATIONA.h:32, from OCRC_STO.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OERRCTRL.o OERRCTRL.cpp: In member function 'int ErrorControl::send(char, void*, long unsigned int)': OERRCTRL.cpp:131:29: warning: array subscript has type 'char' [-Wchar-subscripts] toDPid = dp_id[ecPlayerId]; ^ OERRCTRL.cpp: In member function 'char* ErrorControl::receive(char*, uint32_t*)': OERRCTRL.cpp:183:42: warning: array subscript has type 'char' [-Wchar-subscripts] char *dataPtr = receive_queue[recv_head].queue_buf; ^ OERRCTRL.cpp:184:38: warning: array subscript has type 'char' [-Wchar-subscripts] DWORD len = receive_queue[recv_head].length(); ^ OERRCTRL.cpp: In member function 'void ErrorControl::yield()': OERRCTRL.cpp:294:54: warning: array subscript has type 'char' [-Wchar-subscripts] for( ; recv_flag[ecMsg.sender_id-1][scanFrame]; inc_frame_id(scanFrame) ) ^ OERRCTRL.cpp:365:54: warning: array subscript has type 'char' [-Wchar-subscripts] for( ; recv_flag[ecMsg.sender_id-1][scanFrame]; inc_frame_id(scanFrame) ) ^ OERRCTRL.cpp:443:48: warning: array subscript has type 'char' [-Wchar-subscripts] char *replyMsg = send_queue[ecMsg.frame_id].queue_buf; ^ OERRCTRL.cpp:444:48: warning: array subscript has type 'char' [-Wchar-subscripts] DWORD replyLen = send_queue[ecMsg.frame_id].length(); ^ OERRCTRL.cpp: In member function 'void ErrorControl::en_recv_queue(void*, long unsigned int)': OERRCTRL.cpp:580:18: warning: array subscript has type 'char' [-Wchar-subscripts] receive_queue[f].clear(); ^ OERRCTRL.cpp:581:26: warning: array subscript has type 'char' [-Wchar-subscripts] memcpy( receive_queue[f].reserve(dataLen), dataPtr, dataLen); ^ OERRCTRL.cpp: In member function 'void ErrorControl::set_ack(char, char)': OERRCTRL.cpp:599:18: warning: array subscript has type 'char' [-Wchar-subscripts] ack_flag[frameId][ecPlayerId-1] = 1; ^ OERRCTRL.cpp: In member function 'void ErrorControl::clear_ack(char)': OERRCTRL.cpp:604:26: warning: array subscript has type 'char' [-Wchar-subscripts] memset( ack_flag[frameId], 0, MAX_PLAYER ); ^ OERRCTRL.cpp: In member function 'void ErrorControl::mark_send_time(char, long unsigned int)': OERRCTRL.cpp:609:19: warning: array subscript has type 'char' [-Wchar-subscripts] send_time[frameId] = misc.get_time(); ^ OERRCTRL.cpp:610:23: warning: array subscript has type 'char' [-Wchar-subscripts] re_send_after[frameId] = duration; ^ OERRCTRL.cpp: In member function 'int ErrorControl::need_re_send(char, int)': OERRCTRL.cpp:616:46: warning: array subscript has type 'char' [-Wchar-subscripts] return ((misc.get_time() - send_time[frameId]) * promptFactor) >= re_send_after[frameId]; ^ OERRCTRL.cpp:616:89: warning: array subscript has type 'char' [-Wchar-subscripts] return ((misc.get_time() - send_time[frameId]) * promptFactor) >= re_send_after[frameId]; ^ OERRCTRL.cpp: In member function 'int ErrorControl::are_all_acked(char)': OERRCTRL.cpp:626:47: warning: array subscript has type 'char' [-Wchar-subscripts] if( dp_id[ecPlayerId-1] && !ack_flag[frameId][ecPlayerId-1] ) ^ OERRCTRL.cpp: In member function 'int ErrorControl::is_waiting_receive(char, char)': OERRCTRL.cpp:645:38: warning: array subscript has type 'char' [-Wchar-subscripts] && !recv_flag[ecPlayerId-1][frameId]; ^ OERRCTRL.cpp: In member function 'void ErrorControl::set_recv_flag(char, char)': OERRCTRL.cpp:650:33: warning: array subscript has type 'char' [-Wchar-subscripts] recv_flag[ecPlayerId-1][frameId] = 1; ^ OERRCTRL.cpp: In member function 'void ErrorControl::clear_recv_flag(char, char)': OERRCTRL.cpp:656:33: warning: array subscript has type 'char' [-Wchar-subscripts] recv_flag[ecPlayerId-1][frameId] = 0; ^ OERRCTRL.cpp: In member function 'void ErrorControl::re_transmit(int)': OERRCTRL.cpp:669:30: warning: array subscript has type 'char' [-Wchar-subscripts] char *ecMsg = send_queue[f].queue_buf; ^ OERRCTRL.cpp:670:33: warning: array subscript has type 'char' [-Wchar-subscripts] DWORD ecMsgLen = send_queue[f].length(); ^ OERRCTRL.cpp:675:43: warning: array subscript has type 'char' [-Wchar-subscripts] if( dp_id[ecPlayerId-1] && !ack_flag[f][ecPlayerId-1] ) ^ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OFIRMDIE.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OFIRMRES.h:32, from OFIRMDIE.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OERROR.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OEXPMASK.o In file included from ../include/OWORLDMT.h:28, from OEXPMASK.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OFIRMIF.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OFIRMIF.cpp:34: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OFIRMIF.cpp: In member function 'void Firm::disp_basic_info(int, int)': OFIRMIF.cpp:225:6: warning: variable 'sliderX1' set but not used [-Wunused-but-set-variable] int sliderX1, sliderX2; ^~~~~~~~ OFIRMIF.cpp:225:16: warning: variable 'sliderX2' set but not used [-Wunused-but-set-variable] int sliderX1, sliderX2; ^~~~~~~~ OFIRMIF.cpp: In member function 'void Firm::disp_worker_list(int, int)': OFIRMIF.cpp:362:6: warning: variable 'overseerRaceId' set but not used [-Wunused-but-set-variable] int overseerRaceId=0; ^~~~~~~~~~~~~~ OFIRMIF.cpp: In member function 'int Firm::detect_worker_list()': OFIRMIF.cpp:487:6: warning: unused variable 'liveInTown' [-Wunused-variable] int liveInTown = firm_res[firm_id]->live_in_town; ^~~~~~~~~~ OFIRMIF.cpp: In member function 'void Firm::disp_worker_info(int, int)': OFIRMIF.cpp:580:41: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] if( lastSelected != selected_worker_id > 0 ) ~~~~~~~~~~~~~~~~~~~^~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OFIRM2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from OFIRM2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OFIRM2.cpp: In member function 'void Firm::kill_worker(int)': OFIRM2.cpp:86:8: warning: unused variable 'unitRecno' [-Wunused-variable] int unitRecno = 0; ^~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OFIRMAI.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from ../include/OF_INN.h:28, from OFIRMAI.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OFIRMAI.cpp: In member function 'int Firm::think_capture()': OFIRMAI.cpp:509:30: warning: 'nationPtr' may be used uninitialized in this function [-Wmaybe-uninitialized] nationPtr->ai_attack_target( bestTarget->loc_x1, bestTarget->loc_y1, ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ((FirmCamp*)bestTarget)->total_combat_level(), 0, 0, 0, 0, useAllCamp ); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OFIRMA.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OFIRMA.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OFIRMA.cpp: In member function 'void FirmArray::del_firm(int)': OFIRMA.cpp:310:6: warning: unused variable 'xLoc' [-Wunused-variable] int xLoc = firmPtr->center_x; ^~~~ OFIRMA.cpp:311:6: warning: unused variable 'yLoc' [-Wunused-variable] int yLoc = firmPtr->center_y; ^~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OFIRMDRW.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OFIRMDRW.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OFIRMDRW.cpp: In member function 'virtual void Firm::draw_full_size(int)': OFIRMDRW.cpp:210:7: warning: unused variable 'hitPerPixel' [-Wunused-variable] int hitPerPixel = (int) max_hit_points / bitmapWidth / bitmapHeight / 2; ^~~~~~~~~~~ OFIRMDRW.cpp: In member function 'int Firm::draw_detect_link_line(int)': OFIRMDRW.cpp:318:12: warning: unused variable 'firmInfo' [-Wunused-variable] FirmInfo* firmInfo = firm_res[firm_id]; ^~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OFLAME.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OFIRMRES.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OFIRMRES.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OFIRMIF2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OFIRMIF2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OFIRMIF3.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OFIRMIF3.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OFIRMIF3.cpp: In member function 'void Firm::disp_bribe_menu(int)': OFIRMIF3.cpp:110:7: warning: unused variable 'x' [-Wunused-variable] int x=INFO_X1+4, y=INFO_Y1+4, y2=y+font_san.height()-1; ^ OFIRMIF3.cpp: In member function 'void Firm::disp_assassinate_result(int)': OFIRMIF3.cpp:539:6: warning: unused variable 'x' [-Wunused-variable] int x=INFO_X1+4, y=INFO_Y1+4, y2=y+font_san.height()-1; ^ OFIRMIF3.cpp: In member function 'int Firm::spy_bribe_succeed_chance(int, short int, short int)': OFIRMIF3.cpp:443:51: warning: 'unitCommandPower' may be used uninitialized in this function [-Wmaybe-uninitialized] succeedChance = spyPtr->spy_skill - unitLoyalty - unitCommandPower ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ OFIRMIF3.cpp:435:2: warning: 'targetSpyRecno' may be used uninitialized in this function [-Wmaybe-uninitialized] if( targetSpyRecno ) // if the bribe target is also a spy ^~ OFIRMIF3.cpp:452:31: warning: 'unitRaceId' may be used uninitialized in this function [-Wmaybe-uninitialized] race_res.is_same_race(spyKingRaceId, unitRaceId) * 10; ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ OFIRMIF3.cpp:464:33: warning: 'unitLoyalty' may be used uninitialized in this function [-Wmaybe-uninitialized] succeedChance -= (unitLoyalty-90); ~~~~~~~~~~~~^~~~ OFIRMIF3.cpp: In member function 'void Firm::disp_bribe_unit(int)': OFIRMIF3.cpp:517:14: warning: 'unitName' may be used uninitialized in this function [-Wmaybe-uninitialized] font_san.put( x+UNIT_LARGE_ICON_WIDTH+6, y+4, unitName ); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OFIRMIF3.cpp:516:22: warning: 'rankId' may be used uninitialized in this function [-Wmaybe-uninitialized] vga_front.put_bitmap(x, y, unit_res[unitId]->get_large_icon_ptr(rankId) ); ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OMATRIX.h:28, from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OFIRMIF3.cpp:27: ../include/OUNITRES.h:371:69: warning: 'unitId' may be used uninitialized in this function [-Wmaybe-uninitialized] UnitInfo* operator[](int unitId) { return unit_info_array+unitId-1; } ~~~~~~~~~~~~~~~^~~~~~~ OFIRMIF3.cpp:486:28: note: 'unitId' was declared here int raceId, unitLoyalty, unitId, rankId; ^~~~~~ OFIRMIF3.cpp:525:9: warning: 'unitLoyalty' may be used uninitialized in this function [-Wmaybe-uninitialized] str += unitLoyalty; ^~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OF_BASE2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OF_BASE2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OFONT.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OFONT.cpp:33: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OFIRM.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OFIRM.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OFIRM.cpp: In member function 'virtual void Firm::assign_overseer(int)': OFIRM.cpp:648:7: warning: unused variable 'originalXLoc' [-Wunused-variable] int originalXLoc = unitPtr->next_x_loc(); ^~~~~~~~~~~~ OFIRM.cpp:649:7: warning: unused variable 'originalYLoc' [-Wunused-variable] int originalYLoc = unitPtr->next_y_loc(); ^~~~~~~~~~~~ OFIRM.cpp:607:6: warning: unused variable 'oldOverseerRecno' [-Wunused-variable] int oldOverseerRecno = overseer_recno; ^~~~~~~~~~~~~~~~ OFIRM.cpp: In member function 'virtual void Firm::assign_worker(int)': 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] memset( workerPtr, 0, sizeof(Worker) ); ^ In file included from OFIRM.cpp:40: ../include/OFIRM.h:94:8: note: 'struct Worker' declared here struct Worker ^~~~~~ OFIRM.cpp: In member function 'int Firm::find_settle_town()': OFIRM.cpp:1118:11: warning: unused variable 'nationPtr' [-Wunused-variable] Nation* nationPtr = nation_array[nation_recno]; ^~~~~~~~~ OFIRM.cpp: In member function 'int Firm::year_expense()': OFIRM.cpp:1863:6: warning: unused variable 'payWorkerCount' [-Wunused-variable] int payWorkerCount=0; ^~~~~~~~~~~~~~ OFIRM.cpp: In member function 'virtual int Firm::pull_town_people(int, char, int, int)': 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] memset( workerPtr, 0, sizeof(Worker) ); ^ In file included from OFIRM.cpp:40: ../include/OFIRM.h:94:8: note: 'struct Worker' declared here struct Worker ^~~~~~ OFIRM.cpp:2030:11: warning: unused variable 'popAdded' [-Wunused-variable] int i, popAdded=0; ^~~~~~~~ OFIRM.cpp: In member function 'void Firm::update_worker()': OFIRM.cpp:2291:8: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount=0; ^~~~~~~~~ OFIRM.cpp: In member function 'int Firm::create_worker_unit(Worker&)': OFIRM.cpp:2442:12: warning: unused variable 'unitInfo' [-Wunused-variable] UnitInfo *unitInfo = unit_res[unitId]; ^~~~~~~~ OFIRM.cpp: In member function 'void Firm::mobilize_all_workers(char)': OFIRM.cpp:2558:8: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount = 0; ^~~~~~~~~ OFIRM.cpp: In member function 'void Firm::resign_all_worker(int)': OFIRM.cpp:2604:8: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount=0, townRecno, raceId; ^~~~~~~~~ OFIRM.cpp: In member function 'void Firm::think_worker_migrate()': OFIRM.cpp:2705:8: warning: unused variable 'firmXLoc' [-Wunused-variable] int firmXLoc = center_x, firmYLoc = center_y; ^~~~~~~~ OFIRM.cpp:2705:29: warning: unused variable 'firmYLoc' [-Wunused-variable] int firmXLoc = center_x, firmYLoc = center_y; ^~~~~~~~ OFIRM.cpp: In member function 'void Firm::setup_link()': OFIRM.cpp:3050:39: warning: array subscript has type 'char' [-Wchar-subscripts] linked_firm_array[linked_firm_count] = firmRecno; ^ OFIRM.cpp:3051:46: warning: array subscript has type 'char' [-Wchar-subscripts] linked_firm_enable_array[linked_firm_count] = defaultLinkStatus; ^ OFIRM.cpp:3068:57: warning: array subscript has type 'char' [-Wchar-subscripts] firmPtr->linked_firm_array[firmPtr->linked_firm_count] = firm_recno; ^ OFIRM.cpp:3069:64: warning: array subscript has type 'char' [-Wchar-subscripts] firmPtr->linked_firm_enable_array[firmPtr->linked_firm_count] = defaultLinkStatus; ^ OFIRM.cpp:3145:39: warning: array subscript has type 'char' [-Wchar-subscripts] linked_town_array[linked_town_count] = townRecno; ^ OFIRM.cpp:3146:46: warning: array subscript has type 'char' [-Wchar-subscripts] linked_town_enable_array[linked_town_count] = defaultLinkStatus; ^ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OF_CAMP2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OF_CAMP2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OF_CAMP2.cpp: In member function 'int FirmCamp::ai_recruit(int)': OF_CAMP2.cpp:431:6: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount=0; ^~~~~~~~~ OF_CAMP2.cpp: In member function 'int FirmCamp::ai_combat_level_needed()': OF_CAMP2.cpp:493:10: warning: unused variable 'nationPtr' [-Wunused-variable] Nation* nationPtr = nation_array[nation_recno]; ^~~~~~~~~ OF_CAMP2.cpp: In member function 'int FirmCamp::think_capture_target_town()': OF_CAMP2.cpp:735:8: warning: unused variable 'prefPeacefulness' [-Wunused-variable] int prefPeacefulness = nation_array[nation_recno]->pref_peacefulness; ^~~~~~~~~~~~~~~~ OF_CAMP2.cpp: In member function 'int FirmCamp::think_capture_use_spy(Town*)': OF_CAMP2.cpp:1001:10: warning: unused variable 'ownNation' [-Wunused-variable] Nation* ownNation = nation_array[nation_recno]; ^~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OF_FACT2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_FACT2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OF_FACT.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_FACT.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OF_BASE.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_BASE.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OF_HARB.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_HARB.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OF_HARB.cpp:36: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OF_HARB.cpp: In member function 'void FirmHarbor::detect_build_menu()': OF_HARB.cpp:815:18: warning: unused variable 'x' [-Wunused-variable] int unitId, x=INFO_X1+2, y=INFO_Y1, rc, quitFlag; ^ OF_HARB.cpp:816:12: warning: variable 'unitInfo' set but not used [-Wunused-but-set-variable] UnitInfo* unitInfo; ^~~~~~~~ OF_HARB.cpp: In member function 'void FirmHarbor::disp_build_info(int)': OF_HARB.cpp:1006:6: warning: unused variable 'dispY1' [-Wunused-variable] int dispY1 = INFO_Y1+26; ^~~~~~ OF_HARB.cpp: In member function 'void FirmHarbor::update_linked_firm_info()': OF_HARB.cpp:1164:39: warning: array subscript has type 'char' [-Wchar-subscripts] linked_mine_array[linked_mine_num] = firmPtr->firm_recno; ^ OF_HARB.cpp:1173:45: warning: array subscript has type 'char' [-Wchar-subscripts] linked_factory_array[linked_factory_num] = firmPtr->firm_recno; ^ OF_HARB.cpp:1182:43: warning: array subscript has type 'char' [-Wchar-subscripts] linked_market_array[linked_market_num] = firmPtr->firm_recno; ^ OF_HARB.cpp:1147:10: warning: variable 'nationPtr' set but not used [-Wunused-but-set-variable] Nation *nationPtr; ^~~~~~~~~ OF_HARB.cpp: In member function 'void FirmHarbor::add_queue(int, int)': OF_HARB.cpp:1224:40: warning: array subscript has type 'char' [-Wchar-subscripts] build_queue_array[build_queue_count++] = unitId; ^ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OF_CAMP.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_CAMP.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OF_CAMP.cpp:43: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OF_CAMP.cpp: In member function 'void FirmCamp::train_unit()': OF_CAMP.cpp:657:12: warning: unused variable 'overseerRaceInfo' [-Wunused-variable] RaceInfo* overseerRaceInfo = race_res[overseerUnit->race_id]; ^~~~~~~~~~~~~~~~ OF_CAMP.cpp: In member function 'void FirmCamp::patrol()': OF_CAMP.cpp:880:40: warning: array subscript has type 'char' [-Wchar-subscripts] patrol_unit_array[patrol_unit_count++] = overseerRecno; ^ OF_CAMP.cpp: In member function 'int FirmCamp::patrol_all_soldier()': OF_CAMP.cpp:935:41: warning: array subscript has type 'char' [-Wchar-subscripts] patrol_unit_array[patrol_unit_count++] = unitRecno; ^ OF_CAMP.cpp: In member function 'void FirmCamp::defense(short int, int)': OF_CAMP.cpp:1035:6: warning: unused variable 'numOfUnitInside' [-Wunused-variable] int numOfUnitInside = worker_count + (overseer_recno>0); ^~~~~~~~~~~~~~~ OF_CAMP.cpp: At global scope: OF_CAMP.cpp:62:13: warning: 'void disp_debug_info(FirmCamp*, int)' declared 'static' but never defined [-Wunused-function] static void disp_debug_info(FirmCamp* firmPtr, int refreshFlag); ^~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OF_INN2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OF_INN2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OF_HARB2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_HARB2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OF_HARB2.cpp: In member function 'int FirmHarbor::think_trade()': OF_HARB2.cpp:196:39: warning: 'firmHarbor' may be used uninitialized in this function [-Wmaybe-uninitialized] unitMarine->set_stop( 2, firmHarbor->loc_x1, firmHarbor->loc_y1, COMMAND_AI); ~~~~~~~~~~~~^~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OF_INN.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_INN.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OF_MARK2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_MARK2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OF_MARK2.cpp: In member function 'virtual void FirmMarket::ai_update_link_status()': OF_MARK2.cpp:191:10: warning: unused variable 'nationPtr' [-Wunused-variable] Nation* nationPtr = nation_array[nation_recno]; ^~~~~~~~~ OF_MARK2.cpp: In member function 'int FirmMarket::think_import_specific_product(int)': OF_MARK2.cpp:415:7: warning: unused variable 'canHireCaravan' [-Wunused-variable] int canHireCaravan = can_hire_caravan(); ^~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OF_MINE2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_MINE2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OF_MARK.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_MARK.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OF_MARK.cpp: In member function 'virtual void FirmMarket::detect_info()': OF_MARK.cpp:287:18: warning: unused variable 'marketGoods' [-Wunused-variable] MarketGoods* marketGoods = market_goods_array+i; ^~~~~~~~~~~ OF_MARK.cpp: In member function 'short int FirmMarket::hire_caravan(char)': OF_MARK.cpp:344:10: warning: unused variable 'nationPtr' [-Wunused-variable] Nation *nationPtr = nation_array[nation_recno]; ^~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OF_RESE.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_RESE.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OF_RESE.cpp: In member function 'void FirmResearch::research_complete()': OF_RESE.cpp:592:8: warning: unused variable 'techId' [-Wunused-variable] short techId = tech_id; // backup tech_id ^~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OF_MINE.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_MINE.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OF_RESE2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OF_RESE2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OF_MONS.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_MONS.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OF_MONS.cpp: In member function 'virtual void FirmMonster::deinit_derived()': OF_MONS.cpp:111:6: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount=0; ^~~~~~~~~ OF_MONS.cpp: In member function 'void FirmMonster::disp_monster_info(int, int)': OF_MONS.cpp:180:6: warning: unused variable 'x' [-Wunused-variable] int x=INFO_X1+4, y=dispY1+3; ^ OF_MONS.cpp:180:19: warning: unused variable 'y' [-Wunused-variable] int x=INFO_X1+4, y=dispY1+3; ^ OF_MONS.cpp: In member function 'virtual void FirmMonster::assign_unit(int)': OF_MONS.cpp:308:12: warning: unused variable 'unitInfo' [-Wunused-variable] UnitInfo* unitInfo = unit_res[unitPtr->unit_id]; ^~~~~~~~ OF_MONS.cpp: In member function 'void FirmMonster::add_general(int)': OF_MONS.cpp:358:12: warning: unused variable 'unitInfo' [-Wunused-variable] UnitInfo* unitInfo = unit_res[unitPtr->unit_id]; ^~~~~~~~ OF_MONS.cpp: In member function 'void FirmMonster::add_soldier(int)': OF_MONS.cpp:427:48: warning: array subscript has type 'char' [-Wchar-subscripts] waiting_soldier_array[waiting_soldier_count++] = generalUnitRecno; // the soldier is waiting for this general. ^ OF_MONS.cpp: In member function 'int FirmMonster::mobilize_general(int, int)': OF_MONS.cpp:557:42: warning: array subscript has type 'char' [-Wchar-subscripts] patrol_unit_array[patrol_unit_count++] = unitRecno; ^ OF_MONS.cpp: In member function 'int FirmMonster::think_attack_neighbor()': OF_MONS.cpp:909:9: warning: unused variable 'totalCombatLevel' [-Wunused-variable] int totalCombatLevel=0; ^~~~~~~~~~~~~~~~ OF_MONS.cpp: In member function 'int FirmMonster::think_attack_human()': OF_MONS.cpp:1071:9: warning: unused variable 'totalCombatLevel' [-Wunused-variable] int totalCombatLevel=0; ^~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGAMCRED.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGAMESET.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OF_WAR2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OF_WAR2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGAME.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPATH.h:37, from ../include/OU_CARA.h:33, from ../include/OUNITALL.h:27, from OGAME.cpp:32: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OGAME.cpp:34: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OGAME.cpp: In member function 'int Game::init(int)': OGAME.cpp:116:6: warning: unused variable 'originalRandomSeed' [-Wunused-variable] int originalRandomSeed = misc.get_random_seed(); ^~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGAMENCY.o OGAMENCY.cpp: In function 'int disp_picture(int, int, int)': OGAMENCY.cpp:585:84: warning: suggest parentheses around '&&' within '||' [-Wparentheses] filename2[0] && misc.is_file_exist(filename2) && pictFile.file_open(filename2,0) && (palNamePtr = palname2) || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ OGAMENCY.cpp: At global scope: OGAMENCY.cpp:131:12: warning: 'fryhtan_page' defined but not used [-Wunused-variable] static int fryhtan_page; ^~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGAMEND.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from ../include/OGFILE.h:36, from OGAMEND.cpp:38: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OF_WAR.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OF_WAR.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OF_WAR.cpp: In member function 'void FirmWar::detect_build_menu()': OF_WAR.cpp:295:18: warning: unused variable 'x' [-Wunused-variable] int unitId, x=INFO_X1+2, y=INFO_Y1, rc, quitFlag; ^ OF_WAR.cpp:296:12: warning: variable 'unitInfo' set but not used [-Wunused-but-set-variable] UnitInfo* unitInfo; ^~~~~~~~ OF_WAR.cpp: In member function 'void FirmWar::add_queue(int, int)': OF_WAR.cpp:602:40: warning: array subscript has type 'char' [-Wchar-subscripts] build_queue_array[build_queue_count++] = unitId; ^ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGAMHALL.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OGAMHALL.cpp:35: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGAMMAIN.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from ../include/OGFILE.h:36, from OGAMMAIN.cpp:35: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGENHILL.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OGENHILL.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OGENHILL.cpp:29: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGAMSCE2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OGAMSCE2.cpp:38: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ALL.h:33, from ../include/OSYS.h:27, from OGAMSCE2.cpp:25: OGAMSCE2.cpp: In member function 'int Game::select_scenario(int, ScenInfo*)': ../include/GAMEDEF.h:83:53: warning: array subscript has type 'char' [-Wchar-subscripts] #define DIR_SCENARIO_PATH(p) sys.dir_scenario_path[p] ^ OGAMSCE2.cpp:235:15: note: in expansion of macro 'DIR_SCENARIO_PATH' pathName = DIR_SCENARIO_PATH(scenInfoArray[browseRecno-1].dir_id); ^~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGAMMENU.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OGAMMENU.cpp:34: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OGAMMENU.cpp: In member function 'void Game::in_game_menu()': OGAMMENU.cpp:85:6: warning: unused variable 'x' [-Wunused-variable] int x=GAME_MENU_X1+20, y=GAME_MENU_Y1+17; ^ OGAMMENU.cpp:85:25: warning: unused variable 'y' [-Wunused-variable] int x=GAME_MENU_X1+20, y=GAME_MENU_Y1+17; ^ OGAMMENU.cpp: In function 'int detect_game_option()': OGAMMENU.cpp:187:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses] (menu_hot_key[i-1] && mouse.key_code == menu_hot_key[i-1] || ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OGAMMENU.cpp: At global scope: OGAMMENU.cpp:293:13: warning: 'reverse_race_table' defined but not used [-Wunused-variable] static char reverse_race_table[MAX_RACE_TABLE] = // race translation table ^~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGAMSCEN.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from ../include/OGFILE.h:36, from OGAMSCEN.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/ALL.h:33, from ../include/OSYS.h:27, from OGAMSCEN.cpp:25: OGAMSCEN.cpp: In member function 'int Game::run_scenario(ScenInfo*)': ../include/GAMEDEF.h:83:53: warning: array subscript has type 'char' [-Wchar-subscripts] #define DIR_SCENARIO_PATH(p) sys.dir_scenario_path[p] ^ OGAMSCEN.cpp:138:9: note: in expansion of macro 'DIR_SCENARIO_PATH' str = DIR_SCENARIO_PATH(scenInfo->dir_id); ^~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGENMAP.o In file included from OGENMAP.cpp:31: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OGENMAP.cpp:32: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OGENMAP.cpp: In member function 'void World::remove_odd(Plasma&, short int, short int, short int)': OGENMAP.cpp:562:14: warning: 'diffHeight' may be used uninitialized in this function [-Wmaybe-uninitialized] plasma.plot(x,y, diffHeight); ~~~~~~~~~~~^~~~~~~~~~~~~~~~~ OGENMAP.cpp: In member function 'void World::generate_map()': OGENMAP.cpp:138:53: warning: 'maxLandCount' may be used uninitialized in this function [-Wmaybe-uninitialized] while( ++loopCount <= 4 && (landCountmaxLandCount) ) ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ OGENMAP.cpp:138:26: warning: 'minLandCount' may be used uninitialized in this function [-Wmaybe-uninitialized] while( ++loopCount <= 4 && (landCountmaxLandCount) ) ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGAMSING.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OGAMSING.cpp:31: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OGAMSING.cpp: At global scope: OGAMSING.cpp:52:13: warning: 'option_mode' defined but not used [-Wunused-variable] static char option_mode; ^~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGFILE.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OGFILE.cpp:33: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGETA.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGF_V1.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from ../include/ONATIONA.h:32, from ../include/OGF_V1.h:29, from OGF_V1.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGFILEA.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OGFILEA.cpp:44: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OGFILEA.cpp: In member function 'void GameFile::disp_info(int, int)': OGFILEA.cpp:654:11: warning: unused variable 'localFileTime' [-Wunused-variable] FILETIME localFileTime; ^~~~~~~~~~~~~ OGFILEA.cpp: At global scope: OGFILEA.cpp:1001:13: warning: 'void key_search()' defined but not used [-Wunused-function] static void key_search() ^~~~~~~~~~ OGFILEA.cpp:973:12: warning: 'int last_game_recno()' defined but not used [-Wunused-function] static int last_game_recno() ^~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGODRES.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OGODRES.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGRPSEL.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OGRPSEL.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGFILE2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OFIRMRES.h:32, from OGFILE2.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OGFILE2.cpp: In member function 'int GameFile::read_file(File*)': OGFILE2.cpp:191:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if( game_file_array.demo_format && game_file_array.load_file_game_version > 0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OGFILE2.cpp:186:6: warning: unused variable 'originalRandomSeed' [-Wunused-variable] int originalRandomSeed = misc.get_random_seed(); ^~~~~~~~~~~~~~~~~~ OGFILE2.cpp: In member function 'int TownRes::read_file(File*)': 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] memset(town_name_used_array, 0, sizeof(town_name_used_array)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ OGFILE2.cpp: In member function 'int GodRes::read_file(File*)': 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] memset(god_info_array, 0, sizeof(god_info_array)); ^~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OHELP.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OHELP.cpp:30: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OHELP.cpp: In member function 'void Help::load(char*)': OHELP.cpp:145:8: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount=0; ^~~~~~~~~ OHELP.cpp: In member function 'void Help::save_scr(int, int, int, int)': OHELP.cpp:232:7: warning: unused variable 'saveSize' [-Wunused-variable] long saveSize = (long)(x2-x1+1) * (y2-y1+1); ^~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OIMGRES.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OLOG.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OLONGLOG.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OHILLRES.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OHILLRES.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OINFO.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from OINFO.cpp:31: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OINFO.cpp: In member function 'void Info::disp_heading()': OINFO.cpp:395:6: warning: unused variable 'x' [-Wunused-variable] int x=TOP_MENU_X2-250; ^ OINFO.cpp: At global scope: OINFO.cpp:53:20: warning: 'skill_name_array' defined but not used [-Wunused-variable] static const char* skill_name_array[] = ^~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OMEM.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OLZW.o OLZW.cpp: In member function 'virtual short unsigned int BitFileRead::input_bits(unsigned int)': OLZW.cpp:125:17: warning: comparison of integer expressions of different signedness: 'long int' and 'unsigned int' [-Wsign-compare] if( byteFetch >= sizeof(residue) ) // residue >>= 32 does not change to 0 ~~~~~~~~~~^~~~~~~~~~~~~~~~~~ In file included from OLZW.cpp:27: ../include/OLZW.h: In constructor 'BitFileWrite::BitFileWrite(File*)': ../include/OLZW.h:74:16: warning: 'BitFileWrite::residue' will be initialized after [-Wreorder] unsigned long residue; // always the 4 bytes at last_offset ^~~~~~~ ../include/OLZW.h:73:7: warning: 'long int BitFileWrite::residue_len' [-Wreorder] long residue_len; ^~~~~~~~~~~ OLZW.cpp:150:1: warning: when initialized here [-Wreorder] BitFileWrite::BitFileWrite(File *f) : filePtr(f), residue(0), residue_len(0) ^~~~~~~~~~~~ OLZW.cpp: In member function 'virtual void BitFileWrite::output_bits(short unsigned int, unsigned int)': OLZW.cpp:173:17: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] if( byteFlush >= sizeof(residue)) // if byteFlush == 4, residue >>= 32 does not set residue to 0 ~~~~~~~~~~^~~~~~~~~~~~~~~~~~ OLZW.cpp: In member function 'unsigned int Lzw::decode_string(unsigned int, short unsigned int)': OLZW.cpp:468:17: warning: unused variable 'initCode' [-Wunused-variable] unsigned short initCode = code; ^~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OLIGHTN.o In file included from ../include/OWORLDMT.h:28, from OLIGHTN.cpp:30: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OLIGHTN.cpp: At global scope: OLIGHTN.cpp:293:15: warning: 'double sqr(double)' defined but not used [-Wunused-function] static double sqr(double x) ^~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OINGMENU.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from ../include/ONATIONA.h:32, from OINGMENU.cpp:35: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OINGMENU.cpp: In member function 'void InGameMenu::disp(int)': OINGMENU.cpp:133:11: warning: unused variable 'x' [-Wunused-variable] int x=GAME_MENU_X1+20, y=GAME_MENU_Y1+17; ^ OINGMENU.cpp:133:30: warning: unused variable 'y' [-Wunused-variable] int x=GAME_MENU_X1+20, y=GAME_MENU_Y1+17; ^ OINGMENU.cpp: In member function 'int InGameMenu::detect()': OINGMENU.cpp:176:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses] (menu_hot_key[i-1] && mouse.key_code == menu_hot_key[i-1] || ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OLIGHTN2.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OMOUSECR.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OMOUSECR.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGAMEMP.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OGAMEMP.cpp:33: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OGAMEMP.cpp: In constructor 'MpStructLoadGameNewPlayer::MpStructLoadGameNewPlayer(Nation*, DWORD, long int, char*, char*)': OGAMEMP.cpp:339:8: warning: 'MpStructLoadGameNewPlayer::random_seed' will be initialized after [-Wreorder] long random_seed; ^~~~~~~~~~~ OGAMEMP.cpp:331:11: warning: 'uint32_t MpStructLoadGameNewPlayer::ver1' [-Wreorder] uint32_t ver1; ^~~~ OGAMEMP.cpp:343:2: warning: when initialized here [-Wreorder] MpStructLoadGameNewPlayer(Nation *n, DWORD frame, long seed, char *name, char *pass) : ^~~~~~~~~~~~~~~~~~~~~~~~~ OGAMEMP.cpp: In member function 'int Game::input_name_pass(const char**, char*, int, char*, int)': OGAMEMP.cpp:1673:6: warning: variable 'titleWidth' set but not used [-Wunused-but-set-variable] int titleWidth, titleHeight, fieldDesWidth, field_x_pos, boxWidth, boxHeight, buttonWidth1, ret; ^~~~~~~~~~ OGAMEMP.cpp:1673:46: warning: variable 'field_x_pos' set but not used [-Wunused-but-set-variable] int titleWidth, titleHeight, fieldDesWidth, field_x_pos, boxWidth, boxHeight, buttonWidth1, ret; ^~~~~~~~~~~ OGAMEMP.cpp: In member function 'int Game::mp_select_option(NewNationPara*, int*)': OGAMEMP.cpp:3636:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if( keyCode = mapIdField.detect() ) ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ OGAMEMP.cpp: In member function 'int Game::mp_select_load_option(char*)': OGAMEMP.cpp:5599:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !nationPtr->is_own() && !nationPtr->is_remote() || ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ OGAMEMP.cpp:4319:11: warning: variable 'hostPlayerId' set but not used [-Wunused-but-set-variable] PID_TYPE hostPlayerId = 0; ^~~~~~~~~~~~ OGAMEMP.cpp:4334:6: warning: unused variable 'shareRace' [-Wunused-variable] int shareRace = 1; // host only, 0= exclusive race of each player ^~~~~~~~~ OGAMEMP.cpp: At global scope: OGAMEMP.cpp:527:13: warning: 'void ingame_disconnect_handler(DWORD)' defined but not used [-Wunused-function] static void ingame_disconnect_handler(DWORD playerId) ^~~~~~~~~~~~~~~~~~~~~~~~~ OGAMEMP.cpp:506:13: warning: 'void pregame_disconnect_handler(DWORD)' defined but not used [-Wunused-function] static void pregame_disconnect_handler(DWORD playerId) ^~~~~~~~~~~~~~~~~~~~~~~~~~ OGAMEMP.cpp: In member function 'int Game::mp_select_session()': OGAMEMP.cpp:2082:64: warning: 'refreshTime' may be used uninitialized in this function [-Wmaybe-uninitialized] if( !(mouse.skey_state & SHIFT_KEY_MASK) && misc.get_time() - refreshTime > pollTime ) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ OGAMEMP.cpp: In member function 'int Game::mp_join_session(int)': OGAMEMP.cpp:2198:42: warning: 'wait_time' may be used uninitialized in this function [-Wmaybe-uninitialized] if (joinSessionInitiated && (sysMsg < 0 || wait_time <= misc.get_time())) ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OGAMEMP.cpp: In member function 'int Game::mp_select_load_option(char*)': OGAMEMP.cpp:5519:4: warning: 'maxPlayer' may be used uninitialized in this function [-Wmaybe-uninitialized] if( playerCount < maxPlayer ) ^~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OMATRIX.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from OMATRIX.cpp:29: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OMATRIX.cpp:30: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OMATRIX.cpp: In member function 'void Location::set_site(int)': OMATRIX.cpp:444:22: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] loc_flag = loc_flag & ~LOCATE_SITE_MASK | LOCATE_HAS_SITE; OMATRIX.cpp: In member function 'void Location::set_dirt(int)': OMATRIX.cpp:506:22: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] loc_flag = loc_flag & ~LOCATE_SITE_MASK | LOCATE_HAS_DIRT; OMATRIX.cpp: In member function 'void Location::set_town(int)': OMATRIX.cpp:563:22: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] loc_flag = loc_flag & ~LOCATE_BLOCK_MASK | LOCATE_IS_TOWN; OMATRIX.cpp: In member function 'void Location::set_hill(int)': OMATRIX.cpp:616:23: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] loc_flag = loc_flag & ~(LOCATE_BLOCK_MASK | LOCATE_SITE_MASK ) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OMATRIX.cpp: In member function 'void Location::set_wall(int, int, int)': OMATRIX.cpp:651:22: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] loc_flag = loc_flag & ~(LOCATE_BLOCK_MASK | LOCATE_SITE_MASK ) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OMATRIX.cpp: In member function 'void Location::set_plant(int, int, int)': OMATRIX.cpp:785:22: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] loc_flag = loc_flag & ~(LOCATE_BLOCK_MASK | LOCATE_SITE_MASK ) ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OMATRIX.cpp: In member function 'void Location::set_rock(short int)': OMATRIX.cpp:817:22: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] loc_flag = loc_flag & ~LOCATE_BLOCK_MASK | LOCATE_IS_ROCK; make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OMONSRES.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OMONSRES.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OMONSRES.cpp: In member function 'void MonsterRes::init_active_monster()': OMONSRES.cpp:130:6: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount=0; ^~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OMUSIC.o OMUSIC.cpp: In member function 'int Music::play(int, int)': OMUSIC.cpp:160:32: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] return play(songId, playType & ~MUSIC_CD_THEN_WAV | MUSIC_PLAY_CD) make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OMISC.o OMISC.cpp: In member function 'int Misc::valid_char(char)': OMISC.cpp:526:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return ( ch>='a' && ch<='z' || ~~~~~~~~^~~~~~~~~~ OMISC.cpp:528:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses] ch>='0' && ch<='9' || ~~~~~~~~^~~~~~~~~~ OMISC.cpp: In member function 'int Misc::atoi(char*, int)': OMISC.cpp:932:16: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] if ( strLen >= sizeof( str_buf ) ) ~~~~~~~^~~~~~~~~~~~~~~~~~~~ OMISC.cpp: In member function 'void Misc::cal_move_around_a_point_v2(short int, short int, short int, int&, int&)': OMISC.cpp:1464:6: warning: 'xMag' may be used uninitialized in this function [-Wmaybe-uninitialized] int xMag; ^~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OMOUSE.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX ONEWSFRE.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX ONEWSGER.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX ONEWSSPA.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OGFILE3.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OGFILE3.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OGFILE3.cpp: In function 'bool read_version_1_nation(File*, Version_1_Nation*)': 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] memset(&v1n->action_array, 0, sizeof(v1n->action_array)); ^ In file included from ../include/ODYNARRB.h:28, from ../include/OSPRITE.h:28, from ../include/OUNIT.h:28, from OGFILE3.cpp:25: ../include/ODYNARR.h:52:7: note: 'class DynArray' declared here class DynArray ^~~~~~~~ OGFILE3.cpp: In function 'bool read_nation(File*, Nation*)': 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] memset(&nat->action_array, 0, sizeof(nat->action_array)); ^ In file included from ../include/ODYNARRB.h:28, from ../include/OSPRITE.h:28, from ../include/OUNIT.h:28, from OGFILE3.cpp:25: ../include/ODYNARR.h:52:7: note: 'class DynArray' declared here class DynArray ^~~~~~~~ OGFILE3.cpp: At global scope: OGFILE3.cpp:54:14: warning: 'char* create_monster_func()' declared 'static' but never defined [-Wunused-function] static char* create_monster_func(); ^~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX ONATIONA.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OF_CAMP.h:28, from ONATIONA.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ONATIONA.cpp: In member function 'void NationArray::del_nation(int)': ONATIONA.cpp:273:9: warning: deleting object of polymorphic class type 'Nation' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] delete nationPtr; ^~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX ONEWS.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ONEWS.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ONEWS.cpp: In member function 'int News::put(int, int, int&)': ONEWS.cpp:432:57: warning: array subscript has type 'char' [-Wchar-subscripts] char colorCode = game.color_remap_array[nation_color1].main_color; ^ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OMP_CRC.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from ../include/OU_GOD.h:28, from OMP_CRC.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OMP_CRC.cpp: In member function 'virtual UCHAR Sprite::crc8()': 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] memcpy(&dummySprite, this, sizeof(Sprite)); ^ In file included from ../include/OUNIT.h:28, from ../include/OU_GOD.h:28, from OMP_CRC.cpp:26: ../include/OSPRITE.h:58:7: note: 'class Sprite' declared here class Sprite ^~~~~~ OMP_CRC.cpp: In member function 'virtual UCHAR Unit::crc8()': 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] memcpy(&dummyUnit, this, sizeof(Unit)); ^ In file included from ../include/OU_GOD.h:28, from OMP_CRC.cpp:26: ../include/OUNIT.h:205:7: note: 'class Unit' declared here class Unit : public Sprite ^~~~ OMP_CRC.cpp: In member function 'virtual UCHAR UnitGod::crc8()': 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] memcpy(&dummyUnitGod, this, sizeof(UnitGod)); ^ In file included from OMP_CRC.cpp:26: ../include/OU_GOD.h:38:7: note: 'class UnitGod' declared here class UnitGod : public Unit ^~~~~~~ OMP_CRC.cpp: In member function 'virtual UCHAR UnitVehicle::crc8()': 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] memcpy(&dummyUnitVehicle, this, sizeof(UnitVehicle)); ^ In file included from OMP_CRC.cpp:27: ../include/OU_VEHI.h:34:7: note: 'class UnitVehicle' declared here class UnitVehicle : public Unit ^~~~~~~~~~~ OMP_CRC.cpp: In member function 'virtual UCHAR UnitMonster::crc8()': 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] memcpy(&dummyUnitMonster, this, sizeof(UnitMonster)); ^ In file included from OMP_CRC.cpp:28: ../include/OU_MONS.h:40:7: note: 'class UnitMonster' declared here class UnitMonster : public Unit ^~~~~~~~~~~ OMP_CRC.cpp: In member function 'virtual UCHAR UnitExpCart::crc8()': 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] memcpy(&dummyUnitExpCart, this, sizeof(UnitExpCart)); ^ In file included from OMP_CRC.cpp:29: ../include/OU_CART.h:30:7: note: 'class UnitExpCart' declared here class UnitExpCart : public Unit ^~~~~~~~~~~ OMP_CRC.cpp: In member function 'virtual UCHAR UnitMarine::crc8()': 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] memcpy(&dummyUnitMarine, this, sizeof(UnitMarine)); ^ In file included from OMP_CRC.cpp:30: ../include/OU_MARI.h:74:7: note: 'class UnitMarine' declared here class UnitMarine : public Unit ^~~~~~~~~~ OMP_CRC.cpp: In member function 'virtual void UnitMarine::clear_ptr()': 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] memset(&splash, 0, sizeof(splash)); ^ In file included from ../include/OUNIT.h:28, from ../include/OU_GOD.h:28, from OMP_CRC.cpp:26: ../include/OSPRITE.h:58:7: note: 'class Sprite' declared here class Sprite ^~~~~~ OMP_CRC.cpp:57:32: warning: comparison of integer expressions of different signedness: 'char' and 'unsigned int' [-Wsign-compare] #define RTRIM_ARRAY(a,s) { if(sTERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX ORAWRES.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ORAWRES.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX ORAIN3.o In file included from ../include/OWORLDMT.h:28, from ORAIN3.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX ORAIN2.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX ORAIN1.o In file included from ../include/OWORLDMT.h:28, from ORAIN1.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OREMOTEQ.o OREMOTEQ.cpp: In member function 'int RemoteQueue::validate_queue(int)': OREMOTEQ.cpp:59:6: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount = 0; ^~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OREMOTE.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OREMOTE.cpp:34: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OREMOTE.cpp: At global scope: OREMOTE.cpp:224:13: warning: 'void connect_game_disconnect_handler(DWORD)' defined but not used [-Wunused-function] static void connect_game_disconnect_handler(DWORD playerId) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX ORES.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX ORESX.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX ORESDB.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OREBEL.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OREBEL.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OREBEL.cpp: In member function 'void Rebel::think_new_action()': OREBEL.cpp:627:2: warning: 'rc' may be used uninitialized in this function [-Wmaybe-uninitialized] if( rc ) ^~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OROCK.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OPOWER.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OPOWER.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OPOWER.cpp: In member function 'int Power::detect_frame()': OPOWER.cpp:420:8: warning: unused variable 'mouseX' [-Wunused-variable] int mouseX = mouse.click_x(LEFT_BUTTON); ^~~~~~ OPOWER.cpp:421:8: warning: unused variable 'mouseY' [-Wunused-variable] int mouseY = mouse.click_y(LEFT_BUTTON); ^~~~~~ OPOWER.cpp:245:12: warning: unused variable 'selectedCount' [-Wunused-variable] int rc=0, selectedCount=0; ^~~~~~~~~~~~~ OPOWER.cpp: In member function 'int Power::detect_action()': OPOWER.cpp:718:12: warning: variable 'selectedUnit' set but not used [-Wunused-but-set-variable] Unit *selectedUnit; ^~~~~~~~~~~~ OPOWER.cpp:702:8: warning: unused variable 'assignedFlag' [-Wunused-variable] int assignedFlag=0; ^~~~~~~~~~~~ OPOWER.cpp:554:10: warning: variable 'targetWall' set but not used [-Wunused-but-set-variable] char targetWall=0; ^~~~~~~~~~ OPOWER.cpp:555:8: warning: unused variable 'mobileType' [-Wunused-variable] int mobileType = activeUnit->mobile_type; // mobile type of the selected units ^~~~~~~~~~ OPOWER.cpp:557:10: warning: unused variable 'nationRecno' [-Wunused-variable] short nationRecno = activeUnit->nation_recno; ^~~~~~~~~~~ OPOWER.cpp: In member function 'int Power::detect_select(int, int, int, int, int, int)': OPOWER.cpp:1169:26: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] for( int mt = 0; mt < sizeof(mobileTypeList)/sizeof(char); ++mt ) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OPOWER.cpp:1185:48: warning: array subscript has type 'char' [-Wchar-subscripts] selectNationCount[unitPtr->nation_recno]++; ^ OPOWER.cpp:1207:25: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] for( int mt = 0; mt < sizeof(mobileTypeList)/sizeof(char); ++mt ) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OPOWER.cpp:1019:6: warning: unused variable 'firstXLoc' [-Wunused-variable] int firstXLoc = selXLoc1, firstYLoc = selYLoc1; // first location to be tested ^~~~~~~~~ OPOWER.cpp:1019:28: warning: unused variable 'firstYLoc' [-Wunused-variable] int firstXLoc = selXLoc1, firstYLoc = selYLoc1; // first location to be tested ^~~~~~~~~ OPOWER.cpp:1050:7: warning: unused variable 'firstTest' [-Wunused-variable] int firstTest=0; ^~~~~~~~~ OPOWER.cpp: In member function 'int Power::choose_cursor(int, int, ScreenObjectType, short int, ScreenObjectType, short int)': OPOWER.cpp:1827:12: warning: unused variable 'townPtr' [-Wunused-variable] Town *townPtr = town_array[selectedObjectRecno]; ^~~~~~~ OPOWER.cpp:1487:6: warning: variable 'pointingObjectId' set but not used [-Wunused-but-set-variable] int pointingObjectId = 0; ^~~~~~~~~~~~~~~~ OPOWER.cpp: In member function 'ScreenObjectType Power::find_selected_type(short int*)': OPOWER.cpp:2132:9: warning: unused variable 'sitePtr' [-Wunused-variable] Site *sitePtr = site_array[*selectedRecno = site_array.selected_recno]; ^~~~~~~ OPOWER.cpp: In member function 'ScreenObjectType Power::find_pointing_type(Location*, short int*)': OPOWER.cpp:2202:9: warning: unused variable 'sitePtr' [-Wunused-variable] Site *sitePtr = site_array[*pointingRecno = locPtr->site_recno()]; ^~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OREGIONS.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OREGIONS.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OREGIONS.cpp: In member function 'void RegionStat::init()': OREGIONS.cpp:132:50: warning: array subscript has type 'char' [-Wchar-subscripts] reachable_region_array[reachable_region_count].sea_region_id = seaRegionId; ^ OREGIONS.cpp:133:50: warning: array subscript has type 'char' [-Wchar-subscripts] reachable_region_array[reachable_region_count].land_region_stat_id = i; ^ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OR_MIL.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OF_CAMP.h:28, from OR_MIL.cpp:32: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OR_MIL.cpp: In function 'int unit_filter(int)': OR_MIL.cpp:420:10: warning: unused variable 'nationPtr' [-Wunused-variable] Nation* nationPtr = nation_array[info.viewing_nation_recno]; ^~~~~~~~~ OR_MIL.cpp: In function 'void put_unit_rec(int, int, int, int)': OR_MIL.cpp:456:10: warning: unused variable 'unitId' [-Wunused-variable] int unitId = unit_filter(recNo); ^~~~~~ OR_MIL.cpp: In function 'void put_troop_rec(int, int, int, int)': OR_MIL.cpp:397:14: warning: 'statusStr' may be used uninitialized in this function [-Wmaybe-uninitialized] font_san.put( x+486, y, statusStr ); ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OREMOTE2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OREMOTE2.cpp:34: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OREMOTE2.cpp: In member function 'int Remote::poll_msg()': OREMOTE2.cpp:283:15: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount=0; ^~~~~~~~~ OREMOTE2.cpp: In member function 'void Remote::process_receive_queue()': OREMOTE2.cpp:400:6: warning: variable 'loopCount' set but not used [-Wunused-but-set-variable] int loopCount=0; ^~~~~~~~~ OREMOTE2.cpp: In member function 'void Remote::process_specific_msg(DWORD)': OREMOTE2.cpp:516:6: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount=0; ^~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OR_ECO.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from OR_ECO.cpp:30: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OROCKRES.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OROCKRES.cpp:29: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OROCKRES.cpp:31: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OROCKRES.cpp: In member function 'void RockRes::load_block_info()': OROCKRES.cpp:275:47: warning: array subscript has type 'char' [-Wchar-subscripts] rockInfo->block_offset[rockBlockInfo->loc_y][rockBlockInfo->loc_x] = i + 1; ^ OROCKRES.cpp:275:69: warning: array subscript has type 'char' [-Wchar-subscripts] rockInfo->block_offset[rockBlockInfo->loc_y][rockBlockInfo->loc_x] = i + 1; ^ OROCKRES.cpp: In member function 'char RockRes::choose_next(short int, char, long int)': OROCKRES.cpp:436:12: warning: unused variable 'rockInfo' [-Wunused-variable] RockInfo *rockInfo = get_rock_info(rockRecno); ^~~~~~~~ OROCKRES.cpp: In member function 'void RockRes::draw_block(short int, short int, short int, short int, short int, char)': OROCKRES.cpp:487:12: warning: unused variable 'rockInfo' [-Wunused-variable] RockInfo *rockInfo = rock_res.get_rock_info(rockRecno); ^~~~~~~~ OROCKRES.cpp: In member function 'short int RockRes::search(const char*, short int, short int, short int, short int, int, int, char)': OROCKRES.cpp:533:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses] && (animatedFlag < 0 || animatedFlag == 0 && rockInfo->max_frame == 1 || ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ OROCKRES.cpp:534:22: warning: suggest parentheses around '&&' within '||' [-Wparentheses] animatedFlag > 0 && rockInfo->max_frame > 1) ) ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OR_AI.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OFIRMRES.h:32, from OR_AI.cpp:29: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OR_AI.cpp: At global scope: OR_AI.cpp:74:33: warning: 'total_peasant' defined but not used [-Wunused-variable] static int total_population, total_peasant; ^~~~~~~~~~~~~ OR_AI.cpp:74:15: warning: 'total_population' defined but not used [-Wunused-variable] static int total_population, total_peasant; ^~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OR_NEWS.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OR_NEWS.cpp:34: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OR_NEWS.cpp: In member function 'void Info::disp_news_log(int)': OR_NEWS.cpp:56:6: warning: unused variable 'x' [-Wunused-variable] int x=NEWS_BROWSE_X1+9; ^ OR_NEWS.cpp:57:6: warning: unused variable 'y' [-Wunused-variable] int y=NEWS_BROWSE_Y1+4; ^ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OR_TOWN.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from OR_TOWN.cpp:30: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OR_TOWN.cpp: At global scope: OR_TOWN.cpp:64:16: warning: 'total_expense' defined but not used [-Wunused-variable] static float total_expense; ^~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OR_NAT.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OR_NAT.cpp:38: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OR_NAT.cpp: In function 'void disp_debug_info()': OR_NAT.cpp:656:6: warning: unused variable 'refreshFlag' [-Wunused-variable] int refreshFlag = INFO_REPAINT; ^~~~~~~~~~~ OR_NAT.cpp: In function 'void disp_nation_chat(int)': OR_NAT.cpp:909:85: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if( !(sys.debug_session || nation_array[nationRecno]->nation_type == NATION_REMOTE && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ info.viewing_nation_recno == nation_array.player_recno ) ) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OR_NAT.cpp: In function 'void detect_nation_chat()': OR_NAT.cpp:965:83: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if( sys.debug_session || nation_array[nationRecno]->nation_type == NATION_REMOTE && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ info.viewing_nation_recno == nation_array.player_recno ) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OR_TECH.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from ../include/OGODRES.h:28, from OR_TECH.cpp:31: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSFRMRES.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OR_RANK.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OR_RANK.cpp:29: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OR_RANK.cpp: In member function 'void Info::set_rank_data(int)': OR_RANK.cpp:424:9: warning: unused variable 'rankPos' [-Wunused-variable] int rankPos=0; ^~~~~~~ OR_RANK.cpp: In member function 'int Info::get_rank_score(int, int)': OR_RANK.cpp:517:74: warning: 'maxValue' may be used uninitialized in this function [-Wmaybe-uninitialized] int rankScore = 100 * nation_rank_data_array[rankType-1][nationRecno-1] / maxValue; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OR_SPY.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OFIRMRES.h:32, from OR_SPY.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OR_TRADE.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from OR_TRADE.cpp:31: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OREMOTEM.o OREMOTEM.cpp:1545:6: warning: "/*" within comment [-Wcomment] /* //**BUGHERE, no more training in game In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OREMOTEM.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OREMOTEM.cpp: In member function 'void RemoteMsg::new_nation()': OREMOTEM.cpp:250:6: warning: unused variable 'nationRecno' [-Wunused-variable] int nationRecno = nation_array.new_nation( NATION_REMOTE, nationPtr->race_id, nationPtr->color_scheme_id, nationPtr->player_id ); ^~~~~~~~~~~ OREMOTEM.cpp: In member function 'void RemoteMsg::firm_bribe()': OREMOTEM.cpp:1744:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses] && (shortPtr[2] == 0 && firmPtr->overseer_recno || ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ OREMOTEM.cpp: In member function 'void RemoteMsg::firm_reward()': OREMOTEM.cpp:1840:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if( shortPtr[1] == 0 && firmPtr->overseer_recno || ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSKILL.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSE.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSERES.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OSERES.cpp:31: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OSERES.cpp: In member function 'void SERes::build_index()': OSERES.cpp:279:4: warning: 'lastId' may be used uninitialized in this function [-Wmaybe-uninitialized] if( lastId != seInfo->subject_id) ^~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSNOWG.o In file included from ../include/OWORLDMT.h:28, from OSNOWG.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSLIDCUS.o OSLIDCUS.cpp: In member function 'int SlideBar::detect()': OSLIDCUS.cpp:164:7: warning: unused variable 'oldValue' [-Wunused-variable] int oldValue = view_recno; ^~~~~~~~ OSLIDCUS.cpp: In member function 'int SlideVBar::detect()': OSLIDCUS.cpp:377:7: warning: unused variable 'oldValue' [-Wunused-variable] int oldValue = view_recno; ^~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSCROLL.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OSCROLL.cpp:30: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OSCROLL.cpp: In member function 'int ScrollBar::detect()': OSCROLL.cpp:254:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if( type==VERTICAL && mouse.any_click( x1+2, y1+2, x2-2 , y1+13 ) || ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OSCROLL.cpp:265:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if( type==VERTICAL && mouse.any_click( x1+2, y2-13, x2-2, y2-2 ) || ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OSCROLL.cpp:284:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if( type==VERTICAL && mouse.any_click( x1+2 , y1+14, x2-2 , y2-14 ) || ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OSCROLL.cpp:328:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if( type==VERTICAL && mouse.any_click( x1+2 , indicator_y, x2-2, indicator_y+indicator_height-1 ) || ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSNOWRES.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OSNOWRES.cpp:29: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSITEDRW.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OSITEDRW.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OSITEDRW.cpp: In member function 'void Site::draw(int, int)': OSITEDRW.cpp:127:27: warning: 'bmpPtr' may be used uninitialized in this function [-Wmaybe-uninitialized] vga_back.put_bitmap_trans( x, y, bmpPtr ); ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSNOW1.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSPATHBT.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPATH.h:37, from OSPATHBT.cpp:21: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSNOW2.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSITE.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OSITE.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSPREDBG.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPATH.h:37, from ../include/OSPREUSE.h:29, from OSPREDBG.cpp:35: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSPREOFF.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPATH.h:37, from ../include/OSPREUSE.h:29, from OSPREOFF.cpp:21: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OSPREOFF.cpp: In static member function 'static int SeekPathReuse::can_walk(int, int)': OSPREOFF.cpp:67:54: warning: array subscript has type 'char' [-Wchar-subscripts] !reuse_nation_passable[locPtr->power_nation_recno]) ^ OSPREOFF.cpp: In member function 'void SeekPathReuse::use_offset_method(int, int)': OSPREOFF.cpp:589:10: warning: unused variable 'pathSeekResult' [-Wunused-variable] int pathSeekResult= seek_path.seek(preNonblockedXLoc, preNonblockedYLoc, virDestX, virDestY, cur_group_id, mobile_type, SEARCH_MODE_IN_A_GROUP); ^~~~~~~~~~~~~~ OSPREOFF.cpp:475:6: warning: variable 'preLeaderVecX' set but not used [-Wunused-but-set-variable] int preLeaderVecX, preLeaderVecY; ^~~~~~~~~~~~~ OSPREOFF.cpp:475:21: warning: variable 'preLeaderVecY' set but not used [-Wunused-but-set-variable] int preLeaderVecX, preLeaderVecY; ^~~~~~~~~~~~~ OSPREOFF.cpp: In member function 'void SeekPathReuse::copy_leader_path_offset()': OSPREOFF.cpp:920:88: warning: array subscript has type 'char' [-Wchar-subscripts] if(locPtr->power_nation_recno && !reuse_nation_passable[locPtr->power_nation_recno]) ^ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSPRTRES.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OSPRTRES.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OSPRTRES.cpp: In member function 'void SpriteRes::load_sprite_info()': 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] memset( sprite_info_array, 0, sizeof(SpriteInfo)*sprite_info_count ); ^ In file included from OSPRTRES.cpp:28: ../include/OSPRTRES.h:134:8: note: 'struct SpriteInfo' declared here struct SpriteInfo ^~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSPREUSE.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPATH.h:37, from ../include/OSPREUSE.h:29, from OSPREUSE.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OSPREUSE.cpp: In member function 'void SeekPathReuse::move_outside_map(int, int, int, int)': OSPREUSE.cpp:546:6: warning: variable 'vertical' set but not used [-Wunused-but-set-variable] int vertical=0; // 1 for upper edge, 2 for lower edge ^~~~~~~~ OSPREUSE.cpp:547:6: warning: variable 'horizontal' set but not used [-Wunused-but-set-variable] int horizontal=0; // 1 for left edge, 2 for right edge ^~~~~~~~~~ OSPREUSE.cpp:577:26: warning: 'yStep' may be used uninitialized in this function [-Wmaybe-uninitialized] int addYLoc = preY+yStep*vecY; ~~~~~^~~~~ OSPREUSE.cpp:576:26: warning: 'xStep' may be used uninitialized in this function [-Wmaybe-uninitialized] int addXLoc = preX+xStep*vecX; ~~~~~^~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSPRESMO.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPATH.h:37, from ../include/OSPREUSE.h:29, from OSPRESMO.cpp:21: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSPRITE2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OSPRITE2.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OSPRITE2.cpp: In member function 'int Sprite::match_dir()': OSPRITE2.cpp:135:57: warning: array subscript has type 'char' [-Wchar-subscripts] char turnAmount = turn_amount[sprite_info->need_turning]; ^ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSTR.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSPRITEA.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from OSPRITEA.cpp:29: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSYS3.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSPRITE.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OSPRITE.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTALKFRE.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTALKGER.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSPATH.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OSPATH.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OSPATH.cpp: In function 'int can_move_to(int, int)': OSPATH.cpp:218:38: warning: array subscript has type 'char' [-Wchar-subscripts] !nation_passable[powerNationRecno]) ^ OSPATH.cpp: In member function 'ResultNode* SeekPath::get_result(int&, short int&)': OSPATH.cpp:987:8: warning: unused variable 'baseNodePtr' [-Wunused-variable] Node* baseNodePtr = result_node_ptr; // the first end node for connecting the other end node for the path in that direction. ^~~~~~~~~~~ OSPATH.cpp: In member function 'void SeekPath::get_real_result_node(int&, short int, short int, short int, short int, short int)': OSPATH.cpp:1353:6: warning: variable 'exitArrowRight' set but not used [-Wunused-but-set-variable] int exitArrowRight = 0; ^~~~~~~~~~~~~~ OSPATH.cpp: In member function 'ResultNode* SeekPath::get_result2(int&, short int&)': OSPATH.cpp:2921:8: warning: variable 'useClosestNode' set but not used [-Wunused-but-set-variable] short useClosestNode = 0; // indicate whether closest node is returned instead of the actual node ^~~~~~~~~~~~~~ OSPATH.cpp: In member function 'short int Node::generate_successors2(short int, short int)': OSPATH.cpp:3058:8: warning: unused variable 'cost' [-Wunused-variable] short cost = 2; ^~~~ OSPATH.cpp: At global scope: OSPATH.cpp:189:13: warning: 'void sys_yield()' defined but not used [-Wunused-function] static void sys_yield() ^~~~~~~~~ OSPATH.cpp: In member function 'void Node::propagate_down()': OSPATH.cpp:2505:41: warning: 'childEnterDirection' may be used uninitialized in this function [-Wmaybe-uninitialized] exitDirection = (childEnterDirection+3)%8+1; ~~~~~~~~~~~~~~~~~~~~^~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSPYA.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OSPYA.cpp:29: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OSPYA.cpp: In member function 'int SpyArray::add_spy(int, int)': 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] memset( &spy, 0, sizeof(spy) ); ^ In file included from OSPYA.cpp:37: ../include/OSPY.h:55:7: note: 'class Spy' declared here class Spy ^~~ OSPYA.cpp: In member function 'int SpyArray::add_spy()': 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] memset( &spy, 0, sizeof(spy) ); ^ In file included from OSPYA.cpp:37: ../include/OSPY.h:55:7: note: 'class Spy' declared here class Spy ^~~ OSPYA.cpp: In member function 'int SpyArray::catch_spy(int, int)': OSPYA.cpp:581:2: warning: 'totalPop' may be used uninitialized in this function [-Wmaybe-uninitialized] if( enemySpyCount == totalPop ) ^~ OSPYA.cpp:599:44: warning: 'nationRecno' may be used uninitialized in this function [-Wmaybe-uninitialized] if( spyPtr->spy_place == spyPlace && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ spyPtr->spy_place_para == spyPlacePara && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ spyPtr->true_nation_recno != nationRecno ) // doesn't get caught in sleep mode ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTALKSPA.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTALKMSG.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OTALKMSG.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OTALKMSG.cpp: In member function 'void TalkMsg::process_accepted_reply()': 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] memset(&talkMsg, 0, sizeof(TalkMsg)); ^ In file included from OTALKMSG.cpp:33: ../include/OTALKRES.h:58:8: note: 'struct TalkMsg' declared here struct TalkMsg ^~~~~~~ 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] memset(&talkMsg, 0, sizeof(TalkMsg)); ^ In file included from OTALKMSG.cpp:33: ../include/OTALKRES.h:58:8: note: 'struct TalkMsg' declared here struct TalkMsg ^~~~~~~ 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] memset(&talkMsg, 0, sizeof(TalkMsg)); ^ In file included from OTALKMSG.cpp:33: ../include/OTALKRES.h:58:8: note: 'struct TalkMsg' declared here struct TalkMsg ^~~~~~~ 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] memset(&talkMsg, 0, sizeof(TalkMsg)); ^ In file included from OTALKMSG.cpp:33: ../include/OTALKRES.h:58:8: note: 'struct TalkMsg' declared here struct TalkMsg ^~~~~~~ OTALKMSG.cpp:287:6: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount=0; ^~~~~~~~~ OTALKMSG.cpp: In member function 'int TalkMsg::is_valid_to_disp(int)': OTALKMSG.cpp:436:10: warning: unused variable 'toNation' [-Wunused-variable] Nation* toNation = nation_array[to_nation_recno]; ^~~~~~~~ OTALKMSG.cpp:437:10: warning: unused variable 'fromNation' [-Wunused-variable] Nation* fromNation = nation_array[from_nation_recno]; ^~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSPY2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OSPY2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTALKENG.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OTALKENG.cpp:29: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSYS2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OSYS2.cpp:30: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OSYS2.cpp: In member function 'void Sys::disp_zoom()': OSYS2.cpp:991:8: warning: unused variable 'backupSeed' [-Wunused-variable] long backupSeed = misc.get_random_seed(); ^~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTERRAIN.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OTERRAIN.cpp:29: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OTERRAIN.cpp:30: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OTERRAIN.cpp: In static member function 'static int TerrainRes::terrain_height(int, int*)': OTERRAIN.cpp:142:49: warning: array subscript has type 'char' [-Wchar-subscripts] if( height >= terrain_type_min_height_array[tc][0]) ^ OTERRAIN.cpp:146:50: warning: array subscript has type 'char' [-Wchar-subscripts] if(height >= terrain_type_min_height_array[tc][subtc]) ^ OTERRAIN.cpp:146:57: warning: array subscript has type 'char' [-Wchar-subscripts] if(height >= terrain_type_min_height_array[tc][subtc]) ^ OTERRAIN.cpp: At global scope: OTERRAIN.cpp:52:12: warning: 'terrain_type_color_array' defined but not used [-Wunused-variable] static int terrain_type_color_array[TOTAL_TERRAIN_TYPE] = // the color of each terrain type on the small map ^~~~~~~~~~~~~~~~~~~~~~~~ OTERRAIN.cpp: In member function 'void TerrainRes::load_info()': OTERRAIN.cpp:385:59: warning: 'firstId' may be used uninitialized in this function [-Wmaybe-uninitialized] terrainInfo->alternative_count_with_extra = firstId -1 -i; ~~~~~~~~~~~^~ OTERRAIN.cpp:376:43: warning: 'firstSpFlag' may be used uninitialized in this function [-Wmaybe-uninitialized] if( firstNw == terrainInfo->nw_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstNwSub == terrainInfo->nw_subtype && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstNe == terrainInfo->ne_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstNeSub == terrainInfo->ne_subtype && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstSw == terrainInfo->sw_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstSwSub == terrainInfo->sw_subtype && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstSe == terrainInfo->se_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstSeSub == terrainInfo->se_subtype && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ firstSpFlag == terrainInfo->special_flag ) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OTERRAIN.cpp:375:43: warning: 'firstSeSub' may be used uninitialized in this function [-Wmaybe-uninitialized] if( firstNw == terrainInfo->nw_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstNwSub == terrainInfo->nw_subtype && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstNe == terrainInfo->ne_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstNeSub == terrainInfo->ne_subtype && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstSw == terrainInfo->sw_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstSwSub == terrainInfo->sw_subtype && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstSe == terrainInfo->se_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ firstSeSub == terrainInfo->se_subtype && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OTERRAIN.cpp:373:43: warning: 'firstSwSub' may be used uninitialized in this function [-Wmaybe-uninitialized] if( firstNw == terrainInfo->nw_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstNwSub == terrainInfo->nw_subtype && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstNe == terrainInfo->ne_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstNeSub == terrainInfo->ne_subtype && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstSw == terrainInfo->sw_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ firstSwSub == terrainInfo->sw_subtype && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OTERRAIN.cpp:371:43: warning: 'firstNeSub' may be used uninitialized in this function [-Wmaybe-uninitialized] if( firstNw == terrainInfo->nw_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstNwSub == terrainInfo->nw_subtype && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstNe == terrainInfo->ne_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ firstNeSub == terrainInfo->ne_subtype && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OTERRAIN.cpp:374:43: warning: 'firstSe' may be used uninitialized in this function [-Wmaybe-uninitialized] if( firstNw == terrainInfo->nw_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstNwSub == terrainInfo->nw_subtype && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstNe == terrainInfo->ne_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstNeSub == terrainInfo->ne_subtype && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstSw == terrainInfo->sw_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstSwSub == terrainInfo->sw_subtype && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ firstSe == terrainInfo->se_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OTERRAIN.cpp:372:43: warning: 'firstSw' may be used uninitialized in this function [-Wmaybe-uninitialized] if( firstNw == terrainInfo->nw_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstNwSub == terrainInfo->nw_subtype && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstNe == terrainInfo->ne_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstNeSub == terrainInfo->ne_subtype && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ firstSw == terrainInfo->sw_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OTERRAIN.cpp:370:43: warning: 'firstNe' may be used uninitialized in this function [-Wmaybe-uninitialized] if( firstNw == terrainInfo->nw_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ firstNwSub == terrainInfo->nw_subtype && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ firstNe == terrainInfo->ne_type && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSPY.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OSPY.cpp:29: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OSPY.cpp: In member function 'int Spy::get_assassinate_rating(int, int&, int&, int&)': OSPY.cpp:1390:42: warning: 'spyHitPoints' may be used uninitialized in this function [-Wmaybe-uninitialized] attackRating = spy_skill + spyHitPoints/2; ~~~~~~~~~~~~^~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTECHRES.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OF_RESE.h:28, from OTECHRES.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OTECHRES.cpp: In member function 'void TechRes::load_tech_info()': OTECHRES.cpp:171:25: warning: 'techClass' may be used uninitialized in this function [-Wmaybe-uninitialized] techClass->tech_count++; ~~~~~~~~~~~~~~~~~~~~~^~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTALKRES.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OTALKRES.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OTALKRES.cpp: In member function 'void TalkRes::init()': 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] memset( this, 0, sizeof(TalkRes) - sizeof(talk_msg_array) ); ^ In file included from OTALKRES.cpp:33: ../include/OTALKRES.h:135:7: note: 'class TalkRes' declared here class TalkRes ^~~~~~~ OTALKRES.cpp: In member function 'void TalkRes::init_conversion(int)': 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] memset( &cur_talk_msg, 0, sizeof(TalkMsg) ); ^ In file included from OTALKRES.cpp:33: ../include/OTALKRES.h:58:8: note: 'struct TalkMsg' declared here struct TalkMsg ^~~~~~~ OTALKRES.cpp: In member function 'int TalkRes::set_talk_choices()': OTALKRES.cpp:115:10: warning: unused variable 'playerNation' [-Wunused-variable] Nation* playerNation = ~nation_array; ^~~~~~~~~~~~ OTALKRES.cpp: In member function 'void TalkRes::add_main_choices()': OTALKRES.cpp:229:6: warning: unused variable 'relationStatus' [-Wunused-variable] int relationStatus = (~nation_array)->get_relation_status(cur_talk_msg.to_nation_recno); ^~~~~~~~~~~~~~ OTALKRES.cpp: In member function 'int TalkRes::ai_send_talk_msg(int, int, int, int, int, int)': 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] memset(&talkMsg, 0, sizeof(TalkMsg)); ^ In file included from OTALKRES.cpp:33: ../include/OTALKRES.h:58:8: note: 'struct TalkMsg' declared here struct TalkMsg ^~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OSYS.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from ../include/OGFILE.h:36, from OSYS.cpp:45: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OSYS.cpp:71: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OSYS.cpp: In member function 'void Sys::main_loop(int)': OSYS.cpp:804:14: warning: unused variable 'x2' [-Wunused-variable] int x2 = font_news.put( x, y, newsStr ); ^~ OSYS.cpp: In member function 'int Sys::chdir_to_game_dir()': OSYS.cpp:2685:12: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result] chdir(env_data_path); ~~~~~^~~~~~~~~~~~~~~ OSYS.cpp:2694:12: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result] chdir(bundle_resources_path.c_str()); ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OSYS.cpp:2701:9: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result] chdir(PACKAGE_DATA_PATH); ~~~~~^~~~~~~~~~~~~~~~~~~ OSYS.cpp: At global scope: OSYS.cpp:505:13: warning: 'void test_lzw()' defined but not used [-Wunused-function] static void test_lzw() ^~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTOWNA.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OTOWNA.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OTOWNA.cpp: In member function 'void TownArray::think_new_independent_town()': OTOWNA.cpp:319:6: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount=0; ^~~~~~~~~ OTOWNA.cpp: In member function 'void TownArray::draw_dot()': OTOWNA.cpp:522:14: warning: variable 'townLayout' set but not used [-Wunused-but-set-variable] TownLayout* townLayout; ^~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTORNADO.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OTORNADO.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTOWNRES.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OTOWNRES.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTOWNBLD.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OTOWNBLD.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTOWNDRW.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OTOWNDRW.cpp:29: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTUTOR2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OTUTOR2.cpp:39: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTownNetwork.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTUTOR.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OF_MONS.h:28, from OTUTOR.cpp:30: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OTUTOR.cpp: In member function 'void Tutor::load(int)': OTUTOR.cpp:241:8: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount=0; ^~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTOWNAI.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OTOWNAI.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OTOWNAI.cpp: In member function 'void Town::think_move_between_town()': OTOWNAI.cpp:1196:18: warning: variable 'loopCount' set but not used [-Wunused-but-set-variable] int raceId, rc, loopCount; ^~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTOWNIF.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OTOWNIF.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OTOWNIF.cpp: In member function 'void Town::disp_train_info(int)': OTOWNIF.cpp:663:6: warning: unused variable 'dispY1' [-Wunused-variable] int dispY1 = INFO_Y1+26; ^~~~~~ OTOWNIF.cpp: In member function 'void Town::disp_train_menu(int)': OTOWNIF.cpp:852:7: warning: unused variable 'x' [-Wunused-variable] int x=INFO_X1, y=INFO_Y1+24; ^ OTOWNIF.cpp: In member function 'void Town::detect_train_menu()': OTOWNIF.cpp:993:6: warning: unused variable 'x' [-Wunused-variable] int x=INFO_X1+2, y=INFO_Y1+24, rc, quitFlag; ^ OTOWNIF.cpp: In member function 'void Town::disp_auto_menu(int)': OTOWNIF.cpp:1086:10: warning: unused variable 'nationPtr' [-Wunused-variable] Nation* nationPtr = nation_array[nation_recno]; ^~~~~~~~~ OTOWNIF.cpp: In member function 'void Town::process_queue()': OTOWNIF.cpp:1903:40: warning: array subscript has type 'char' [-Wchar-subscripts] if(can_train(train_queue_race_array[i])) ^ OTOWNIF.cpp:1905:39: warning: array subscript has type 'char' [-Wchar-subscripts] skillId = train_queue_skill_array[i]; ^ OTOWNIF.cpp:1906:37: warning: array subscript has type 'char' [-Wchar-subscripts] raceId = train_queue_race_array[i]; ^ OTOWNIF.cpp: In member function 'void Town::add_queue(char, char, int)': OTOWNIF.cpp:1938:44: warning: array subscript has type 'char' [-Wchar-subscripts] train_queue_skill_array[train_queue_count] = skillId; ^ OTOWNIF.cpp:1939:45: warning: array subscript has type 'char' [-Wchar-subscripts] train_queue_race_array[train_queue_count++] = raceId; ^ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNIT2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OUNIT2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTOWNIND.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OTOWNIND.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OTOWNIND.cpp: In member function 'int Town::form_new_nation()': OTOWNIND.cpp:264:10: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount=0; // no spying skill ^~~~~~~~~ OTOWNIND.cpp: In member function 'int Town::independent_unit_join_nation(int, int)': OTOWNIND.cpp:423:9: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount=0; // no spying skill ^~~~~~~~~ OTOWNIND.cpp:397:6: warning: 'skillId' may be used uninitialized in this function [-Wmaybe-uninitialized] int skillId, skillLevel, combatLevel; ^~~~~~~ OTOWNIND.cpp:397:15: warning: 'skillLevel' may be used uninitialized in this function [-Wmaybe-uninitialized] int skillId, skillLevel, combatLevel; ^~~~~~~~~~ OTOWNIND.cpp:442:27: warning: 'combatLevel' may be used uninitialized in this function [-Wmaybe-uninitialized] unitPtr->set_combat_level( combatLevel ); ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OTOWN.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OTOWN.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OTOWN.cpp:41: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OTOWN.cpp: In member function 'void Town::set_nation(int)': OTOWN.cpp:752:11: warning: unused variable 'rebelPtr' [-Wunused-variable] Rebel* rebelPtr = rebel_array[rebel_recno]; ^~~~~~~~ OTOWN.cpp: In member function 'void Town::population_grow()': OTOWN.cpp:1119:7: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount=0; ^~~~~~~~~ OTOWN.cpp: In member function 'void Town::update_target_loyalty()': OTOWN.cpp:1245:40: warning: variable 'commanderRaceId' set but not used [-Wunused-but-set-variable] int baseInfluence, thisInfluence, commanderRaceId; ^~~~~~~~~~~~~~~ OTOWN.cpp: In member function 'void Town::think_migrate()': OTOWN.cpp:2225:8: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount=0; ^~~~~~~~~ OTOWN.cpp: In member function 'void Town::being_attacked(int, float)': OTOWN.cpp:2659:7: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount=0; ^~~~~~~~~ OTOWN.cpp: In member function 'int Town::unjob_town_people(int, int, int)': OTOWN.cpp:3031:6: warning: unused variable 'racePop' [-Wunused-variable] int racePop = jobless_race_pop_array[raceId-1]; ^~~~~~~ OTOWN.cpp: In member function 'void Town::setup_link()': OTOWN.cpp:3311:57: warning: array subscript has type 'char' [-Wchar-subscripts] firmPtr->linked_town_array[firmPtr->linked_town_count] = town_recno; ^ OTOWN.cpp:3312:64: warning: array subscript has type 'char' [-Wchar-subscripts] firmPtr->linked_town_enable_array[firmPtr->linked_town_count] = defaultLinkStatus; ^ OTOWN.cpp: In member function 'void Town::auto_set_layout()': OTOWN.cpp:3776:8: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount=0; ^~~~~~~~~ OTOWN.cpp: In member function 'void Town::get_most_populated_race(int&, int&)': OTOWN.cpp:4116:24: warning: variable 'mostRacePop2' set but not used [-Wunused-but-set-variable] int mostRacePop1=0, mostRacePop2=0; ^~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITA.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OUNITA.cpp:30: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OUNITA.cpp: In member function 'void UnitArray::disappear_in_firm(int)': OUNITA.cpp:235:8: warning: unused variable 'unitPtr' [-Wunused-variable] Unit* unitPtr = unit_array[unitRecno]; ^~~~~~~ OUNITA.cpp: In member function 'void UnitArray::draw_dot()': OUNITA.cpp:413:42: warning: array subscript has type 'char' [-Wchar-subscripts] nationColorArray[unitPtr->nation_recno] : ^ OUNITA.cpp:414:43: warning: array subscript has type 'char' [-Wchar-subscripts] excitedColorArray[unitPtr->nation_recno][sys.frame_count % excitedColorCount]; ^ OUNITA.cpp: At global scope: OUNITA.cpp:527:13: warning: 'void put_profile(int, const char*, int)' defined but not used [-Wunused-function] static void put_profile(int y, const char* dispDes, int dispValue) ^~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITAAC.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OUNITAAC.cpp:31: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OUNITAAC.cpp:35: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OUNITAAC.cpp: In member function 'int UnitArray::divide_attack_by_nation(short int, short int*, int)': OUNITAAC.cpp:1225:6: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount = selectedCount+2; ^~~~~~~~~ OUNITAAC.cpp: In member function 'void UnitArray::divide_array(int, int, short int*, int, int)': OUNITAAC.cpp:88:40: warning: 'unitRecno' may be used uninitialized in this function [-Wmaybe-uninitialized] if(excludeSelectedLocUnit && curRecno==unitRecno) ~~~~~~~~^~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITAM.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OUNITAM.cpp:33: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OUNITAM.cpp:34: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OUNITAM.cpp: In member function 'void UnitArray::move_to_now(int, int, short int*, int)': OUNITAM.cpp:530:7: warning: unused variable 'autoCorrectStartX' [-Wunused-variable] int autoCorrectStartX = x; ^~~~~~~~~~~~~~~~~ OUNITAM.cpp: In member function 'void UnitArray::construct_sorted_array(short int*, int)': OUNITAM.cpp:1012:22: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized] sorted_distance[j] = k; ~~~~~~~~~~~~~~~~~~~^~~ OUNITAM.cpp: In member function 'void UnitArray::move_to_now(int, int, short int*, int)': OUNITAM.cpp:522:25: warning: 'selectedSizeOneUnitArray' may be used uninitialized in this function [-Wmaybe-uninitialized] construct_sorted_array(selectedSizeOneUnitArray, sizeOneSelectedCount); // distance and sorted_member should be initialized first ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNIT.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OUNIT.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OUNIT.cpp: In member function 'void Unit::update_loyalty()': OUNIT.cpp:1116:9: warning: unused variable 'rc' [-Wunused-variable] int rc=0; ^~ OUNIT.cpp: In member function 'int Unit::think_betray()': OUNIT.cpp:1285:6: warning: unused variable 'unitRecno' [-Wunused-variable] int unitRecno = sprite_recno; ^~~~~~~~~ OUNIT.cpp: In member function 'int Unit::betray(int)': OUNIT.cpp:1463:12: warning: unused variable 'nationReputation' [-Wunused-variable] int i, nationReputation = (int) nation_array[nation_recno]->reputation; ^~~~~~~~~~~~~~~~ OUNIT.cpp:1390:6: warning: unused variable 'unitRecno' [-Wunused-variable] int unitRecno = sprite_recno; ^~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITAC.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OUNITAC.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OUNITAC.cpp: In member function 'void Unit::assign(int, int, short int)': OUNITAC.cpp:537:7: warning: unused variable 'firmNeedUnit' [-Wunused-variable] int firmNeedUnit=1; ^~~~~~~~~~~~ OUNITAC.cpp: In member function 'int Unit::set_move_to_surround(int, int, int, int, int, int, int, short int)': OUNITAC.cpp:845:6: warning: unused variable 'found' [-Wunused-variable] int found=0, foundAgain=0; ^~~~~ OUNITAC.cpp:845:15: warning: unused variable 'foundAgain' [-Wunused-variable] int found=0, foundAgain=0; ^~~~~~~~~~ OUNITAC.cpp: In member function 'void Unit::process_build_firm()': OUNITAC.cpp:1216:9: warning: unused variable 'aiUnit' [-Wunused-variable] int aiUnit = ai_unit; ^~~~~~ OUNITAC.cpp:1217:9: warning: unused variable 'actionXLoc' [-Wunused-variable] int actionXLoc = action_x_loc; ^~~~~~~~~~ OUNITAC.cpp:1218:9: warning: unused variable 'actionYLoc' [-Wunused-variable] int actionYLoc = action_y_loc; ^~~~~~~~~~ OUNITAC.cpp:1219:11: warning: unused variable 'unitRecno' [-Wunused-variable] short unitRecno = sprite_recno; ^~~~~~~~~ OUNITAC.cpp: In member function 'void Unit::process_assign()': OUNITAC.cpp:1366:10: warning: unused variable 'actionXLoc' [-Wunused-variable] int actionXLoc = action_x_loc; ^~~~~~~~~~ OUNITAC.cpp:1367:10: warning: unused variable 'actionYLoc' [-Wunused-variable] int actionYLoc = action_y_loc; ^~~~~~~~~~ OUNITAC.cpp:1369:11: warning: unused variable 'aiUnit' [-Wunused-variable] char aiUnit = ai_unit; ^~~~~~ OUNITAC.cpp: In member function 'int Unit::set_move_to_surround(int, int, int, int, int, int, int, short int)': OUNITAC.cpp:928:3: warning: 'searchResult' may be used uninitialized in this function [-Wmaybe-uninitialized] if(!searchResult) ^~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITAMT.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OUNITAMT.cpp:104: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITAI.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OUNITAI.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OUNITAI.cpp: In member function 'void Unit::ai_move_to_nearby_town()': OUNITAI.cpp:314:10: warning: unused variable 'ownNation' [-Wunused-variable] Nation* ownNation = nation_array[nation_recno]; ^~~~~~~~~ OUNITAI.cpp: In member function 'int Unit::think_normal_human_action()': OUNITAI.cpp:586:7: warning: unused variable 'skillLevel' [-Wunused-variable] int skillLevel = skill.skill_level; ^~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITAAT.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OUNITAAT.cpp:29: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OUNITAAT.cpp:33: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OUNITAAT.cpp: In member function 'void UnitArray::check_nearby_location(int, int, char, char, int, int, char, int&)': OUNITAAT.cpp:1600:7: warning: variable 'haveValidSituation' set but not used [-Wunused-but-set-variable] bool haveValidSituation = true; ^~~~~~~~~~~~~~~~~~ OUNITAAT.cpp: In member function 'int UnitArray::analyse_surround_location(int, int, int, int, char)': OUNITAAT.cpp:1526:28: warning: 'yIncre' may be used uninitialized in this function [-Wmaybe-uninitialized] int increCount=4, xIncre, yIncre, found=0; ^~~~~~ OUNITAAT.cpp:1552:8: warning: 'xIncre' may be used uninitialized in this function [-Wmaybe-uninitialized] xLoc += xIncre; ~~~~~^~~~~~~~~ OUNITAAT.cpp: In member function 'void UnitArray::check_nearby_location(int, int, char, char, int, int, char, int&)': OUNITAAT.cpp:1793:14: warning: 'rightYIncre' may be used uninitialized in this function [-Wmaybe-uninitialized] rightYLoc += rightYIncre; ~~~~~~~~~~^~~~~~~~~~~~~~ OUNITAAT.cpp:1792:14: warning: 'rightXIncre' may be used uninitialized in this function [-Wmaybe-uninitialized] rightXLoc += rightXIncre; ~~~~~~~~~~^~~~~~~~~~~~~~ OUNITAAT.cpp:1745:26: warning: 'leftIncreCount' may be used uninitialized in this function [-Wmaybe-uninitialized] if((++leftIncreCount)>=4) ~~~~~~~~~~~~~~~~~~^~~ OUNITAAT.cpp:1742:13: warning: 'leftYIncre' may be used uninitialized in this function [-Wmaybe-uninitialized] leftYLoc += leftYIncre; ~~~~~~~~~^~~~~~~~~~~~~ OUNITAAT.cpp:1741:13: warning: 'leftXIncre' may be used uninitialized in this function [-Wmaybe-uninitialized] leftXLoc += leftXIncre; ~~~~~~~~~^~~~~~~~~~~~~ OUNITAAT.cpp: In member function 'void UnitArray::attack_unit(int, int, short int, short int*, int)': OUNITAAT.cpp:598:49: warning: 'unitPos' may be used uninitialized in this function [-Wmaybe-uninitialized] unitPtr = (Unit*) get_ptr(curArrayPtr[unitPos]); ^ OUNITAAT.cpp: In member function 'void UnitArray::attack_firm(int, int, short int, short int*, int)': OUNITAAT.cpp:860:49: warning: 'unitPos' may be used uninitialized in this function [-Wmaybe-uninitialized] unitPtr = (Unit*) get_ptr(curArrayPtr[unitPos]); ^ OUNITAAT.cpp: In member function 'void UnitArray::attack_town(int, int, short int, short int*, int)': OUNITAAT.cpp:1110:49: warning: 'unitPos' may be used uninitialized in this function [-Wmaybe-uninitialized] unitPtr = (Unit*) get_ptr(curArrayPtr[unitPos]); ^ OUNITAAT.cpp: In member function 'void UnitArray::attack_wall(int, int, short int*, int)': OUNITAAT.cpp:1356:49: warning: 'unitPos' may be used uninitialized in this function [-Wmaybe-uninitialized] unitPtr = (Unit*) get_ptr(curArrayPtr[unitPos]); ^ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITAT.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OUNITAT.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OUNITAT.cpp: In member function 'void Unit::set_unreachable_location(int, int)': OUNITAT.cpp:1227:24: warning: unused variable 'bitFlag' [-Wunused-variable] static unsigned short bitFlag[16] = {0x0001, 0x0002, 0x0004, 0x0008, 0x0010, 0x0020, 0x0040, 0x0080, ^~~~~~~ OUNITAT.cpp: In member function 'void Unit::cycle_eqv_attack()': OUNITAT.cpp:1278:6: warning: unused variable 'trial' [-Wunused-variable] int trial = MAX_UNIT_ATTACK_TYPE+2; ^~~~~ OUNITAT.cpp: At global scope: OUNITAT.cpp:1227:24: warning: 'bitFlag' defined but not used [-Wunused-variable] static unsigned short bitFlag[16] = {0x0001, 0x0002, 0x0004, 0x0008, 0x0010, 0x0020, 0x0040, 0x0080, ^~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITDRW.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OUNITDRW.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITAT2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OUNITAT2.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OUNITAT2.cpp: In member function 'void Unit::process_attack_unit()': OUNITAT2.cpp:495:6: warning: unused variable 'spriteXLoc' [-Wunused-variable] int spriteXLoc = next_x_loc(); ^~~~~~~~~~ OUNITAT2.cpp:496:6: warning: unused variable 'spriteYLoc' [-Wunused-variable] int spriteYLoc = next_y_loc(); ^~~~~~~~~~ OUNITAT2.cpp:497:14: warning: unused variable 'attackInfo' [-Wunused-variable] AttackInfo* attackInfo = attack_info_array+cur_attack; ^~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITI.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OUNITI.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OUNITI.cpp: In member function 'int Unit::reactivate_idle_action()': OUNITI.cpp:322:16: warning: unused variable 'canMove' [-Wunused-variable] int canMove = 1; ^~~~~~~ OUNITI.cpp: In member function 'int Unit::idle_detect_firm_checking(short int)': OUNITI.cpp:888:13: warning: unused variable 'targetMobileType' [-Wunused-variable] char targetMobileType = mobile_type==UNIT_SEA ? UNIT_SEA : UNIT_LAND; ^~~~~~~~~~~~~~~~ OUNITI.cpp: At global scope: OUNITI.cpp:59:14: warning: 'idle_detect_target_wall_y1' defined but not used [-Wunused-variable] static short idle_detect_target_wall_y1; ^~~~~~~~~~~~~~~~~~~~~~~~~~ OUNITI.cpp:58:14: warning: 'idle_detect_target_wall_x1' defined but not used [-Wunused-variable] static short idle_detect_target_wall_x1; ^~~~~~~~~~~~~~~~~~~~~~~~~~ OUNITI.cpp:57:14: warning: 'idle_detect_target_town_recno' defined but not used [-Wunused-variable] static short idle_detect_target_town_recno; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITATB.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OUNITATB.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OUNITATB.cpp: In member function 'char* UnitArray::get_target_x_offset(int, int, char)': OUNITATB.cpp:350:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 11: return attack_x_offset11[curDir]; ^ OUNITATB.cpp:351:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 12: return attack_x_offset12[curDir]; ^ OUNITATB.cpp:352:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 13: return attack_x_offset13[curDir]; ^ OUNITATB.cpp:353:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 14: return attack_x_offset14[curDir]; ^ OUNITATB.cpp:354:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 21: return attack_x_offset21[curDir]; ^ OUNITATB.cpp:355:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 22: return attack_x_offset22[curDir]; ^ OUNITATB.cpp:356:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 23: return attack_x_offset23[curDir]; ^ OUNITATB.cpp:357:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 24: return attack_x_offset24[curDir]; ^ OUNITATB.cpp:358:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 31: return attack_x_offset31[curDir]; ^ OUNITATB.cpp:359:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 32: return attack_x_offset32[curDir]; ^ OUNITATB.cpp:360:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 33: return attack_x_offset33[curDir]; ^ OUNITATB.cpp:361:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 34: return attack_x_offset34[curDir]; ^ OUNITATB.cpp:362:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 41: return attack_x_offset41[curDir]; ^ OUNITATB.cpp:363:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 42: return attack_x_offset42[curDir]; ^ OUNITATB.cpp:364:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 43: return attack_x_offset43[curDir]; ^ OUNITATB.cpp:365:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 44: return attack_x_offset44[curDir]; ^ OUNITATB.cpp: In member function 'char* UnitArray::get_target_y_offset(int, int, char)': OUNITATB.cpp:387:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 11: return attack_y_offset11[curDir]; ^ OUNITATB.cpp:388:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 12: return attack_y_offset12[curDir]; ^ OUNITATB.cpp:389:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 13: return attack_y_offset13[curDir]; ^ OUNITATB.cpp:390:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 14: return attack_y_offset14[curDir]; ^ OUNITATB.cpp:391:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 21: return attack_y_offset21[curDir]; ^ OUNITATB.cpp:392:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 22: return attack_y_offset22[curDir]; ^ OUNITATB.cpp:393:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 23: return attack_y_offset23[curDir]; ^ OUNITATB.cpp:394:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 24: return attack_y_offset24[curDir]; ^ OUNITATB.cpp:395:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 31: return attack_y_offset31[curDir]; ^ OUNITATB.cpp:396:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 32: return attack_y_offset32[curDir]; ^ OUNITATB.cpp:397:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 33: return attack_y_offset33[curDir]; ^ OUNITATB.cpp:398:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 34: return attack_y_offset34[curDir]; ^ OUNITATB.cpp:399:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 41: return attack_y_offset41[curDir]; ^ OUNITATB.cpp:400:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 42: return attack_y_offset42[curDir]; ^ OUNITATB.cpp:401:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 43: return attack_y_offset43[curDir]; ^ OUNITATB.cpp:402:43: warning: array subscript has type 'char' [-Wchar-subscripts] case 44: return attack_y_offset44[curDir]; ^ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITHB.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OUNITHB.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OUNITHB.cpp:29: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITIND.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OUNITIND.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITD.o OUNITD.cpp:1097:13: warning: "/*" within comment [-Wcomment] stop2(); //**** BUGHERE OUNITD.cpp:1098:19: warning: "/*" within comment [-Wcomment] //set_mode(0); //***BUGHERE In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from OUNITD.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OUNITD.cpp: In member function 'void Unit::general_defend_mode_detect_target(int)': OUNITD.cpp:87:12: warning: this 'if' clause does not guard... [-Wmisleading-indentation] default: if(checkDefendMode) ^~ OUNITD.cpp:89:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' break; ^~~~~ OUNITD.cpp: In member function 'int Unit::general_defend_mode_process_attack_target()': OUNITD.cpp:207:34: warning: 'firmPtr' may be used uninitialized in this function [-Wmaybe-uninitialized] firmInfo = firm_res[firmPtr->firm_id]; ~~~~~~~~~^~~~~~~ In file included from ../include/OUNIT.h:28, from OUNITD.cpp:26: ../include/OSPRITE.h:98:31: warning: 'unitPtr' may be used uninitialized in this function [-Wmaybe-uninitialized] short next_x_loc() { return next_x>>ZOOM_X_SHIFT_COUNT; } // >>5 = divided by 32, which is ZOOM_LOC_WIDTH & ZOOM_LOC_HEIGHT ^~~~~~ OUNITD.cpp:104:8: note: 'unitPtr' was declared here Unit *unitPtr; ^~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITAT3.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OUNITAT3.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITRES.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OUNITRES.cpp:28: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITIF.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OUNITIF.cpp:31: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OUNITIF.cpp: In member function 'void Unit::disp_hit_point(int)': OUNITIF.cpp:1532:6: warning: variable 'hitPoints' set but not used [-Wunused-but-set-variable] int hitPoints; ^~~~~~~~~ OUNITIF.cpp: At global scope: OUNITIF.cpp:128:13: warning: 'void disp_debug_info(Unit*, int, int)' declared 'static' but never defined [-Wunused-function] static void disp_debug_info(Unit* unitPtr, int dispY1, int refreshFlag); ^~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITS.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from ../include/OU_MARI.h:28, from OUNITS.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OUNITS.cpp:26: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OUNITS.cpp: In member function 'void Unit::assign_to_ship(int, int, short int, int)': OUNITS.cpp:96:7: warning: variable 'resultXYLocWritten' set but not used [-Wunused-but-set-variable] bool resultXYLocWritten = false; ^~~~~~~~~~~~~~~~~~ OUNITS.cpp: In member function 'int Unit::ship_to_beach_path_edit(int&, int&, UCHAR)': OUNITS.cpp:377:14: warning: unused variable 'shipPtr' [-Wunused-variable] UnitMarine *shipPtr = (UnitMarine*) this; ^~~~~~~ OUNITS.cpp: In member function 'void Unit::ship_leave_beach(int, int)': OUNITS.cpp:621:14: warning: unused variable 'shipPtr' [-Wunused-variable] UnitMarine *shipPtr = (UnitMarine*) this; ^~~~~~~ OUNITS.cpp: In member function 'void Unit::assign_to_ship(int, int, short int, int)': OUNITS.cpp:153:9: warning: 'resultYLoc' may be used uninitialized in this function [-Wmaybe-uninitialized] search(resultXLoc, resultYLoc, 1); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ OUNITS.cpp:153:9: warning: 'resultXLoc' may be used uninitialized in this function [-Wmaybe-uninitialized] make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OU_CARAS.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPATH.h:37, from ../include/OU_CARA.h:33, from OU_CARAS.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OU_CARAS.cpp: In member function 'int CaravanStop::update_pick_up(char*)': OU_CARAS.cpp:165:14: warning: variable 'selectiveMode' set but not used [-Wunused-but-set-variable] int id, i, selectiveMode; ^~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OU_CARAT.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OU_CARAT.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OU_CARAT.cpp: In member function 'void UnitCaravan::market_load_goods_now(MarketGoods*, float)': OU_CARAT.cpp:426:2: warning: 'qty' may be used uninitialized in this function [-Wmaybe-uninitialized] if( qty > 0 ) ^~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OUNITM.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OUNITM.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OUNITM.cpp: In member function 'int Unit::avail_node_enough_for_search(short int, short int, short int, short int)': OUNITM.cpp:1640:8: warning: unused variable 'minDist' [-Wunused-variable] short minDist = abs(dispX-dispY); ^~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OU_CARA2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OU_CARA2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OU_CARA.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OU_CARA.cpp:29: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OU_CARA.cpp: In member function 'void UnitCaravan::disp_stop(int, int)': OU_CARA.cpp:154:31: warning: variable 'needRefresh' set but not used [-Wunused-but-set-variable] int i, x=INFO_X1, y=dispY1, needRefresh; ^~~~~~~~~~~ OU_CARA.cpp: In member function 'void UnitCaravan::detect_stop()': OU_CARA.cpp:234:9: warning: unused variable 'x' [-Wunused-variable] int i, x=INFO_X1; ^ OU_CARA.cpp: In member function 'void UnitCaravan::caravan_in_firm()': OU_CARA.cpp:1154:15: warning: unused variable 'stopPtr' [-Wunused-variable] CaravanStop *stopPtr = stop_array + dest_stop_id - 1; ^~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OU_GOD2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from ../include/OGODRES.h:28, from OU_GOD2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OU_GOD2.cpp: In member function 'int UnitGod::think_god_attack_target(int&, int&)': OU_GOD2.cpp:289:7: warning: unused variable 'curXLoc' [-Wunused-variable] int curXLoc=next_x_loc(), curYLoc=next_y_loc(); ^~~~~~~ OU_GOD2.cpp:289:29: warning: unused variable 'curYLoc' [-Wunused-variable] int curXLoc=next_x_loc(), curYLoc=next_y_loc(); ^~~~~~~ OU_GOD2.cpp: In member function 'void UnitGod::think_egyptian_god()': OU_GOD2.cpp:409:10: warning: unused variable 'ownNation' [-Wunused-variable] Nation* ownNation = nation_array[nation_recno]; ^~~~~~~~~ OU_GOD2.cpp: In member function 'void UnitGod::think_indian_god()': OU_GOD2.cpp:497:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses] && (unitPtr->loyalty >= 20 && unitPtr->loyalty <= 60 || ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ OU_GOD2.cpp:545:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses] && (unitPtr->loyalty >= 20 && unitPtr->loyalty <= 60 || ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ OU_GOD2.cpp: In member function 'void UnitGod::think_egyptian_god()': OU_GOD2.cpp:451:16: warning: 'targetYLoc' may be used uninitialized in this function [-Wmaybe-uninitialized] go_cast_power(targetXLoc, targetYLoc, 1, COMMAND_AI); // 1 - cast power type ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OU_GOD2.cpp:451:16: warning: 'targetXLoc' may be used uninitialized in this function [-Wmaybe-uninitialized] make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OU_CART.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPRITE.h:36, from ../include/OUNIT.h:28, from ../include/OU_CART.h:27, from OU_CART.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OU_MARI.o In file included from OU_MARI.cpp:25: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPATH.h:37, from ../include/OU_CARA.h:33, from OU_MARI.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OU_MARI.cpp: In member function 'void UnitMarine::load_unit(int)': OU_MARI.cpp:338:31: warning: array subscript has type 'char' [-Wchar-subscripts] unit_recno_array[unit_count++] = unitRecno; ^ OU_MARI.cpp: In member function 'int UnitMarine::is_on_coast()': OU_MARI.cpp:524:46: warning: unused variable 'found' [-Wunused-variable] int xShift, yShift, checkXLoc, checkYLoc, found=0; ^~~~~ In file included from ../include/OSPATH.h:37, from ../include/OU_CARA.h:33, from OU_MARI.cpp:26: ../include/OWORLD.h: In member function 'void UnitMarine::extra_move()': ../include/OWORLD.h:112:45: warning: 'checkYLoc' may be used uninitialized in this function [-Wmaybe-uninitialized] { return loc_matrix + MAX_WORLD_X_LOC * yLoc + xLoc; } OU_MARI.cpp:562:17: note: 'checkYLoc' was declared here int checkXLoc, checkYLoc, i, found=0; ^~~~~~~~~ In file included from ../include/OSPATH.h:37, from ../include/OU_CARA.h:33, from OU_MARI.cpp:26: ../include/OWORLD.h:112:52: warning: 'checkXLoc' may be used uninitialized in this function [-Wmaybe-uninitialized] { return loc_matrix + MAX_WORLD_X_LOC * yLoc + xLoc; } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ OU_MARI.cpp:562:6: note: 'checkXLoc' was declared here int checkXLoc, checkYLoc, i, found=0; ^~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OU_MARI2.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OU_MARI2.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OU_VEHI.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OU_VEHI.cpp:24: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OVBROWIF.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from OVBROWIF.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OU_GOD.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from ../include/OGODRES.h:28, from OU_GOD.cpp:27: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OU_GOD.cpp:26: ../include/OBUTT3D.h: In member function 'virtual void UnitGod::disp_info(int)': ../include/OBUTT3D.h:79:13: warning: 'buttonName' may be used uninitialized in this function [-Wmaybe-uninitialized] { create( pX1, pY1, buttonStyle, buttonName, elasticFlag, defIsPushed ); paint(); } ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OU_GOD.cpp:155:15: note: 'buttonName' was declared here const char* buttonName; ^~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OU_MARIT.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OSPATH.h:37, from ../include/OU_CARA.h:33, from OU_MARIT.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OU_MARIT.cpp: In member function 'void UnitMarine::ship_in_firm(int)': OU_MARIT.cpp:460:12: warning: unused variable 'stopPtr' [-Wunused-variable] ShipStop *stopPtr = stop_array + dest_stop_id - 1; ^~~~~~~ OU_MARIT.cpp: In member function 'void UnitMarine::harbor_unload_raw()': OU_MARIT.cpp:936:68: warning: right operand of comma operator has no effect [-Wunused-value] for(j=0; jTERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OW_PLANT.cpp: In member function 'void World::plant_spread(int)': OW_PLANT.cpp:247:43: warning: array subscript has type 'char' [-Wchar-subscripts] if( misc.random(5) > abs(t- opt_temp[j]) ) ^ OW_PLANT.cpp: In member function 'void World::plant_init()': OW_PLANT.cpp:410:10: warning: unused variable 'plantBitmap' [-Wunused-variable] short plantBitmap = plant_res.scan( 0, teraType, 0); ^~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX dbglog.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX file_input_stream.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX file_output_stream.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OW_SOUND.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OW_SOUND.cpp:29: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX file_util.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OWORLD_M.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/ONATIONB.h:28, from ../include/ONATION.h:29, from OWORLD_M.cpp:30: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OWORLD_M.cpp:36: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OWORLD_M.cpp: In member function 'void MapMatrix::draw_map()': OWORLD_M.cpp:274:62: warning: array subscript has type 'char' [-Wchar-subscripts] *writePtr = nationColorArray[locPtr->power_nation_recno]; ^ OWORLD_M.cpp: In member function 'void MapMatrix::disp_mode_button(int)': OWORLD_M.cpp:113:24: warning: 'iconName' may be used uninitialized in this function [-Wmaybe-uninitialized] image_button.put_back( 579, 2, iconName, 1 ); ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX file_reader.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OW_FIRE.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OW_FIRE.cpp:26: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OW_FIRE.cpp:30: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX file_writer.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX input_stream.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX output_stream.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OW_ROCK.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OW_ROCK.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OW_ROCK.cpp:28: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX mem_input_stream.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX player_desc.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX misc_uuid.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OW_WALL.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from OW_WALL.cpp:25: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX surface_sdl.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX vgautil.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX vgautil2.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX vga_sdl.o make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OWORLD.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from ../include/OFIRMRES.h:32, from OWORLD.cpp:30: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OWORLD.cpp:38: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OWORLD.cpp: In member function 'void World::explore(int, int, int, int)': OWORLD.cpp:557:63: warning: array subscript has type 'char' [-Wchar-subscripts] *writePtr = nationColorArray[locPtr->power_nation_recno]; ^ OWORLD.cpp: In member function 'int World::locate_space(int*, int*, int, int, int, int, int, int, int)': OWORLD.cpp:821:6: warning: unused variable 'loopCount' [-Wunused-variable] int loopCount=0; ^~~~~~~~~ OWORLD.cpp: In member function 'void World::restore_power(int, int, int, int, int, int)': OWORLD.cpp:1574:4: warning: 'nationRecno' may be used uninitialized in this function [-Wmaybe-uninitialized] if( locPtr->power_nation_recno==nationRecno ) ^~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXX OWORLD_Z.o In file included from ../include/OWORLDMT.h:28, from ../include/OWORLD.h:28, from ../include/OINFO.h:31, from ../include/OFIRM.h:36, from OWORLD_Z.cpp:32: ../include/OMATRIX.h: In member function 'int Location::can_add_hill()': ../include/OMATRIX.h:205:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] !cargo_recno && !(loc_flag & (LOCATE_BLOCK_MASK | LOCATE_SITE_MASK)); } ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OWORLD_Z.cpp:40: ../include/OTERRAIN.h: In member function 'int TerrainInfo::is_coast()': ../include/OTERRAIN.h:103:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses] int is_coast() { return average_type==TERRAIN_OCEAN && secondary_type>TERRAIN_OCEAN || ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OWORLD_Z.cpp: In member function 'virtual void ZoomMatrix::draw()': OWORLD_Z.cpp:314:12: warning: unused variable 'i' [-Wunused-variable] int i=0, x, y, xLoc, yLoc, dispPower; ^ OWORLD_Z.cpp: In member function 'void ZoomMatrix::draw_white_site()': OWORLD_Z.cpp:459:12: warning: unused variable 'i' [-Wunused-variable] int i=0, x, y, xLoc, yLoc; ^ OWORLD_Z.cpp: In member function 'void ZoomMatrix::draw_weather_effects()': OWORLD_Z.cpp:677:8: warning: unused variable 'backupSeed' [-Wunused-variable] long backupSeed = misc.get_random_seed(); ^~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' CXXLD 7kaa make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' Making all in po make[1]: Nothing to be done for 'all-am'. + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.52255 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/7kaa-buildroot + : + /bin/rm -rf -- /usr/src/tmp/7kaa-buildroot + cd 7kaa-2.14.7 + make 'INSTALL=/bin/install -p' install DESTDIR=/usr/src/tmp/7kaa-buildroot make: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7' Making install in data make[1]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/data' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/data' make[2]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/resource' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/resource' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/resource' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/resource' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/scenari2' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/scenari2' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/scenario' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/scenario' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/sprite' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/sprite' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/sprite' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/sprite' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/encyc2/unit' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/encyc2/unit' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/sprite' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/sprite' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/encyc/seat' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/encyc/seat' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/scenari2' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/scenari2' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/resource' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/resource' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/encyc/monster' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/encyc/monster' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/encyc/unit' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/encyc/unit' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/encyc/firm' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/encyc/firm' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/encyc2/seat' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/encyc2/seat' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/sound' /bin/install -p -m 644 sound/fire.wav sound/quake.wav sound/rain.wav sound/thunder.wav sound/wind.wav '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/sound' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/image' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/image' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/encyc/god' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/encyc/god' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/tutorial' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/tutorial' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/scenario' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/scenario' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/encyc2/god' /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 '/usr/src/tmp/7kaa-buildroot/usr/share/7kaa/encyc2/god' make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/data' make[1]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/data' Making install in include make[1]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/include' make[2]: Entering directory '/usr/src/RPM/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 '/usr/src/RPM/BUILD/7kaa-2.14.7/include' make[1]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/include' Making install in src make[1]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' Making install in enet make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/enet' make[3]: Entering directory '/usr/src/RPM/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 '/usr/src/RPM/BUILD/7kaa-2.14.7/src/enet' make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/enet' Making install in imgfun make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun' Making install in generic make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[4]: Entering directory '/usr/src/RPM/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 '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun/generic' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun' make[4]: Entering directory '/usr/src/RPM/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 '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun' make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun' make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/imgfun' Making install in openal make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/openal' make[3]: Entering directory '/usr/src/RPM/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 '/usr/src/RPM/BUILD/7kaa-2.14.7/src/openal' make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/openal' Making install in platform make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/platform' make[3]: Entering directory '/usr/src/RPM/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 '/usr/src/RPM/BUILD/7kaa-2.14.7/src/platform' make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/platform' Making install in curl make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/curl' make[3]: Entering directory '/usr/src/RPM/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 '/usr/src/RPM/BUILD/7kaa-2.14.7/src/curl' make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src/curl' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[3]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/bin' /bin/install -p 7kaa '/usr/src/tmp/7kaa-buildroot/usr/bin' make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' make[1]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/src' Making install in po make[1]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7/po' if test "7kaa" = "gettext-tools"; then \ /bin/mkdir -p /usr/src/tmp/7kaa-buildroot/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 \ /bin/install -p -m 644 ./$file \ /usr/src/tmp/7kaa-buildroot/usr/share/gettext/po/$file; \ done; \ for file in Makevars; do \ rm -f /usr/src/tmp/7kaa-buildroot/usr/share/gettext/po/$file; \ done; \ else \ : ; \ fi make[1]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7/po' make[1]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7' make[2]: Entering directory '/usr/src/RPM/BUILD/7kaa-2.14.7' make[2]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/usr/src/tmp/7kaa-buildroot/usr/share/doc/7kaa' /bin/install -p -m 644 COPYING README '/usr/src/tmp/7kaa-buildroot/usr/share/doc/7kaa' make[2]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7' make[1]: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7' make: Leaving directory '/usr/src/RPM/BUILD/7kaa-2.14.7' + for x in 16 32 48 + mkdir -p /usr/src/tmp/7kaa-buildroot/usr/share/icons/hicolor/16x16/apps/ + convert data/image/7k_icon.bmp -resize 16x16 /usr/src/tmp/7kaa-buildroot//usr/share/icons/hicolor/16x16/apps/7kaa_icon.png + for x in 16 32 48 + mkdir -p /usr/src/tmp/7kaa-buildroot/usr/share/icons/hicolor/32x32/apps/ + convert data/image/7k_icon.bmp -resize 32x32 /usr/src/tmp/7kaa-buildroot//usr/share/icons/hicolor/32x32/apps/7kaa_icon.png + for x in 16 32 48 + mkdir -p /usr/src/tmp/7kaa-buildroot/usr/share/icons/hicolor/48x48/apps/ + convert data/image/7k_icon.bmp -resize 48x48 /usr/src/tmp/7kaa-buildroot//usr/share/icons/hicolor/48x48/apps/7kaa_icon.png + cat + desktop-file-install --dir=/usr/src/tmp/7kaa-buildroot/usr/share/applications 7kaa.desktop + mkdir -p /usr/src/tmp/7kaa-buildroot/usr/share/7kaa/music + mkdir -p /usr/src/tmp/7kaa-buildroot/usr/share/doc/7kaa-music + cat + install -m 755 /usr/src/RPM/SOURCES/7kaa-data-installer /usr/src/tmp/7kaa-buildroot/usr/bin + install -m 755 7kaa-music-installer /usr/src/tmp/7kaa-buildroot/usr/bin + install -m 644 /usr/src/RPM/SOURCES/7kaa.autodlrc /usr/src/tmp/7kaa-buildroot/usr/share/7kaa/music + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/7kaa-buildroot (auto) Verifying and fixing files in /usr/src/tmp/7kaa-buildroot (binconfig,pkgconfig,libtool,desktop) /usr/share/applications/7kaa.desktop: performed minor cleanup: 9c9 < Categories=Game;StrategyGame --- > Categories=Game;StrategyGame; Checking contents of files in /usr/src/tmp/7kaa-buildroot/ (default) Compressing files in /usr/src/tmp/7kaa-buildroot (auto) Verifying ELF objects in /usr/src/tmp/7kaa-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) verify-elf: WARNING: ./usr/bin/7kaa: uses non-LFS functions: __xstat alphasort fopen open scandir Hardlinking identical .pyc and .pyo files Processing files: 7kaa-2.14.7-alt1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.NsLzdf find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.OYu36C find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks) find-requires: FINDPACKAGE-COMMANDS: chmod cp mkdir mv rm Requires: 7kaa-data = 2.14.7-alt1, /bin/bash, /lib/ld-linux.so.2, coreutils, libSDL2-2.0.so.0 >= set:nhT6Y7jvs6wD90xsGOOX7zldxQnN2ULLXZkwvB4WEEq5jZIcgGOTJnME7bGZjTxqqNRDtanBstQg88paqMiVGpfE2uMoB6YQijtWuGkaZah0Zj8r199R260, libc.so.6(GLIBC_2.0), libc.so.6(GLIBC_2.1), libc.so.6(GLIBC_2.1.3), libc.so.6(GLIBC_2.2), libc.so.6(GLIBC_2.3), libc.so.6(GLIBC_2.3.4), libc.so.6(GLIBC_2.4), libcurl.so.4 >= set:kgRQoh7U9b6XA19OKHr9Yje, libenet.so.7 >= set:kfVgejAjNc3hkZhPA4ih28GIMf3axk1IAeGeD0GrtDQWvX90, libgcc_s.so.1(GCC_3.0), libm.so.6(GLIBC_2.0), libm.so.6(GLIBC_2.1), libm.so.6(GLIBC_2.27), libopenal.so.1 >= set:lgAZ9hN9RkIImzDipWycZsGxZv59NIO5YEWMPXAZpKIOorujrHXZAbc0, libstdc++.so.6(CXXABI_1.3), libstdc++.so.6(CXXABI_1.3.8), libstdc++.so.6(CXXABI_1.3.9), libstdc++.so.6(GLIBCXX_3.4), libstdc++.so.6(GLIBCXX_3.4.21), rtld(GNU_HASH) Requires(rpmlib): rpmlib(SetVersions) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.1NmKiB Creating 7kaa-debuginfo package Processing files: 7kaa-data-2.14.7-alt1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.2fBbSh find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.NuCxTw find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks) Processing files: 7kaa-music-2.14.7-alt1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.MXQmxb find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.LbRGCj find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks) shell.req: /usr/src/tmp/7kaa-buildroot/usr/bin/7kaa-music-installer: /usr/share/autodl/AutoDL.py -> /usr/share/autodl/AutoDL.py (raw, not installed) find-requires: FINDPACKAGE-COMMANDS: su tar Finding Requires(postun) (using /usr/lib/rpm/find-scriptlet-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.5iOPeO find-scriptlet-requires: FINDPACKAGE-COMMANDS: rm Requires: 7kaa-data = 2.14.7-alt1, /bin/bash, /usr/share/autodl/AutoDL.py, su, tar Requires(interp): /bin/sh Requires(postun): /bin/sh, coreutils Processing files: 7kaa-debuginfo-2.14.7-alt1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.pVKcuR find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.c50S0h find-requires: running scripts (debuginfo) Requires: 7kaa = 2.14.7-alt1, /usr/lib/debug/lib/ld-linux.so.2.debug, debug(libSDL2-2.0.so.0), debug(libc.so.6), debug(libcurl.so.4), debug(libenet.so.7), debug(libgcc_s.so.1), debug(libm.so.6), debug(libopenal.so.1), debug(libstdc++.so.6) Wrote: /usr/src/RPM/RPMS/i586/7kaa-2.14.7-alt1.i586.rpm Wrote: /usr/src/RPM/RPMS/noarch/7kaa-data-2.14.7-alt1.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/7kaa-music-2.14.7-alt1.noarch.rpm Wrote: /usr/src/RPM/RPMS/i586/7kaa-debuginfo-2.14.7-alt1.i586.rpm 254.99user 15.56system 2:58.14elapsed 151%CPU (0avgtext+0avgdata 146884maxresident)k 0inputs+0outputs (0major+8319169minor)pagefaults 0swaps 274.26user 19.04system 3:34.78elapsed 136%CPU (0avgtext+0avgdata 146884maxresident)k 376inputs+0outputs (0major+8871387minor)pagefaults 0swaps --- 7kaa-2.14.7-alt1.i586.rpm.repo 2017-08-06 08:33:27.000000000 +0000 +++ 7kaa-2.14.7-alt1.i586.rpm.hasher 2018-12-15 08:30:01.949739443 +0000 @@ -19,3 +19,3 @@ Requires: libc.so.6(GLIBC_2.4) -Requires: libcurl.so.4 >= set:jfRQSxhk2ChAtLr98J1nn1 +Requires: libcurl.so.4 >= set:kgRQoh7U9b6XA19OKHr9Yje Requires: libenet.so.7 >= set:kfVgejAjNc3hkZhPA4ih28GIMf3axk1IAeGeD0GrtDQWvX90 @@ -24,2 +24,3 @@ Requires: libm.so.6(GLIBC_2.1) +Requires: libm.so.6(GLIBC_2.27) Requires: libopenal.so.1 >= set:lgAZ9hN9RkIImzDipWycZsGxZv59NIO5YEWMPXAZpKIOorujrHXZAbc0