<86>Dec 19 04:10:56 userdel[2892633]: delete user 'rooter' <86>Dec 19 04:10:56 userdel[2892633]: removed group 'rooter' owned by 'rooter' <86>Dec 19 04:10:56 userdel[2892633]: removed shadow group 'rooter' owned by 'rooter' <86>Dec 19 04:10:56 groupadd[2892643]: group added to /etc/group: name=rooter, GID=1814 <86>Dec 19 04:10:56 groupadd[2892643]: group added to /etc/gshadow: name=rooter <86>Dec 19 04:10:56 groupadd[2892643]: new group: name=rooter, GID=1814 <86>Dec 19 04:10:56 useradd[2892655]: new user: name=rooter, UID=1814, GID=1814, home=/root, shell=/bin/bash, from=none <86>Dec 19 04:10:56 userdel[2892674]: delete user 'builder' <86>Dec 19 04:10:56 userdel[2892674]: removed group 'builder' owned by 'builder' <86>Dec 19 04:10:56 userdel[2892674]: removed shadow group 'builder' owned by 'builder' <86>Dec 19 04:10:56 groupadd[2892688]: group added to /etc/group: name=builder, GID=1815 <86>Dec 19 04:10:56 groupadd[2892688]: group added to /etc/gshadow: name=builder <86>Dec 19 04:10:56 groupadd[2892688]: new group: name=builder, GID=1815 <86>Dec 19 04:10:56 useradd[2892696]: new user: name=builder, UID=1815, GID=1815, home=/usr/src, shell=/bin/bash, from=none warning: Macro %cmake not found warning: Macro %cmake_build not found <13>Dec 19 04:11:00 rpmi: libglvnd-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 19 04:11:00 rpmi: libexpat-2.5.0-alt1 sisyphus+346180.200.2.1 1716349835 installed <13>Dec 19 04:11:00 rpmi: libidn2-2.3.7-alt1 sisyphus+339505.100.1.2 1706718968 installed <13>Dec 19 04:11:00 rpmi: libnettle8-3.9.1-alt1 sisyphus+322548.100.1.2 1686176879 installed <13>Dec 19 04:11:00 rpmi: xorg-proto-devel-2024.1-alt1 sisyphus+343583.40.1.1 1711440649 installed <13>Dec 19 04:11:00 rpmi: libSDL2-2.30.10-alt1 sisyphus+364560.100.1.1 1733772087 installed <13>Dec 19 04:11:00 rpmi: libwayland-server-1.23.1-alt1.1 sisyphus+356019.140.3.1 1724572111 installed <13>Dec 19 04:11:00 rpmi: libedit3-3.1.20230828-alt1 sisyphus+330914.200.3.1 1696922743 installed <13>Dec 19 04:11:00 rpmi: libp11-kit-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622573 installed <13>Dec 19 04:11:00 rpmi: libtasn1-4.19.0-alt3 sisyphus+327816.100.1.1 1692802615 installed <13>Dec 19 04:11:00 rpmi: libSDL2_mixer-2.8.0-alt1 sisyphus+340583.100.1.1 1707827333 installed <13>Dec 19 04:11:00 rpmi: libhogweed6-3.9.1-alt1 sisyphus+322548.100.1.2 1686176879 installed <13>Dec 19 04:11:00 rpmi: libgnutls30-3.8.8-alt2 sisyphus+364832.100.1.1 1734007749 installed <13>Dec 19 04:11:00 rpmi: libngtcp2.16-1.9.1-alt1 sisyphus+363819.100.1.1 1733129254 installed <13>Dec 19 04:11:00 rpmi: libngtcp2_crypto_gnutls8-1.9.1-alt1 sisyphus+363819.100.1.1 1733129254 installed <13>Dec 19 04:11:00 rpmi: libGLES-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 19 04:11:00 rpmi: libOpenGL-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 19 04:11:00 rpmi: libxshmfence-1.3.2-alt1 sisyphus+311428.400.1.1 1670577525 installed <13>Dec 19 04:11:00 rpmi: libsensors3-3.6.0-alt3 sisyphus+308579.100.1.1 1666035267 installed <13>Dec 19 04:11:00 rpmi: libX11-locales-3:1.8.10-alt1 sisyphus+353866.100.1.1 1722240771 installed <13>Dec 19 04:11:00 rpmi: libspirv-tools0-1:2024.4-alt0.1 sisyphus+365035.200.5.1 1734354502 installed <13>Dec 19 04:11:00 rpmi: llvm18.1-filesystem-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Dec 19 04:11:00 rpmi: llvm18.1-polly-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Dec 19 04:11:00 rpmi: llvm18.1-gold-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Dec 19 04:11:02 rpmi: llvm18.1-libs-18.1.8-alt0.4 sisyphus+364551.100.1.1 1733763186 installed <13>Dec 19 04:11:02 rpmi: libXdmcp-1.1.5-alt1 sisyphus+343583.700.1.1 1711441061 installed <13>Dec 19 04:11:02 rpmi: libXau-1.0.11-alt1 sisyphus+311428.100.1.1 1670577439 installed <13>Dec 19 04:11:02 rpmi: libxcb-1.17.0-alt1 sisyphus+345308.200.1.1 1713342004 installed <13>Dec 19 04:11:02 rpmi: libX11-3:1.8.10-alt1 sisyphus+353866.100.1.1 1722240771 installed <13>Dec 19 04:11:02 rpmi: libXext-1.3.6-alt1 sisyphus+343583.1000.1.1 1711441101 installed <13>Dec 19 04:11:02 rpmi: libXxf86vm-1.1.5-alt1 sisyphus+308663.1400.1.1 1666168523 installed <13>Dec 19 04:11:02 rpmi: libXfixes-6.0.1-alt1 sisyphus+331490.300.1.1 1697023233 installed <13>Dec 19 04:11:03 rpmi: libxcb-devel-1.17.0-alt1 sisyphus+345308.200.1.1 1713342004 installed <13>Dec 19 04:11:03 rpmi: libX11-devel-3:1.8.10-alt1 sisyphus+353866.100.1.1 1722240771 installed <13>Dec 19 04:11:03 rpmi: libwayland-client-1.23.1-alt1.1 sisyphus+356019.140.3.1 1724572111 installed <13>Dec 19 04:11:03 rpmi: libpciaccess-1:0.18.1-alt1 sisyphus+343583.300.1.1 1711440789 installed <13>Dec 19 04:11:03 rpmi: libdrm-1:2.4.124-alt1 sisyphus+364215.100.1.1 1733469813 installed <13>Dec 19 04:11:04 rpmi: libGLX-mesa-4:24.3.1-alt1 sisyphus+364215.200.1.1 1733470187 installed <13>Dec 19 04:11:04 rpmi: libGLX-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 19 04:11:04 rpmi: libGL-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 19 04:11:04 rpmi: libgbm-4:24.3.1-alt1 sisyphus+364215.200.1.1 1733470187 installed <13>Dec 19 04:11:04 rpmi: libEGL-mesa-4:24.3.1-alt1 sisyphus+364215.200.1.1 1733470187 installed <13>Dec 19 04:11:04 rpmi: libEGL-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 19 04:11:04 rpmi: libglvnd-devel-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424893 installed <13>Dec 19 04:11:04 rpmi: libSDL2-devel-2.30.10-alt1 sisyphus+364560.100.1.1 1733772087 installed <13>Dec 19 04:11:04 rpmi: libxxhash-0.8.2-alt1 sisyphus+336514.200.7.1 1702672118 installed <13>Dec 19 04:11:04 rpmi: liblz4-1:1.9.4-alt1 sisyphus+309416.100.1.1 1667412981 installed <13>Dec 19 04:11:04 rpmi: less-633-alt1 sisyphus+328181.300.2.1 1693321749 installed <13>Dec 19 04:11:04 rpmi: perl-TermReadKey-2.38-alt1.1 sisyphus+335067.1700.1.1 1700901696 installed <13>Dec 19 04:11:04 rpmi: perl-Filter-1.64-alt1 sisyphus+335067.400.1.1 1700901412 installed <13>Dec 19 04:11:04 rpmi: perl-Encode-3.21-alt1 sisyphus+343095.100.1.1 1710875477 installed <13>Dec 19 04:11:04 rpmi: perl-libintl-1.33-alt1.1 sisyphus+335067.6600.2.2 1701152056 installed <13>Dec 19 04:11:04 rpmi: perl-Error-0.17029-alt1 sisyphus+245975.100.1.1 1581530233 installed <13>Dec 19 04:11:04 rpmi: gcc-c++-common-1.4.28-alt1 sisyphus+348678.100.1.1 1716396142 installed <13>Dec 19 04:11:04 rpmi: libstdc++14-devel-14.2.1-alt1 sisyphus+360995.100.1.1 1730131018 installed <13>Dec 19 04:11:05 rpmi: gcc14-c++-14.2.1-alt1 sisyphus+360995.100.1.1 1730131018 installed <13>Dec 19 04:11:05 rpmi: diffstat-1.64-alt1 sisyphus+346132.200.3.2 1716466240 installed <13>Dec 19 04:11:05 rpmi: cmake-modules-3.31.2-alt2 sisyphus+364756.100.1.1 1733932352 installed <13>Dec 19 04:11:05 rpmi: libuv-1.49.1-alt1 sisyphus+364651.40.2.1 1733856345 installed <13>Dec 19 04:11:05 rpmi: librhash-1.3.5-alt3 sisyphus+286141.40.2.1 1632982456 installed <13>Dec 19 04:11:05 rpmi: libjsoncpp24-1.9.4-alt2 sisyphus+346331.200.2.1 1716448551 installed <13>Dec 19 04:11:05 rpmi: publicsuffix-list-dafsa-20240911-alt1 sisyphus+357399.100.1.1 1726160479 installed <13>Dec 19 04:11:05 rpmi: libpsl-0.21.5-alt1 sisyphus+338474.100.1.1 1705684769 installed <13>Dec 19 04:11:05 rpmi: libnghttp3.9-1.6.0-alt1 sisyphus+363819.40.1.1 1733129194 installed <13>Dec 19 04:11:05 rpmi: libnghttp2-1.64.0-alt1 sisyphus+363795.200.2.1 1733118555 installed <13>Dec 19 04:11:05 rpmi: openldap-common-2.6.9-alt1 sisyphus+364781.100.1.1 1733971238 installed <13>Dec 19 04:11:05 rpmi: libntlm-1.5-alt1 sisyphus+278100.3300.1.1 1626058899 installed <13>Dec 19 04:11:05 rpmi: libidn-1.37-alt2 sisyphus+300849.100.1.1 1653769687 installed <13>Dec 19 04:11:05 rpmi: libverto-0.3.2-alt1_1 sisyphus+321176.2200.10.2 1684803947 installed <13>Dec 19 04:11:05 rpmi: liblmdb-0.9.33-alt1 sisyphus+360625.100.1.1 1729819640 installed <13>Dec 19 04:11:05 rpmi: libkeyutils-1.6.3-alt1 sisyphus+346336.200.2.2 1716472658 installed <13>Dec 19 04:11:05 rpmi: libcom_err-1.47.1.0.10.ad56-alt2 sisyphus+363497.200.3.1 1732729908 installed <13>Dec 19 04:11:05 rpmi: libbrotlicommon-1.1.0-alt1 sisyphus+328501.100.1.1 1693598419 installed <13>Dec 19 04:11:05 rpmi: libbrotlidec-1.1.0-alt1 sisyphus+328501.100.1.1 1693598419 installed <13>Dec 19 04:11:05 rpmi: rpm-macros-cmake-3.29.1-alt1 sisyphus+344518.300.3.1 1712379787 installed <13>Dec 19 04:11:05 rpmi: rpm-macros-alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Dec 19 04:11:05 rpmi: alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Dec 19 04:11:05 rpmi: ca-certificates-2024.12.10-alt1 sisyphus+364633.200.3.1 1733918603 installed <13>Dec 19 04:11:05 rpmi: ca-trust-0.2.0-alt1 sisyphus+344843.100.1.1 1712743326 installed <13>Dec 19 04:11:05 rpmi: p11-kit-trust-1:0.25.5-alt1 sisyphus+352553.100.1.1 1720622573 installed <13>Dec 19 04:11:05 rpmi: libcrypto3-3.1.7-alt2 sisyphus+359910.100.1.1 1729080439 installed <13>Dec 19 04:11:05 rpmi: libssl3-3.1.7-alt2 sisyphus+359910.100.1.1 1729080439 installed <86>Dec 19 04:11:05 groupadd[2919380]: group added to /etc/group: name=_keytab, GID=999 <86>Dec 19 04:11:05 groupadd[2919380]: group added to /etc/gshadow: name=_keytab <86>Dec 19 04:11:05 groupadd[2919380]: new group: name=_keytab, GID=999 <13>Dec 19 04:11:05 rpmi: libkrb5-1.21.3-alt2 sisyphus+351857.100.1.1 1719735141 installed <13>Dec 19 04:11:05 rpmi: libgsasl18-2.2.1-alt2 sisyphus+359713.200.2.1 1728905430 installed <86>Dec 19 04:11:05 groupadd[2919555]: group added to /etc/group: name=sasl, GID=998 <86>Dec 19 04:11:05 groupadd[2919555]: group added to /etc/gshadow: name=sasl <86>Dec 19 04:11:05 groupadd[2919555]: new group: name=sasl, GID=998 <13>Dec 19 04:11:05 rpmi: libsasl2-3-2.1.28-alt2 sisyphus+343335.100.1.1 1711112544 installed <13>Dec 19 04:11:05 rpmi: libldap2-2.6.9-alt1 sisyphus+364781.100.1.1 1733971238 installed <13>Dec 19 04:11:05 rpmi: libarchive13-3.7.5-alt2 sisyphus+358189.100.1.1 1727162763 installed <13>Dec 19 04:11:05 rpmi: libssh2-1.11.0-alt2 sisyphus+339356.100.1.1 1706593137 installed <13>Dec 19 04:11:05 rpmi: libcurl-8.11.1-alt1 sisyphus+364692.100.1.1 1733905204 installed <13>Dec 19 04:11:05 rpmi: openssh-common-9.6p1-alt2 sisyphus+351911.100.1.1 1719838544 installed <86>Dec 19 04:11:05 groupadd[2919924]: group added to /etc/group: name=sshagent, GID=997 <86>Dec 19 04:11:05 groupadd[2919924]: group added to /etc/gshadow: name=sshagent <86>Dec 19 04:11:05 groupadd[2919924]: new group: name=sshagent, GID=997 <13>Dec 19 04:11:05 rpmi: openssh-clients-9.6p1-alt2 sisyphus+351911.100.1.1 1719838544 installed <13>Dec 19 04:11:05 rpmi: rsync-3.2.7-alt1 sisyphus+325006.2000.1.1 1689497333 installed <13>Dec 19 04:11:05 rpmi: git-core-2.42.2-alt1 sisyphus+348068.100.1.1 1715721632 installed <13>Dec 19 04:11:05 rpmi: perl-Git-2.42.2-alt1 sisyphus+348068.100.1.1 1715721632 installed <13>Dec 19 04:11:05 rpmi: git-2.42.2-alt1 sisyphus+348068.100.1.1 1715721632 installed <13>Dec 19 04:11:06 rpmi: cmake-3.31.2-alt2 sisyphus+364756.100.1.1 1733932352 installed <13>Dec 19 04:11:06 rpmi: gcc-c++-14-alt1 sisyphus+360995.300.1.1 1730139222 installed <13>Dec 19 04:11:06 rpmi: libSDL2_mixer-devel-2.8.0-alt1 sisyphus+340583.100.1.1 1707827333 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/openfodder-1.8.0-alt1.nosrc.rpm (w1.gzdio) Installing openfodder-1.8.0-alt1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.84912 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf openfodder-1.8.0 + echo 'Source #0 (openfodder-1.8.0.tar):' Source #0 (openfodder-1.8.0.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/openfodder-1.8.0.tar + cd openfodder-1.8.0 + /bin/chmod -c -Rf u+rwX,go-w . + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.84912 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd openfodder-1.8.0 + mkdir -p x86_64-alt-linux + cmake -DCMAKE_SKIP_INSTALL_RPATH:BOOL=yes '-DCMAKE_C_FLAGS:STRING=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' '-DCMAKE_CXX_FLAGS:STRING=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' '-DCMAKE_Fortran_FLAGS:STRING=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto' -DCMAKE_INSTALL_PREFIX=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_DESTINATION=lib64 -DLIB_SUFFIX=64 -S . -B x86_64-alt-linux -- No build type selected, default to Release. -- The CXX compiler identification is GNU 14.2.1 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found SDL2: /usr/lib64/libSDL2.so -- Found SDL2Mixer: /usr/lib64/libSDL2_mixer.so -- Found Git: /usr/bin/git (found version "2.42.2") -- Configuring done (0.3s) -- Generating done (0.0s) CMake Warning: Manually-specified variables were not used by the project: CMAKE_C_FLAGS CMAKE_Fortran_FLAGS CMAKE_SKIP_INSTALL_RPATH INCLUDE_INSTALL_DIR LIB_DESTINATION LIB_INSTALL_DIR LIB_SUFFIX SHARE_INSTALL_PREFIX SYSCONF_INSTALL_DIR -- Build files have been written to: /usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux + cmake --build x86_64-alt-linux --verbose --parallel 16 Change Dir: '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile -j16 gmake: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' /usr/bin/cmake -S/usr/src/RPM/BUILD/openfodder-1.8.0 -B/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux --check-build-system CMakeFiles/Makefile.cmake 0 gmake: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' /usr/bin/cmake -E cmake_progress_start /usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/CMakeFiles /usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux//CMakeFiles/progress.marks gmake: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' /usr/bin/gmake -f CMakeFiles/Makefile2 all /usr/bin/gmake -f CMakeFiles/openfodder.dir/build.make CMakeFiles/openfodder.dir/depend gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' cd /usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /usr/src/RPM/BUILD/openfodder-1.8.0 /usr/src/RPM/BUILD/openfodder-1.8.0 /usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux /usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux /usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/CMakeFiles/openfodder.dir/DependInfo.cmake "--color=" gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' /usr/bin/gmake -f CMakeFiles/openfodder.dir/build.make CMakeFiles/openfodder.dir/build gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 11%] Building CXX object CMakeFiles/openfodder.dir/Source/Amiga/dernc.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Amiga/dernc.cpp.o -MF CMakeFiles/openfodder.dir/Source/Amiga/dernc.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Amiga/dernc.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/dernc.cpp /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/dernc.cpp: In function 'const char* rnc_error(long int)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/dernc.cpp:64:17: warning: comparison of integer expressions of different signedness: 'long int' and 'long unsigned int' [-Wsign-compare] 64 | if (errcode > sizeof(errors)/sizeof(*errors) - 1) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/dernc.cpp: In function 'long int rnc_unpack(void*, void*)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/dernc.cpp:113:49: warning: comparison of integer expressions of different signedness: 'long int' and 'long unsigned int' [-Wsign-compare] 113 | if (rnc_crc(input, (long) (inputend-input)) != bword(input-4)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 5%] Building CXX object CMakeFiles/openfodder.dir/Source/Amiga/IntroData_Amiga.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Amiga/IntroData_Amiga.cpp.o -MF CMakeFiles/openfodder.dir/Source/Amiga/IntroData_Amiga.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Amiga/IntroData_Amiga.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/IntroData_Amiga.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 23%] Building CXX object CMakeFiles/openfodder.dir/Source/Event.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Event.cpp.o -MF CMakeFiles/openfodder.dir/Source/Event.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Event.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Event.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 13%] Building CXX object CMakeFiles/openfodder.dir/Source/Amiga/paula.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Amiga/paula.cpp.o -MF CMakeFiles/openfodder.dir/Source/Amiga/paula.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Amiga/paula.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/paula.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 29%] Building CXX object CMakeFiles/openfodder.dir/Source/FontData.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/FontData.cpp.o -MF CMakeFiles/openfodder.dir/Source/FontData.cpp.o.d -o CMakeFiles/openfodder.dir/Source/FontData.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/FontData.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 27%] Building CXX object CMakeFiles/openfodder.dir/Source/CopyProtection.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/CopyProtection.cpp.o -MF CMakeFiles/openfodder.dir/Source/CopyProtection.cpp.o.d -o CMakeFiles/openfodder.dir/Source/CopyProtection.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/CopyProtection.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 15%] Building CXX object CMakeFiles/openfodder.dir/Source/Amiga/rjp1.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Amiga/rjp1.cpp.o -MF CMakeFiles/openfodder.dir/Source/Amiga/rjp1.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Amiga/rjp1.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/rjp1.cpp /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/rjp1.cpp:47:39: warning: multi-character character constant [-Wmultichar] 47 | if ( readBEDWord(songData) == 'RJP1' && readBEDWord(songData + 4) == 'SMOD') { | ^~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/rjp1.cpp:47:78: warning: multi-character character constant [-Wmultichar] 47 | if ( readBEDWord(songData) == 'RJP1' && readBEDWord(songData + 4) == 'SMOD') { | ^~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/rjp1.cpp:85:53: warning: multi-character character constant [-Wmultichar] 85 | if (readBEDWord(instrumentsData) == 'RJP1') { | ^~~~~~ gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 19%] Building CXX object CMakeFiles/openfodder.dir/Source/Debugger.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Debugger.cpp.o -MF CMakeFiles/openfodder.dir/Source/Debugger.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Debugger.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Debugger.cpp /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Debugger.cpp: In member function 'void cDebugger::ClearConsole()': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Debugger.cpp:73:15: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 73 | system("clear"); | ~~~~~~^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Debugger.cpp: In member function 'void cDebugger::Notice(const std::string&)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Debugger.cpp:91:15: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 91 | system(Command.c_str()); | ~~~~~~^~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Debugger.cpp: In member function 'void cDebugger::Error(const std::string&)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Debugger.cpp:105:15: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 105 | system(Command.c_str()); | ~~~~~~^~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Debugger.cpp: In member function 'void cDebugger::TestStart(const std::string&, const std::string&)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Debugger.cpp:120:15: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 120 | system(Command.c_str()); | ~~~~~~^~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Debugger.cpp: In member function 'void cDebugger::TestComplete(const std::string&, const std::string&, const std::string&, size_t, eTestState)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Debugger.cpp:154:15: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 154 | system(Command.c_str()); | ~~~~~~^~~~~~~~~~~~~~~~~ gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 3%] Building CXX object CMakeFiles/openfodder.dir/Source/Amiga/Graphics_Amiga2.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Amiga/Graphics_Amiga2.cpp.o -MF CMakeFiles/openfodder.dir/Source/Amiga/Graphics_Amiga2.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Amiga/Graphics_Amiga2.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga2.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 1%] Building CXX object CMakeFiles/openfodder.dir/Source/About.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/About.cpp.o -MF CMakeFiles/openfodder.dir/Source/About.cpp.o.d -o CMakeFiles/openfodder.dir/Source/About.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/About.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 25%] Building CXX object CMakeFiles/openfodder.dir/Source/Amiga/Sound_Amiga.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Amiga/Sound_Amiga.cpp.o -MF CMakeFiles/openfodder.dir/Source/Amiga/Sound_Amiga.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Amiga/Sound_Amiga.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Sound_Amiga.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 9%] Building CXX object CMakeFiles/openfodder.dir/Source/Amiga/Resource_Amiga_File.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Amiga/Resource_Amiga_File.cpp.o -MF CMakeFiles/openfodder.dir/Source/Amiga/Resource_Amiga_File.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Amiga/Resource_Amiga_File.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Resource_Amiga_File.cpp /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Resource_Amiga_File.cpp:45:23: warning: multi-character character constant [-Wmultichar] 45 | if (Header != 'RNC\01') | ^~~~~~~~ gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 35%] Building CXX object CMakeFiles/openfodder.dir/Source/Graphics.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Graphics.cpp.o -MF CMakeFiles/openfodder.dir/Source/Graphics.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Graphics.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Graphics.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 47%] Building CXX object CMakeFiles/openfodder.dir/Source/PC/IntroData_PC.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/PC/IntroData_PC.cpp.o -MF CMakeFiles/openfodder.dir/Source/PC/IntroData_PC.cpp.o.d -o CMakeFiles/openfodder.dir/Source/PC/IntroData_PC.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/PC/IntroData_PC.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 31%] Building CXX object CMakeFiles/openfodder.dir/Source/GUI_Element.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/GUI_Element.cpp.o -MF CMakeFiles/openfodder.dir/Source/GUI_Element.cpp.o.d -o CMakeFiles/openfodder.dir/Source/GUI_Element.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/GUI_Element.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 9%] Building CXX object CMakeFiles/openfodder.dir/Source/Amiga/Graphics_Amiga.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Amiga/Graphics_Amiga.cpp.o -MF CMakeFiles/openfodder.dir/Source/Amiga/Graphics_Amiga.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Amiga/Graphics_Amiga.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga.cpp /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga.cpp:525:51: warning: multi-character character constant [-Wmultichar] 525 | if (!DataPtr || readBEDWord( DataPtr ) != 'FORM') | ^~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga.cpp:531:39: warning: multi-character character constant [-Wmultichar] 531 | if (readBEDWord( DataPtr ) != 'ILBM') | ^~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga.cpp:547:22: warning: multi-character character constant [-Wmultichar] 547 | case 'BMHD': | ^~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga.cpp:559:22: warning: multi-character character constant [-Wmultichar] 559 | case 'BODY': { | ^~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga.cpp:622:22: warning: multi-character character constant [-Wmultichar] 622 | case 'CMAP': | ^~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga.cpp: In member function 'virtual void cGraphics_Amiga::Load_Sprite_Font()': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga.cpp:349:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 349 | if (!mImageFonts.mData->size()) | ^~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga.cpp:353:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 353 | mImageFonts.LoadPalette_Amiga(mImageFonts.mData->data(), 16); | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga.cpp: In member function 'virtual void cGraphics_Amiga::SetActiveSpriteSheet(eGFX_Types)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga.cpp:450:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 450 | else | ^~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga.cpp:453:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 453 | return; | ^~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga.cpp: In member function 'virtual void cGraphics_Amiga::Video_Draw_8_Alt(const uint8*)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga.cpp:955:15: warning: unused variable 'Palette' [-Wunused-variable] 955 | uint8 Palette = mFodder->mVideo_Draw_PaletteIndex; | ^~~~~~~ gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 43%] Building CXX object CMakeFiles/openfodder.dir/Source/MapData.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/MapData.cpp.o -MF CMakeFiles/openfodder.dir/Source/MapData.cpp.o.d -o CMakeFiles/openfodder.dir/Source/MapData.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/MapData.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 37%] Building CXX object CMakeFiles/openfodder.dir/Source/Map/Map.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Map/Map.cpp.o -MF CMakeFiles/openfodder.dir/Source/Map/Map.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Map/Map.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Map/Map.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 39%] Building CXX object CMakeFiles/openfodder.dir/Source/Map/Original.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Map/Original.cpp.o -MF CMakeFiles/openfodder.dir/Source/Map/Original.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Map/Original.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Map/Original.cpp /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Map/Original.cpp:34:21: warning: multi-character character constant [-Wmultichar] 34 | Map[0x28] = 'fo'; Map[0x29] = 'de'; | ^~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Map/Original.cpp:34:39: warning: multi-character character constant [-Wmultichar] 34 | Map[0x28] = 'fo'; Map[0x29] = 'de'; | ^~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Map/Original.cpp: In member function 'bool cOriginalMap::saveCF1Sprites(std::string)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Map/Original.cpp:186:25: warning: loop variable 'SpriteIT' creates a copy from type 'const sSprite' [-Wrange-loop-construct] 186 | for (const auto SpriteIT : mSprites) { | ^~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Map/Original.cpp:186:25: note: use reference type to prevent copying 186 | for (const auto SpriteIT : mSprites) { | ^~~~~~~~ | & /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Map/Original.cpp:202:25: warning: loop variable 'SpriteIT' creates a copy from type 'const sSprite' [-Wrange-loop-construct] 202 | for (const auto SpriteIT : mSprites) { | ^~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Map/Original.cpp:202:25: note: use reference type to prevent copying 202 | for (const auto SpriteIT : mSprites) { | ^~~~~~~~ | & gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 52%] Building CXX object CMakeFiles/openfodder.dir/Source/PC/Sound_PC2.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/PC/Sound_PC2.cpp.o -MF CMakeFiles/openfodder.dir/Source/PC/Sound_PC2.cpp.o.d -o CMakeFiles/openfodder.dir/Source/PC/Sound_PC2.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/PC/Sound_PC2.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 49%] Building CXX object CMakeFiles/openfodder.dir/Source/PC/Resource_PC_CD.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/PC/Resource_PC_CD.cpp.o -MF CMakeFiles/openfodder.dir/Source/PC/Resource_PC_CD.cpp.o.d -o CMakeFiles/openfodder.dir/Source/PC/Resource_PC_CD.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/PC/Resource_PC_CD.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 50%] Building CXX object CMakeFiles/openfodder.dir/Source/PC/Sound_PC.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/PC/Sound_PC.cpp.o -MF CMakeFiles/openfodder.dir/Source/PC/Sound_PC.cpp.o.d -o CMakeFiles/openfodder.dir/Source/PC/Sound_PC.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/PC/Sound_PC.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 72%] Building CXX object CMakeFiles/openfodder.dir/Source/Start_Emscripten.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Start_Emscripten.cpp.o -MF CMakeFiles/openfodder.dir/Source/Start_Emscripten.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Start_Emscripten.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Start_Emscripten.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 56%] Building CXX object CMakeFiles/openfodder.dir/Source/Recruits.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Recruits.cpp.o -MF CMakeFiles/openfodder.dir/Source/Recruits.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Recruits.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Recruits.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 60%] Building CXX object CMakeFiles/openfodder.dir/Source/Resources.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Resources.cpp.o -MF CMakeFiles/openfodder.dir/Source/Resources.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Resources.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Resources.cpp /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Resources.cpp:42:23: warning: multi-character character constant [-Wmultichar] 42 | if (Header != 'RNC\01') | ^~~~~~~~ gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 45%] Building CXX object CMakeFiles/openfodder.dir/Source/PC/Graphics_PC.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/PC/Graphics_PC.cpp.o -MF CMakeFiles/openfodder.dir/Source/PC/Graphics_PC.cpp.o.d -o CMakeFiles/openfodder.dir/Source/PC/Graphics_PC.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/PC/Graphics_PC.cpp /usr/src/RPM/BUILD/openfodder-1.8.0/Source/PC/Graphics_PC.cpp: In member function 'virtual void cGraphics_PC::SetActiveSpriteSheet(eGFX_Types)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/PC/Graphics_PC.cpp:132:13: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 132 | else | ^~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/PC/Graphics_PC.cpp:134:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 134 | return; | ^~~~~~ gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 41%] Building CXX object CMakeFiles/openfodder.dir/Source/Map/Random.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Map/Random.cpp.o -MF CMakeFiles/openfodder.dir/Source/Map/Random.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Map/Random.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Map/Random.cpp /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Map/Random.cpp: In member function 'int32 cRandomMap::getSpriteTypeCount(size_t)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Map/Random.cpp:45:37: warning: comparison of integer expressions of different signedness: 'int16' {aka 'short int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 45 | if (Sprite.field_18 == pSpriteType) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Map/Random.cpp: In member function 'std::vector cRandomMap::getSpritesByType(size_t)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Map/Random.cpp:57:36: warning: comparison of integer expressions of different signedness: 'int16' {aka 'short int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 57 | if(Sprite.field_18 == pSpriteType) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Map/Random.cpp: In member function 'std::vector cRandomMap::calculatePath(size_t, cPosition*, cPosition*)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Map/Random.cpp:321:14: warning: unused variable 'result' [-Wunused-variable] 321 | auto result = pather->Solve(Pos1, Pos2, &path, &totalCost); | ^~~~~~ gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 82%] Building CXX object CMakeFiles/openfodder.dir/Source/Utils/SimplexIslands.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Utils/SimplexIslands.cpp.o -MF CMakeFiles/openfodder.dir/Source/Utils/SimplexIslands.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Utils/SimplexIslands.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/SimplexIslands.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 86%] Building CXX object CMakeFiles/openfodder.dir/Source/Utils/duk_trans_socket_windows.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Utils/duk_trans_socket_windows.cpp.o -MF CMakeFiles/openfodder.dir/Source/Utils/duk_trans_socket_windows.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Utils/duk_trans_socket_windows.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duk_trans_socket_windows.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 17%] Building CXX object CMakeFiles/openfodder.dir/Source/Campaign.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Campaign.cpp.o -MF CMakeFiles/openfodder.dir/Source/Campaign.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Campaign.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Campaign.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 58%] Building CXX object CMakeFiles/openfodder.dir/Source/ResourceMan.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/ResourceMan.cpp.o -MF CMakeFiles/openfodder.dir/Source/ResourceMan.cpp.o.d -o CMakeFiles/openfodder.dir/Source/ResourceMan.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ResourceMan.cpp /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ResourceMan.cpp: In member function 'std::string cResourceMan::getcwd()': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ResourceMan.cpp:579:17: warning: ignoring return value of 'char* getcwd(char*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 579 | ::getcwd(buff, 1024); | ~~~~~~~~^~~~~~~~~~~~ gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 90%] Building CXX object CMakeFiles/openfodder.dir/Source/Utils/md5.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Utils/md5.cpp.o -MF CMakeFiles/openfodder.dir/Source/Utils/md5.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Utils/md5.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/md5.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 21%] Building CXX object CMakeFiles/openfodder.dir/Source/Fodder.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Fodder.cpp.o -MF CMakeFiles/openfodder.dir/Source/Fodder.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Fodder.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'int16 cFodder::Tile_FindType(eTerrainFeature)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:1087:35: warning: comparison of integer expressions of different signedness: 'int16' {aka 'short int'} and 'long unsigned int' [-Wsign-compare] 1087 | for (int16 TileID = 0; TileID < sizeof(mTile_Hit) / sizeof(int16); ++TileID) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'std::vector cFodder::Tile_FindType(eTerrainFeature, eTerrainFeature)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:1130:35: warning: comparison of integer expressions of different signedness: 'int16' {aka 'short int'} and 'long unsigned int' [-Wsign-compare] 1130 | for (int16 TileID = 0; TileID < sizeof(mTile_Hit) / sizeof(int16); ++TileID) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'void cFodder::Camera_Speed_Update_From_PanTarget()': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:1409:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1409 | if (Data4 < 0) | ^~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:1412:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1412 | int16 Data0 = mCamera_PanTargetX - (getCameraWidth() / 2) + 8; | ^~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'void cFodder::Camera_SetTargetToStartPosition()': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:1700:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1700 | if (mMap_Destroy_Tiles_Countdown) | ^~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:1704:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1704 | for (int count = 0; count < 10000000; ++count) { | ^~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'void cFodder::Map_Load_Resources()': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:1862:15: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] 1862 | memset(mTile_Hit, 0, 512); | ~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'void cFodder::Mouse_Cursor_Handle()': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:2823:25: warning: variable 'WindowPos' set but not used [-Wunused-but-set-variable] 2823 | const cPosition WindowPos = mWindow->GetWindowPosition(); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:2825:26: warning: variable 'WindowSize' set but not used [-Wunused-but-set-variable] 2825 | const cDimension WindowSize = mWindow->GetWindowSize(); | ^~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'std::string cFodder::Campaign_Select_File(const char*, const char*, const char*, const char*, eDataType)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:3820:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 3820 | if (mGUI_SaveLoadAction == 1) | ^~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:3823:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 3823 | return mCampaignList[mGUI_Select_File_CurrentIndex + mGUI_Select_File_SelectedFileIndex]; | ^~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'void cFodder::Sprite_Handle_Helicopter_Enemy(sSprite*)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:6066:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 6066 | if (pSprite->field_4C) | ^~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:6069:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 6069 | Data0 = map_GetRandomX(); | ^~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'int16 cFodder::Sprite_Handle_Civilian_RandomMovement(sSprite*)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:6406:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 6406 | if (Data8 >= mMapLoaded->getWidth()) | ^~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:6409:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 6409 | int16 DataC = map_GetRandomY(); | ^~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'int16 cFodder::Map_Get_Distance_BetweenPoints(int16&, int16&, int16&, int16&, int16&)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:7521:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 7521 | if (pPosY2 >= pDistanceMax) | ^~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:7524:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 7524 | pDistanceMax = 0; | ^~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'int32 cFodder::Map_Get_Distance_BetweenPositions(cPosition, cPosition, int32)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:7579:22: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 7579 | if (pPos2.mY >= sizeof(mMap_Distance_Calculations) / sizeof(mMap_Distance_Calculations[0]) - 1) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'void cFodder::Squad_Walk_Target_Set(int16, int16, int16, int16)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:7734:21: warning: comparison of integer expressions of different signedness: 'int16' {aka 'short int'} and 'long unsigned int' [-Wsign-compare] 7734 | if (pData10 < (sizeof(mSquad_WalkTargets[pSquadNumber]) / sizeof(mSquad_WalkTargets[pSquadNumber][0]))) // 0x74 | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'void cFodder::Game_Load()': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:9087:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 9087 | if (!File.size()) | ^~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:9090:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 9090 | auto SaveData = g_ResourceMan->FileReadStr(g_ResourceMan->GetSave(File)); | ^~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'void cFodder::Service_Show()': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:9308:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 9308 | if (mParams->mSkipService) | ^~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:9311:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 9311 | mWindow->SetScreenSize(mVersionCurrent->GetScreenSize()); | ^~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'void cFodder::Briefing_Draw_Phase()': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:9721:21: warning: loop variable 'GoalName' creates a copy from type 'const std::__cxx11::basic_string' [-Wrange-loop-construct] 9721 | for (const auto GoalName : mMissionGoal_Titles) { | ^~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:9721:21: note: use reference type to prevent copying 9721 | for (const auto GoalName : mMissionGoal_Titles) { | ^~~~~~~~ | & /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'void cFodder::Briefing_Show_PreReady()': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:9735:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 9735 | if (!mVersionCurrent->hasGfx(eGFX_BRIEFING) && !mGame_Data.mCampaign.isRandom()) | ^~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:9738:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 9738 | mWindow->SetScreenSize(mVersionCurrent->GetScreenSize()); | ^~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'void cFodder::Sprite_Handle_Civilian_Spear2(sSprite*)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:12875:39: warning: variable 'Data1C' set but not used [-Wunused-but-set-variable] 12875 | int16 Data0, Data4, Data8, DataC, Data1C; | ^~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'void cFodder::Sprite_Handle_Cannon(sSprite*)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:13170:39: warning: variable 'Data1C' set but not used [-Wunused-but-set-variable] 13170 | int16 Data0, Data4, Data8, DataC, Data1C; | ^~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'void cFodder::Sprite_Handle_Spider_Mine(sSprite*)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:13486:39: warning: variable 'Data10' set but not used [-Wunused-but-set-variable] 13486 | int16 Data0, Data4, Data8, DataC, Data10; | ^~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp: In member function 'void cFodder::Sprite_Handle_Troop_Direct_TowardMouse(sSprite*)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Fodder.cpp:14948:9: warning: unused variable 'StoredAnim' [-Wunused-variable] 14948 | int StoredAnim = pSprite->field_8; | ^~~~~~~~~~ gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 92%] Building CXX object CMakeFiles/openfodder.dir/Source/Utils/micropather.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Utils/micropather.cpp.o -MF CMakeFiles/openfodder.dir/Source/Utils/micropather.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Utils/micropather.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/micropather.cpp /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/micropather.cpp: In member function 'void micropather::PathNode::Clear()': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/micropather.cpp:480:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class micropather::PathNode' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 480 | memset( this, 0, sizeof( PathNode ) ); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/micropather.cpp:45: /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/micropather.h:203:15: note: 'class micropather::PathNode' declared here 203 | class PathNode | ^~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/micropather.cpp: In member function 'void micropather::MicroPather::GetCacheData(micropather::CacheData*)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/micropather.cpp:681:15: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct micropather::CacheData'; use assignment or value-initialization instead [-Wclass-memaccess] 681 | memset( data, 0, sizeof(*data) ); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/micropather.h:344:16: note: 'struct micropather::CacheData' declared here 344 | struct CacheData { | ^~~~~~~~~ gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 33%] Building CXX object CMakeFiles/openfodder.dir/Source/GameData.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/GameData.cpp.o -MF CMakeFiles/openfodder.dir/Source/GameData.cpp.o.d -o CMakeFiles/openfodder.dir/Source/GameData.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/GameData.cpp /usr/src/RPM/BUILD/openfodder-1.8.0/Source/GameData.cpp: In member function 'bool sGameRecorded::FromJson(const std::string&)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/GameData.cpp:245:27: warning: catching polymorphic type 'class std::exception' by value [-Wcatch-value=] 245 | catch (std::exception Exception) { | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/GameData.cpp:290:31: warning: catching polymorphic type 'class std::exception' by value [-Wcatch-value=] 290 | catch (std::exception Exception) { | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/GameData.cpp: In member function 'void sGameData::Clear()': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/GameData.cpp:328:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 328 | for (auto& Troop : mSoldiers_Allocated) | ^~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/GameData.cpp:331:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 331 | mScore_Kills_Away = 0; | ^~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/GameData.cpp: In member function 'bool sGameData::FromJson(const std::string&)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/GameData.cpp:573:28: warning: catching polymorphic type 'class std::exception' by value [-Wcatch-value=] 573 | catch (std::exception Exception) { | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/GameData.cpp:585:32: warning: catching polymorphic type 'class std::exception' by value [-Wcatch-value=] 585 | catch (std::exception Exception) { | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/GameData.cpp:631:32: warning: catching polymorphic type 'class std::exception' by value [-Wcatch-value=] 631 | catch (std::exception Exception) { | ^~~~~~~~~ gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 66%] Building CXX object CMakeFiles/openfodder.dir/Source/SpriteSheet.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/SpriteSheet.cpp.o -MF CMakeFiles/openfodder.dir/Source/SpriteSheet.cpp.o.d -o CMakeFiles/openfodder.dir/Source/SpriteSheet.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/SpriteSheet.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 64%] Building CXX object CMakeFiles/openfodder.dir/Source/Sound.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Sound.cpp.o -MF CMakeFiles/openfodder.dir/Source/Sound.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Sound.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Sound.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 68%] Building CXX object CMakeFiles/openfodder.dir/Source/Sprites.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Sprites.cpp.o -MF CMakeFiles/openfodder.dir/Source/Sprites.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Sprites.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Sprites.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 74%] Building CXX object CMakeFiles/openfodder.dir/Source/Structures/Barracks.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Structures/Barracks.cpp.o -MF CMakeFiles/openfodder.dir/Source/Structures/Barracks.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Structures/Barracks.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Structures/Barracks.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 76%] Building CXX object CMakeFiles/openfodder.dir/Source/Surface.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Surface.cpp.o -MF CMakeFiles/openfodder.dir/Source/Surface.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Surface.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Surface.cpp /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Surface.cpp: In member function 'void cSurface::draw()': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Surface.cpp:206:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 206 | if (mIsLoadedImage) | ^~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Surface.cpp:209:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 209 | const uint8 *bufferCurrent = mSurfaceBuffer; | ^~~~~ gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 70%] Building CXX object CMakeFiles/openfodder.dir/Source/Start.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Start.cpp.o -MF CMakeFiles/openfodder.dir/Source/Start.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Start.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Start.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 78%] Building CXX object CMakeFiles/openfodder.dir/Source/Tiles.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Tiles.cpp.o -MF CMakeFiles/openfodder.dir/Source/Tiles.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Tiles.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Tiles.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 80%] Building CXX object CMakeFiles/openfodder.dir/Source/UnitTesting.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/UnitTesting.cpp.o -MF CMakeFiles/openfodder.dir/Source/UnitTesting.cpp.o.d -o CMakeFiles/openfodder.dir/Source/UnitTesting.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/UnitTesting.cpp /usr/src/RPM/BUILD/openfodder-1.8.0/Source/UnitTesting.cpp: In member function 'bool cUnitTesting::Start()': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/UnitTesting.cpp:228:19: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 228 | system(Command.c_str()); | ~~~~~~^~~~~~~~~~~~~~~~~ gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 84%] Building CXX object CMakeFiles/openfodder.dir/Source/Utils/SimplexNoise.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Utils/SimplexNoise.cpp.o -MF CMakeFiles/openfodder.dir/Source/Utils/SimplexNoise.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Utils/SimplexNoise.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/SimplexNoise.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 62%] Building CXX object CMakeFiles/openfodder.dir/Source/ScriptingEngine.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/ScriptingEngine.cpp.o -MF CMakeFiles/openfodder.dir/Source/ScriptingEngine.cpp.o.d -o CMakeFiles/openfodder.dir/Source/ScriptingEngine.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:105:25: warning: "/*" within comment [-Wcomment] 105 | /* Callback should avoid errors for now, so use In file included from /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_types.h:6, from /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:6, from /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_function.h:3, from /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_function.h:3, from /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/dukglue.h:3, from /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:24: /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_typeinfo.h: In function 'const char* dukglue::detail::get_type_name(duk_int_t)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_typeinfo.h:24:55: warning: comparison of integer expressions of different signedness: 'duk_int_t' {aka 'int'} and 'long unsigned int' [-Wsign-compare] 24 | if (type_idx >= 0 && type_idx < sizeof(names) / sizeof(names[0])) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_function.h: In static member function 'static typename std::enable_if<(! std::is_void::value)>::type dukglue::detail::FuncInfoHolder::FuncCompiletime::actually_call(duk_context*, const std::tuple&)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_function.h:40:100: warning: typedef 'ValidateReturnType' locally defined but not used [-Wunused-local-typedefs] 40 | typedef typename dukglue::types::ArgStorage::type ValidateReturnType; | ^~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_function.h: In static member function 'static typename std::enable_if<(! std::is_void<_Dummy>::value)>::type dukglue::detail::FuncInfoHolder::FuncRuntime::actually_call(duk_context*, RetType (*)(Ts ...), const std::tuple<_Args2 ...>&)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_function.h:84:100: warning: typedef 'ValidateReturnType' locally defined but not used [-Wunused-local-typedefs] 84 | typedef typename dukglue::types::ArgStorage::type ValidateReturnType; | ^~~~~~~~~~~~~~~~~~ In file included from /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:5, from /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/dukglue.h:4: /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In static member function 'static typename std::enable_if<(! std::is_void::value)>::type dukglue::detail::MethodInfo::MethodCompiletime::actually_call(duk_context*, Cls*, const std::tuple&)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:54:100: warning: typedef 'ValidateReturnType' locally defined but not used [-Wunused-local-typedefs] 54 | typedef typename dukglue::types::ArgStorage::type ValidateReturnType; | ^~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In static member function 'static typename std::enable_if<(! std::is_void<_Dummy>::value)>::type dukglue::detail::MethodInfo::MethodRuntime::actually_call(duk_context*, dukglue::detail::MethodInfo::MethodType, Cls*, const std::tuple<_Args2 ...>&)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:124:100: warning: typedef 'ValidateReturnType' locally defined but not used [-Wunused-local-typedefs] 124 | typedef typename dukglue::types::ArgStorage::type ValidateReturnType; | ^~~~~~~~~~~~~~~~~~ In file included from /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/dukglue.h:6: /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/public_util.h: In function 'void dukglue_push(duk_context*, const FullT&)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/public_util.h:22:66: warning: typedef 'ValidateReturnType' locally defined but not used [-Wunused-local-typedefs] 22 | typedef typename dukglue::types::ArgStorage::type ValidateReturnType; | ^~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/public_util.h: In function 'void dukglue_read(duk_context*, duk_idx_t, RetT*)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/public_util.h:51:65: warning: typedef 'ValidateReturnType' locally defined but not used [-Wunused-local-typedefs] 51 | typedef typename dukglue::types::ArgStorage::type ValidateReturnType; | ^~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp: In function 'duk_idx_t debugger_request(duk_context*, void*, duk_idx_t)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:91:21: warning: variable 'cmd' set but not used [-Wunused-but-set-variable] 91 | const char *cmd; | ^~~ In file included from /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_refs.h:3, from /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_types.h:5: /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_function.h: In instantiation of 'static duk_ret_t dukglue::detail::FuncInfoHolder::FuncRuntime::call_native_function(duk_context*) [with RetType = void; Ts = {std::__cxx11::basic_string, std::allocator >}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_function.h:26:17: required from 'void dukglue_register_function(duk_context*, RetType (*)(Ts ...), const char*) [with RetType = void; Ts = {std::__cxx11::basic_string, std::allocator >}; duk_context = duk_hthread]' 26 | duk_c_function evalFunc = dukglue::detail::FuncInfoHolder::FuncRuntime::call_native_function; | ^~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:226:27: required from here 226 | dukglue_register_function(mContext, print, "print"); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_function.h:65:49: note: in expansion of macro 'duk_error' 65 | duk_error(ctx, DUK_RET_TYPE_ERROR, "what even"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_function.h: In instantiation of 'static duk_ret_t dukglue::detail::FuncInfoHolder::FuncRuntime::call_native_function(duk_context*) [with RetType = void; Ts = {DukValue}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_function.h:26:17: required from 'void dukglue_register_function(duk_context*, RetType (*)(Ts ...), const char*) [with RetType = void; Ts = {DukValue}; duk_context = duk_hthread]' 26 | duk_c_function evalFunc = dukglue::detail::FuncInfoHolder::FuncRuntime::call_native_function; | ^~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:227:27: required from here 227 | dukglue_register_function(mContext, consoleLog, "consoleLog"); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_function.h:65:49: note: in expansion of macro 'duk_error' 65 | duk_error(ctx, DUK_RET_TYPE_ERROR, "what even"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_function.h: In instantiation of 'static duk_ret_t dukglue::detail::FuncInfoHolder::FuncRuntime::call_native_function(duk_context*) [with RetType = void; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_function.h:26:17: required from 'void dukglue_register_function(duk_context*, RetType (*)(Ts ...), const char*) [with RetType = void; Ts = {}; duk_context = duk_hthread]' 26 | duk_c_function evalFunc = dukglue::detail::FuncInfoHolder::FuncRuntime::call_native_function; | ^~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:228:27: required from here 228 | dukglue_register_function(mContext, consoleClear, "consoleClear"); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_function.h:65:49: note: in expansion of macro 'duk_error' 65 | duk_error(ctx, DUK_RET_TYPE_ERROR, "what even"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h: In instantiation of 'duk_ret_t dukglue::detail::call_native_constructor(duk_context*) [with bool managed = false; Cls = cScriptFileIO; Ts = {std::__cxx11::basic_string, std::allocator >, bool}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:11:53: required from 'void dukglue_register_constructor(duk_context*, const char*) [with Cls = cScriptFileIO; Ts = {std::__cxx11::basic_string, std::allocator >, bool}; duk_context = duk_hthread]' 11 | duk_c_function constructor_func = dukglue::detail::call_native_constructor; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:231:65: required from here 231 | dukglue_register_constructor(mContext, "FileIO"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h:13:9: note: in expansion of macro 'duk_error' 13 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Constructor must be called with new T()."); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h: In instantiation of 'duk_ret_t dukglue::detail::call_native_constructor(duk_context*) [with bool managed = false; Cls = cPosition; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:11:53: required from 'void dukglue_register_constructor(duk_context*, const char*) [with Cls = cPosition; Ts = {}; duk_context = duk_hthread]' 11 | duk_c_function constructor_func = dukglue::detail::call_native_constructor; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:238:41: required from here 238 | dukglue_register_constructor(mContext, "cPosition"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h:13:9: note: in expansion of macro 'duk_error' 13 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Constructor must be called with new T()."); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h: In instantiation of 'duk_ret_t dukglue::detail::call_native_constructor(duk_context*) [with bool managed = false; Cls = sSprite; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:11:53: required from 'void dukglue_register_constructor(duk_context*, const char*) [with Cls = sSprite; Ts = {}; duk_context = duk_hthread]' 11 | duk_c_function constructor_func = dukglue::detail::call_native_constructor; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:244:39: required from here 244 | dukglue_register_constructor(mContext, "sSprite"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h:13:9: note: in expansion of macro 'duk_error' 13 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Constructor must be called with new T()."); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h: In instantiation of 'duk_ret_t dukglue::detail::call_native_constructor(duk_context*) [with bool managed = false; Cls = cRandomMap; Ts = {const sMapParams&}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:11:53: required from 'void dukglue_register_constructor(duk_context*, const char*) [with Cls = cRandomMap; Ts = {const sMapParams&}; duk_context = duk_hthread]' 11 | duk_c_function constructor_func = dukglue::detail::call_native_constructor; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:252:62: required from here 252 | dukglue_register_constructor(mContext, "cRandomMap"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h:13:9: note: in expansion of macro 'duk_error' 13 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Constructor must be called with new T()."); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h: In instantiation of 'duk_ret_t dukglue::detail::call_native_constructor(duk_context*) [with bool managed = false; Cls = cPhase; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:11:53: required from 'void dukglue_register_constructor(duk_context*, const char*) [with Cls = cPhase; Ts = {}; duk_context = duk_hthread]' 11 | duk_c_function constructor_func = dukglue::detail::call_native_constructor; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:294:38: required from here 294 | dukglue_register_constructor(mContext, "cPhase"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h:13:9: note: in expansion of macro 'duk_error' 13 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Constructor must be called with new T()."); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h: In instantiation of 'duk_ret_t dukglue::detail::call_native_constructor(duk_context*) [with bool managed = false; Cls = cMission; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:11:53: required from 'void dukglue_register_constructor(duk_context*, const char*) [with Cls = cMission; Ts = {}; duk_context = duk_hthread]' 11 | duk_c_function constructor_func = dukglue::detail::call_native_constructor; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:306:40: required from here 306 | dukglue_register_constructor(mContext, "cMission"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h:13:9: note: in expansion of macro 'duk_error' 13 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Constructor must be called with new T()."); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h: In instantiation of 'duk_ret_t dukglue::detail::call_native_constructor(duk_context*) [with bool managed = false; Cls = cCampaign; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:11:53: required from 'void dukglue_register_constructor(duk_context*, const char*) [with Cls = cCampaign; Ts = {}; duk_context = duk_hthread]' 11 | duk_c_function constructor_func = dukglue::detail::call_native_constructor; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:312:41: required from here 312 | dukglue_register_constructor(mContext, "cCampaign"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h:13:9: note: in expansion of macro 'duk_error' 13 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Constructor must be called with new T()."); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h: In instantiation of 'duk_ret_t dukglue::detail::call_native_constructor(duk_context*) [with bool managed = false; Cls = sGameData; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:11:53: required from 'void dukglue_register_constructor(duk_context*, const char*) [with Cls = sGameData; Ts = {}; duk_context = duk_hthread]' 11 | duk_c_function constructor_func = dukglue::detail::call_native_constructor; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:319:41: required from here 319 | dukglue_register_constructor(mContext, "sGameData"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h:13:9: note: in expansion of macro 'duk_error' 13 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Constructor must be called with new T()."); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h: In instantiation of 'duk_ret_t dukglue::detail::call_native_constructor(duk_context*) [with bool managed = false; Cls = cScriptingEngine; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:11:53: required from 'void dukglue_register_constructor(duk_context*, const char*) [with Cls = cScriptingEngine; Ts = {}; duk_context = duk_hthread]' 11 | duk_c_function constructor_func = dukglue::detail::call_native_constructor; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:325:48: required from here 325 | dukglue_register_constructor(mContext, "cEngine"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h:13:9: note: in expansion of macro 'duk_error' 13 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Constructor must be called with new T()."); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cScriptFileIO; RetType = std::__cxx11::basic_string; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cScriptFileIO; RetType = std::__cxx11::basic_string; Ts = {}; duk_context = duk_hthread; typename std::conditional::type = std::conditional (cScriptFileIO::*)() const, std::__cxx11::basic_string (cScriptFileIO::*)()>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cScriptFileIO; RetType = std::__cxx11::basic_string; Ts = {}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:232:25: required from here 232 | dukglue_register_method(mContext, &cScriptFileIO::readLine, "readLine"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cScriptFileIO; RetType = void; Ts = {std::__cxx11::basic_string, std::allocator >}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cScriptFileIO; RetType = void; Ts = {std::__cxx11::basic_string, std::allocator >}; duk_context = duk_hthread; typename std::conditional::type = std::conditional) const, void (cScriptFileIO::*)(std::__cxx11::basic_string)>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cScriptFileIO; RetType = void; Ts = {std::__cxx11::basic_string, std::allocator >}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:233:25: required from here 233 | dukglue_register_method(mContext, &cScriptFileIO::writeLine, "writeLine"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cScriptFileIO; RetType = void; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cScriptFileIO; RetType = void; Ts = {}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cScriptFileIO; RetType = void; Ts = {}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:234:25: required from here 234 | dukglue_register_method(mContext, &cScriptFileIO::close, "close"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cScriptFileIO; RetType = bool; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cScriptFileIO; RetType = bool; Ts = {}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cScriptFileIO; RetType = bool; Ts = {}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:235:25: required from here 235 | dukglue_register_method(mContext, &cScriptFileIO::isOpen, "isOpen"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = true; Cls = cPosition; RetType = int; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:87:18: required from 'void dukglue_register_property(duk_context*, typename std::conditional::type, void (Cls::*)(ArgT), const char*) [with bool isConstGetter = true; Cls = cPosition; RetT = int; ArgT = int; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 87 | duk_c_function method_func = GetterMethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:12:50: required from 'void dukglue_register_property(duk_context*, RetT (Cls::*)() const, void (Cls::*)(ArgT), const char*) [with Cls = cPosition; RetT = int; ArgT = int; duk_context = duk_hthread]' 12 | dukglue_register_property(ctx, getter, setter, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:240:27: required from here 240 | dukglue_register_property(mContext, &cPosition::getX, &cPosition::setX, "x"); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cPosition; RetType = void; Ts = {int}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:102:18: required from 'void dukglue_register_property(duk_context*, typename std::conditional::type, void (Cls::*)(ArgT), const char*) [with bool isConstGetter = true; Cls = cPosition; RetT = int; ArgT = int; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 102 | duk_c_function method_func = SetterMethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:12:50: required from 'void dukglue_register_property(duk_context*, RetT (Cls::*)() const, void (Cls::*)(ArgT), const char*) [with Cls = cPosition; RetT = int; ArgT = int; duk_context = duk_hthread]' 12 | dukglue_register_property(ctx, getter, setter, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:240:27: required from here 240 | dukglue_register_property(mContext, &cPosition::getX, &cPosition::setX, "x"); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = sSprite; RetType = void; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = sSprite; RetType = void; Ts = {}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = sSprite; RetType = void; Ts = {}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:245:25: required from here 245 | dukglue_register_method(mContext, &sSprite::Clear, "Clear"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = sSprite; RetType = cPosition*; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = sSprite; RetType = cPosition*; Ts = {}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = sSprite; RetType = cPosition*; Ts = {}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:246:25: required from here 246 | dukglue_register_method(mContext, &sSprite::getPosition, "getPosition"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = true; Cls = sSprite; RetType = int; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:87:18: required from 'void dukglue_register_property(duk_context*, typename std::conditional::type, void (Cls::*)(ArgT), const char*) [with bool isConstGetter = true; Cls = sSprite; RetT = int; ArgT = int; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 87 | duk_c_function method_func = GetterMethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:12:50: required from 'void dukglue_register_property(duk_context*, RetT (Cls::*)() const, void (Cls::*)(ArgT), const char*) [with Cls = sSprite; RetT = int; ArgT = int; duk_context = duk_hthread]' 12 | dukglue_register_property(ctx, getter, setter, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:247:27: required from here 247 | dukglue_register_property(mContext, &sSprite::getX, &sSprite::setX, "x"); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = sSprite; RetType = void; Ts = {int}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:102:18: required from 'void dukglue_register_property(duk_context*, typename std::conditional::type, void (Cls::*)(ArgT), const char*) [with bool isConstGetter = true; Cls = sSprite; RetT = int; ArgT = int; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 102 | duk_c_function method_func = SetterMethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:12:50: required from 'void dukglue_register_property(duk_context*, RetT (Cls::*)() const, void (Cls::*)(ArgT), const char*) [with Cls = sSprite; RetT = int; ArgT = int; duk_context = duk_hthread]' 12 | dukglue_register_property(ctx, getter, setter, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:247:27: required from here 247 | dukglue_register_property(mContext, &sSprite::getX, &sSprite::setX, "x"); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cOriginalMap; RetType = bool; Ts = {std::__cxx11::basic_string, std::allocator >, bool}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cOriginalMap; RetType = bool; Ts = {std::__cxx11::basic_string, std::allocator >, bool}; duk_context = duk_hthread; typename std::conditional::type = std::conditional, bool) const, bool (cOriginalMap::*)(std::__cxx11::basic_string, bool)>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cOriginalMap; RetType = bool; Ts = {std::__cxx11::basic_string, std::allocator >, bool}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:254:25: required from here 254 | dukglue_register_method(mContext, &cRandomMap::save, "save"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = void; Ts = {long unsigned int, long unsigned int, eTileTypes, eTileSub}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = void; Ts = {long unsigned int, long unsigned int, eTileTypes, eTileSub}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = void; Ts = {long unsigned int, long unsigned int, eTileTypes, eTileSub}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:255:25: required from here 255 | dukglue_register_method(mContext, &cRandomMap::create, "Create"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = std::vector >; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = std::vector >; Ts = {}; duk_context = duk_hthread; typename std::conditional::type = std::conditional > (cRandomMap::*)() const, std::vector > (cRandomMap::*)()>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = std::vector >; Ts = {}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:257:25: required from here 257 | dukglue_register_method(mContext, &cRandomMap::createDiamondSquare, "DiamondSquare"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = std::vector >; Ts = {long unsigned int, float, float, short int, bool, float}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = std::vector >; Ts = {long unsigned int, float, float, short int, bool, float}; duk_context = duk_hthread; typename std::conditional::type = std::conditional > (cRandomMap::*)(long unsigned int, float, float, short int, bool, float) const, std::vector > (cRandomMap::*)(long unsigned int, float, float, short int, bool, float)>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = std::vector >; Ts = {long unsigned int, float, float, short int, bool, float}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:258:25: required from here 258 | dukglue_register_method(mContext, &cRandomMap::createSimplexIslands, "SimplexIslands"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = std::vector >; Ts = {long unsigned int, float, float, float}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = std::vector >; Ts = {long unsigned int, float, float, float}; duk_context = duk_hthread; typename std::conditional::type = std::conditional > (cRandomMap::*)(long unsigned int, float, float, float) const, std::vector > (cRandomMap::*)(long unsigned int, float, float, float)>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = std::vector >; Ts = {long unsigned int, float, float, float}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:259:25: required from here 259 | dukglue_register_method(mContext, &cRandomMap::createSimplexNoise, "SimplexNoise"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = true; Cls = cMap; RetType = eTileTypes; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = true; Cls = cMap; RetType = eTileTypes; Ts = {}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:119:52: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...) const, const char*) [with Cls = cMap; RetType = eTileTypes; Ts = {}; duk_context = duk_hthread]' 119 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:262:25: required from here 262 | dukglue_register_method(mContext, &cRandomMap::getTileType, "getTileType"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = true; Cls = cMap; RetType = eTileSub; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = true; Cls = cMap; RetType = eTileSub; Ts = {}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:119:52: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...) const, const char*) [with Cls = cMap; RetType = eTileSub; Ts = {}; duk_context = duk_hthread]' 119 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:263:25: required from here 263 | dukglue_register_method(mContext, &cRandomMap::getTileSub, "getTileSub"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = true; Cls = cMap; RetType = int; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = true; Cls = cMap; RetType = int; Ts = {}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:119:52: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...) const, const char*) [with Cls = cMap; RetType = int; Ts = {}; duk_context = duk_hthread]' 119 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:265:25: required from here 265 | dukglue_register_method(mContext, &cRandomMap::getArea, "getArea"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = int; Ts = {long unsigned int}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = int; Ts = {long unsigned int}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = int; Ts = {long unsigned int}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:273:25: required from here 273 | dukglue_register_method(mContext, &cRandomMap::getSpriteTypeCount, "getSpriteTypeCount"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = std::vector; Ts = {long unsigned int}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = std::vector; Ts = {long unsigned int}; duk_context = duk_hthread; typename std::conditional::type = std::conditional (cRandomMap::*)(long unsigned int) const, std::vector (cRandomMap::*)(long unsigned int)>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = std::vector; Ts = {long unsigned int}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:274:25: required from here 274 | dukglue_register_method(mContext, &cRandomMap::getSpritesByType, "getSpritesByType"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = cPosition*; Ts = {std::vector >, long unsigned int}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = cPosition*; Ts = {std::vector >, long unsigned int}; duk_context = duk_hthread; typename std::conditional::type = std::conditional, long unsigned int) const, cPosition* (cRandomMap::*)(std::vector, long unsigned int)>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = cPosition*; Ts = {std::vector >, long unsigned int}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:276:25: required from here 276 | dukglue_register_method(mContext, &cRandomMap::getRandomXYByTileID, "getRandomXYByTileID"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = cPosition*; Ts = {std::vector >, long unsigned int, bool}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = cPosition*; Ts = {std::vector >, long unsigned int, bool}; duk_context = duk_hthread; typename std::conditional::type = std::conditional, long unsigned int, bool) const, cPosition* (cRandomMap::*)(std::vector, long unsigned int, bool)>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = cPosition*; Ts = {std::vector >, long unsigned int, bool}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:277:25: required from here 277 | dukglue_register_method(mContext, &cRandomMap::getRandomXYByFeatures, "getRandomXYByFeatures"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = cPosition*; Ts = {eTerrainFeature, long unsigned int}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = cPosition*; Ts = {eTerrainFeature, long unsigned int}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = cPosition*; Ts = {eTerrainFeature, long unsigned int}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:279:25: required from here 279 | dukglue_register_method(mContext, &cRandomMap::getRandomXYByTerrainType, "getRandomXYByTerrainType"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cMap; RetType = void; Ts = {long unsigned int, long unsigned int, long unsigned int}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cMap; RetType = void; Ts = {long unsigned int, long unsigned int, long unsigned int}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cMap; RetType = void; Ts = {long unsigned int, long unsigned int, long unsigned int}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:281:25: required from here 281 | dukglue_register_method(mContext, &cRandomMap::Sprite_Add, "SpriteAdd"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cMap; RetType = int; Ts = {long unsigned int, long unsigned int}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cMap; RetType = int; Ts = {long unsigned int, long unsigned int}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cMap; RetType = int; Ts = {long unsigned int, long unsigned int}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:282:25: required from here 282 | dukglue_register_method(mContext, &cRandomMap::Tile_Get, "TileGet"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = true; Cls = cRandomMap; RetType = short int; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:87:18: required from 'void dukglue_register_property(duk_context*, typename std::conditional::type, void (Cls::*)(ArgT), const char*) [with bool isConstGetter = true; Cls = cRandomMap; RetT = short int; ArgT = short int; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 87 | duk_c_function method_func = GetterMethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:12:50: required from 'void dukglue_register_property(duk_context*, RetT (Cls::*)() const, void (Cls::*)(ArgT), const char*) [with Cls = cRandomMap; RetT = short int; ArgT = short int; duk_context = duk_hthread]' 12 | dukglue_register_property(ctx, getter, setter, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:285:27: required from here 285 | dukglue_register_property(mContext, &cRandomMap::getSeed, &cRandomMap::setSeed, "seed"); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = void; Ts = {short int}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:102:18: required from 'void dukglue_register_property(duk_context*, typename std::conditional::type, void (Cls::*)(ArgT), const char*) [with bool isConstGetter = true; Cls = cRandomMap; RetT = short int; ArgT = short int; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 102 | duk_c_function method_func = SetterMethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:12:50: required from 'void dukglue_register_property(duk_context*, RetT (Cls::*)() const, void (Cls::*)(ArgT), const char*) [with Cls = cRandomMap; RetT = short int; ArgT = short int; duk_context = duk_hthread]' 12 | dukglue_register_property(ctx, getter, setter, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:285:27: required from here 285 | dukglue_register_property(mContext, &cRandomMap::getSeed, &cRandomMap::setSeed, "seed"); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = int; Ts = {int, int}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = int; Ts = {int, int}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = int; Ts = {int, int}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:287:25: required from here 287 | dukglue_register_method(mContext, &cRandomMap::getRandomInt, "getRandomInt"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = float; Ts = {float, float}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = float; Ts = {float, float}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = float; Ts = {float, float}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:288:25: required from here 288 | dukglue_register_method(mContext, &cRandomMap::getRandomFloat, "getRandomFloat"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = int; Ts = {cPosition*, cPosition*}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = int; Ts = {cPosition*, cPosition*}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = int; Ts = {cPosition*, cPosition*}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:290:25: required from here 290 | dukglue_register_method(mContext, &cRandomMap::getDistanceBetweenPositions, "getDistanceBetweenPositions"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = std::vector; Ts = {long unsigned int, cPosition*, cPosition*}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = std::vector; Ts = {long unsigned int, cPosition*, cPosition*}; duk_context = duk_hthread; typename std::conditional::type = std::conditional (cRandomMap::*)(long unsigned int, cPosition*, cPosition*) const, std::vector (cRandomMap::*)(long unsigned int, cPosition*, cPosition*)>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = std::vector; Ts = {long unsigned int, cPosition*, cPosition*}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:291:25: required from here 291 | dukglue_register_method(mContext, &cRandomMap::calculatePath, "calculatePathBetweenPositions"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = true; Cls = cPhase; RetType = std::__cxx11::basic_string; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:87:18: required from 'void dukglue_register_property(duk_context*, typename std::conditional::type, void (Cls::*)(ArgT), const char*) [with bool isConstGetter = true; Cls = cPhase; RetT = std::__cxx11::basic_string; ArgT = const std::__cxx11::basic_string&; duk_context = duk_hthread; typename std::conditional::type = std::conditional (cPhase::*)() const, std::__cxx11::basic_string (cPhase::*)()>::type]' 87 | duk_c_function method_func = GetterMethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:12:50: required from 'void dukglue_register_property(duk_context*, RetT (Cls::*)() const, void (Cls::*)(ArgT), const char*) [with Cls = cPhase; RetT = std::__cxx11::basic_string; ArgT = const std::__cxx11::basic_string&; duk_context = duk_hthread]' 12 | dukglue_register_property(ctx, getter, setter, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:295:27: required from here 295 | dukglue_register_property(mContext, &cPhase::GetMapFilename, &cPhase::SetMapFilename, "map"); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cPhase; RetType = void; Ts = {const std::__cxx11::basic_string, std::allocator >&}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:102:18: required from 'void dukglue_register_property(duk_context*, typename std::conditional::type, void (Cls::*)(ArgT), const char*) [with bool isConstGetter = true; Cls = cPhase; RetT = std::__cxx11::basic_string; ArgT = const std::__cxx11::basic_string&; duk_context = duk_hthread; typename std::conditional::type = std::conditional (cPhase::*)() const, std::__cxx11::basic_string (cPhase::*)()>::type]' 102 | duk_c_function method_func = SetterMethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:12:50: required from 'void dukglue_register_property(duk_context*, RetT (Cls::*)() const, void (Cls::*)(ArgT), const char*) [with Cls = cPhase; RetT = std::__cxx11::basic_string; ArgT = const std::__cxx11::basic_string&; duk_context = duk_hthread]' 12 | dukglue_register_property(ctx, getter, setter, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:295:27: required from here 295 | dukglue_register_property(mContext, &cPhase::GetMapFilename, &cPhase::SetMapFilename, "map"); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cPhase; RetType = void; Ts = {ePhaseObjective}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cPhase; RetType = void; Ts = {ePhaseObjective}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cPhase; RetType = void; Ts = {ePhaseObjective}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:298:25: required from here 298 | dukglue_register_method(mContext, &cPhase::AddGoal, "ObjectiveAdd"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cPhase; RetType = void; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cPhase; RetType = void; Ts = {}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cPhase; RetType = void; Ts = {}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:300:25: required from here 300 | dukglue_register_method(mContext, &cPhase::ClearGoals, "ObjectivesClear"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cPhase; RetType = void; Ts = {const short int&, const short int&}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cPhase; RetType = void; Ts = {const short int&, const short int&}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cPhase; RetType = void; Ts = {const short int&, const short int&}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:301:25: required from here 301 | dukglue_register_method(mContext, &cPhase::SetAggression, "SetAggression"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cPhase; RetType = void; Ts = {const short int&}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cPhase; RetType = void; Ts = {const short int&}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cPhase; RetType = void; Ts = {const short int&}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:302:25: required from here 302 | dukglue_register_method(mContext, &cPhase::SetMinAggression, "SetMinAggression"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = true; Cls = cMission; RetType = std::__cxx11::basic_string; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:87:18: required from 'void dukglue_register_property(duk_context*, typename std::conditional::type, void (Cls::*)(ArgT), const char*) [with bool isConstGetter = true; Cls = cMission; RetT = std::__cxx11::basic_string; ArgT = const std::__cxx11::basic_string&; duk_context = duk_hthread; typename std::conditional::type = std::conditional (cMission::*)() const, std::__cxx11::basic_string (cMission::*)()>::type]' 87 | duk_c_function method_func = GetterMethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:12:50: required from 'void dukglue_register_property(duk_context*, RetT (Cls::*)() const, void (Cls::*)(ArgT), const char*) [with Cls = cMission; RetT = std::__cxx11::basic_string; ArgT = const std::__cxx11::basic_string&; duk_context = duk_hthread]' 12 | dukglue_register_property(ctx, getter, setter, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:307:27: required from here 307 | dukglue_register_property(mContext, &cMission::GetName, &cMission::SetName, "name"); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cMission; RetType = void; Ts = {const std::__cxx11::basic_string, std::allocator >&}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:102:18: required from 'void dukglue_register_property(duk_context*, typename std::conditional::type, void (Cls::*)(ArgT), const char*) [with bool isConstGetter = true; Cls = cMission; RetT = std::__cxx11::basic_string; ArgT = const std::__cxx11::basic_string&; duk_context = duk_hthread; typename std::conditional::type = std::conditional (cMission::*)() const, std::__cxx11::basic_string (cMission::*)()>::type]' 102 | duk_c_function method_func = SetterMethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:12:50: required from 'void dukglue_register_property(duk_context*, RetT (Cls::*)() const, void (Cls::*)(ArgT), const char*) [with Cls = cMission; RetT = std::__cxx11::basic_string; ArgT = const std::__cxx11::basic_string&; duk_context = duk_hthread]' 12 | dukglue_register_property(ctx, getter, setter, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:307:27: required from here 307 | dukglue_register_property(mContext, &cMission::GetName, &cMission::SetName, "name"); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = true; Cls = cMission; RetType = long unsigned int; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = true; Cls = cMission; RetType = long unsigned int; Ts = {}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:119:52: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...) const, const char*) [with Cls = cMission; RetType = long unsigned int; Ts = {}; duk_context = duk_hthread]' 119 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:308:25: required from here 308 | dukglue_register_method(mContext, &cMission::NumberOfPhases, "NumberOfPhases"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cMission; RetType = std::shared_ptr; Ts = {long unsigned int}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cMission; RetType = std::shared_ptr; Ts = {long unsigned int}; duk_context = duk_hthread; typename std::conditional::type = std::conditional (cMission::*)(long unsigned int) const, std::shared_ptr (cMission::*)(long unsigned int)>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cMission; RetType = std::shared_ptr; Ts = {long unsigned int}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:309:25: required from here 309 | dukglue_register_method(mContext, &cMission::PhaseGet, "PhaseGet"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = true; Cls = cCampaign; RetType = std::__cxx11::basic_string; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:87:18: required from 'void dukglue_register_property(duk_context*, typename std::conditional::type, void (Cls::*)(ArgT), const char*) [with bool isConstGetter = true; Cls = cCampaign; RetT = std::__cxx11::basic_string; ArgT = const std::__cxx11::basic_string&; duk_context = duk_hthread; typename std::conditional::type = std::conditional (cCampaign::*)() const, std::__cxx11::basic_string (cCampaign::*)()>::type]' 87 | duk_c_function method_func = GetterMethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:12:50: required from 'void dukglue_register_property(duk_context*, RetT (Cls::*)() const, void (Cls::*)(ArgT), const char*) [with Cls = cCampaign; RetT = std::__cxx11::basic_string; ArgT = const std::__cxx11::basic_string&; duk_context = duk_hthread]' 12 | dukglue_register_property(ctx, getter, setter, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:313:27: required from here 313 | dukglue_register_property(mContext, &cCampaign::getName, &cCampaign::setName, "name"); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cCampaign; RetType = void; Ts = {const std::__cxx11::basic_string, std::allocator >&}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:102:18: required from 'void dukglue_register_property(duk_context*, typename std::conditional::type, void (Cls::*)(ArgT), const char*) [with bool isConstGetter = true; Cls = cCampaign; RetT = std::__cxx11::basic_string; ArgT = const std::__cxx11::basic_string&; duk_context = duk_hthread; typename std::conditional::type = std::conditional (cCampaign::*)() const, std::__cxx11::basic_string (cCampaign::*)()>::type]' 102 | duk_c_function method_func = SetterMethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:12:50: required from 'void dukglue_register_property(duk_context*, RetT (Cls::*)() const, void (Cls::*)(ArgT), const char*) [with Cls = cCampaign; RetT = std::__cxx11::basic_string; ArgT = const std::__cxx11::basic_string&; duk_context = duk_hthread]' 12 | dukglue_register_property(ctx, getter, setter, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:313:27: required from here 313 | dukglue_register_property(mContext, &cCampaign::getName, &cCampaign::setName, "name"); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cCampaign; RetType = std::__cxx11::basic_string; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:87:18: required from 'void dukglue_register_property(duk_context*, typename std::conditional::type, void (Cls::*)(ArgT), const char*) [with bool isConstGetter = false; Cls = cCampaign; RetT = std::__cxx11::basic_string; ArgT = const std::__cxx11::basic_string&; duk_context = duk_hthread; typename std::conditional::type = std::conditional (cCampaign::*)() const, std::__cxx11::basic_string (cCampaign::*)()>::type]' 87 | duk_c_function method_func = GetterMethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:32:51: required from 'void dukglue_register_property(duk_context*, RetT (Cls::*)(), void (Cls::*)(ArgT), const char*) [with Cls = cCampaign; RetT = std::__cxx11::basic_string; ArgT = const std::__cxx11::basic_string&; duk_context = duk_hthread]' 32 | dukglue_register_property(ctx, getter, setter, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:314:27: required from here 314 | dukglue_register_property(mContext, &cCampaign::getAuthor, &cCampaign::setAuthor, "author"); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cCampaign; RetType = std::vector >; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cCampaign; RetType = std::vector >; Ts = {}; duk_context = duk_hthread; typename std::conditional::type = std::conditional > (cCampaign::*)() const, std::vector > (cCampaign::*)()>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cCampaign; RetType = std::vector >; Ts = {}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:315:25: required from here 315 | dukglue_register_method(mContext, &cCampaign::getMissions, "getMissions"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cCampaign; RetType = void; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cCampaign; RetType = void; Ts = {}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cCampaign; RetType = void; Ts = {}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:316:25: required from here 316 | dukglue_register_method(mContext, &cCampaign::SetCustomCampaign, "SetCustomCampaign"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = sGameData; RetType = bool; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = sGameData; RetType = bool; Ts = {}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = sGameData; RetType = bool; Ts = {}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:320:25: required from here 320 | dukglue_register_method(mContext, &sGameData::Phase_Start, "Phase_Start"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cScriptingEngine; RetType = bool; Ts = {const std::__cxx11::basic_string, std::allocator >&}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cScriptingEngine; RetType = bool; Ts = {const std::__cxx11::basic_string, std::allocator >&}; duk_context = duk_hthread; typename std::conditional::type = std::conditional&) const, bool (cScriptingEngine::*)(const std::__cxx11::basic_string&)>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cScriptingEngine; RetType = bool; Ts = {const std::__cxx11::basic_string, std::allocator >&}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:326:25: required from here 326 | dukglue_register_method(mContext, &cScriptingEngine::scriptCall, "scriptCall"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cScriptingEngine; RetType = void; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cScriptingEngine; RetType = void; Ts = {}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cScriptingEngine; RetType = void; Ts = {}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:327:25: required from here 327 | dukglue_register_method(mContext, &cScriptingEngine::mapSave, "mapSave"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cScriptingEngine; RetType = std::shared_ptr; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cScriptingEngine; RetType = std::shared_ptr; Ts = {}; duk_context = duk_hthread; typename std::conditional::type = std::conditional (cScriptingEngine::*)() const, std::shared_ptr (cScriptingEngine::*)()>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cScriptingEngine; RetType = std::shared_ptr; Ts = {}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:328:25: required from here 328 | dukglue_register_method(mContext, &cScriptingEngine::phaseCreate, "phaseCreate"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cScriptingEngine; RetType = std::shared_ptr; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cScriptingEngine; RetType = std::shared_ptr; Ts = {}; duk_context = duk_hthread; typename std::conditional::type = std::conditional (cScriptingEngine::*)() const, std::shared_ptr (cScriptingEngine::*)()>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cScriptingEngine; RetType = std::shared_ptr; Ts = {}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:329:25: required from here 329 | dukglue_register_method(mContext, &cScriptingEngine::missionCreate, "missionCreate"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cScriptingEngine; RetType = cCampaign*; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cScriptingEngine; RetType = cCampaign*; Ts = {}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cScriptingEngine; RetType = cCampaign*; Ts = {}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:331:25: required from here 331 | dukglue_register_method(mContext, &cScriptingEngine::getCampaign, "getCampaign"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cScriptingEngine; RetType = std::shared_ptr; Ts = {}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cScriptingEngine; RetType = std::shared_ptr; Ts = {}; duk_context = duk_hthread; typename std::conditional::type = std::conditional (cScriptingEngine::*)() const, std::shared_ptr (cScriptingEngine::*)()>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cScriptingEngine; RetType = std::shared_ptr; Ts = {}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:332:25: required from here 332 | dukglue_register_method(mContext, &cScriptingEngine::getMap, "getMap"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h: In instantiation of 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cScriptingEngine; RetType = void; Ts = {const std::__cxx11::basic_string, std::allocator >&, long unsigned int, long unsigned int, bool, bool}; duk_ret_t = int; duk_context = duk_hthread]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cScriptingEngine; RetType = void; Ts = {const std::__cxx11::basic_string, std::allocator >&, long unsigned int, long unsigned int, bool, bool}; duk_context = duk_hthread; typename std::conditional::type = std::conditional&, long unsigned int, long unsigned int, bool, bool) const, void (cScriptingEngine::*)(const std::__cxx11::basic_string&, long unsigned int, long unsigned int, bool, bool)>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cScriptingEngine; RetType = void; Ts = {const std::__cxx11::basic_string, std::allocator >&, long unsigned int, long unsigned int, bool, bool}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:336:25: required from here 336 | dukglue_register_method(mContext, &cScriptingEngine::guiPrintString, "guiPrintString"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:91:49: note: in expansion of macro 'duk_error' 91 | duk_error(ctx, DUK_RET_REFERENCE_ERROR, "Invalid native object for 'this'"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:102:49: note: in expansion of macro 'duk_error' 102 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Method pointer missing?!"); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h: In instantiation of 'static std::string dukglue::types::DukType >::read(duk_context*, duk_idx_t) [with FullT = std::__cxx11::basic_string; std::string = std::__cxx11::basic_string; duk_context = duk_hthread; duk_idx_t = int]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:31:115: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values_helper(duk_context*, index_tuple) [with Args = {std::__cxx11::basic_string, std::allocator >}; long unsigned int ...Indexes = {0}; typename ArgsTuple::type = std::tuple, std::allocator > >; duk_context = duk_hthread]' 31 | return std::forward_as_tuple(DukType::type>::template read::type>(ctx, Indexes)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:48:43: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values(duk_context*) [with Args = {std::__cxx11::basic_string, std::allocator >}; typename ArgsTuple::type = std::tuple, std::allocator > >; duk_context = duk_hthread]' 48 | return get_stack_values_helper(ctx, indices); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_function.h:74:77: required from 'static duk_ret_t dukglue::detail::FuncInfoHolder::FuncRuntime::call_native_function(duk_context*) [with RetType = void; Ts = {std::__cxx11::basic_string, std::allocator >}; duk_ret_t = int; duk_context = duk_hthread]' 74 | actually_call(ctx, funcToCall, dukglue::detail::get_stack_values(ctx)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_function.h:26:17: required from 'void dukglue_register_function(duk_context*, RetType (*)(Ts ...), const char*) [with RetType = void; Ts = {std::__cxx11::basic_string, std::allocator >}; duk_context = duk_hthread]' 26 | duk_c_function evalFunc = dukglue::detail::FuncInfoHolder::FuncRuntime::call_native_function; | ^~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:226:27: required from here 226 | dukglue_register_function(mContext, print, "print"); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h:26:41: note: in expansion of macro 'duk_error' 26 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Argument %d: expected " #TYPE ", got %s", arg_idx, detail::get_type_name(type_idx)); \ | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h:61:17: note: in expansion of macro 'DUKGLUE_SIMPLE_VALUE_TYPE' 61 | DUKGLUE_SIMPLE_VALUE_TYPE(std::string, duk_is_string, duk_get_string, duk_push_string, value.c_str()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h: In instantiation of 'static DukValue dukglue::types::DukType::read(duk_context*, duk_idx_t) [with FullT = DukValue; duk_context = duk_hthread; duk_idx_t = int]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:31:115: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values_helper(duk_context*, index_tuple) [with Args = {DukValue}; long unsigned int ...Indexes = {0}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 31 | return std::forward_as_tuple(DukType::type>::template read::type>(ctx, Indexes)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:48:43: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values(duk_context*) [with Args = {DukValue}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 48 | return get_stack_values_helper(ctx, indices); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_function.h:74:77: required from 'static duk_ret_t dukglue::detail::FuncInfoHolder::FuncRuntime::call_native_function(duk_context*) [with RetType = void; Ts = {DukValue}; duk_ret_t = int; duk_context = duk_hthread]' 74 | actually_call(ctx, funcToCall, dukglue::detail::get_stack_values(ctx)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_function.h:26:17: required from 'void dukglue_register_function(duk_context*, RetType (*)(Ts ...), const char*) [with RetType = void; Ts = {DukValue}; duk_context = duk_hthread]' 26 | duk_c_function evalFunc = dukglue::detail::FuncInfoHolder::FuncRuntime::call_native_function; | ^~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:227:27: required from here 227 | dukglue_register_function(mContext, consoleLog, "consoleLog"); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h:112:41: note: in expansion of macro 'duk_error' 112 | duk_error(ctx, DUK_ERR_ERROR, e.what()); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h: In instantiation of 'static bool dukglue::types::DukType::read(duk_context*, duk_idx_t) [with FullT = bool; duk_context = duk_hthread; duk_idx_t = int]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:31:115: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values_helper(duk_context*, index_tuple) [with Args = {std::__cxx11::basic_string, std::allocator >, bool}; long unsigned int ...Indexes = {0, 1}; typename ArgsTuple::type = std::tuple, std::allocator >, bool>; duk_context = duk_hthread]' 31 | return std::forward_as_tuple(DukType::type>::template read::type>(ctx, Indexes)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:48:43: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values(duk_context*) [with Args = {std::__cxx11::basic_string, std::allocator >, bool}; typename ArgsTuple::type = std::tuple, std::allocator >, bool>; duk_context = duk_hthread]' 48 | return get_stack_values_helper(ctx, indices); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h:18:71: required from 'duk_ret_t dukglue::detail::call_native_constructor(duk_context*) [with bool managed = false; Cls = cScriptFileIO; Ts = {std::__cxx11::basic_string, std::allocator >, bool}; duk_ret_t = int; duk_context = duk_hthread]' 18 | auto constructor_args = dukglue::detail::get_stack_values(ctx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:11:53: required from 'void dukglue_register_constructor(duk_context*, const char*) [with Cls = cScriptFileIO; Ts = {std::__cxx11::basic_string, std::allocator >, bool}; duk_context = duk_hthread]' 11 | duk_c_function constructor_func = dukglue::detail::call_native_constructor; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:231:65: required from here 231 | dukglue_register_constructor(mContext, "FileIO"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h:26:41: note: in expansion of macro 'duk_error' 26 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Argument %d: expected " #TYPE ", got %s", arg_idx, detail::get_type_name(type_idx)); \ | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h:36:17: note: in expansion of macro 'DUKGLUE_SIMPLE_VALUE_TYPE' 36 | DUKGLUE_SIMPLE_VALUE_TYPE(bool, duk_is_boolean, 0 != duk_get_boolean, duk_push_boolean, value) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_types.h: In instantiation of 'static T& dukglue::types::DukType::read(duk_context*, duk_idx_t) [with FullT = const sMapParams&; = void; T = sMapParams; duk_context = duk_hthread; duk_idx_t = int]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:31:115: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values_helper(duk_context*, index_tuple) [with Args = {const sMapParams&}; long unsigned int ...Indexes = {0}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 31 | return std::forward_as_tuple(DukType::type>::template read::type>(ctx, Indexes)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:48:43: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values(duk_context*) [with Args = {const sMapParams&}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 48 | return get_stack_values_helper(ctx, indices); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h:18:71: required from 'duk_ret_t dukglue::detail::call_native_constructor(duk_context*) [with bool managed = false; Cls = cRandomMap; Ts = {const sMapParams&}; duk_ret_t = int; duk_context = duk_hthread]' 18 | auto constructor_args = dukglue::detail::get_stack_values(ctx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:11:53: required from 'void dukglue_register_constructor(duk_context*, const char*) [with Cls = cRandomMap; Ts = {const sMapParams&}; duk_context = duk_hthread]' 11 | duk_c_function constructor_func = dukglue::detail::call_native_constructor; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:252:62: required from here 252 | dukglue_register_constructor(mContext, "cRandomMap"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_types.h:90:41: note: in expansion of macro 'duk_error' 90 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Argument %d: cannot be null (native function expects reference)", arg_idx); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h: In instantiation of 'static int32_t dukglue::types::DukType::read(duk_context*, duk_idx_t) [with FullT = int; int32_t = int; duk_context = duk_hthread; duk_idx_t = int]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:31:115: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values_helper(duk_context*, index_tuple) [with Args = {int}; long unsigned int ...Indexes = {0}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 31 | return std::forward_as_tuple(DukType::type>::template read::type>(ctx, Indexes)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:48:43: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values(duk_context*) [with Args = {int}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 48 | return get_stack_values_helper(ctx, indices); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:113:78: required from 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cPosition; RetType = void; Ts = {int}; duk_ret_t = int; duk_context = duk_hthread]' 113 | auto bakedArgs = dukglue::detail::get_stack_values(ctx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:102:18: required from 'void dukglue_register_property(duk_context*, typename std::conditional::type, void (Cls::*)(ArgT), const char*) [with bool isConstGetter = true; Cls = cPosition; RetT = int; ArgT = int; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 102 | duk_c_function method_func = SetterMethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_property.h:12:50: required from 'void dukglue_register_property(duk_context*, RetT (Cls::*)() const, void (Cls::*)(ArgT), const char*) [with Cls = cPosition; RetT = int; ArgT = int; duk_context = duk_hthread]' 12 | dukglue_register_property(ctx, getter, setter, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:240:27: required from here 240 | dukglue_register_property(mContext, &cPosition::getX, &cPosition::setX, "x"); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h:26:41: note: in expansion of macro 'duk_error' 26 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Argument %d: expected " #TYPE ", got %s", arg_idx, detail::get_type_name(type_idx)); \ | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h:45:17: note: in expansion of macro 'DUKGLUE_SIMPLE_VALUE_TYPE' 45 | DUKGLUE_SIMPLE_VALUE_TYPE(int32_t, duk_is_number, duk_get_int, duk_push_int, value) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_types.h: In instantiation of 'static T* dukglue::types::DukType::read(duk_context*, duk_idx_t) [with FullT = sMapParams*; = void; T = sMapParams; duk_context = duk_hthread; duk_idx_t = int]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_types.h:88:22: required from 'static T& dukglue::types::DukType::read(duk_context*, duk_idx_t) [with FullT = const sMapParams&; = void; T = sMapParams; duk_context = duk_hthread; duk_idx_t = int]' 88 | T* obj = read(ctx, arg_idx); | ~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:31:115: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values_helper(duk_context*, index_tuple) [with Args = {const sMapParams&}; long unsigned int ...Indexes = {0}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 31 | return std::forward_as_tuple(DukType::type>::template read::type>(ctx, Indexes)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:48:43: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values(duk_context*) [with Args = {const sMapParams&}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 48 | return get_stack_values_helper(ctx, indices); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_constructor.h:18:71: required from 'duk_ret_t dukglue::detail::call_native_constructor(duk_context*) [with bool managed = false; Cls = cRandomMap; Ts = {const sMapParams&}; duk_ret_t = int; duk_context = duk_hthread]' 18 | auto constructor_args = dukglue::detail::get_stack_values(ctx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:11:53: required from 'void dukglue_register_constructor(duk_context*, const char*) [with Cls = cRandomMap; Ts = {const sMapParams&}; duk_context = duk_hthread]' 11 | duk_c_function constructor_func = dukglue::detail::call_native_constructor; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:252:62: required from here 252 | dukglue_register_constructor(mContext, "cRandomMap"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_types.h:60:41: note: in expansion of macro 'duk_error' 60 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Argument %d: expected native object, got %s", arg_idx, get_type_name(type_idx)); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_types.h:65:41: note: in expansion of macro 'duk_error' 65 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Argument %d: expected native object (missing type_info)", arg_idx); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_types.h:70:41: note: in expansion of macro 'duk_error' 70 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Argument %d: wrong type of native object", arg_idx); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_types.h:76:41: note: in expansion of macro 'duk_error' 76 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Argument %d: invalid native object.", arg_idx); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h: In instantiation of 'static uint64_t dukglue::types::DukType::read(duk_context*, duk_idx_t) [with FullT = long unsigned int; uint64_t = long unsigned int; duk_context = duk_hthread; duk_idx_t = int]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:31:115: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values_helper(duk_context*, index_tuple) [with Args = {long unsigned int, long unsigned int, eTileTypes, eTileSub}; long unsigned int ...Indexes = {0, 1, 2, 3}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 31 | return std::forward_as_tuple(DukType::type>::template read::type>(ctx, Indexes)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:48:43: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values(duk_context*) [with Args = {long unsigned int, long unsigned int, eTileTypes, eTileSub}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 48 | return get_stack_values_helper(ctx, indices); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:113:78: required from 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = void; Ts = {long unsigned int, long unsigned int, eTileTypes, eTileSub}; duk_ret_t = int; duk_context = duk_hthread]' 113 | auto bakedArgs = dukglue::detail::get_stack_values(ctx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = void; Ts = {long unsigned int, long unsigned int, eTileTypes, eTileSub}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = void; Ts = {long unsigned int, long unsigned int, eTileTypes, eTileSub}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:255:25: required from here 255 | dukglue_register_method(mContext, &cRandomMap::create, "Create"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h:26:41: note: in expansion of macro 'duk_error' 26 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Argument %d: expected " #TYPE ", got %s", arg_idx, detail::get_type_name(type_idx)); \ | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h:41:17: note: in expansion of macro 'DUKGLUE_SIMPLE_VALUE_TYPE' 41 | DUKGLUE_SIMPLE_VALUE_TYPE(uint64_t, duk_is_number, duk_get_number, duk_push_number, value) // have to cast to double | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp: In instantiation of 'static eTileTypes dukglue::types::DukType::read(duk_context*, duk_idx_t) [with FullT = eTileTypes; duk_context = duk_hthread; duk_idx_t = int]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:31:115: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values_helper(duk_context*, index_tuple) [with Args = {long unsigned int, long unsigned int, eTileTypes, eTileSub}; long unsigned int ...Indexes = {0, 1, 2, 3}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 31 | return std::forward_as_tuple(DukType::type>::template read::type>(ctx, Indexes)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:48:43: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values(duk_context*) [with Args = {long unsigned int, long unsigned int, eTileTypes, eTileSub}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 48 | return get_stack_values_helper(ctx, indices); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:113:78: required from 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = void; Ts = {long unsigned int, long unsigned int, eTileTypes, eTileSub}; duk_ret_t = int; duk_context = duk_hthread]' 113 | auto bakedArgs = dukglue::detail::get_stack_values(ctx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = void; Ts = {long unsigned int, long unsigned int, eTileTypes, eTileSub}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = void; Ts = {long unsigned int, long unsigned int, eTileTypes, eTileSub}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:255:25: required from here 255 | dukglue_register_method(mContext, &cRandomMap::create, "Create"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h:26:41: note: in expansion of macro 'duk_error' 26 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Argument %d: expected " #TYPE ", got %s", arg_idx, detail::get_type_name(type_idx)); \ | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:33:17: note: in expansion of macro 'DUKGLUE_SIMPLE_VALUE_TYPE' 33 | DUKGLUE_SIMPLE_VALUE_TYPE(eTileTypes, duk_is_number, duk_get_uint, duk_push_uint, value); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp: In instantiation of 'static eTileSub dukglue::types::DukType::read(duk_context*, duk_idx_t) [with FullT = eTileSub; duk_context = duk_hthread; duk_idx_t = int]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:31:115: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values_helper(duk_context*, index_tuple) [with Args = {long unsigned int, long unsigned int, eTileTypes, eTileSub}; long unsigned int ...Indexes = {0, 1, 2, 3}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 31 | return std::forward_as_tuple(DukType::type>::template read::type>(ctx, Indexes)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:48:43: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values(duk_context*) [with Args = {long unsigned int, long unsigned int, eTileTypes, eTileSub}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 48 | return get_stack_values_helper(ctx, indices); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:113:78: required from 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = void; Ts = {long unsigned int, long unsigned int, eTileTypes, eTileSub}; duk_ret_t = int; duk_context = duk_hthread]' 113 | auto bakedArgs = dukglue::detail::get_stack_values(ctx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = void; Ts = {long unsigned int, long unsigned int, eTileTypes, eTileSub}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = void; Ts = {long unsigned int, long unsigned int, eTileTypes, eTileSub}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:255:25: required from here 255 | dukglue_register_method(mContext, &cRandomMap::create, "Create"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h:26:41: note: in expansion of macro 'duk_error' 26 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Argument %d: expected " #TYPE ", got %s", arg_idx, detail::get_type_name(type_idx)); \ | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:34:17: note: in expansion of macro 'DUKGLUE_SIMPLE_VALUE_TYPE' 34 | DUKGLUE_SIMPLE_VALUE_TYPE(eTileSub, duk_is_number, duk_get_uint, duk_push_uint, value); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h: In instantiation of 'static float dukglue::types::DukType::read(duk_context*, duk_idx_t) [with FullT = float; duk_context = duk_hthread; duk_idx_t = int]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:31:115: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values_helper(duk_context*, index_tuple) [with Args = {long unsigned int, float, float, short int, bool, float}; long unsigned int ...Indexes = {0, 1, 2, 3, 4, 5}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 31 | return std::forward_as_tuple(DukType::type>::template read::type>(ctx, Indexes)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:48:43: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values(duk_context*) [with Args = {long unsigned int, float, float, short int, bool, float}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 48 | return get_stack_values_helper(ctx, indices); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:113:78: required from 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = std::vector >; Ts = {long unsigned int, float, float, short int, bool, float}; duk_ret_t = int; duk_context = duk_hthread]' 113 | auto bakedArgs = dukglue::detail::get_stack_values(ctx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = std::vector >; Ts = {long unsigned int, float, float, short int, bool, float}; duk_context = duk_hthread; typename std::conditional::type = std::conditional > (cRandomMap::*)(long unsigned int, float, float, short int, bool, float) const, std::vector > (cRandomMap::*)(long unsigned int, float, float, short int, bool, float)>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = std::vector >; Ts = {long unsigned int, float, float, short int, bool, float}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:258:25: required from here 258 | dukglue_register_method(mContext, &cRandomMap::createSimplexIslands, "SimplexIslands"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h:26:41: note: in expansion of macro 'duk_error' 26 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Argument %d: expected " #TYPE ", got %s", arg_idx, detail::get_type_name(type_idx)); \ | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h:58:17: note: in expansion of macro 'DUKGLUE_SIMPLE_VALUE_TYPE' 58 | DUKGLUE_SIMPLE_VALUE_TYPE(float, duk_is_number, duk_get_number, duk_push_number, value) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h: In instantiation of 'static int16_t dukglue::types::DukType::read(duk_context*, duk_idx_t) [with FullT = short int; int16_t = short int; duk_context = duk_hthread; duk_idx_t = int]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:31:115: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values_helper(duk_context*, index_tuple) [with Args = {long unsigned int, float, float, short int, bool, float}; long unsigned int ...Indexes = {0, 1, 2, 3, 4, 5}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 31 | return std::forward_as_tuple(DukType::type>::template read::type>(ctx, Indexes)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:48:43: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values(duk_context*) [with Args = {long unsigned int, float, float, short int, bool, float}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 48 | return get_stack_values_helper(ctx, indices); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:113:78: required from 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = std::vector >; Ts = {long unsigned int, float, float, short int, bool, float}; duk_ret_t = int; duk_context = duk_hthread]' 113 | auto bakedArgs = dukglue::detail::get_stack_values(ctx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = std::vector >; Ts = {long unsigned int, float, float, short int, bool, float}; duk_context = duk_hthread; typename std::conditional::type = std::conditional > (cRandomMap::*)(long unsigned int, float, float, short int, bool, float) const, std::vector > (cRandomMap::*)(long unsigned int, float, float, short int, bool, float)>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = std::vector >; Ts = {long unsigned int, float, float, short int, bool, float}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:258:25: required from here 258 | dukglue_register_method(mContext, &cRandomMap::createSimplexIslands, "SimplexIslands"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h:26:41: note: in expansion of macro 'duk_error' 26 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Argument %d: expected " #TYPE ", got %s", arg_idx, detail::get_type_name(type_idx)); \ | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h:44:17: note: in expansion of macro 'DUKGLUE_SIMPLE_VALUE_TYPE' 44 | DUKGLUE_SIMPLE_VALUE_TYPE(int16_t, duk_is_number, duk_get_int, duk_push_int, value) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h: In instantiation of 'static std::vector dukglue::types::DukType >::read(duk_context*, duk_idx_t) [with FullT = std::vector; T = long unsigned int; duk_context = duk_hthread; duk_idx_t = int]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:31:115: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values_helper(duk_context*, index_tuple) [with Args = {std::vector >, long unsigned int}; long unsigned int ...Indexes = {0, 1}; typename ArgsTuple::type = std::tuple >, long unsigned int>; duk_context = duk_hthread]' 31 | return std::forward_as_tuple(DukType::type>::template read::type>(ctx, Indexes)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:48:43: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values(duk_context*) [with Args = {std::vector >, long unsigned int}; typename ArgsTuple::type = std::tuple >, long unsigned int>; duk_context = duk_hthread]' 48 | return get_stack_values_helper(ctx, indices); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:113:78: required from 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = cPosition*; Ts = {std::vector >, long unsigned int}; duk_ret_t = int; duk_context = duk_hthread]' 113 | auto bakedArgs = dukglue::detail::get_stack_values(ctx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = cPosition*; Ts = {std::vector >, long unsigned int}; duk_context = duk_hthread; typename std::conditional::type = std::conditional, long unsigned int) const, cPosition* (cRandomMap::*)(std::vector, long unsigned int)>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = cPosition*; Ts = {std::vector >, long unsigned int}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:276:25: required from here 276 | dukglue_register_method(mContext, &cRandomMap::getRandomXYByTileID, "getRandomXYByTileID"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h:147:41: note: in expansion of macro 'duk_error' 147 | duk_error(ctx, DUK_ERR_TYPE_ERROR, "Argument %d: expected array, got %s", arg_idx, detail::get_type_name(type_idx)); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h: In instantiation of 'static std::vector dukglue::types::DukType >::read(duk_context*, duk_idx_t) [with FullT = std::vector; T = eTerrainFeature; duk_context = duk_hthread; duk_idx_t = int]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:31:115: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values_helper(duk_context*, index_tuple) [with Args = {std::vector >, long unsigned int, bool}; long unsigned int ...Indexes = {0, 1, 2}; typename ArgsTuple::type = std::tuple >, long unsigned int, bool>; duk_context = duk_hthread]' 31 | return std::forward_as_tuple(DukType::type>::template read::type>(ctx, Indexes)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:48:43: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values(duk_context*) [with Args = {std::vector >, long unsigned int, bool}; typename ArgsTuple::type = std::tuple >, long unsigned int, bool>; duk_context = duk_hthread]' 48 | return get_stack_values_helper(ctx, indices); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:113:78: required from 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = cPosition*; Ts = {std::vector >, long unsigned int, bool}; duk_ret_t = int; duk_context = duk_hthread]' 113 | auto bakedArgs = dukglue::detail::get_stack_values(ctx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = cPosition*; Ts = {std::vector >, long unsigned int, bool}; duk_context = duk_hthread; typename std::conditional::type = std::conditional, long unsigned int, bool) const, cPosition* (cRandomMap::*)(std::vector, long unsigned int, bool)>::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = cPosition*; Ts = {std::vector >, long unsigned int, bool}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:277:25: required from here 277 | dukglue_register_method(mContext, &cRandomMap::getRandomXYByFeatures, "getRandomXYByFeatures"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h:147:41: note: in expansion of macro 'duk_error' 147 | duk_error(ctx, DUK_ERR_TYPE_ERROR, "Argument %d: expected array, got %s", arg_idx, detail::get_type_name(type_idx)); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp: In instantiation of 'static eTerrainFeature dukglue::types::DukType::read(duk_context*, duk_idx_t) [with FullT = eTerrainFeature; duk_context = duk_hthread; duk_idx_t = int]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:31:115: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values_helper(duk_context*, index_tuple) [with Args = {eTerrainFeature, long unsigned int}; long unsigned int ...Indexes = {0, 1}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 31 | return std::forward_as_tuple(DukType::type>::template read::type>(ctx, Indexes)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:48:43: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values(duk_context*) [with Args = {eTerrainFeature, long unsigned int}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 48 | return get_stack_values_helper(ctx, indices); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:113:78: required from 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = cPosition*; Ts = {eTerrainFeature, long unsigned int}; duk_ret_t = int; duk_context = duk_hthread]' 113 | auto bakedArgs = dukglue::detail::get_stack_values(ctx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = cPosition*; Ts = {eTerrainFeature, long unsigned int}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = cPosition*; Ts = {eTerrainFeature, long unsigned int}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:279:25: required from here 279 | dukglue_register_method(mContext, &cRandomMap::getRandomXYByTerrainType, "getRandomXYByTerrainType"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h:26:41: note: in expansion of macro 'duk_error' 26 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Argument %d: expected " #TYPE ", got %s", arg_idx, detail::get_type_name(type_idx)); \ | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:35:17: note: in expansion of macro 'DUKGLUE_SIMPLE_VALUE_TYPE' 35 | DUKGLUE_SIMPLE_VALUE_TYPE(eTerrainFeature, duk_is_number, duk_get_uint, duk_push_uint, value); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_types.h: In instantiation of 'static T* dukglue::types::DukType::read(duk_context*, duk_idx_t) [with FullT = cPosition*; = void; T = cPosition; duk_context = duk_hthread; duk_idx_t = int]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:31:115: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values_helper(duk_context*, index_tuple) [with Args = {cPosition*, cPosition*}; long unsigned int ...Indexes = {0, 1}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 31 | return std::forward_as_tuple(DukType::type>::template read::type>(ctx, Indexes)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:48:43: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values(duk_context*) [with Args = {cPosition*, cPosition*}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 48 | return get_stack_values_helper(ctx, indices); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:113:78: required from 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cRandomMap; RetType = int; Ts = {cPosition*, cPosition*}; duk_ret_t = int; duk_context = duk_hthread]' 113 | auto bakedArgs = dukglue::detail::get_stack_values(ctx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cRandomMap; RetType = int; Ts = {cPosition*, cPosition*}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cRandomMap; RetType = int; Ts = {cPosition*, cPosition*}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:290:25: required from here 290 | dukglue_register_method(mContext, &cRandomMap::getDistanceBetweenPositions, "getDistanceBetweenPositions"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_types.h:60:41: note: in expansion of macro 'duk_error' 60 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Argument %d: expected native object, got %s", arg_idx, get_type_name(type_idx)); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_types.h:65:41: note: in expansion of macro 'duk_error' 65 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Argument %d: expected native object (missing type_info)", arg_idx); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_types.h:70:41: note: in expansion of macro 'duk_error' 70 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Argument %d: wrong type of native object", arg_idx); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_types.h:76:41: note: in expansion of macro 'duk_error' 76 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Argument %d: invalid native object.", arg_idx); | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp: In instantiation of 'static ePhaseObjective dukglue::types::DukType::read(duk_context*, duk_idx_t) [with FullT = ePhaseObjective; duk_context = duk_hthread; duk_idx_t = int]': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:31:115: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values_helper(duk_context*, index_tuple) [with Args = {ePhaseObjective}; long unsigned int ...Indexes = {0}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 31 | return std::forward_as_tuple(DukType::type>::template read::type>(ctx, Indexes)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_stack.h:48:43: required from 'typename dukglue::detail::ArgsTuple::type dukglue::detail::get_stack_values(duk_context*) [with Args = {ePhaseObjective}; typename ArgsTuple::type = std::tuple; duk_context = duk_hthread]' 48 | return get_stack_values_helper(ctx, indices); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_method.h:113:78: required from 'static duk_ret_t dukglue::detail::MethodInfo::MethodRuntime::call_native_method(duk_context*) [with bool isConst = false; Cls = cPhase; RetType = void; Ts = {ePhaseObjective}; duk_ret_t = int; duk_context = duk_hthread]' 113 | auto bakedArgs = dukglue::detail::get_stack_values(ctx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:130:17: required from 'void dukglue_register_method(duk_context*, typename std::conditional::type, const char*) [with bool isConst = false; Cls = cPhase; RetType = void; Ts = {ePhaseObjective}; duk_context = duk_hthread; typename std::conditional::type = std::conditional::type]' 130 | duk_c_function method_func = MethodInfo::MethodRuntime::call_native_method; | ^~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/register_class.h:113:53: required from 'void dukglue_register_method(duk_context*, RetType (Cls::*)(Ts ...), const char*) [with Cls = cPhase; RetType = void; Ts = {ePhaseObjective}; duk_context = duk_hthread]' 113 | dukglue_register_method(ctx, method, name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:298:25: required from here 298 | dukglue_register_method(mContext, &cPhase::AddGoal, "ObjectiveAdd"); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.h:520:136: warning: right operand of comma operator has no effect [-Wunused-value] 520 | (duk_error_raw((ctx), (duk_errcode_t) (err_code), (const char *) (DUK_FILE_MACRO), (duk_int_t) (DUK_LINE_MACRO), __VA_ARGS__), (duk_ret_t) 0) | ^~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/dukglue/detail_primitive_types.h:26:41: note: in expansion of macro 'duk_error' 26 | duk_error(ctx, DUK_RET_TYPE_ERROR, "Argument %d: expected " #TYPE ", got %s", arg_idx, detail::get_type_name(type_idx)); \ | ^~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:36:17: note: in expansion of macro 'DUKGLUE_SIMPLE_VALUE_TYPE' 36 | DUKGLUE_SIMPLE_VALUE_TYPE(ePhaseObjective, duk_is_number, duk_get_uint, duk_push_uint, value); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp: At global scope: /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:120:13: warning: 'void debugger_detached(duk_context*, void*)' defined but not used [-Wunused-function] 120 | static void debugger_detached(duk_context *ctx, void *udata) { | ^~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/ScriptingEngine.cpp:90:18: warning: 'duk_idx_t debugger_request(duk_context*, void*, duk_idx_t)' defined but not used [-Wunused-function] 90 | static duk_idx_t debugger_request(duk_context *ctx, void *udata, duk_idx_t nvalues) { | ^~~~~~~~~~~~~~~~ gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 96%] Building CXX object CMakeFiles/openfodder.dir/Source/Window.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Window.cpp.o -MF CMakeFiles/openfodder.dir/Source/Window.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Window.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Window.cpp /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Window.cpp: In member function 'virtual void cWindow::EventCheck()': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Window.cpp:195:37: warning: operation on 'Event.cEvent::mType' may be undefined [-Wsequence-point] 195 | Event.mType = Event.mType = eEvent_MouseWheel; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Window.cpp: In member function 'void cWindow::SetOriginalRes(const cDimension&)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Window.cpp:466:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 466 | if (mOriginalResolution == pDimension) | ^~ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Window.cpp:469:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 469 | mOriginalResolution = pDimension; | ^~~~~~~~~~~~~~~~~~~ gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 98%] Building CXX object CMakeFiles/openfodder.dir/Source/stdafx.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/stdafx.cpp.o -MF CMakeFiles/openfodder.dir/Source/stdafx.cpp.o.d -o CMakeFiles/openfodder.dir/Source/stdafx.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/stdafx.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 94%] Building CXX object CMakeFiles/openfodder.dir/Source/Versions.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Versions.cpp.o -MF CMakeFiles/openfodder.dir/Source/Versions.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Versions.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Versions.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 88%] Building CXX object CMakeFiles/openfodder.dir/Source/Utils/duktape.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Utils/duktape.cpp.o -MF CMakeFiles/openfodder.dir/Source/Utils/duktape.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Utils/duktape.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Utils/duktape.cpp gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [ 54%] Building CXX object CMakeFiles/openfodder.dir/Source/Parameters.cpp.o /usr/bin/c++ -I/usr/src/RPM/BUILD/openfodder-1.8.0/Source -I/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/Source -isystem /usr/include/SDL2 -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -std=gnu++14 -MD -MT CMakeFiles/openfodder.dir/Source/Parameters.cpp.o -MF CMakeFiles/openfodder.dir/Source/Parameters.cpp.o.d -o CMakeFiles/openfodder.dir/Source/Parameters.cpp.o -c /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Parameters.cpp /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Parameters.cpp: In member function 'bool sFodderParameters::FromJson(const std::string&)': /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Parameters.cpp:66:31: warning: catching polymorphic type 'class std::exception' by value [-Wcatch-value=] 66 | catch (std::exception Exception) { | ^~~~~~~~~ gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[2]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [100%] Linking CXX executable openfodder /usr/bin/cmake -E cmake_link_script CMakeFiles/openfodder.dir/link.txt --verbose=1 In member function 'paletteSet', inlined from 'PaletteSetOverview' at /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga.cpp:498:42: /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Surface.cpp:114:46: warning: iteration 15 invokes undefined behavior [-Waggressive-loop-optimizations] 114 | mPaletteNew[ColorID] = pPalette[ColorID - pColorID]; | ^ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Surface.cpp:113:57: note: within this loop 113 | for (uint32 ColorID = pColorID; ColorID < pColorID + pColors; ++ColorID) { | ^ In member function 'paletteSet', inlined from 'PaletteBriefingSet' at /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga.cpp:506:22: /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Surface.cpp:114:46: warning: iteration 15 invokes undefined behavior [-Waggressive-loop-optimizations] 114 | mPaletteNew[ColorID] = pPalette[ColorID - pColorID]; | ^ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Surface.cpp:113:57: note: within this loop 113 | for (uint32 ColorID = pColorID; ColorID < pColorID + pColors; ++ColorID) { | ^ In member function 'paletteSet', inlined from 'PaletteSet' at /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga.cpp:517:21: /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Surface.cpp:114:46: warning: iteration 15 invokes undefined behavior [-Waggressive-loop-optimizations] 114 | mPaletteNew[ColorID] = pPalette[ColorID - pColorID]; | ^ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Surface.cpp:113:57: note: within this loop 113 | for (uint32 ColorID = pColorID; ColorID < pColorID + pColors; ++ColorID) { | ^ In member function 'paletteSet', inlined from 'PaletteBriefingSet' at /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga.cpp:506:22, inlined from 'Mission_Intro_Play' at /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Amiga/Graphics_Amiga.cpp:1508:20: /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Surface.cpp:114:46: warning: iteration 15 invokes undefined behavior [-Waggressive-loop-optimizations] 114 | mPaletteNew[ColorID] = pPalette[ColorID - pColorID]; | ^ /usr/src/RPM/BUILD/openfodder-1.8.0/Source/Surface.cpp:113:57: note: within this loop 113 | for (uint32 ColorID = pColorID; ColorID < pColorID + pColors; ++ColorID) { | ^ /usr/bin/c++ -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -O2 -DNDEBUG -Wl,--dependency-file=CMakeFiles/openfodder.dir/link.d CMakeFiles/openfodder.dir/Source/About.cpp.o CMakeFiles/openfodder.dir/Source/Amiga/Graphics_Amiga.cpp.o CMakeFiles/openfodder.dir/Source/Amiga/Graphics_Amiga2.cpp.o CMakeFiles/openfodder.dir/Source/Amiga/IntroData_Amiga.cpp.o CMakeFiles/openfodder.dir/Source/Amiga/Resource_Amiga_File.cpp.o CMakeFiles/openfodder.dir/Source/Amiga/Sound_Amiga.cpp.o CMakeFiles/openfodder.dir/Source/Amiga/dernc.cpp.o CMakeFiles/openfodder.dir/Source/Amiga/paula.cpp.o CMakeFiles/openfodder.dir/Source/Amiga/rjp1.cpp.o CMakeFiles/openfodder.dir/Source/Campaign.cpp.o CMakeFiles/openfodder.dir/Source/CopyProtection.cpp.o CMakeFiles/openfodder.dir/Source/Debugger.cpp.o CMakeFiles/openfodder.dir/Source/Event.cpp.o CMakeFiles/openfodder.dir/Source/Fodder.cpp.o CMakeFiles/openfodder.dir/Source/FontData.cpp.o CMakeFiles/openfodder.dir/Source/GUI_Element.cpp.o CMakeFiles/openfodder.dir/Source/GameData.cpp.o CMakeFiles/openfodder.dir/Source/Graphics.cpp.o CMakeFiles/openfodder.dir/Source/Map/Map.cpp.o CMakeFiles/openfodder.dir/Source/Map/Original.cpp.o CMakeFiles/openfodder.dir/Source/Map/Random.cpp.o CMakeFiles/openfodder.dir/Source/MapData.cpp.o CMakeFiles/openfodder.dir/Source/PC/Graphics_PC.cpp.o CMakeFiles/openfodder.dir/Source/PC/IntroData_PC.cpp.o CMakeFiles/openfodder.dir/Source/PC/Resource_PC_CD.cpp.o CMakeFiles/openfodder.dir/Source/PC/Sound_PC.cpp.o CMakeFiles/openfodder.dir/Source/PC/Sound_PC2.cpp.o CMakeFiles/openfodder.dir/Source/Parameters.cpp.o CMakeFiles/openfodder.dir/Source/Recruits.cpp.o CMakeFiles/openfodder.dir/Source/ResourceMan.cpp.o CMakeFiles/openfodder.dir/Source/Resources.cpp.o CMakeFiles/openfodder.dir/Source/ScriptingEngine.cpp.o CMakeFiles/openfodder.dir/Source/Sound.cpp.o CMakeFiles/openfodder.dir/Source/SpriteSheet.cpp.o CMakeFiles/openfodder.dir/Source/Sprites.cpp.o CMakeFiles/openfodder.dir/Source/Start.cpp.o CMakeFiles/openfodder.dir/Source/Start_Emscripten.cpp.o CMakeFiles/openfodder.dir/Source/Structures/Barracks.cpp.o CMakeFiles/openfodder.dir/Source/Surface.cpp.o CMakeFiles/openfodder.dir/Source/Tiles.cpp.o CMakeFiles/openfodder.dir/Source/UnitTesting.cpp.o CMakeFiles/openfodder.dir/Source/Utils/SimplexIslands.cpp.o CMakeFiles/openfodder.dir/Source/Utils/SimplexNoise.cpp.o CMakeFiles/openfodder.dir/Source/Utils/duk_trans_socket_windows.cpp.o CMakeFiles/openfodder.dir/Source/Utils/duktape.cpp.o CMakeFiles/openfodder.dir/Source/Utils/md5.cpp.o CMakeFiles/openfodder.dir/Source/Utils/micropather.cpp.o CMakeFiles/openfodder.dir/Source/Versions.cpp.o CMakeFiles/openfodder.dir/Source/Window.cpp.o CMakeFiles/openfodder.dir/Source/stdafx.cpp.o -o openfodder /usr/lib64/libSDL2.so /usr/lib64/libSDL2_mixer.so gmake[2]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake[1]: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' [100%] Built target openfodder gmake[1]: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' gmake: Entering directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' /usr/bin/cmake -E cmake_progress_start /usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux/CMakeFiles 0 gmake: Leaving directory '/usr/src/RPM/BUILD/openfodder-1.8.0/x86_64-alt-linux' + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.55725 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/openfodder-buildroot + : + /bin/rm -rf -- /usr/src/tmp/openfodder-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games + cd openfodder-1.8.0 + mkdir -p /usr/src/tmp/openfodder-buildroot/usr/share/openfodder + install -D -m0755 ./x86_64-alt-linux/openfodder /usr/src/tmp/openfodder-buildroot/usr/lib/openfodder/openfodder + install -D -m0755 /usr/src/RPM/SOURCES/openfodder.sh /usr/src/tmp/openfodder-buildroot/usr/bin/openfodder + cp -r Run/Campaigns Run/Data Run/README.md Run/Saves Run/Scripts Run/about.bmp /usr/src/tmp/openfodder-buildroot/usr/share/openfodder/ + install -D -m0755 FreeDesktop/openfodder.desktop /usr/src/tmp/openfodder-buildroot/usr/share/applications/openfodder.desktop + install -D -m0755 FreeDesktop/openfodder.png /usr/src/tmp/openfodder-buildroot/usr/share/icons/hicolor/128x128/apps/openfodder.png + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/openfodder-buildroot (auto) Verifying and fixing files in /usr/src/tmp/openfodder-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/openfodder-buildroot/ (default) Compressing files in /usr/src/tmp/openfodder-buildroot (auto) Adjusting library links in /usr/src/tmp/openfodder-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/openfodder-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Splitting links to aliased files under /{,s}bin in /usr/src/tmp/openfodder-buildroot Processing files: openfodder-1.8.0-alt1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.71743 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd openfodder-1.8.0 + DOCDIR=/usr/src/tmp/openfodder-buildroot/usr/share/doc/openfodder-1.8.0 + export DOCDIR + rm -rf /usr/src/tmp/openfodder-buildroot/usr/share/doc/openfodder-1.8.0 + /bin/mkdir -p /usr/src/tmp/openfodder-buildroot/usr/share/doc/openfodder-1.8.0 + cp -prL README.md COPYING /usr/src/tmp/openfodder-buildroot/usr/share/doc/openfodder-1.8.0 + chmod -R go-w /usr/src/tmp/openfodder-buildroot/usr/share/doc/openfodder-1.8.0 + chmod -R a+rX /usr/src/tmp/openfodder-buildroot/usr/share/doc/openfodder-1.8.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.ft27Td find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.KrFL3G find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) find-requires: FINDPACKAGE-COMMANDS: cp Requires: /bin/sh, /lib64/ld-linux-x86-64.so.2, coreutils, libSDL2-2.0.so.0()(64bit) >= set:nhT6Y7jkZuPXmtUEufIcGLMpwvWHzGgECVcl3IsCfAM2UvXNwjVn92N9XGpIEv6OnoC5VDtQpeEWqCsyTNqtO2uMoBImQvDLkcGkW6TdWPFaIJA3NM4Da7wQKF6iaMNdZq4SnEZ8zqb3, libSDL2_mixer-2.0.so.0()(64bit) >= set:kgglrv7SKhZhcr3uLMdix5l5KrI4Zrak8S0, libc.so.6(GLIBC_2.11)(64bit), libc.so.6(GLIBC_2.14)(64bit), libc.so.6(GLIBC_2.2.5)(64bit), libc.so.6(GLIBC_2.3.4)(64bit), libc.so.6(GLIBC_2.32)(64bit), libc.so.6(GLIBC_2.33)(64bit), libc.so.6(GLIBC_2.34)(64bit), libc.so.6(GLIBC_2.38)(64bit), libc.so.6(GLIBC_2.4)(64bit), libgcc_s.so.1(GCC_3.0)(64bit), libgcc_s.so.1(GCC_3.3.1)(64bit), libm.so.6(GLIBC_2.2.5)(64bit), libm.so.6(GLIBC_2.29)(64bit), libm.so.6(GLIBC_2.38)(64bit), libstdc++.so.6(CXXABI_1.3)(64bit), libstdc++.so.6(CXXABI_1.3.5)(64bit), libstdc++.so.6(CXXABI_1.3.9)(64bit), libstdc++.so.6(GLIBCXX_3.4)(64bit), libstdc++.so.6(GLIBCXX_3.4.11)(64bit), libstdc++.so.6(GLIBCXX_3.4.14)(64bit), libstdc++.so.6(GLIBCXX_3.4.15)(64bit), libstdc++.so.6(GLIBCXX_3.4.18)(64bit), libstdc++.so.6(GLIBCXX_3.4.19)(64bit), libstdc++.so.6(GLIBCXX_3.4.20)(64bit), libstdc++.so.6(GLIBCXX_3.4.21)(64bit), libstdc++.so.6(GLIBCXX_3.4.26)(64bit), libstdc++.so.6(GLIBCXX_3.4.29)(64bit), libstdc++.so.6(GLIBCXX_3.4.32)(64bit), libstdc++.so.6(GLIBCXX_3.4.9)(64bit), 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.kURMFu Creating openfodder-debuginfo package Processing files: openfodder-data-1.8.0-alt1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.UG4Zvx find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.y8m5So find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) Requires: openfodder = 1.8.0 Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.W1hMen Processing files: openfodder-debuginfo-1.8.0-alt1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.FquDEj find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.un2IG9 find-requires: running scripts (debuginfo) Requires: openfodder = 1.8.0-alt1, /usr/lib/debug/lib64/ld-linux-x86-64.so.2.debug, debug64(libSDL2-2.0.so.0), debug64(libSDL2_mixer-2.0.so.0), debug64(libc.so.6), debug64(libgcc_s.so.1), debug64(libm.so.6), debug64(libstdc++.so.6) Adding to openfodder-debuginfo a strict dependency on openfodder Adding to openfodder-data a strict dependency on openfodder Wrote: /usr/src/RPM/RPMS/x86_64/openfodder-1.8.0-alt1.x86_64.rpm (w2.lzdio) Wrote: /usr/src/RPM/RPMS/x86_64/openfodder-data-1.8.0-alt1.x86_64.rpm (w2T16.xzdio) Wrote: /usr/src/RPM/RPMS/x86_64/openfodder-debuginfo-1.8.0-alt1.x86_64.rpm (w2T16.xzdio) 147.16user 19.30system 0:26.60elapsed 625%CPU (0avgtext+0avgdata 555776maxresident)k 0inputs+0outputs (0major+3983375minor)pagefaults 0swaps 3.61user 2.88system 0:43.13elapsed 15%CPU (0avgtext+0avgdata 137356maxresident)k 0inputs+0outputs (0major+237389minor)pagefaults 0swaps --- openfodder-1.8.0-alt1.x86_64.rpm.repo 2024-01-30 14:41:44.000000000 +0000 +++ openfodder-1.8.0-alt1.x86_64.rpm.hasher 2024-12-19 04:11:36.276194350 +0000 @@ -48,3 +48,3 @@ File: /usr/lib/openfodder 40755 root:root -File: /usr/lib/openfodder/openfodder 100755 root:root 53fca4d46ba463330b89a82f0e2b0df7 +File: /usr/lib/openfodder/openfodder 100755 root:root 63f983e4a90b455a3af4da3079a3e57a File: /usr/share/applications/openfodder.desktop 100755 root:root b338550adb4adbdbfba04d5b9001977a @@ -54,2 +54,2 @@ File: /usr/share/icons/hicolor/128x128/apps/openfodder.png 100755 root:root 035add43897de8bcade6b30f4baf8c61 -RPMIdentity: c062de52c577d6762cb0bbf012eb6f6f05cba47fbaeba1144c8924d705824470f9978d2f1cf3e04559f18ab239c0dcbcceaa0f6b088a4d916b30e6be54cd554d +RPMIdentity: 9a4096d3455173931c6e5fad7e4b201d6d970a1e1346bd49cea14bf682f665e59d40e3057967100816abfd0d56242db4353fb51d0b503f125424a930fe49ae18 --- openfodder-debuginfo-1.8.0-alt1.x86_64.rpm.repo 2024-01-30 14:41:44.000000000 +0000 +++ openfodder-debuginfo-1.8.0-alt1.x86_64.rpm.hasher 2024-12-19 04:11:36.501198286 +0000 @@ -1,4 +1,4 @@ -/usr/lib/debug/.build-id/75 40755 root:root -/usr/lib/debug/.build-id/75/79e958f7c9e2fbbca3eb9749d75406c2511825 120777 root:root ../../../openfodder/openfodder -/usr/lib/debug/.build-id/75/79e958f7c9e2fbbca3eb9749d75406c2511825.debug 120777 root:root ../../usr/lib/openfodder/openfodder.debug +/usr/lib/debug/.build-id/c6 40755 root:root +/usr/lib/debug/.build-id/c6/a4b4e553b97f5adedbc9f9e3cbada8c004a0cb 120777 root:root ../../../openfodder/openfodder +/usr/lib/debug/.build-id/c6/a4b4e553b97f5adedbc9f9e3cbada8c004a0cb.debug 120777 root:root ../../usr/lib/openfodder/openfodder.debug /usr/lib/debug/usr/lib/openfodder 40755 root:root @@ -152,7 +152,7 @@ Provides: openfodder-debuginfo = 1.8.0-alt1:sisyphus+339405.100.1.1 -File: /usr/lib/debug/.build-id/75 40755 root:root -File: /usr/lib/debug/.build-id/75/79e958f7c9e2fbbca3eb9749d75406c2511825 120777 root:root ../../../openfodder/openfodder -File: /usr/lib/debug/.build-id/75/79e958f7c9e2fbbca3eb9749d75406c2511825.debug 120777 root:root ../../usr/lib/openfodder/openfodder.debug +File: /usr/lib/debug/.build-id/c6 40755 root:root +File: /usr/lib/debug/.build-id/c6/a4b4e553b97f5adedbc9f9e3cbada8c004a0cb 120777 root:root ../../../openfodder/openfodder +File: /usr/lib/debug/.build-id/c6/a4b4e553b97f5adedbc9f9e3cbada8c004a0cb.debug 120777 root:root ../../usr/lib/openfodder/openfodder.debug File: /usr/lib/debug/usr/lib/openfodder 40755 root:root -File: /usr/lib/debug/usr/lib/openfodder/openfodder.debug 100644 root:root ed84fd0d2248e734c39c6a771c208ad0 +File: /usr/lib/debug/usr/lib/openfodder/openfodder.debug 100644 root:root 93dbaa28b21b95e6829cf7947caadf88 File: /usr/src/debug/openfodder-1.8.0 40755 root:root @@ -294,2 +294,2 @@ File: /usr/src/debug/openfodder-1.8.0/x86_64-alt-linux/Source/gitver.hpp 100644 root:root 43266cb12fb288905472141e68be43e3 -RPMIdentity: d00adb1724b0c651b7b5e3bef239ccb4b1e20ee040698a87fc8bfde2f79b66c3fa41c092b424bea6da7d2d86fe5ef05fa97d084af0cab5a6d3430de13849698f +RPMIdentity: 8baaec71bc1e5fe79c6c5edd7c47995f2493333cc88003651ab98c1551b2006642ce2e75ccf45b74ccf2d23a421561c6b263a29a2a6c6a94cb24f86dd6d31a64