<86>Apr 27 10:53:59 userdel[3896113]: delete user 'rooter' <86>Apr 27 10:53:59 userdel[3896113]: removed group 'rooter' owned by 'rooter' <86>Apr 27 10:53:59 userdel[3896113]: removed shadow group 'rooter' owned by 'rooter' <86>Apr 27 10:53:59 groupadd[3896144]: group added to /etc/group: name=rooter, GID=1796 <86>Apr 27 10:53:59 groupadd[3896144]: group added to /etc/gshadow: name=rooter <86>Apr 27 10:53:59 groupadd[3896144]: new group: name=rooter, GID=1796 <86>Apr 27 10:53:59 useradd[3896161]: new user: name=rooter, UID=1796, GID=1796, home=/root, shell=/bin/bash, from=none <86>Apr 27 10:53:59 userdel[3896201]: delete user 'builder' <86>Apr 27 10:53:59 userdel[3896201]: removed group 'builder' owned by 'builder' <86>Apr 27 10:53:59 userdel[3896201]: removed shadow group 'builder' owned by 'builder' <86>Apr 27 10:53:59 groupadd[3896235]: group added to /etc/group: name=builder, GID=1797 <86>Apr 27 10:53:59 groupadd[3896235]: group added to /etc/gshadow: name=builder <86>Apr 27 10:53:59 groupadd[3896235]: new group: name=builder, GID=1797 <86>Apr 27 10:53:59 useradd[3896258]: new user: name=builder, UID=1797, GID=1797, home=/usr/src, shell=/bin/bash, from=none /usr/src/in/srpm/scourge-0.21.1-alt7.svn3264.src.rpm: license not found in '/usr/share/license' directory: GPL2 <13>Apr 27 10:54:14 rpmi: xorg-proto-devel-2024.1-alt1 sisyphus+343583.40.1.1 1711440649 installed <13>Apr 27 10:54:14 rpmi: libglvnd-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424894 installed <13>Apr 27 10:54:14 rpmi: libpng16-1.6.42-alt2 sisyphus+339555.100.1.1 1706781690 installed <13>Apr 27 10:54:14 rpmi: libexpat-2.5.0-alt1 sisyphus+309227.100.1.1 1667075766 installed <13>Apr 27 10:54:14 rpmi: libogg-1.3.5-alt1 sisyphus+278100.3400.1.1 1626059695 installed <13>Apr 27 10:54:14 rpmi: libflac12-1.4.3-alt2 sisyphus+343354.100.1.1 1711119065 installed <13>Apr 27 10:54:14 rpmi: libvorbis-1.3.7-alt1 sisyphus+275738.100.1.1 1624751609 installed <13>Apr 27 10:54:14 rpmi: libjpeg-2:3.0.2-alt2.1 sisyphus+340135.100.1.1 1707449053 installed <13>Apr 27 10:54:14 rpmi: libmpg123-1:1.32.6-alt1 sisyphus+344452.200.2.1 1712305496 installed <13>Apr 27 10:54:14 rpmi: libwayland-server-1.22.0-alt1.1 sisyphus+318010.100.1.1 1680606300 installed <13>Apr 27 10:54:15 rpmi: libicu74-1:7.4.2-alt1 sisyphus+336372.200.1.1 1702422879 installed <13>Apr 27 10:54:15 rpmi: libgraphite2-1.3.14-alt2.1 sisyphus+279571.100.1.2 1626605157 installed <13>Apr 27 10:54:15 rpmi: zlib-devel-1.3.1-alt1 sisyphus+342532.100.1.1 1710232285 installed <13>Apr 27 10:54:15 rpmi: libXau-1.0.11-alt1 sisyphus+311428.100.1.1 1670577440 installed <13>Apr 27 10:54:15 rpmi: xml-utils-1:2.12.5-alt1 sisyphus+342268.100.2.1 1710156418 installed <13>Apr 27 10:54:15 rpmi: rpm-build-gir-0.7.3-alt3.1 sisyphus+319393.100.1.1 1682538783 installed <13>Apr 27 10:54:15 rpmi: libXau-devel-1.0.11-alt1 sisyphus+311428.100.1.1 1670577440 installed <13>Apr 27 10:54:15 rpmi: libpng-devel-1.6.42-alt2 sisyphus+339555.100.1.1 1706781690 installed <13>Apr 27 10:54:15 rpmi: libgraphite2-devel-1.3.14-alt2.1 sisyphus+279571.100.1.2 1626605157 installed <13>Apr 27 10:54:15 rpmi: icu-utils-1:7.4.2-alt1 sisyphus+336372.200.1.1 1702422879 installed <13>Apr 27 10:54:15 rpmi: libicu-devel-1:7.4.2-alt1 sisyphus+336372.200.1.1 1702422879 installed <13>Apr 27 10:54:15 rpmi: libOpenGL-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424894 installed <13>Apr 27 10:54:15 rpmi: libGLES-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424894 installed <13>Apr 27 10:54:15 rpmi: libmad-0.15.1b-alt9 sisyphus+278239.100.1.1 1626080113 installed <13>Apr 27 10:54:15 rpmi: timidity-instruments-1:1.0-alt1 sisyphus+276870.100.1.1 1625246545 installed <13>Apr 27 10:54:15 rpmi: libwebp7-1.4.0-alt1 sisyphus+345159.200.1.1 1713168690 installed <13>Apr 27 10:54:15 rpmi: libdeflate-1.20-alt1 sisyphus+343488.100.1.1 1711323986 installed <13>Apr 27 10:54:15 rpmi: libtiff5-4.4.0-alt4 sisyphus+322581.100.1.2 1686180093 installed <13>Apr 27 10:54:15 rpmi: libopus-1.5.1-alt1 sisyphus+342127.200.2.2 1709717984 installed <13>Apr 27 10:54:15 rpmi: liblame-3.100-alt1 sisyphus+276241.100.1.2 1624925655 installed <13>Apr 27 10:54:15 rpmi: libgsm-1.0.17-alt1 sisyphus+275359.100.2.1 1624907612 installed <13>Apr 27 10:54:16 rpmi: libsndfile-1.1.0-alt1 sisyphus+339776.7300.6.2 1707349197 installed <13>Apr 27 10:54:16 rpmi: liblz4-1:1.9.4-alt1 sisyphus+309416.100.1.1 1667413000 installed <13>Apr 27 10:54:16 rpmi: libsystemd-1:254.10-alt2 sisyphus+345302.400.3.1 1713818601 installed <13>Apr 27 10:54:16 rpmi: libdbus-1.14.10-alt1 sisyphus+327286.5700.14.1 1711487513 installed <13>Apr 27 10:54:16 rpmi: libasyncns-0.8-alt2.qa1 sisyphus+275091.100.1.1 1624402242 installed <13>Apr 27 10:54:16 rpmi: libxshmfence-1.3.2-alt1 sisyphus+311428.400.1.1 1670577529 installed <13>Apr 27 10:54:16 rpmi: libwayland-client-1.22.0-alt1.1 sisyphus+318010.100.1.1 1680606300 installed <13>Apr 27 10:54:16 rpmi: libpciaccess-1:0.18.1-alt1 sisyphus+343583.300.1.1 1711440792 installed <13>Apr 27 10:54:16 rpmi: libdrm-1:2.4.120-alt1 sisyphus+338137.100.1.2 1705653180 installed <13>Apr 27 10:54:16 rpmi: gcc-c++-common-1.4.27-alt1 sisyphus+278099.1300.1.1 1626028636 installed <13>Apr 27 10:54:16 rpmi: libstdc++13-devel-13.2.1-alt3 sisyphus+339335.100.1.1 1706563095 installed <13>Apr 27 10:54:17 rpmi: gcc13-c++-13.2.1-alt3 sisyphus+339335.100.1.1 1706563095 installed <13>Apr 27 10:54:17 rpmi: libpixman-3:0.43.4-alt2 sisyphus+344164.100.1.1 1711987947 installed <13>Apr 27 10:54:17 rpmi: libbrotlicommon-1.1.0-alt1 sisyphus+328501.100.1.1 1693598420 installed <13>Apr 27 10:54:17 rpmi: libbrotlidec-1.1.0-alt1 sisyphus+328501.100.1.1 1693598420 installed <13>Apr 27 10:54:17 rpmi: libharfbuzz-8.4.0-alt1 sisyphus+344161.100.1.1 1711987969 installed <13>Apr 27 10:54:17 rpmi: libfreetype-2.13.2-alt1 sisyphus+328677.100.1.1 1693834346 installed <13>Apr 27 10:54:17 rpmi: libfontconfig1-2.14.2-alt8 sisyphus+328444.100.1.1 1693553407 installed <13>Apr 27 10:54:17 rpmi: fontconfig-2.14.2-alt8 sisyphus+328444.100.1.1 1693553407 installed Updating fonts cache: <29>Apr 27 10:54:18 fontconfig: Updating fonts cache: succeeded [ DONE ] <13>Apr 27 10:54:18 rpmi: libharfbuzz-icu-8.4.0-alt1 sisyphus+344161.100.1.1 1711987969 installed <13>Apr 27 10:54:18 rpmi: libharfbuzz-gobject-8.4.0-alt1 sisyphus+344161.100.1.1 1711987969 installed <13>Apr 27 10:54:18 rpmi: libX11-locales-3:1.8.8-alt1 sisyphus+343583.100.1.1 1711440719 installed <13>Apr 27 10:54:18 rpmi: libXdmcp-1.1.5-alt1 sisyphus+343583.700.1.1 1711441073 installed <13>Apr 27 10:54:18 rpmi: libxcb-1.17.0-alt1 sisyphus+345308.200.1.1 1713342009 installed <13>Apr 27 10:54:18 rpmi: libX11-3:1.8.8-alt1 sisyphus+343583.100.1.1 1711440722 installed <13>Apr 27 10:54:18 rpmi: libXext-1.3.6-alt1 sisyphus+343583.1000.1.1 1711441114 installed <13>Apr 27 10:54:18 rpmi: libXrender-0.9.11-alt1 sisyphus+308841.100.1.1 1666436131 installed <13>Apr 27 10:54:18 rpmi: libcairo-1:1.18.0-alt1 sisyphus+330227.100.1.1 1695539082 installed <13>Apr 27 10:54:19 rpmi: libxcb-devel-1.17.0-alt1 sisyphus+345308.200.1.1 1713342009 installed <13>Apr 27 10:54:19 rpmi: libX11-devel-3:1.8.8-alt1 sisyphus+343583.100.1.1 1711440722 installed <13>Apr 27 10:54:19 rpmi: libpulseaudio-17.0-alt2 sisyphus+339257.100.1.1 1706519233 installed <13>Apr 27 10:54:19 rpmi: libmikmod-3.3.11.1-alt2 sisyphus+278211.100.1.1 1626077624 installed <13>Apr 27 10:54:19 rpmi: libXrender-devel-0.9.11-alt1 sisyphus+308841.100.1.1 1666436131 installed <13>Apr 27 10:54:20 rpmi: libXext-devel-1.3.6-alt1 sisyphus+343583.1000.1.1 1711441114 installed <13>Apr 27 10:54:20 rpmi: libharfbuzz-cairo-8.4.0-alt1 sisyphus+344161.100.1.1 1711987969 installed <13>Apr 27 10:54:20 rpmi: libXrandr-1.5.4-alt1 sisyphus+330992.100.1.1 1696485401 installed <13>Apr 27 10:54:20 rpmi: libXxf86vm-1.1.5-alt1 sisyphus+308663.1400.1.1 1666168534 installed <13>Apr 27 10:54:20 rpmi: libXfixes-6.0.1-alt1 sisyphus+331490.300.1.1 1697023235 installed <13>Apr 27 10:54:20 rpmi: libGLX-mesa-4:24.0.6-alt1 sisyphus+345881.100.1.1 1714144957 installed <13>Apr 27 10:54:20 rpmi: libGLX-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424894 installed <13>Apr 27 10:54:20 rpmi: libGL-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424894 installed <13>Apr 27 10:54:20 rpmi: libGLU-4:9.0.1-alt1 sisyphus+278350.100.1.2 1626174378 installed <13>Apr 27 10:54:20 rpmi: libgbm-4:24.0.6-alt1 sisyphus+345881.100.1.1 1714144957 installed <13>Apr 27 10:54:20 rpmi: libEGL-mesa-4:24.0.6-alt1 sisyphus+345881.100.1.1 1714144957 installed <13>Apr 27 10:54:20 rpmi: libEGL-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424894 installed <13>Apr 27 10:54:20 rpmi: libglvnd-devel-7:1.7.0-alt1 sisyphus+330949.100.1.1 1696424894 installed <13>Apr 27 10:54:20 rpmi: libGLU-devel-4:9.0.1-alt1 sisyphus+278350.100.1.2 1626174378 installed <13>Apr 27 10:54:20 rpmi: desktop-file-utils-0.26-alt6 sisyphus+331944.100.1.3 1697550035 installed <13>Apr 27 10:54:20 rpmi: shared-mime-info-2.4-alt1 sisyphus+334259.100.1.1 1699787317 installed <13>Apr 27 10:54:20 rpmi: gsettings-desktop-schemas-data-46.0-alt1 sisyphus+343025.100.4.2 1710847127 installed <13>Apr 27 10:54:20 rpmi: libgio-2.80.0-alt2.1 sisyphus+343856.100.1.1 1711642825 installed <13>Apr 27 10:54:20 rpmi: gsettings-desktop-schemas-46.0-alt1 sisyphus+343025.100.4.2 1710847126 installed <13>Apr 27 10:54:20 rpmi: libmpdec3-2.5.1-alt3 sisyphus+314490.500.5.1 1675432033 installed <13>Apr 27 10:54:20 rpmi: libgdbm-1.8.3-alt10 sisyphus+278100.1600.1.1 1626059138 installed <13>Apr 27 10:54:20 rpmi: libb2-0.98.1-alt1_1 sisyphus+291614.100.1.1 1638962878 installed <13>Apr 27 10:54:20 rpmi: libp11-kit-1:0.25.3-alt2 sisyphus+336533.100.1.1 1702645575 installed <13>Apr 27 10:54:20 rpmi: libtasn1-4.19.0-alt3 sisyphus+327816.100.1.1 1692802618 installed <13>Apr 27 10:54:20 rpmi: rpm-macros-alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Apr 27 10:54:20 rpmi: alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Apr 27 10:54:20 rpmi: ca-certificates-2024.02.24-alt1 sisyphus+341362.100.1.1 1708791001 installed <13>Apr 27 10:54:20 rpmi: ca-trust-0.2.0-alt1 sisyphus+344843.100.1.1 1712743326 installed <13>Apr 27 10:54:20 rpmi: p11-kit-trust-1:0.25.3-alt2 sisyphus+336533.100.1.1 1702645575 installed <13>Apr 27 10:54:20 rpmi: libcrypto3-3.1.5-alt2 sisyphus+343320.140.3.1 1711982452 installed <13>Apr 27 10:54:20 rpmi: libssl3-3.1.5-alt2 sisyphus+343320.140.3.1 1711982452 installed <13>Apr 27 10:54:20 rpmi: python3-3.12.2-alt1 sisyphus+341702.200.1.1 1709232959 installed <13>Apr 27 10:54:21 rpmi: python3-base-3.12.2-alt1 sisyphus+341702.200.1.1 1709232959 installed <13>Apr 27 10:54:21 rpmi: python3-module-packaging-24.0-alt1 sisyphus+342487.100.2.1 1710407438 installed <13>Apr 27 10:54:21 rpmi: glib2-devel-2.80.0-alt2.1 sisyphus+343856.100.1.1 1711642825 installed <13>Apr 27 10:54:21 rpmi: libcairo-devel-1:1.18.0-alt1 sisyphus+330227.100.1.1 1695539082 installed <13>Apr 27 10:54:21 rpmi: fontconfig-devel-2.14.2-alt8 sisyphus+328444.100.1.1 1693553407 installed <13>Apr 27 10:54:21 rpmi: libfreetype-devel-2.13.2-alt1 sisyphus+328677.100.1.1 1693834346 installed <13>Apr 27 10:54:21 rpmi: libharfbuzz-devel-8.4.0-alt1 sisyphus+344161.100.1.1 1711987969 installed <13>Apr 27 10:54:21 rpmi: alsa-ucm-conf-1.2.10-alt2 sisyphus+337619.100.1.1 1704220124 installed <13>Apr 27 10:54:21 rpmi: alsa-topology-conf-1.2.5.1-alt1 sisyphus+274777.100.1.1 1624089141 installed <13>Apr 27 10:54:21 rpmi: libalsa-1:1.2.10-alt2 sisyphus+337619.200.1.1 1704220189 installed <13>Apr 27 10:54:21 rpmi: libSDL-1.2.14-alt10 sisyphus+284852.100.1.1 1631107844 installed <13>Apr 27 10:54:21 rpmi: libSDL-devel-1.2.14-alt10 sisyphus+284852.100.1.1 1631107844 installed <13>Apr 27 10:54:21 rpmi: libSDL_image-1.2.12-alt3.gitd0ea78d sisyphus+278696.40.4.1 1626250397 installed <13>Apr 27 10:54:21 rpmi: libSDL_mixer-1.2.12-alt2.git40a7e1a sisyphus+339776.1500.6.2 1707343772 installed <13>Apr 27 10:54:21 rpmi: libSDL_net-1.2.8-alt3.git9a629d6 sisyphus+284017.100.1.1 1630068460 installed <13>Apr 27 10:54:21 rpmi: libSDL_ttf-2.0.11-alt1.git1ed61fe sisyphus+278696.400.4.1 1626250543 installed <13>Apr 27 10:54:21 rpmi: libSDL_ttf-devel-2.0.11-alt1.git1ed61fe sisyphus+278696.400.4.1 1626250543 installed <13>Apr 27 10:54:21 rpmi: libSDL_net-devel-1.2.8-alt3.git9a629d6 sisyphus+284017.100.1.1 1630068460 installed <13>Apr 27 10:54:21 rpmi: libSDL_mixer-devel-1.2.12-alt2.git40a7e1a sisyphus+339776.1500.6.2 1707343772 installed <13>Apr 27 10:54:21 rpmi: libSDL_image-devel-1.2.12-alt3.gitd0ea78d sisyphus+278696.40.4.1 1626250397 installed <13>Apr 27 10:54:21 rpmi: libGL-devel-4:24.0.6-alt1 sisyphus+345881.100.1.1 1714144957 installed <13>Apr 27 10:54:21 rpmi: gcc-c++-13-alt1 sisyphus+323337.300.1.1 1687268227 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/scourge-0.21.1-alt7.svn3264.nosrc.rpm (w1.gzdio) Installing scourge-0.21.1-alt7.svn3264.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.37173 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + tar xf /usr/src/RPM/SOURCES/scourge-0.21.1.data.tar + cd /usr/src/RPM/BUILD + rm -rf scourge + echo 'Source #0 (scourge-0.21.1.src.tar):' Source #0 (scourge-0.21.1.src.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/scourge-0.21.1.src.tar + cd scourge + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #1 (scourge-0.21.1-alt-build.patch):' Patch #1 (scourge-0.21.1-alt-build.patch): + /usr/bin/patch -p2 patching file src/equip.cpp patching file src/render/map.cpp patching file src/squirrel/sqstate.h patching file src/squirrel/squtils.h + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.37173 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd scourge + autoreconf -fisv autoreconf-default: export WARNINGS= autoreconf-default: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf-default: Entering directory '.' autoreconf-default: configure.in: not using Gettext autoreconf-default: running: aclocal --force -I m4 aclocal-default: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf-default: configure.in: tracing configure.in: warning: AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_VERSION or AM_GNU_GETTEXT_REQUIRE_VERSION autoreconf-default: configure.in: not using Libtool autoreconf-default: configure.in: not using Intltool autoreconf-default: configure.in: not using Gtkdoc autoreconf-default: running: /usr/bin/autoconf-2.71 --force configure.in:6: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:429: AM_INIT_AUTOMAKE is expanded from... configure.in:6: the top level configure.in:7: warning: 'AM_CONFIG_HEADER': this macro is obsolete. configure.in:7: You should use the 'AC_CONFIG_HEADERS' macro instead. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:777: AM_CONFIG_HEADER is expanded from... configure.in:7: the top level configure.in:10: warning: The macro `AC_GNU_SOURCE' is obsolete. configure.in:10: You should run autoupdate. ./lib/autoconf/specific.m4:298: AC_GNU_SOURCE is expanded from... configure.in:10: the top level configure.in:11: warning: AM_PROG_MKDIR_P: this macro is deprecated, and will soon be removed. configure.in:11: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead, configure.in:11: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:744: AM_PROG_MKDIR_P is expanded from... m4/po.m4:23: AM_PO_SUBDIRS is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... m4/visibility.m4:23: gl_VISIBILITY is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/stdint_h.m4:12: gl_AC_HEADER_STDINT_H is expanded from... m4/gettext.m4:491: gt_INTL_SUBDIR_CORE is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_RUN' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/intdiv0.m4:9: gt_INTDIV0 is expanded from... m4/gettext.m4:491: gt_INTL_SUBDIR_CORE is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/inttypes_h.m4:12: gl_AC_HEADER_INTTYPES_H is expanded from... m4/uintmax_t.m4:14: gl_AC_TYPE_UINTMAX_T is expanded from... m4/gettext.m4:491: gt_INTL_SUBDIR_CORE is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_LINK' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/ulonglong.m4:11: gl_AC_TYPE_UNSIGNED_LONG_LONG is expanded from... m4/uintmax_t.m4:14: gl_AC_TYPE_UINTMAX_T is expanded from... m4/gettext.m4:491: gt_INTL_SUBDIR_CORE is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/inttypes-h.m4:12: gl_HEADER_INTTYPES_H is expanded from... m4/gettext.m4:491: gt_INTL_SUBDIR_CORE is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/inttypes-pri.m4:12: gt_INTTYPES_PRI is expanded from... m4/gettext.m4:491: gt_INTL_SUBDIR_CORE is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_HELP_STRING' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... m4/lock.m4:29: gl_LOCK_BODY is expanded from... m4/lock.m4:22: gl_LOCK is expanded from... m4/gettext.m4:491: gt_INTL_SUBDIR_CORE is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_LINK' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... m4/lock.m4:29: gl_LOCK_BODY is expanded from... m4/lock.m4:22: gl_LOCK is expanded from... m4/gettext.m4:491: gt_INTL_SUBDIR_CORE is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/lock.m4:29: gl_LOCK_BODY is expanded from... m4/lock.m4:22: gl_LOCK is expanded from... m4/gettext.m4:491: gt_INTL_SUBDIR_CORE is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_LINK' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... m4/gettext.m4:491: gt_INTL_SUBDIR_CORE is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/gettext.m4:612: gt_CHECK_DECL is expanded from... m4/gettext.m4:491: gt_INTL_SUBDIR_CORE is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_LINK' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/iconv.m4:20: AM_ICONV_LINK is expanded from... m4/iconv.m4:75: AM_ICONV is expanded from... m4/gettext.m4:491: gt_INTL_SUBDIR_CORE is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... m4/iconv.m4:75: AM_ICONV is expanded from... m4/gettext.m4:491: gt_INTL_SUBDIR_CORE is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_LINK' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/gettext.m4:491: gt_INTL_SUBDIR_CORE is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/signed.m4:9: bh_C_SIGNED is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_LINK' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/longlong.m4:11: gl_AC_TYPE_LONG_LONG is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/longdouble.m4:14: gt_TYPE_LONGDOUBLE is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/wchar_t.m4:11: gt_TYPE_WCHAR_T is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/wint_t.m4:11: gt_TYPE_WINT_T is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/intmax.m4:11: gt_TYPE_INTMAX_T is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_RUN' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/printf-posix.m4:11: gt_PRINTF_POSIX is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `_AC_COMPUTE_INT' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:3376: _AC_COMPUTE_INT is expanded from... m4/size_max.m4:9: gl_SIZE_MAX is expanded from... m4/xsize.m4:7: gl_XSIZE is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... m4/size_max.m4:9: gl_SIZE_MAX is expanded from... m4/xsize.m4:7: gl_XSIZE is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_LINK' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/gettext.m4:574: gt_INTL_MACOSX is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/gettext.m4:612: gt_CHECK_DECL is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_LINK' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/codeset.m4:9: AM_LANGINFO_CODESET is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_LINK' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/lcmessage.m4:21: gt_LC_MESSAGES is expanded from... m4/gettext.m4:353: AM_INTL_SUBDIR is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_LINK' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/gettext.m4:574: gt_INTL_MACOSX is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:11: warning: The macro `AC_TRY_LINK' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/gettext.m4:57: AM_GNU_GETTEXT is expanded from... configure.in:11: the top level configure.in:41: warning: The macro `AC_HEADER_STDC' is obsolete. configure.in:41: You should run autoupdate. ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from... configure.in:41: the top level configure.in:46: warning: The macro `AC_HEADER_TIME' is obsolete. configure.in:46: You should run autoupdate. ./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from... configure.in:46: the top level configure.in:162: warning: The macro `AC_TRY_RUN' is obsolete. configure.in:162: You should run autoupdate. ./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from... acinclude.m4:62: AM_PATH_SDL is expanded from... configure.in:162: the top level configure.in:162: warning: The macro `AC_TRY_LINK' is obsolete. configure.in:162: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... acinclude.m4:62: AM_PATH_SDL is expanded from... configure.in:162: the top level configure.in:299: warning: The macro `AC_TRY_LINK' is obsolete. configure.in:299: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... configure.in:249: CHECK_FOR_GL_LIB is expanded from... configure.in:272: FIND_GL_LIB is expanded from... configure.in:299: the top level configure.in:306: warning: The macro `AC_TRY_LINK' is obsolete. configure.in:306: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... configure.in:249: CHECK_FOR_GL_LIB is expanded from... configure.in:272: FIND_GL_LIB is expanded from... configure.in:306: the top level configure.in:340: warning: The macro `AC_TRY_LINK' is obsolete. configure.in:340: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... configure.in:325: CHECK_FOR_GLU_LIB is expanded from... configure.in:340: the top level configure.in:351: warning: The macro `AC_TRY_LINK' is obsolete. configure.in:351: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... configure.in:325: CHECK_FOR_GLU_LIB is expanded from... configure.in:351: the top level configure.in:459: warning: The macro `AC_TRY_CPP' is obsolete. configure.in:459: You should run autoupdate. ./lib/autoconf/general.m4:2762: AC_TRY_CPP is expanded from... configure.in:451: CHECK_FOR_GL_H is expanded from... configure.in:459: the top level configure.in:466: warning: The macro `AC_TRY_CPP' is obsolete. configure.in:466: You should run autoupdate. ./lib/autoconf/general.m4:2762: AC_TRY_CPP is expanded from... configure.in:451: CHECK_FOR_GL_H is expanded from... configure.in:466: the top level configure.in:542: warning: AC_OUTPUT should be used without arguments. configure.in:542: You should run autoupdate. configure.in:558: warning: AC_OUTPUT should be used without arguments. configure.in:558: You should run autoupdate. autoreconf-default: running: /usr/bin/autoheader-2.71 --force autoheader-2.71: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf-default: running: automake --add-missing --force-missing automake-default: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:6: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: configure.in:6: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation configure.in:11: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and its use is discouraged. configure.in:11: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead, configure.in:11: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files. configure.in:10: installing './compile' configure.in:11: installing './config.guess' configure.in:11: installing './config.sub' configure.in:6: installing './install-sh' configure.in:6: installing './missing' src/Makefile.am:2: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') src/Makefile.am: installing './depcomp' automake-default: warning: autoconf input should be named 'configure.ac', not 'configure.in' src/common/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') src/events/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') src/freetype/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') src/gui/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') src/io/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') src/net/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') src/render/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') src/rpg/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') src/sqbinding/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') src/sqstdlib/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') src/squirrel/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') src/test/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') src/tools/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') autoreconf-default: Leaving directory '.' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64' + export FFLAGS + FCFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64' + export FCFLAGS + '[' -n '' ']' ++ printf %s '-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64' ++ sed -r 's/(^|[[:space:]]+)-[^m][^[:space:]]*//g' + ASFLAGS=' -march=i586 -mtune=generic' + export ASFLAGS + export lt_cv_deplibs_check_method=pass_all + lt_cv_deplibs_check_method=pass_all + readlink -e -- ./configure + xargs -ri dirname -- '{}' + xargs -ri find '{}' -type f '(' -name config.sub -or -name config.guess ')' -printf '%h/\n' + sort -u + xargs -rn1 install -pm755 -- /usr/share/gnu-config/config.sub /usr/share/gnu-config/config.guess + configure_runstatedir_flags= + grep -qF runstatedir=DIR ./configure + configure_runstatedir_flags=--runstatedir=/var/run + ./configure --build=i586-alt-linux --host=i586-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --disable-silent-rules --runstatedir=/var/run --without-included-gettext --with-data-dir=/usr/share/scourge checking for a BSD-compatible install... /usr/bin/ginstall -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports the include directive... yes (GNU style) checking for i586-alt-linux-gcc... i586-alt-linux-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether i586-alt-linux-gcc accepts -g... yes checking for i586-alt-linux-gcc option to enable C11 features... none needed checking whether i586-alt-linux-gcc understands -c and -o together... yes checking dependency style of i586-alt-linux-gcc... none checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for wchar.h... yes checking for minix/config.h... no checking for sys/param.h... yes checking for sys/time.h... yes checking whether it is safe to define __EXTENSIONS__... yes checking whether _XOPEN_SOURCE should be defined... no checking whether NLS is requested... yes checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking build system type... i586-alt-linux-gnu checking host system type... i586-alt-linux-gnu checking how to run the C preprocessor... i586-alt-linux-gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking whether we are using the GNU C Library 2 or newer... yes checking for i586-alt-linux-ranlib... no checking for ranlib... ranlib checking for simple visibility declarations... yes checking for inline... inline checking for size_t... yes checking for stdint.h... yes checking for working alloca.h... yes checking for alloca... yes checking for getpagesize... yes checking for working mmap... yes checking whether integer division by zero raises SIGFPE... no checking for inttypes.h... yes checking for unsigned long long... yes checking for inttypes.h... (cached) yes checking whether the inttypes.h PRIxNN macros are broken... no checking for ld used by GCC... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for shared library run path origin... done checking whether imported symbols can be declared weak... yes checking for pthread.h... yes checking for pthread_kill in -lpthread... yes checking for pthread_rwlock_t... yes checking for multithread API to use... posix checking for argz.h... yes checking for limits.h... yes checking for unistd.h... (cached) yes checking for sys/param.h... (cached) yes checking for getcwd... yes checking for getegid... yes checking for geteuid... yes checking for getgid... yes checking for getuid... yes checking for mempcpy... yes checking for munmap... yes checking for stpcpy... yes checking for strcasecmp... yes checking for strdup... yes checking for strtoul... yes checking for tsearch... yes checking for argz_count... yes checking for argz_stringify... yes checking for argz_next... yes checking for __fsetlocking... yes checking whether feof_unlocked is declared... yes checking whether fgets_unlocked is declared... yes checking for iconv... yes checking for iconv declaration... extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); checking for NL_LOCALE_NAME macro... yes checking for bison... bison checking version of bison... 3.8.2, ok checking for signed... yes checking for long long... yes checking for long double... yes checking for wchar_t... yes checking for wint_t... yes checking for intmax_t... yes checking whether printf() supports POSIX/XSI format strings... yes checking whether we are using the GNU C Library 2.1 or newer... yes checking for stdint.h... (cached) yes checking for SIZE_MAX... yes checking for stdint.h... (cached) yes checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyCurrent... no checking for ptrdiff_t... yes checking for stddef.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for asprintf... yes checking for fwprintf... yes checking for putenv... yes checking for setenv... yes checking for setlocale... yes checking for snprintf... yes checking for wcslen... yes checking whether _snprintf is declared... no checking whether _snwprintf is declared... no checking whether getc_unlocked is declared... yes checking for nl_langinfo and CODESET... yes checking for LC_MESSAGES... yes checking for CFPreferencesCopyAppValue... (cached) no checking for CFLocaleCopyCurrent... (cached) no checking whether included gettext is requested... no checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking for i586-alt-linux-gcc... (cached) i586-alt-linux-gcc checking whether the compiler supports GNU C... (cached) yes checking whether i586-alt-linux-gcc accepts -g... (cached) yes checking for i586-alt-linux-gcc option to enable C11 features... (cached) none needed checking whether i586-alt-linux-gcc understands -c and -o together... (cached) yes checking dependency style of i586-alt-linux-gcc... (cached) none checking for i586-alt-linux-g++... i586-alt-linux-g++ checking whether the compiler supports GNU C++... yes checking whether i586-alt-linux-g++ accepts -g... yes checking for i586-alt-linux-g++ option to enable C++11 features... none needed checking dependency style of i586-alt-linux-g++... none checking for i586-alt-linux-ranlib... ranlib checking whether make sets $(MAKE)... (cached) yes checking for egrep... (cached) /usr/bin/grep -E checking for sys/time.h... (cached) yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for getcwd... (cached) yes checking for gettimeofday... yes checking for strdup... (cached) yes checking for finite... yes checking for isnan... yes checking for _finite... no checking for _isnan... no checking for ieeefp.h... no checking for /proc/self/maps... no checking whether everything is installed to the same prefix... no checking whether binary relocation support should be enabled... no checking for Win32 platform... no checking for Mac OSX platform... no checking for main in -ldl... yes checking for main in -lm... yes checking for deflate in -lz... yes checking for sdl-config... /usr/bin/sdl-config checking for SDL - version >= 1.0.1... yes checking for SDL_JoystickOpen... yes checking for Mix_OpenAudio in -lSDL_mixer... yes checking for SDLNet_Init in -lSDL_net... yes checking for TTF_Init in -lSDL_ttf... yes checking for IMG_Load in -lSDL_image... yes checking for GL library... yes checking for glXGetProcAddressARB... yes checking for GLU library... yes checking for freetype-config library... checking for freetype-config... /usr/bin/freetype-config Package bzip2 was not found in the pkg-config search path. Perhaps you should add the directory containing `bzip2.pc' to the PKG_CONFIG_PATH environment variable Package 'bzip2', required by 'freetype2', not found Package bzip2 was not found in the pkg-config search path. Perhaps you should add the directory containing `bzip2.pc' to the PKG_CONFIG_PATH environment variable Package 'bzip2', required by 'freetype2', not found checking for GL/gl.h... yes checking for GL/glx.h... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating intl/Makefile config.status: creating po/Makefile.in config.status: creating src/common/Makefile config.status: creating src/gui/Makefile config.status: creating src/test/Makefile config.status: creating src/rpg/Makefile config.status: creating src/events/Makefile config.status: creating src/freetype/Makefile config.status: creating src/net/Makefile config.status: creating src/render/Makefile config.status: creating src/io/Makefile config.status: creating src/squirrel/Makefile config.status: creating src/sqstdlib/Makefile config.status: creating src/sqbinding/Makefile config.status: creating autopackage/default.apspec config.status: creating config.h config.status: executing depfiles commands config.status: executing po-directories commands config.status: creating po/POTFILES config.status: creating po/Makefile config.status: executing translations commands ~/RPM/BUILD/scourge/po ~/RPM/BUILD/scourge make scourge.pot-update make[1]: Entering directory '/usr/src/RPM/BUILD/scourge/po' make[1]: *** No rule to make target '../src/outdoorgenerator.cpp', needed by 'scourge.pot-update'. Stop. make[1]: Leaving directory '/usr/src/RPM/BUILD/scourge/po' make: *** [Makefile:826: update-po] Error 2 ~/RPM/BUILD/scourge cp: cannot stat '/usr/src/RPM/BUILD/scourge/./po/en.gmo': No such file or directory cp: cannot stat '/usr/src/RPM/BUILD/scourge/./po/hu.gmo': No such file or directory cp: cannot stat '/usr/src/RPM/BUILD/scourge/./po/it.gmo': No such file or directory cp: cannot stat '/usr/src/RPM/BUILD/scourge/./po/fr.gmo': No such file or directory cp: cannot stat '/usr/src/RPM/BUILD/scourge/./po/pl.gmo': No such file or directory cp: cannot stat '/usr/src/RPM/BUILD/scourge/./po/pt_BR.gmo': No such file or directory cp: cannot stat '/usr/src/RPM/BUILD/scourge/./po/pt.gmo': No such file or directory cp: cannot stat '/usr/src/RPM/BUILD/scourge/./po/ru.gmo': No such file or directory cp: cannot stat '/usr/src/RPM/BUILD/scourge/./po/de.gmo': No such file or directory cp: cannot stat '/usr/src/RPM/BUILD/scourge/./po/sv.gmo': No such file or directory cp: cannot stat '/usr/src/RPM/BUILD/scourge/./po/es.gmo': No such file or directory + make make: Entering directory '/usr/src/RPM/BUILD/scourge' make all-recursive make[1]: Entering directory '/usr/src/RPM/BUILD/scourge' Making all in intl make[2]: Entering directory '/usr/src/RPM/BUILD/scourge/intl' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/usr/src/RPM/BUILD/scourge/intl' Making all in po make[2]: Entering directory '/usr/src/RPM/BUILD/scourge/po' test ! -f ./scourge.pot || \ test -z "en.gmo hu.gmo it.gmo fr.gmo pl.gmo pt_BR.gmo pt.gmo ru.gmo de.gmo sv.gmo es.gmo" || make en.gmo hu.gmo it.gmo fr.gmo pl.gmo pt_BR.gmo pt.gmo ru.gmo de.gmo sv.gmo es.gmo make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/po' rm -f en.gmo && /usr/bin/msgfmt -c --statistics -o en.gmo en.po en.po:7: warning: header field 'Language' missing in header 6 translated messages, 31 fuzzy translations, 2518 untranslated messages. rm -f hu.gmo && /usr/bin/msgfmt -c --statistics -o hu.gmo hu.po hu.po:7: warning: header field 'Language' missing in header 20 translated messages, 22 fuzzy translations, 2513 untranslated messages. rm -f it.gmo && /usr/bin/msgfmt -c --statistics -o it.gmo it.po it.po:11: warning: header field 'Language' missing in header 2649 translated messages, 157 fuzzy translations, 129 untranslated messages. rm -f fr.gmo && /usr/bin/msgfmt -c --statistics -o fr.gmo fr.po fr.po:7: warning: header field 'Language' missing in header 1178 translated messages, 4 fuzzy translations, 1373 untranslated messages. rm -f pl.gmo && /usr/bin/msgfmt -c --statistics -o pl.gmo pl.po pl.po:7: warning: header field 'Language' missing in header 820 translated messages, 43 fuzzy translations, 1692 untranslated messages. rm -f pt_BR.gmo && /usr/bin/msgfmt -c --statistics -o pt_BR.gmo pt_BR.po pt_BR.po:7: warning: header field 'Language' missing in header 1613 translated messages, 2 fuzzy translations, 940 untranslated messages. rm -f pt.gmo && /usr/bin/msgfmt -c --statistics -o pt.gmo pt.po pt.po:7: warning: header field 'Language' missing in header 289 translated messages, 9 fuzzy translations, 2257 untranslated messages. rm -f ru.gmo && /usr/bin/msgfmt -c --statistics -o ru.gmo ru.po ru.po:7: warning: header field 'Language' missing in header 16 translated messages, 2539 untranslated messages. rm -f de.gmo && /usr/bin/msgfmt -c --statistics -o de.gmo de.po de.po:11: warning: header field 'Language' missing in header 2933 translated messages. rm -f sv.gmo && /usr/bin/msgfmt -c --statistics -o sv.gmo sv.po sv.po:2: warning: header field 'Language' missing in header 2504 translated messages, 1 fuzzy translation, 50 untranslated messages. rm -f es.gmo && /usr/bin/msgfmt -c --statistics -o es.gmo es.po es.po:7: warning: header field 'Language' missing in header 2935 translated messages. make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/po' touch stamp-po make[2]: Leaving directory '/usr/src/RPM/BUILD/scourge/po' Making all in src make[2]: Entering directory '/usr/src/RPM/BUILD/scourge/src' Making all in common make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/common' i586-alt-linux-gcc -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o binreloc.o binreloc.c cc1: warning: command-line option '-std=c++14' is valid for C++/ObjC++ but not for C i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o constants.o constants.cpp In file included from constants.h:93, from constants.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from constants.cpp:19: ../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ constants.cpp:83:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 83 | N_( "Infamy awaits in the dungeons of Scourge!" ), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:83:17: note: in expansion of macro 'N_' 83 | N_( "Infamy awaits in the dungeons of Scourge!" ), | ^~ constants.cpp:84:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 84 | N_( "Another day, another sewer! Welcome to Scourge!" ), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:84:17: note: in expansion of macro 'N_' 84 | N_( "Another day, another sewer! Welcome to Scourge!" ), | ^~ constants.cpp:85:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 85 | N_( "Happy hunting; welcome to Scourge!" )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:85:17: note: in expansion of macro 'N_' 85 | N_( "Happy hunting; welcome to Scourge!" )}, | ^~ constants.cpp:86:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 86 | { N_( "That item is out of your reach" ), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:86:11: note: in expansion of macro 'N_' 86 | { N_( "That item is out of your reach" ), | ^~ constants.cpp:87:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 87 | N_( "You can't touch that" ), | ^~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:87:11: note: in expansion of macro 'N_' 87 | N_( "You can't touch that" ), | ^~ constants.cpp:88:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 88 | N_( "You have to be closer to get that" ), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:88:11: note: in expansion of macro 'N_' 88 | N_( "You have to be closer to get that" ), | ^~ constants.cpp:89:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 89 | N_( "You are too far to reach it" )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:89:11: note: in expansion of macro 'N_' 89 | N_( "You are too far to reach it" )}, | ^~ constants.cpp:90:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 90 | { N_( "The door is blocked" ), | ^~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:90:11: note: in expansion of macro 'N_' 90 | { N_( "The door is blocked" ), | ^~ constants.cpp:91:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 91 | N_( "Something is blocking that door" ), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:91:11: note: in expansion of macro 'N_' 91 | N_( "Something is blocking that door" ), | ^~ constants.cpp:92:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 92 | N_( "You can't use that door; something is in the way" )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:92:11: note: in expansion of macro 'N_' 92 | N_( "You can't use that door; something is in the way" )}, | ^~ constants.cpp:93:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 93 | { N_( "You are now in single-step mode" )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:93:11: note: in expansion of macro 'N_' 93 | { N_( "You are now in single-step mode" )}, | ^~ constants.cpp:94:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 94 | { N_( "You are now in group mode" )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:94:11: note: in expansion of macro 'N_' 94 | { N_( "You are now in group mode" )}, | ^~ constants.cpp:95:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 95 | { N_( "Paused: you have entered turn-based mode" )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:95:11: note: in expansion of macro 'N_' 95 | { N_( "Paused: you have entered turn-based mode" )}, | ^~ constants.cpp:96:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 96 | { N_( "Un-paused: you are in real-time mode" )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:96:11: note: in expansion of macro 'N_' 96 | { N_( "Un-paused: you are in real-time mode" )}, | ^~ constants.cpp:97:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 97 | { N_( "Close" )}, | ^~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:97:11: note: in expansion of macro 'N_' 97 | { N_( "Close" )}, | ^~ constants.cpp:98:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 98 | { N_( "Drop Item" )}, | ^~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:98:11: note: in expansion of macro 'N_' 98 | { N_( "Drop Item" )}, | ^~ constants.cpp:99:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 99 | { N_( "Open Item" )}, | ^~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:99:11: note: in expansion of macro 'N_' 99 | { N_( "Open Item" )}, | ^~ constants.cpp:100:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 100 | { N_( "Drag items to/from the list, Right click for info" )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:100:11: note: in expansion of macro 'N_' 100 | { N_( "Drag items to/from the list, Right click for info" )}, | ^~ constants.cpp:101:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 101 | { N_( "Play Mission" )}, | ^~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:101:11: note: in expansion of macro 'N_' 101 | { N_( "Play Mission" )}, | ^~ constants.cpp:102:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 102 | { N_( "Do you really want to exit this mission?" )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:102:11: note: in expansion of macro 'N_' 102 | { N_( "Do you really want to exit this mission?" )}, | ^~ constants.cpp:103:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 103 | { N_( "Teleport back to base?" )}, | ^~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:103:11: note: in expansion of macro 'N_' 103 | { N_( "Teleport back to base?" )}, | ^~ constants.cpp:104:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 104 | { N_( "OK" )}, | ^~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:104:11: note: in expansion of macro 'N_' 104 | { N_( "OK" )}, | ^~ constants.cpp:105:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 105 | { N_( "Cancel" )}, | ^~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:105:11: note: in expansion of macro 'N_' 105 | { N_( "Cancel" )}, | ^~ constants.cpp:106:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 106 | { N_( "Yes" )}, | ^~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:106:11: note: in expansion of macro 'N_' 106 | { N_( "Yes" )}, | ^~ constants.cpp:107:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 107 | { N_( "No" )}, | ^~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:107:11: note: in expansion of macro 'N_' 107 | { N_( "No" )}, | ^~ constants.cpp:108:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 108 | { N_( "Select a character who is alive and has leveled up." )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:108:11: note: in expansion of macro 'N_' 108 | { N_( "Select a character who is alive and has leveled up." )}, | ^~ constants.cpp:109:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 109 | { N_( "No skill points available." )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:109:11: note: in expansion of macro 'N_' 109 | { N_( "No skill points available." )}, | ^~ constants.cpp:110:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 110 | { N_( "Select a skill first." )}, | ^~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:110:11: note: in expansion of macro 'N_' 110 | { N_( "Select a skill first." )}, | ^~ constants.cpp:111:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 111 | { N_( "S.C.O.U.R.G.E. dialog" )}, | ^~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:111:11: note: in expansion of macro 'N_' 111 | { N_( "S.C.O.U.R.G.E. dialog" )}, | ^~ constants.cpp:112:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 112 | { N_( "Use gate to descend a level?" ), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:112:11: note: in expansion of macro 'N_' 112 | { N_( "Use gate to descend a level?" ), | ^~ constants.cpp:113:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 113 | N_( "Use gate to ascend a level?" )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:113:11: note: in expansion of macro 'N_' 113 | N_( "Use gate to ascend a level?" )}, | ^~ constants.cpp:114:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 114 | { N_( "A dead character cannot perform this action." )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:114:11: note: in expansion of macro 'N_' 114 | { N_( "A dead character cannot perform this action." )}, | ^~ constants.cpp:115:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 115 | { N_( "hp:" )}, | ^~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:115:11: note: in expansion of macro 'N_' 115 | { N_( "hp:" )}, | ^~ constants.cpp:116:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 116 | { N_( "ac:" )}, | ^~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:116:11: note: in expansion of macro 'N_' 116 | { N_( "ac:" )}, | ^~ constants.cpp:117:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 117 | { N_( "Your magic fizzles and dies." ), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:117:11: note: in expansion of macro 'N_' 117 | { N_( "Your magic fizzles and dies." ), | ^~ constants.cpp:118:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 118 | N_( "Only the roaches are impressed by your mumbled words." ), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:118:11: note: in expansion of macro 'N_' 118 | N_( "Only the roaches are impressed by your mumbled words." ), | ^~ constants.cpp:119:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 119 | N_( "The silence is broken only by some crickets nearby." ), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:119:11: note: in expansion of macro 'N_' 119 | N_( "The silence is broken only by some crickets nearby." ), | ^~ constants.cpp:120:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 120 | N_( "Bazzoomm! A small cloud of smoke rises to the ceiling." )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:120:11: note: in expansion of macro 'N_' 120 | N_( "Bazzoomm! A small cloud of smoke rises to the ceiling." )}, | ^~ constants.cpp:121:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 121 | { N_( "Your character cannot equip that item." )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:121:11: note: in expansion of macro 'N_' 121 | { N_( "Your character cannot equip that item." )}, | ^~ constants.cpp:122:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 122 | { N_( "Fill out the server details, first." )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:122:11: note: in expansion of macro 'N_' 122 | { N_( "Fill out the server details, first." )}, | ^~ constants.cpp:123:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 123 | { N_( "Unable to connect to server." )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:123:11: note: in expansion of macro 'N_' 123 | { N_( "Unable to connect to server." )}, | ^~ constants.cpp:124:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 124 | { N_( "You hear a very loud, metallic sound nearby." ), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:124:11: note: in expansion of macro 'N_' 124 | { N_( "You hear a very loud, metallic sound nearby." ), | ^~ constants.cpp:125:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 125 | N_( "Something clicks." ), | ^~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:125:11: note: in expansion of macro 'N_' 125 | N_( "Something clicks." ), | ^~ constants.cpp:126:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 126 | N_( "The loud twang doesn't help; this is freaky enough already." )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:126:11: note: in expansion of macro 'N_' 126 | N_( "The loud twang doesn't help; this is freaky enough already." )}, | ^~ constants.cpp:127:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 127 | { N_( "A muffled, metalic, grating noise echoes from the dark." ), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:127:11: note: in expansion of macro 'N_' 127 | { N_( "A muffled, metalic, grating noise echoes from the dark." ), | ^~ constants.cpp:128:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 128 | N_( "You've done something... you're not sure what but you hope it's had dinner." )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:128:11: note: in expansion of macro 'N_' 128 | N_( "You've done something... you're not sure what but you hope it's had dinner." )}, | ^~ constants.cpp:129:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 129 | { N_( "You feel the resonance of an almost sub-tonal bass note." ), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:129:11: note: in expansion of macro 'N_' 129 | { N_( "You feel the resonance of an almost sub-tonal bass note." ), | ^~ constants.cpp:130:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 130 | N_( "An omnious sound floats from a distant corner." )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:130:11: note: in expansion of macro 'N_' 130 | N_( "An omnious sound floats from a distant corner." )}, | ^~ constants.cpp:131:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 131 | { N_( "Suck! It is locked shut!" ), | ^~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:131:11: note: in expansion of macro 'N_' 131 | { N_( "Suck! It is locked shut!" ), | ^~ constants.cpp:132:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 132 | N_( "Try as you might, you can't open it." ), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:132:11: note: in expansion of macro 'N_' 132 | N_( "Try as you might, you can't open it." ), | ^~ constants.cpp:133:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 133 | N_( "Perhaps it's locked." )}, | ^~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:133:11: note: in expansion of macro 'N_' 133 | N_( "Perhaps it's locked." )}, | ^~ constants.cpp:134:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 134 | { N_( "This teleporter is off-line." ), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:134:11: note: in expansion of macro 'N_' 134 | { N_( "This teleporter is off-line." ), | ^~ constants.cpp:135:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 135 | N_( "Nothing happens." ), | ^~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:135:11: note: in expansion of macro 'N_' 135 | N_( "Nothing happens." ), | ^~ constants.cpp:136:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 136 | N_( "The teleporter blinks unimpressively." )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:136:11: note: in expansion of macro 'N_' 136 | N_( "The teleporter blinks unimpressively." )}, | ^~ constants.cpp:137:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 137 | { N_( "Information" )}, | ^~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:137:11: note: in expansion of macro 'N_' 137 | { N_( "Information" )}, | ^~ constants.cpp:138:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 138 | { N_( "Delete old saved game?" )}, | ^~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:138:11: note: in expansion of macro 'N_' 138 | { N_( "Delete old saved game?" )}, | ^~ constants.cpp:139:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 139 | { N_( "You're not experienced enough to equip it yet." )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:139:11: note: in expansion of macro 'N_' 139 | { N_( "You're not experienced enough to equip it yet." )}, | ^~ constants.cpp:140:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 140 | { N_( "Change key" )}, | ^~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:140:11: note: in expansion of macro 'N_' 140 | { N_( "Change key" )}, | ^~ constants.cpp:141:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 141 | { N_( "Waiting for new key (Esc to cancel)" )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:141:11: note: in expansion of macro 'N_' 141 | { N_( "Waiting for new key (Esc to cancel)" )}, | ^~ constants.cpp:142:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 142 | { N_( "Conversation" )}, | ^~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:142:11: note: in expansion of macro 'N_' 142 | { N_( "Conversation" )}, | ^~ constants.cpp:143:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 143 | { N_( "Trade" )}, | ^~~~~~~ constants.h:144:20: note: in expansion of macro 'gettext_noop' 144 | #define N_(String) gettext_noop (String) | ^~~~~~~~~~~~ constants.cpp:143:11: note: in expansion of macro 'N_' 143 | { N_( "Trade" )}, | ^~ constants.cpp:144:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 144 | { N_( "Train" )}, | ^~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:144:11: note: in expansion of macro 'N_' 144 | { N_( "Train" )}, | ^~ constants.cpp:145:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 145 | { N_( "Healing Services" )}, | ^~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:145:11: note: in expansion of macro 'N_' 145 | { N_( "Healing Services" )}, | ^~ constants.cpp:146:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 146 | { N_( "Donate to Temple" )}, | ^~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:146:11: note: in expansion of macro 'N_' 146 | { N_( "Donate to Temple" )}, | ^~ constants.cpp:147:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 147 | { N_( "You don't meet the prerequisites for this capability." )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:147:11: note: in expansion of macro 'N_' 147 | { N_( "You don't meet the prerequisites for this capability." )}, | ^~ constants.cpp:148:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 148 | { N_( "You cannot activate an automatic capability." )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:148:11: note: in expansion of macro 'N_' 148 | { N_( "You cannot activate an automatic capability." )}, | ^~ constants.cpp:149:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 149 | { N_( "A two handed item requires two free hands." )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:149:11: note: in expansion of macro 'N_' 149 | { N_( "A two handed item requires two free hands." )}, | ^~ constants.cpp:150:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 150 | { N_( "TRAIN" )}, | ^~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:150:11: note: in expansion of macro 'N_' 150 | { N_( "TRAIN" )}, | ^~ constants.cpp:151:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 151 | { N_( "SKILL" )}, | ^~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:151:11: note: in expansion of macro 'N_' 151 | { N_( "SKILL" )}, | ^~ constants.cpp:152:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 152 | { N_( "A magical force turns the lock's tumbles to open." ), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:152:11: note: in expansion of macro 'N_' 152 | { N_( "A magical force turns the lock's tumbles to open." ), | ^~ constants.cpp:153:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 153 | N_( "Some kind of summoned energy opens the lock." )}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:153:11: note: in expansion of macro 'N_' 153 | N_( "Some kind of summoned energy opens the lock." )}, | ^~ constants.cpp:154:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 154 | { N_( "Killed by" ), | ^~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:154:11: note: in expansion of macro 'N_' 154 | { N_( "Killed by" ), | ^~ constants.cpp:155:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 155 | N_( "Annihilated by" ), | ^~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:155:11: note: in expansion of macro 'N_' 155 | N_( "Annihilated by" ), | ^~ constants.cpp:156:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 156 | N_( "Slain by" ), | ^~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:156:11: note: in expansion of macro 'N_' 156 | N_( "Slain by" ), | ^~ constants.cpp:157:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 157 | N_( "Brought low by" ), | ^~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:157:11: note: in expansion of macro 'N_' 157 | N_( "Brought low by" ), | ^~ constants.cpp:158:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 158 | N_( "Dropped by" ), | ^~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:158:11: note: in expansion of macro 'N_' 158 | N_( "Dropped by" ), | ^~ constants.cpp:159:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 159 | N_( "Ruined by" ), | ^~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:159:11: note: in expansion of macro 'N_' 159 | N_( "Ruined by" ), | ^~ constants.cpp:160:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 160 | N_( "Extinguished by" ), | ^~~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:160:11: note: in expansion of macro 'N_' 160 | N_( "Extinguished by" ), | ^~ constants.cpp:161:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 161 | N_( "Laid low by" )}, | ^~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:161:11: note: in expansion of macro 'N_' 161 | N_( "Laid low by" )}, | ^~ constants.cpp:162:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 162 | { N_( "Uncurse items" )}, | ^~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:162:11: note: in expansion of macro 'N_' 162 | { N_( "Uncurse items" )}, | ^~ constants.cpp:163:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 163 | { N_( "Recharge items" )}, | ^~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:163:11: note: in expansion of macro 'N_' 163 | { N_( "Recharge items" )}, | ^~ constants.cpp:164:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 164 | { N_( "Identify items" )}, | ^~~~~~~~~~~~~~~~ constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ constants.cpp:164:11: note: in expansion of macro 'N_' 164 | { N_( "Identify items" )}, | ^~ rm -f libScourgeCommon.a ar cru libScourgeCommon.a binreloc.o constants.o ar: `u' modifier ignored since `D' is the default (see `U') ranlib libScourgeCommon.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/common' Making all in freetype make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/freetype' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o fontmgr.o fontmgr.cpp In file included from ../common/constants.h:93, from fontmgr.cpp:28: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from fontmgr.cpp:29: fontmgr.h: In constructor 'FontMgr::FontMgr(TTF_Font*, int, int)': fontmgr.h:68:19: warning: 'FontMgr::ttfFont' will be initialized after [-Wreorder] 68 | TTF_Font *ttfFont; | ^~~~~~~ fontmgr.h:66:13: warning: 'int FontMgr::shadowX' [-Wreorder] 66 | int shadowX, shadowY; | ^~~~~~~ fontmgr.cpp:42:1: warning: when initialized here [-Wreorder] 42 | FontMgr::FontMgr( TTF_Font *font, int shadowX, int shadowY ) : | ^~~~~~~ rm -f libScourgeFreeType.a ar cru libScourgeFreeType.a fontmgr.o ar: `u' modifier ignored since `D' is the default (see `U') ranlib libScourgeFreeType.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/freetype' Making all in gui make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/gui' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o guitheme.o guitheme.cpp In file included from ../common/constants.h:93, from guitheme.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o widget.o widget.cpp In file included from ../common/constants.h:93, from widget.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o slider.o slider.cpp In file included from ../common/constants.h:93, from slider.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o textfield.o textfield.cpp In file included from ../common/constants.h:93, from textfield.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o widgetview.o widgetview.cpp In file included from ../common/constants.h:93, from widgetview.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o canvas.o canvas.cpp In file included from ../common/constants.h:93, from canvas.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o button.o button.cpp In file included from ../common/constants.h:93, from button.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o label.o label.cpp In file included from ../common/constants.h:93, from label.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | label.cpp: In member function 'virtual void Label::drawWidget(Window*)': label.cpp:37:14: warning: the address of 'Label::text' will never be NULL [-Waddress] 37 | if ( text ) { | ^~~~ In file included from label.cpp:18: label.h:35:14: note: 'Label::text' declared here 35 | char text[3000]; | ^~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o checkbox.o checkbox.cpp In file included from ../common/constants.h:93, from checkbox.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o cardcontainer.o cardcontainer.cpp In file included from ../common/constants.h:93, from cardcontainer.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o draganddrop.o draganddrop.cpp In file included from ../common/constants.h:93, from draganddrop.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o multiplelabel.o multiplelabel.cpp In file included from ../common/constants.h:93, from multiplelabel.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from multiplelabel.cpp:18: multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o scrollinglist.o scrollinglist.cpp In file included from ../common/constants.h:93, from scrollinglist.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from scrollinglist.cpp:19: ../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o scrollinglabel.o scrollinglabel.cpp In file included from ../common/constants.h:93, from scrollinglabel.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o window.o window.cpp In file included from ../common/constants.h:93, from window.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | window.cpp: In member function 'virtual void Window::drawWidget(Window*)': window.cpp:434:22: warning: the address of 'Window::title' will never be NULL [-Waddress] 434 | if ( title || ( closeButton && !isLocked() ) ) { | ^~~~~ In file included from window.cpp:18: window.h:66:14: note: 'Window::title' declared here 66 | char title[255]; | ^~~~~ window.cpp:458:22: warning: the address of 'Window::title' will never be NULL [-Waddress] 458 | if ( title ) drawTitle( topY, openHeight ); | ^~~~~ window.h:66:14: note: 'Window::title' declared here 66 | char title[255]; | ^~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o confirmdialog.o confirmdialog.cpp In file included from ../common/constants.h:93, from confirmdialog.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o textdialog.o textdialog.cpp In file included from ../common/constants.h:93, from textdialog.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | textdialog.cpp: In constructor 'TextDialog::TextDialog(ScourgeGui*, const char*)': textdialog.cpp:45:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 45 | "" ); | ^~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o progress.o progress.cpp In file included from ../common/constants.h:93, from progress.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o eventhandler.o eventhandler.cpp In file included from ../common/constants.h:93, from eventhandler.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o gui.o gui.cpp In file included from ../common/constants.h:93, from gui.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | rm -f libScourgeGui.a ar cru libScourgeGui.a guitheme.o widget.o slider.o textfield.o widgetview.o canvas.o button.o label.o checkbox.o cardcontainer.o draganddrop.o multiplelabel.o scrollinglist.o scrollinglabel.o window.o confirmdialog.o textdialog.o progress.o eventhandler.o gui.o ar: `u' modifier ignored since `D' is the default (see `U') ranlib libScourgeGui.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/gui' Making all in test make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/test' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o combattest.o combattest.cpp In file included from ../common/constants.h:93, from combattest.h:21, from combattest.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../rpg/rpglib.h:26, from combattest.cpp:18: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../rpg/rpglib.h:27: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from ../rpg/monster.h:26, from ../rpg/rpglib.h:28: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from ../creature.h:37, from combattest.cpp:19: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ ../creature.h: In member function 'void Creature::setThirst(int)': ../creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ ../creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ ../creature.h: In member function 'void Creature::setHunger(int)': ../creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ ../creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ In file included from combattest.cpp:20: ../item.h: In member function 'void Item::setWeight(float)': ../item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ ../item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ combattest.cpp: In static member function 'static bool CombatTest::executeTests(Session*, const char*)': combattest.cpp:65:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 65 | Creature *attacker = createCharacter( session, "RA", "Attacker", 1 ); | ^~~~~~~~~~ combattest.cpp:71:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 71 | Creature *defender = createCharacter( session, "RA", "Defender", 1 ); | ^~~~~~~~~~ rm -f libScourgeTest.a ar cru libScourgeTest.a combattest.o ar: `u' modifier ignored since `D' is the default (see `U') ranlib libScourgeTest.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/test' Making all in rpg make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/rpg' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o character.o character.cpp In file included from ../common/constants.h:93, from character.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from character.h:22, from character.cpp:19: ../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ character.h: In static member function 'static int Characters::getRootCount()': character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from character.cpp:22: spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o rpg.o rpg.cpp In file included from ../common/constants.h:93, from rpg.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from rpg.h:23, from rpg.cpp:18: ../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from rpgitem.h:25, from rpg.cpp:19: character.h: In static member function 'static int Characters::getRootCount()': character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o rpgitem.o rpgitem.cpp In file included from ../common/constants.h:93, from rpgitem.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from character.h:22, from rpgitem.h:25, from rpgitem.cpp:18: ../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ character.h: In static member function 'static int Characters::getRootCount()': character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpgitem.cpp:19: spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from rpgitem.cpp:21: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ rpgitem.cpp: At global scope: rpgitem.cpp:49:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 49 | N_( "Slashing" ), | ^~~~~~~~~~ ../common/constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ rpgitem.cpp:49:9: note: in expansion of macro 'N_' 49 | N_( "Slashing" ), | ^~ rpgitem.cpp:50:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 50 | N_( "Piercing" ), | ^~~~~~~~~~ ../common/constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ rpgitem.cpp:50:9: note: in expansion of macro 'N_' 50 | N_( "Piercing" ), | ^~ rpgitem.cpp:51:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 51 | N_( "Crushing" ) | ^~~~~~~~~~ ../common/constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ rpgitem.cpp:51:9: note: in expansion of macro 'N_' 51 | N_( "Crushing" ) | ^~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o monster.o monster.cpp In file included from ../common/constants.h:93, from monster.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from character.h:22, from rpgitem.h:25, from monster.h:25, from monster.cpp:18: ../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ character.h: In static member function 'static int Characters::getRootCount()': character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from monster.h:26: spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o spell.o spell.cpp In file included from ../common/constants.h:93, from spell.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from spell.h:25, from spell.cpp:18: ../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ spell.h: In constructor 'Spell::Spell(const char*, const char*, const char*, int, int, int, int, const char*, int, int, int, int, bool, bool, bool, bool, bool, MagicSchool*, int, int, bool, int)': spell.h:79:14: warning: 'Spell::action' will be initialized after [-Wreorder] 79 | Dice action; | ^~~~~~ spell.h:74:21: warning: 'std::string Spell::sound' [-Wreorder] 74 | std::string sound; | ^~~~~ spell.cpp:277:1: warning: when initialized here [-Wreorder] 277 | Spell::Spell( char const* name, char const* displayName, char const* symbol, int level, int mp, int exp, int failureRate, char const* action, | ^~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o specialskill.o specialskill.cpp In file included from ../common/constants.h:93, from specialskill.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from rpg.h:23, from specialskill.cpp:19: ../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ rm -f libScourgeRpg.a ar cru libScourgeRpg.a character.o rpg.o rpgitem.o monster.o spell.o specialskill.o ar: `u' modifier ignored since `D' is the default (see `U') ranlib libScourgeRpg.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/rpg' Making all in events make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/events' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o event.o event.cpp In file included from ../common/constants.h:93, from event.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o thirsthungerevent.o thirsthungerevent.cpp In file included from ../common/constants.h:93, from thirsthungerevent.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../optionsmenu.h:28, from ../scourge.h:29, from thirsthungerevent.h:22, from thirsthungerevent.cpp:19: ../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../optionsmenu.h:33: ../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../scourge.h:34: ../board.h: In member function 'char* Mission::getMusicTrack()': ../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from ../rpg/rpglib.h:27, from ../creature.h:36, from thirsthungerevent.cpp:21: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from ../rpg/monster.h:26, from ../rpg/rpglib.h:28: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ ../creature.h: In member function 'void Creature::setThirst(int)': ../creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ ../creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ ../creature.h: In member function 'void Creature::setHunger(int)': ../creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ ../creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o potionexpirationevent.o potionexpirationevent.cpp In file included from ../common/constants.h:93, from potionexpirationevent.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../rpg/rpglib.h:26, from potionexpirationevent.cpp:20: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../rpg/rpglib.h:27: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from ../rpg/monster.h:26, from ../rpg/rpglib.h:28: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from ../render/../events/../optionsmenu.h:33, from ../render/../events/../scourge.h:29, from ../render/../events/thirsthungerevent.h:22, from ../render/../party.h:25, from ../render/../session.h:25, from ../render/shapes.h:27, from ../render/glshape.h:25, from ../render/renderlib.h:34, from potionexpirationevent.cpp:21: ../render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../render/../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../render/../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../render/../events/../scourge.h:34: ../render/../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../render/../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../render/../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from potionexpirationevent.cpp:22: ../item.h: In member function 'void Item::setWeight(float)': ../item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ ../item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from potionexpirationevent.cpp:23: ../creature.h: In member function 'void Creature::setThirst(int)': ../creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ ../creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ ../creature.h: In member function 'void Creature::setHunger(int)': ../creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ ../creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o statemodexpirationevent.o statemodexpirationevent.cpp In file included from ../common/constants.h:93, from statemodexpirationevent.cpp:19: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../render/../rpg/rpg.h:23, from ../render/../persist.h:22, from ../render/render.h:23, from ../render/map.h:22, from ../render/renderlib.h:27, from statemodexpirationevent.cpp:21: ../render/../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../render/../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../render/../events/../optionsmenu.h:33, from ../render/../events/../scourge.h:29, from ../render/../events/thirsthungerevent.h:22, from ../render/../party.h:25, from ../render/../session.h:25, from ../render/shapes.h:27, from ../render/glshape.h:25, from ../render/renderlib.h:34: ../render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../render/../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../render/../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../render/../events/../scourge.h:34: ../render/../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../render/../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../render/../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from ../rpg/rpglib.h:27, from ../creature.h:36, from statemodexpirationevent.cpp:22: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from ../rpg/monster.h:26, from ../rpg/rpglib.h:28: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ ../creature.h: In member function 'void Creature::setThirst(int)': ../creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ ../creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ ../creature.h: In member function 'void Creature::setHunger(int)': ../creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ ../creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o reloadevent.o reloadevent.cpp In file included from ../common/constants.h:93, from reloadevent.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../events/../optionsmenu.h:28, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from reloadevent.cpp:19: ../events/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../events/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ rm -f libScourgeEvents.a ar cru libScourgeEvents.a event.o thirsthungerevent.o potionexpirationevent.o statemodexpirationevent.o reloadevent.o ar: `u' modifier ignored since `D' is the default (see `U') ranlib libScourgeEvents.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/events' Making all in net make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/net' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o broadcast.o broadcast.cpp In file included from ../common/constants.h:93, from broadcast.cpp:1: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o client.o client.cpp In file included from ../common/constants.h:93, from client.cpp:1: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from client.h:7, from client.cpp:4: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ client.cpp: In member function 'int Client::connect()': client.cpp:193:41: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 193 | for ( int i = 0; tryToReconnect && RETRY_COUNT <= 0 || i < RETRY_COUNT; i++ ) { | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o clientinfo.o clientinfo.cpp In file included from ../common/constants.h:93, from clientinfo.cpp:1: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from clientinfo.h:7, from clientinfo.cpp:3: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ clientinfo.cpp: In destructor 'virtual ClientInfo::~ClientInfo()': clientinfo.cpp:40:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 40 | TCPUtil::send( socket, "CLOSING" ); | ^~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o commands.o commands.cpp In file included from ../common/constants.h:93, from commands.cpp:1: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from commands.h:5, from commands.cpp:2: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o gamestatehandler.o gamestatehandler.cpp In file included from ../common/constants.h:93, from gamestatehandler.cpp:1: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o server.o server.cpp In file included from ../common/constants.h:93, from server.cpp:1: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from clientinfo.h:7, from server.h:8, from server.cpp:4: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o tcputil.o tcputil.cpp In file included from ../common/constants.h:93, from tcputil.cpp:1: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o testgamestatehandler.o testgamestatehandler.cpp In file included from ../common/constants.h:93, from testgamestatehandler.cpp:1: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | rm -f libScourgeNet.a ar cru libScourgeNet.a broadcast.o client.o clientinfo.o commands.o gamestatehandler.o server.o tcputil.o testgamestatehandler.o ar: `u' modifier ignored since `D' is the default (see `U') ranlib libScourgeNet.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/net' Making all in render make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/render' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o shapes.o shapes.cpp In file included from ../common/constants.h:93, from shapes.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from shapes.h:22, from shapes.cpp:19: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ shapes.cpp: In member function 'GLuint Shapes::getBMPData(const std::string&, TextureData&, int*, int*)': shapes.cpp:640:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 640 | Constants::checkTexture( "Shapes::loadGLTextures", width, height ); | ^~~~~~~~~~~~~~~~~~~~~~~~ shapes.cpp: At global scope: shapes.cpp:861:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 861 | char *textureDirs[] = { "/textures/", "/cave/default/", "/objects/houses/", "" }; | ^~~~~~~~~~~~ shapes.cpp:861:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 861 | char *textureDirs[] = { "/textures/", "/cave/default/", "/objects/houses/", "" }; | ^~~~~~~~~~~~~~~~ shapes.cpp:861:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 861 | char *textureDirs[] = { "/textures/", "/cave/default/", "/objects/houses/", "" }; | ^~~~~~~~~~~~~~~~~~ shapes.cpp:861:77: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 861 | char *textureDirs[] = { "/textures/", "/cave/default/", "/objects/houses/", "" }; | ^~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o renderedcreature.o renderedcreature.cpp In file included from ../common/constants.h:93, from renderedcreature.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from renderedcreature.h:22, from renderedcreature.cpp:18: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25, from renderedcreature.cpp:22: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o fog.o fog.cpp In file included from ../common/constants.h:93, from fog.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from fog.h:22, from fog.cpp:19: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25, from fog.cpp:20: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ fog.cpp: In member function 'void Fog::draw(int, int, int, int, CFrustum*)': fog.cpp:161:13: warning: variable 'f' set but not used [-Wunused-but-set-variable] 161 | int f[1000]; | ^ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o maprenderhelper.o maprenderhelper.cpp In file included from ../common/constants.h:93, from maprenderhelper.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from maprenderhelper.h:22, from maprenderhelper.cpp:19: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from maprenderhelper.cpp:24: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o map.o map.cpp In file included from ../common/constants.h:93, from map.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from map.h:22, from map.cpp:19: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from map.cpp:26: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from map.cpp:35: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ map.cpp: In constructor 'Map::Map(MapAdapter*, Preferences*, Shapes*)': map.cpp:226:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 226 | outdoorShadow = adapter->getNamedTexture( "outdoors_shadow" ); | ^~~~~~~~~~~~~~~~~ map.cpp:227:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 227 | outdoorShadowTree = adapter->getNamedTexture( "outdoors_shadow_tree" ); | ^~~~~~~~~~~~~~~~~~~~~~ map.cpp: In member function 'void Map::startEffect(Sint16, Sint16, Sint16, int, GLuint, int, int, GLuint, bool, DisplayInfo*)': map.cpp:1418:55: warning: 'this' pointer is null [-Wnonnull] 1418 | ( ( RenderedCreature* )NULL )->getName(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from map.cpp:31: renderedcreature.h:120:23: note: in a call to non-static member function 'virtual char* RenderedCreature::getName()' 120 | virtual char *getName() = 0; | ^~~~~~~ map.cpp: In member function 'void Map::removeEffect(Sint16, Sint16, Sint16)': map.cpp:1456:55: warning: 'this' pointer is null [-Wnonnull] 1456 | ( ( RenderedCreature* )NULL )->getName(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ renderedcreature.h:120:23: note: in a call to non-static member function 'virtual char* RenderedCreature::getName()' 120 | virtual char *getName() = 0; | ^~~~~~~ map.cpp: In member function 'void Map::getMapXYZAtScreenXY(Uint16*, Uint16*, Uint16*, Location**)': map.cpp:3587:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3587 | adapter->setDebugStr( "map: " ); | ^~~~~~~ map.cpp:3513:13: warning: variable 'res' set but not used [-Wunused-but-set-variable] 3513 | int res = gluUnProject( win_x, win_y, 0.0f, modelview, projection, viewport, &px, &py, &pz ); | ^~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o mapsettings.o mapsettings.cpp i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o mapmemory.o mapmemory.cpp In file included from ./../common/constants.h:93, from ../rpg/../configlang.h:25, from ../rpg/rpg.h:22, from ../persist.h:22, from render.h:23, from map.h:22, from mapmemory.cpp:19: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from mapmemory.h:21, from mapmemory.cpp:18: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from mapmemory.cpp:23: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ mapmemory.cpp: In member function 'Location* MapMemoryManager::newLocation()': mapmemory.cpp:80:25: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 80 | pos->texIndex = NULL; | ^~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o maprender.o maprender.cpp In file included from ../common/constants.h:93, from maprender.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from maprender.h:22, from maprender.cpp:21: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25, from maprender.cpp:26: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o indoor.o indoor.cpp In file included from ./../common/constants.h:93, from ../rpg/../configlang.h:25, from ../rpg/rpg.h:22, from ../persist.h:22, from render.h:23, from indoor.h:22, from indoor.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../rpg/../configlang.h:21: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25, from indoor.cpp:26: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ indoor.cpp: In member function 'virtual void Indoor::drawWaterPosition(int, int, float, float, Shape*)': indoor.cpp:423:16: warning: variable 'name' set but not used [-Wunused-but-set-variable] 423 | GLuint name; | ^~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o outdoor.o outdoor.cpp In file included from ./../common/constants.h:93, from ../rpg/../configlang.h:25, from ../rpg/rpg.h:22, from ../persist.h:22, from render.h:23, from outdoor.h:22, from outdoor.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../rpg/../configlang.h:21: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25, from outdoor.cpp:26: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o mapadapter.o mapadapter.cpp In file included from ../common/constants.h:93, from mapadapter.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from mapadapter.h:22, from mapadapter.cpp:19: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o frustum.o frustum.cpp In file included from ../common/constants.h:93, from frustum.cpp:15: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from frustum.h:29, from frustum.cpp:16: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25, from frustum.cpp:18: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o renderedprojectile.o renderedprojectile.cpp In file included from ../common/constants.h:93, from renderedprojectile.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from renderedprojectile.h:24, from renderedprojectile.cpp:19: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o projectilerenderer.o projectilerenderer.cpp In file included from ../common/constants.h:93, from projectilerenderer.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from projectilerenderer.h:22, from projectilerenderer.cpp:19: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25, from projectilerenderer.h:23: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o location.o location.cpp In file included from ../common/constants.h:93, from location.cpp:19: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from location.h:23, from location.cpp:20: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o renderedlocation.o renderedlocation.cpp In file included from ./../common/constants.h:93, from ../rpg/../configlang.h:25, from ../rpg/rpg.h:22, from ../persist.h:22, from render.h:23, from renderedlocation.h:22, from renderedlocation.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../rpg/../configlang.h:21: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25, from renderedlocation.cpp:27: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o effect.o effect.cpp In file included from ../common/constants.h:93, from effect.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from effect.h:22, from effect.cpp:19: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25, from effect.cpp:20: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ effect.cpp: In constructor 'Effect::Effect(Map*, Preferences*, Shapes*, int, int)': effect.cpp:31:73: warning: unsigned conversion from 'int' to 'Uint8' {aka 'unsigned char'} changes value from '2000' to '208' [-Woverflow] 31 | this->shape = new GLShape( 0, width, height, width, NULL, 0, 0, 2000 ); | ^~~~ effect.cpp: In member function 'void Effect::reset()': effect.cpp:41:46: warning: 'this' pointer is null [-Wnonnull] 41 | ( ( Effect* )NULL )->getShape(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ effect.h:93:25: note: in a call to non-static member function 'GLShape* Effect::getShape()' 93 | inline GLShape *getShape() { | ^~~~~~~~ effect.cpp: In member function 'void Effect::setSize(int, int)': effect.cpp:85:67: warning: unsigned conversion from 'int' to 'Uint8' {aka 'unsigned char'} changes value from '2000' to '208' [-Woverflow] 85 | shape = new GLShape( 0, width, height, width, NULL, 0, 0, 2000 ); | ^~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o shape.o shape.cpp In file included from ../common/constants.h:93, from shape.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from shape.h:25, from shape.cpp:19: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o glshape.o glshape.cpp In file included from ../common/constants.h:93, from glshape.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from glshape.h:22, from glshape.cpp:19: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o glcaveshape.o glcaveshape.cpp In file included from ../common/constants.h:93, from glcaveshape.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from glcaveshape.h:22, from glcaveshape.cpp:18: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25, from glcaveshape.h:23: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ glcaveshape.cpp: In member function 'void GLCaveShape::Common::calculateLight()': glcaveshape.cpp:364:37: warning: variable 'q' set but not used [-Wunused-but-set-variable] 364 | int q = 1; | ^ glcaveshape.cpp: In member function 'GLCaveShape::GLCaveShape(Shapes*, Texture*, int, int, int, char const*, int, int, int, int, int, int)': glcaveshape.cpp:92:82: warning: 'this_8(D)->D.205869.color' is used uninitialized [-Wuninitialized] 92 | : GLShape( texture, width, depth, height, name, 0, color, index ) { | ^ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o gllocator.o gllocator.cpp In file included from ../common/constants.h:93, from gllocator.cpp:19: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from glshape.h:22, from gllocator.h:23, from gllocator.cpp:20: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o gltorch.o gltorch.cpp In file included from ../common/constants.h:93, from gltorch.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from glshape.h:22, from gltorch.h:22, from gltorch.cpp:19: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o glteleporter.o glteleporter.cpp In file included from ../common/constants.h:93, from glteleporter.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from glteleporter.h:22, from glteleporter.cpp:19: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25, from glteleporter.h:23: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o cutscene.o cutscene.cpp In file included from ../common/constants.h:93, from cutscene.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../events/../optionsmenu.h:28, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from cutscene.h:22, from cutscene.cpp:19: ../events/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../events/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o animatedshape.o animatedshape.cpp In file included from ../common/constants.h:93, from animatedshape.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from modelwrapper.h:22, from animatedshape.cpp:20: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25, from animatedshape.h:31, from animatedshape.cpp:21: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o modelwrapper.o modelwrapper.cpp In file included from ../common/constants.h:93, from modelwrapper.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from modelwrapper.h:22, from modelwrapper.cpp:20: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25, from animatedshape.h:31, from modelwrapper.cpp:21: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o Md2.o Md2.cpp In file included from ../common/constants.h:93, from Md2.cpp:12: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from md2shape.h:42, from Md2.cpp:13: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25, from animatedshape.h:31, from md2shape.h:43: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ Md2.cpp: In member function 'bool CLoadMD2::ImportMD2(t3DModel*, std::string&)': Md2.cpp:50:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 50 | fread( &m_Header, 1, sizeof( tMd2Header ), m_FilePointer ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Md2.cpp: In member function 'void CLoadMD2::ReadMD2Data(t3DModel*)': Md2.cpp:93:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 93 | fread( m_pSkins, sizeof( tMd2String ), m_Header.numSkins, m_FilePointer ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Md2.cpp:101:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 101 | fread( pModel->pGlCommands, sizeof( int ), m_Header.numGlCommands, m_FilePointer ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Md2.cpp:116:22: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 116 | fread( pFrame, 1, m_Header.frameSize, m_FilePointer ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o md2shape.o md2shape.cpp In file included from ../common/constants.h:93, from md2shape.cpp:28: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from Md2.h:5, from md2shape.cpp:30: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25, from animatedshape.h:31, from md2shape.h:43, from md2shape.cpp:31: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o Md3.o Md3.cpp In file included from ../common/constants.h:93, from Md3.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from Md3.h:14, from Md3.cpp:18: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25, from animatedshape.h:31, from md3shape.h:30, from Md3.cpp:24: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ Md3.cpp: In member function 'bool CModelMD3::LoadModel(const std::string&)': Md3.cpp:603:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 603 | LinkModel( &m_Lower, &m_Upper, "tag_torso" ); | ^~~~~~~~~~~ Md3.cpp:606:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 606 | LinkModel( &m_Upper, &m_Head, "tag_head" ); | ^~~~~~~~~~ Md3.cpp: In member function 'bool CModelMD3::LoadWeapon(const std::string&, const std::string&, MD3Shape*)': Md3.cpp:726:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 726 | LinkModel( &m_Upper, &m_Weapon, "tag_weapon" ); | ^~~~~~~~~~~~ Md3.cpp: In member function 'void CModelMD3::findModelBounds(t3DModel*, float*, float*)': Md3.cpp:1360:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1360 | animationIndex = getAnimationIndex( "TORSO_STAND", &m_Upper ); | ^~~~~~~~~~~~~ Md3.cpp:1362:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1362 | animationIndex = getAnimationIndex( "LEGS_IDLE", &m_Lower ); | ^~~~~~~~~~~ Md3.cpp: In member function 'bool CLoadMD3::LoadShader(t3DModel*, const std::string&, MD3Shape*)': Md3.cpp:1955:31: warning: operation on 'texture.tMaterialInfo::uTile' may be undefined [-Wsequence-point] 1955 | texture.uTile = texture.uTile = 1; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ Md3.cpp: In member function 'bool CLoadMD3::ImportMD3(t3DModel*, std::string&)': Md3.cpp:1513:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 1513 | fread( &m_Header, 1, sizeof( tMd3Header ), m_FilePointer ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Md3.cpp: In member function 'void CLoadMD3::ReadMD3Data(t3DModel*)': Md3.cpp:1567:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 1567 | fread( m_pBones, sizeof( tMd3Bone ), m_Header.numFrames, m_FilePointer ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Md3.cpp:1595:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 1595 | fread( pModel->pTags, sizeof( tMd3Tag ), m_Header.numFrames * m_Header.numTags, m_FilePointer ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Md3.cpp:1640:22: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 1640 | fread( &meshHeader, sizeof( tMd3MeshInfo ), 1, m_FilePointer ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Md3.cpp:1661:22: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 1661 | fread( m_pSkins, sizeof( tMd3Skin ), meshHeader.numSkins, m_FilePointer ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Md3.cpp:1665:22: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 1665 | fread( m_pTriangles, sizeof( tMd3Face ), meshHeader.numTriangles, m_FilePointer ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Md3.cpp:1676:22: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 1676 | fread( m_pTexCoords, sizeof( tMd3TexCoord ), meshHeader.numVertices, m_FilePointer ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Md3.cpp:1689:22: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 1689 | fread( m_pVertices, sizeof( tMd3Triangle ), meshHeader.numMeshFrames * meshHeader.numVertices, m_FilePointer ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o md3shape.o md3shape.cpp In file included from ../common/constants.h:93, from md3shape.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from Md3.h:14, from md3shape.cpp:20: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25, from animatedshape.h:31, from md3shape.h:30, from md3shape.cpp:22: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ md3shape.cpp: In constructor 'MD3Shape::MD3Shape(CModelMD3*, ModelLoader*, float, Texture*, int, int, int, const char*, int, Uint32, Uint8)': md3shape.cpp:43:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 43 | md3->SetTorsoAnimation( "TORSO_STAND", true, this ); | ^~~~~~~~~~~~~ md3shape.cpp:44:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 44 | md3->SetLegsAnimation( "LEGS_IDLE", true, this ); | ^~~~~~~~~~~ md3shape.cpp: In member function 'virtual void MD3Shape::setModelAnimation()': md3shape.cpp:155:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 155 | md3->SetTorsoAnimation( "TORSO_ATTACK", true, this ); | ^~~~~~~~~~~~~~ md3shape.cpp:156:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 156 | md3->SetLegsAnimation( "LEGS_IDLE", true, this ); | ^~~~~~~~~~~ md3shape.cpp:159:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 159 | md3->SetTorsoAnimation( "TORSO_STAND", true, this ); | ^~~~~~~~~~~~~ md3shape.cpp:160:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 160 | md3->SetLegsAnimation( "LEGS_IDLE", true, this ); | ^~~~~~~~~~~ md3shape.cpp:163:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 163 | md3->SetTorsoAnimation( "TORSO_STAND", true, this ); | ^~~~~~~~~~~~~ md3shape.cpp:164:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 164 | md3->SetLegsAnimation( "LEGS_WALK", true, this ); | ^~~~~~~~~~~ md3shape.cpp:170:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 170 | md3->SetTorsoAnimation( "TORSO_STAND", true, this ); | ^~~~~~~~~~~~~ md3shape.cpp:171:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 171 | md3->SetLegsAnimation( "LEGS_IDLE", true, this ); | ^~~~~~~~~~~ md3shape.cpp:174:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 174 | md3->SetTorsoAnimation( "TORSO_STAND2", true, this ); | ^~~~~~~~~~~~~~ md3shape.cpp:175:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 175 | md3->SetLegsAnimation( "LEGS_IDLE", true, this ); | ^~~~~~~~~~~ md3shape.cpp:178:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 178 | md3->SetTorsoAnimation( "TORSO_GESTURE", true, this ); | ^~~~~~~~~~~~~~~ md3shape.cpp:179:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 179 | md3->SetLegsAnimation( "LEGS_IDLE", true, this ); | ^~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o 3ds.o 3ds.cpp In file included from ../common/constants.h:93, from 3ds.cpp:16: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from 3ds.h:12, from 3ds.cpp:18: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ 3ds.cpp: In member function 'void CLoad3DS::ReadVertices(t3DObject*, tChunk*)': 3ds.cpp:522:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class CVector3' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 522 | memset( pObject->pVerts, 0, sizeof( CVector3 ) * pObject->numOfVerts ); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/constants.h:894:7: note: 'class CVector3' declared here 894 | class CVector3 { | ^~~~~~~~ 3ds.cpp: In member function 'int CLoad3DS::GetString(char*)': 3ds.cpp:388:14: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 388 | fread( pBuffer, 1, 1, m_FilePointer ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3ds.cpp:394:22: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 394 | fread( pBuffer + index, 1, 1, m_FilePointer ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o 3dsshape.o 3dsshape.cpp In file included from ../common/constants.h:93, from 3dsshape.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from 3dsshape.h:37, from 3dsshape.cpp:22: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25, from 3dsshape.h:38: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ 3dsshape.cpp: In member function 'void C3DSShape::preRenderLight()': 3dsshape.cpp:316:37: warning: variable 'q' set but not used [-Wunused-but-set-variable] 316 | int q = 1; | ^ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o weather.o weather.cpp In file included from ../common/constants.h:93, from weather.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../events/../optionsmenu.h:28, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from weather.h:22, from weather.cpp:19: ../events/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../events/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from ../rpg/rpglib.h:27, from ../creature.h:36, from weather.cpp:25: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from ../rpg/monster.h:26, from ../rpg/rpglib.h:28: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ ../creature.h: In member function 'void Creature::setThirst(int)': ../creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ ../creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ ../creature.h: In member function 'void Creature::setHunger(int)': ../creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ ../creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o virtualshape.o virtualshape.cpp In file included from ../common/constants.h:93, from virtualshape.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from ../persist.h:22, from render.h:23, from glshape.h:22, from virtualshape.h:22, from virtualshape.cpp:19: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from glshape.h:25: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o texture.o texture.cpp In file included from ../common/constants.h:93, from texture.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../events/../optionsmenu.h:28, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from texture.cpp:19: ../events/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../events/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from texture.cpp:18: texture.h: In constructor 'Texture::Actual::Actual()': texture.h:124:29: warning: 'Texture::Actual::_group_name' will be initialized after [-Wreorder] 124 | std::string _group_name; | ^~~~~~~~~~~ texture.h:123:30: warning: 'SDL_Surface* Texture::Actual::_surface' [-Wreorder] 123 | SDL_Surface* _surface; | ^~~~~~~~ texture.cpp:28:1: warning: when initialized here [-Wreorder] 28 | Texture::Actual::Actual() | ^~~~~~~ texture.cpp: In member function 'bool Texture::Actual::createTile(const SDL_Surface*, int, int, int, int)': texture.cpp:164:39: warning: comparison of integer expressions of different signedness: 'GLuint' {aka 'unsigned int'} and 'Texture::' [-Wsign-compare] 164 | assert( _id != INVALID && _id != INPROGRESS ); | ~~~~^~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ texture.cpp:164:32: warning: statement has no effect [-Wunused-value] 164 | assert( _id != INVALID && _id != INPROGRESS ); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ texture.cpp: In member function 'bool Texture::Actual::createEdgeBlended(const std::string&, Texture::Actual*, Texture::Actual*, Texture::Actual*, Texture::Actual*, Texture::Actual*, Texture::Actual*, Texture::Actual*, Texture::Actual*, Texture::Actual*)': texture.cpp:412:39: warning: comparison of integer expressions of different signedness: 'GLuint' {aka 'unsigned int'} and 'Texture::' [-Wsign-compare] 412 | assert( _id != INVALID && _id != INPROGRESS ); | ~~~~^~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ texture.cpp:412:32: warning: statement has no effect [-Wunused-value] 412 | assert( _id != INVALID && _id != INPROGRESS ); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ texture.cpp: In member function 'bool Texture::Actual::createAlpha(Texture::Actual*, Texture::Actual**, int, int, int, int, int)': texture.cpp:549:39: warning: comparison of integer expressions of different signedness: 'GLuint' {aka 'unsigned int'} and 'Texture::' [-Wsign-compare] 549 | assert( _id != INVALID && _id != INPROGRESS ); | ~~~~^~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ texture.cpp:549:32: warning: statement has no effect [-Wunused-value] 549 | assert( _id != INVALID && _id != INPROGRESS ); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ texture.cpp: In member function 'bool Texture::Actual::loadShot(const std::string&)': texture.cpp:583:39: warning: comparison of integer expressions of different signedness: 'GLuint' {aka 'unsigned int'} and 'Texture::' [-Wsign-compare] 583 | assert( _id != INVALID && _id != INPROGRESS ); | ~~~~^~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ texture.cpp:583:32: warning: statement has no effect [-Wunused-value] 583 | assert( _id != INVALID && _id != INPROGRESS ); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ texture.cpp: In member function 'bool Texture::Actual::loadImage()': texture.cpp:626:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 626 | Constants::checkTexture( "Texture::Actual::loadImage", _width, _height ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ texture.cpp: In member function 'bool Texture::Actual::letsToBind()': texture.cpp:640:26: warning: statement has no effect [-Wunused-value] 640 | assert( _surface != NULL ); | ^ ../common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ texture.cpp:689:39: warning: comparison of integer expressions of different signedness: 'GLuint' {aka 'unsigned int'} and 'Texture::' [-Wsign-compare] 689 | assert( _id != INVALID && _id != INPROGRESS ); | ~~~~^~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ texture.cpp:689:32: warning: statement has no effect [-Wunused-value] 689 | assert( _id != INVALID && _id != INPROGRESS ); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ texture.cpp: In copy constructor 'Texture::Texture(const Texture&)': texture.cpp:719:22: warning: statement has no effect [-Wunused-value] 719 | assert( _ref != NULL ); | ^ ../common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ texture.cpp: In constructor 'Texture::Texture(Actual*)': texture.cpp:725:22: warning: statement has no effect [-Wunused-value] 725 | assert( node != NULL ); | ^ ../common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ texture.cpp: In member function 'Texture& Texture::operator=(const Texture&)': texture.cpp:742:31: warning: statement has no effect [-Wunused-value] 742 | assert( false && "Texture was assigned to itself, probably bug" ); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ texture.cpp:744:22: warning: statement has no effect [-Wunused-value] 744 | assert( _ref != NULL ); | ^ ../common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ texture.cpp: In member function 'void Texture::clear()': texture.cpp:750:22: warning: statement has no effect [-Wunused-value] 750 | assert( _ref != NULL ); | ^ ../common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ texture.cpp: In member function 'void Texture::swap(Texture&)': texture.cpp:759:22: warning: statement has no effect [-Wunused-value] 759 | assert( _ref != NULL ); | ^ ../common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ texture.cpp:760:27: warning: statement has no effect [-Wunused-value] 760 | assert( that._ref != NULL ); | ^ ../common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ rm -f libScourgeRender.a ar cru libScourgeRender.a shapes.o renderedcreature.o fog.o maprenderhelper.o map.o mapsettings.o mapmemory.o maprender.o indoor.o outdoor.o mapadapter.o frustum.o renderedprojectile.o projectilerenderer.o location.o renderedlocation.o effect.o shape.o glshape.o glcaveshape.o gllocator.o gltorch.o glteleporter.o cutscene.o animatedshape.o modelwrapper.o Md2.o md2shape.o Md3.o md3shape.o 3ds.o 3dsshape.o weather.o virtualshape.o texture.o ar: `u' modifier ignored since `D' is the default (see `U') ranlib libScourgeRender.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/render' Making all in io make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/io' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o file.o file.cpp i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o zipfile.o zipfile.cpp In file included from ../common/constants.h:93, from zipfile.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | rm -f libScourgeIo.a ar cru libScourgeIo.a file.o zipfile.o ar: `u' modifier ignored since `D' is the default (see `U') ranlib libScourgeIo.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/io' Making all in squirrel make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/squirrel' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqclass.o sqclass.cpp In file included from sqclass.cpp:5: sqvm.h: In member function 'bool SQVM::IsFalse(SQObjectPtr&)': sqvm.h:127:52: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 127 | if((type(o) & SQOBJECT_CANBEFALSE) && ( (type(o) == OT_FLOAT) && (_float(o) == SQFloat(0.0)) ) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sqclass.cpp:6: sqtable.h: In member function 'SQTable::_HashNode* SQTable::_Get(const SQObjectPtr&, SQHash)': sqtable.h:68:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 68 | }while(n = n->next); | ~~^~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqdebug.o sqdebug.cpp In file included from sqdebug.cpp:6: sqvm.h: In member function 'bool SQVM::IsFalse(SQObjectPtr&)': sqvm.h:127:52: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 127 | if((type(o) & SQOBJECT_CANBEFALSE) && ( (type(o) == OT_FLOAT) && (_float(o) == SQFloat(0.0)) ) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sqdebug.cpp: In function 'SQRESULT sq_stackinfos(HSQUIRRELVM, SQInteger, SQStackInfos*)': sqdebug.cpp:16:24: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 16 | switch ( type( ci._closure ) ) { | ^ sqdebug.cpp:16:24: warning: enumeration value 'OT_INTEGER' not handled in switch [-Wswitch] sqdebug.cpp:16:24: warning: enumeration value 'OT_FLOAT' not handled in switch [-Wswitch] sqdebug.cpp:16:24: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqdebug.cpp:16:24: warning: enumeration value 'OT_STRING' not handled in switch [-Wswitch] sqdebug.cpp:16:24: warning: enumeration value 'OT_TABLE' not handled in switch [-Wswitch] sqdebug.cpp:16:24: warning: enumeration value 'OT_ARRAY' not handled in switch [-Wswitch] sqdebug.cpp:16:24: warning: enumeration value 'OT_USERDATA' not handled in switch [-Wswitch] sqdebug.cpp:16:24: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqdebug.cpp:16:24: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqdebug.cpp:16:24: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqdebug.cpp:16:24: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqdebug.cpp:16:24: warning: enumeration value 'OT_CLASS' not handled in switch [-Wswitch] sqdebug.cpp:16:24: warning: enumeration value 'OT_INSTANCE' not handled in switch [-Wswitch] sqdebug.cpp:16:24: warning: enumeration value 'OT_WEAKREF' not handled in switch [-Wswitch] i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqlexer.o sqlexer.cpp In file included from sqlexer.cpp:7: sqtable.h: In member function 'SQTable::_HashNode* SQTable::_Get(const SQObjectPtr&, SQHash)': sqtable.h:68:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 68 | }while(n = n->next); | ~~^~~~~~~~~ sqlexer.cpp: In member function 'SQInteger SQLexer::ReadNumber()': sqlexer.cpp:393:14: warning: unused variable 'isfloat' [-Wunused-variable] 393 | bool isfloat = false; | ^~~~~~~ sqlexer.cpp: In member function 'SQInteger SQLexer::ReadID()': sqlexer.cpp:442:24: warning: unused variable 'size' [-Wunused-variable] 442 | SQInteger res, size = 0; | ^~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqtable.o sqtable.cpp In file included from sqtable.cpp:5: sqvm.h: In member function 'bool SQVM::IsFalse(SQObjectPtr&)': sqvm.h:127:52: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 127 | if((type(o) & SQOBJECT_CANBEFALSE) && ( (type(o) == OT_FLOAT) && (_float(o) == SQFloat(0.0)) ) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sqtable.cpp:6: sqtable.h: In member function 'SQTable::_HashNode* SQTable::_Get(const SQObjectPtr&, SQHash)': sqtable.h:68:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 68 | }while(n = n->next); | ~~^~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqmem.o sqmem.cpp i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqstate.o sqstate.cpp In file included from sqstate.cpp:6: sqvm.h: In member function 'bool SQVM::IsFalse(SQObjectPtr&)': sqvm.h:127:52: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 127 | if((type(o) & SQOBJECT_CANBEFALSE) && ( (type(o) == OT_FLOAT) && (_float(o) == SQFloat(0.0)) ) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sqstate.cpp:10: sqtable.h: In member function 'SQTable::_HashNode* SQTable::_Get(const SQObjectPtr&, SQHash)': sqtable.h:68:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 68 | }while(n = n->next); | ~~^~~~~~~~~ sqstate.cpp: In static member function 'static void SQSharedState::MarkObject(SQObjectPtr&, SQCollectable**)': sqstate.cpp:220:16: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 220 | switch ( type( o ) ) { | ^ sqstate.cpp:220:16: warning: enumeration value 'OT_INTEGER' not handled in switch [-Wswitch] sqstate.cpp:220:16: warning: enumeration value 'OT_FLOAT' not handled in switch [-Wswitch] sqstate.cpp:220:16: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqstate.cpp:220:16: warning: enumeration value 'OT_STRING' not handled in switch [-Wswitch] sqstate.cpp:220:16: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqstate.cpp:220:16: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqstate.cpp:220:16: warning: enumeration value 'OT_WEAKREF' not handled in switch [-Wswitch] In file included from sqobject.h:5, from sqpcheader.h:16, from sqstate.cpp:4: squtils.h: In instantiation of 'void sqvector::remove(SQUnsignedInteger) [with T = SQObjectPtr; SQUnsignedInteger = unsigned int]': sqarray.h:70:17: required from here squtils.h:89:31: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct SQObjectPtr' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 89 | memcpy(&_vals[idx], &_vals[idx+1], sizeof(T) * (_size - idx - 1)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sqobject.h:126:8: note: 'struct SQObjectPtr' declared here 126 | struct SQObjectPtr : public SQObject | ^~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqvm.o sqvm.cpp In file included from sqvm.cpp:9: sqvm.h: In member function 'bool SQVM::IsFalse(SQObjectPtr&)': sqvm.h:127:52: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 127 | if((type(o) & SQOBJECT_CANBEFALSE) && ( (type(o) == OT_FLOAT) && (_float(o) == SQFloat(0.0)) ) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sqvm.cpp:12: sqtable.h: In member function 'SQTable::_HashNode* SQTable::_Get(const SQObjectPtr&, SQHash)': sqtable.h:68:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 68 | }while(n = n->next); | ~~^~~~~~~~~ sqvm.cpp: In member function 'bool SQVM::NEG_OP(SQObjectPtr&, const SQObjectPtr&)': sqvm.cpp:122:16: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 122 | switch ( type( o ) ) { | ^ sqvm.cpp:122:16: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqvm.cpp:122:16: warning: enumeration value 'OT_STRING' not handled in switch [-Wswitch] sqvm.cpp:122:16: warning: enumeration value 'OT_ARRAY' not handled in switch [-Wswitch] sqvm.cpp:122:16: warning: enumeration value 'OT_CLOSURE' not handled in switch [-Wswitch] sqvm.cpp:122:16: warning: enumeration value 'OT_NATIVECLOSURE' not handled in switch [-Wswitch] sqvm.cpp:122:16: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqvm.cpp:122:16: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqvm.cpp:122:16: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqvm.cpp:122:16: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqvm.cpp:122:16: warning: enumeration value 'OT_CLASS' not handled in switch [-Wswitch] sqvm.cpp:122:16: warning: enumeration value 'OT_WEAKREF' not handled in switch [-Wswitch] sqvm.cpp: In member function 'bool SQVM::ObjCmp(const SQObjectPtr&, const SQObjectPtr&, SQInteger&)': sqvm.cpp:151:24: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 151 | switch ( type( o1 ) ) { | ^ sqvm.cpp:151:24: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqvm.cpp:151:24: warning: enumeration value 'OT_ARRAY' not handled in switch [-Wswitch] sqvm.cpp:151:24: warning: enumeration value 'OT_CLOSURE' not handled in switch [-Wswitch] sqvm.cpp:151:24: warning: enumeration value 'OT_NATIVECLOSURE' not handled in switch [-Wswitch] sqvm.cpp:151:24: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqvm.cpp:151:24: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqvm.cpp:151:24: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqvm.cpp:151:24: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqvm.cpp:151:24: warning: enumeration value 'OT_CLASS' not handled in switch [-Wswitch] sqvm.cpp:151:24: warning: enumeration value 'OT_WEAKREF' not handled in switch [-Wswitch] sqvm.cpp: In member function 'bool SQVM::StartCall(SQClosure*, SQInteger, SQInteger, SQInteger, bool)': sqvm.cpp:347:25: warning: unused variable 'oldtop' [-Wunused-variable] 347 | const SQInteger oldtop = _top; | ^~~~~~ sqvm.cpp: In member function 'bool SQVM::FOREACH_OP(SQObjectPtr&, SQObjectPtr&, SQObjectPtr&, SQObjectPtr&, SQInteger, bool&)': sqvm.cpp:474:16: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 474 | switch ( type( o1 ) ) { | ^ sqvm.cpp:474:16: warning: enumeration value 'OT_INTEGER' not handled in switch [-Wswitch] sqvm.cpp:474:16: warning: enumeration value 'OT_FLOAT' not handled in switch [-Wswitch] sqvm.cpp:474:16: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqvm.cpp:474:16: warning: enumeration value 'OT_CLOSURE' not handled in switch [-Wswitch] sqvm.cpp:474:16: warning: enumeration value 'OT_NATIVECLOSURE' not handled in switch [-Wswitch] sqvm.cpp:474:16: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqvm.cpp:474:16: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqvm.cpp:474:16: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqvm.cpp:474:16: warning: enumeration value 'OT_WEAKREF' not handled in switch [-Wswitch] sqvm.cpp: In member function 'bool SQVM::CLOSURE_OP(SQObjectPtr&, SQFunctionProto*)': sqvm.cpp:554:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 554 | if ( nouters = func->_outervalues.size() ) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ sqvm.cpp: In member function 'bool SQVM::CLASS_OP(SQObjectPtr&, SQInteger, SQInteger)': sqvm.cpp:599:24: warning: comparison of integer expressions of different signedness: 'SQInteger' {aka 'int'} and 'unsigned int' [-Wsign-compare] 599 | if ( baseclass != MAX_LITERALS ) { sqvm.cpp: In member function 'bool SQVM::Execute(SQObjectPtr&, SQInteger, SQInteger, SQInteger, SQObjectPtr&, ExecutionType)': sqvm.cpp:837:40: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 837 | switch ( type( STK( arg1 ) ) ) { | ^ sqvm.cpp:837:40: warning: enumeration value 'OT_INTEGER' not handled in switch [-Wswitch] sqvm.cpp:837:40: warning: enumeration value 'OT_FLOAT' not handled in switch [-Wswitch] sqvm.cpp:837:40: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqvm.cpp:837:40: warning: enumeration value 'OT_STRING' not handled in switch [-Wswitch] sqvm.cpp:837:40: warning: enumeration value 'OT_ARRAY' not handled in switch [-Wswitch] sqvm.cpp:837:40: warning: enumeration value 'OT_USERDATA' not handled in switch [-Wswitch] sqvm.cpp:837:40: warning: enumeration value 'OT_CLOSURE' not handled in switch [-Wswitch] sqvm.cpp:837:40: warning: enumeration value 'OT_NATIVECLOSURE' not handled in switch [-Wswitch] sqvm.cpp:837:40: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqvm.cpp:837:40: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqvm.cpp:837:40: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqvm.cpp:837:40: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqvm.cpp:837:40: warning: enumeration value 'OT_INSTANCE' not handled in switch [-Wswitch] sqvm.cpp:837:40: warning: enumeration value 'OT_WEAKREF' not handled in switch [-Wswitch] sqvm.cpp: In member function 'bool SQVM::CallNative(SQNativeClosure*, SQInteger, SQInteger, bool, SQObjectPtr&, bool&)': sqvm.cpp:1051:18: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 1051 | if ( tcs = nclosure->_typecheck.size() ) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sqvm.cpp: In member function 'bool SQVM::Get(const SQObjectPtr&, const SQObjectPtr&, SQObjectPtr&, bool, bool)': sqvm.cpp:1102:16: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 1102 | switch ( type( self ) ) { | ^ sqvm.cpp:1102:16: warning: enumeration value 'OT_INTEGER' not handled in switch [-Wswitch] sqvm.cpp:1102:16: warning: enumeration value 'OT_FLOAT' not handled in switch [-Wswitch] sqvm.cpp:1102:16: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqvm.cpp:1102:16: warning: enumeration value 'OT_STRING' not handled in switch [-Wswitch] sqvm.cpp:1102:16: warning: enumeration value 'OT_USERDATA' not handled in switch [-Wswitch] sqvm.cpp:1102:16: warning: enumeration value 'OT_CLOSURE' not handled in switch [-Wswitch] sqvm.cpp:1102:16: warning: enumeration value 'OT_NATIVECLOSURE' not handled in switch [-Wswitch] sqvm.cpp:1102:16: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqvm.cpp:1102:16: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqvm.cpp:1102:16: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqvm.cpp:1102:16: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqvm.cpp:1102:16: warning: enumeration value 'OT_CLASS' not handled in switch [-Wswitch] sqvm.cpp:1102:16: warning: enumeration value 'OT_WEAKREF' not handled in switch [-Wswitch] In file included from sqobject.h:5, from sqpcheader.h:16, from sqvm.cpp:4: squtils.h: In instantiation of 'void sqvector::remove(SQUnsignedInteger) [with T = SQObjectPtr; SQUnsignedInteger = unsigned int]': sqarray.h:70:17: required from here squtils.h:89:31: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct SQObjectPtr' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 89 | memcpy(&_vals[idx], &_vals[idx+1], sizeof(T) * (_size - idx - 1)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sqobject.h:126:8: note: 'struct SQObjectPtr' declared here 126 | struct SQObjectPtr : public SQObject | ^~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqapi.o sqapi.cpp In file included from sqapi.cpp:5: sqvm.h: In member function 'bool SQVM::IsFalse(SQObjectPtr&)': sqvm.h:127:52: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 127 | if((type(o) & SQOBJECT_CANBEFALSE) && ( (type(o) == OT_FLOAT) && (_float(o) == SQFloat(0.0)) ) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sqapi.cpp:7: sqtable.h: In member function 'SQTable::_HashNode* SQTable::_Get(const SQObjectPtr&, SQHash)': sqtable.h:68:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 68 | }while(n = n->next); | ~~^~~~~~~~~ sqapi.cpp: In function 'SQRESULT sq_setdelegate(HSQUIRRELVM, SQInteger)': sqapi.cpp:622:25: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 622 | if ( !_table( self )->SetDelegate( _table( mt ) ) ) return sq_throwerror( v, _SC( "delagate cycle" ) ); v->Pop(); | ^~ sqapi.cpp:622:129: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 622 | if ( !_table( self )->SetDelegate( _table( mt ) ) ) return sq_throwerror( v, _SC( "delagate cycle" ) ); v->Pop(); | ^ sqapi.cpp: In function 'SQRESULT sq_rawdeleteslot(HSQUIRRELVM, SQInteger, SQBool)': sqapi.cpp:650:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 650 | if ( pushval != 0 ) | ^ sqapi.cpp: In function 'SQRESULT sq_getdelegate(HSQUIRRELVM, SQInteger)': sqapi.cpp:659:16: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 659 | switch ( type( self ) ) { | ^ sqapi.cpp:659:16: warning: enumeration value 'OT_INTEGER' not handled in switch [-Wswitch] sqapi.cpp:659:16: warning: enumeration value 'OT_FLOAT' not handled in switch [-Wswitch] sqapi.cpp:659:16: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqapi.cpp:659:16: warning: enumeration value 'OT_STRING' not handled in switch [-Wswitch] sqapi.cpp:659:16: warning: enumeration value 'OT_ARRAY' not handled in switch [-Wswitch] sqapi.cpp:659:16: warning: enumeration value 'OT_CLOSURE' not handled in switch [-Wswitch] sqapi.cpp:659:16: warning: enumeration value 'OT_NATIVECLOSURE' not handled in switch [-Wswitch] sqapi.cpp:659:16: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqapi.cpp:659:16: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqapi.cpp:659:16: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqapi.cpp:659:16: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqapi.cpp:659:16: warning: enumeration value 'OT_CLASS' not handled in switch [-Wswitch] sqapi.cpp:659:16: warning: enumeration value 'OT_INSTANCE' not handled in switch [-Wswitch] sqapi.cpp:659:16: warning: enumeration value 'OT_WEAKREF' not handled in switch [-Wswitch] sqapi.cpp: In function 'void sq_setreleasehook(HSQUIRRELVM, SQInteger, SQRELEASEHOOK)': sqapi.cpp:815:24: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 815 | switch ( type( ud ) ) { | ^ sqapi.cpp:815:24: warning: enumeration value 'OT_INTEGER' not handled in switch [-Wswitch] sqapi.cpp:815:24: warning: enumeration value 'OT_FLOAT' not handled in switch [-Wswitch] sqapi.cpp:815:24: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqapi.cpp:815:24: warning: enumeration value 'OT_STRING' not handled in switch [-Wswitch] sqapi.cpp:815:24: warning: enumeration value 'OT_TABLE' not handled in switch [-Wswitch] sqapi.cpp:815:24: warning: enumeration value 'OT_ARRAY' not handled in switch [-Wswitch] sqapi.cpp:815:24: warning: enumeration value 'OT_CLOSURE' not handled in switch [-Wswitch] sqapi.cpp:815:24: warning: enumeration value 'OT_NATIVECLOSURE' not handled in switch [-Wswitch] sqapi.cpp:815:24: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqapi.cpp:815:24: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqapi.cpp:815:24: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqapi.cpp:815:24: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqapi.cpp:815:24: warning: enumeration value 'OT_CLASS' not handled in switch [-Wswitch] sqapi.cpp:815:24: warning: enumeration value 'OT_WEAKREF' not handled in switch [-Wswitch] sqapi.cpp: In function 'SQRESULT sq_writeclosure(HSQUIRRELVM, SQWRITEFUNC, SQUserPointer)': sqapi.cpp:833:20: warning: unused variable 'c' [-Wunused-variable] 833 | SQClosure *c = _closure( *o ); | ^ In file included from sqobject.h:5, from sqpcheader.h:16, from sqapi.cpp:4: squtils.h: In instantiation of 'void sqvector::remove(SQUnsignedInteger) [with T = SQObjectPtr; SQUnsignedInteger = unsigned int]': sqarray.h:70:17: required from here squtils.h:89:31: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct SQObjectPtr' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 89 | memcpy(&_vals[idx], &_vals[idx+1], sizeof(T) * (_size - idx - 1)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sqobject.h:126:8: note: 'struct SQObjectPtr' declared here 126 | struct SQObjectPtr : public SQObject | ^~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqfuncstate.o sqfuncstate.cpp In file included from sqfuncstate.cpp:8: sqtable.h: In member function 'SQTable::_HashNode* SQTable::_Get(const SQObjectPtr&, SQHash)': sqtable.h:68:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 68 | }while(n = n->next); | ~~^~~~~~~~~ sqfuncstate.cpp: In function 'void DumpLiteral(SQObjectPtr&)': sqfuncstate.cpp:75:16: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 75 | switch ( type( o ) ) { | ^ sqfuncstate.cpp:75:16: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqfuncstate.cpp:75:16: warning: enumeration value 'OT_TABLE' not handled in switch [-Wswitch] sqfuncstate.cpp:75:16: warning: enumeration value 'OT_ARRAY' not handled in switch [-Wswitch] sqfuncstate.cpp:75:16: warning: enumeration value 'OT_USERDATA' not handled in switch [-Wswitch] sqfuncstate.cpp:75:16: warning: enumeration value 'OT_CLOSURE' not handled in switch [-Wswitch] sqfuncstate.cpp:75:16: warning: enumeration value 'OT_NATIVECLOSURE' not handled in switch [-Wswitch] sqfuncstate.cpp:75:16: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqfuncstate.cpp:75:16: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqfuncstate.cpp:75:16: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqfuncstate.cpp:75:16: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqfuncstate.cpp:75:16: warning: enumeration value 'OT_CLASS' not handled in switch [-Wswitch] sqfuncstate.cpp:75:16: warning: enumeration value 'OT_INSTANCE' not handled in switch [-Wswitch] sqfuncstate.cpp:75:16: warning: enumeration value 'OT_WEAKREF' not handled in switch [-Wswitch] sqfuncstate.cpp: In member function 'SQInteger SQFuncState::GetConstant(const SQObject&)': sqfuncstate.cpp:210:33: warning: comparison of integer expressions of different signedness: 'SQInteger' {aka 'int'} and 'unsigned int' [-Wsign-compare] 210 | if ( _nliterals > MAX_LITERALS ) { sqfuncstate.cpp:204:19: warning: unused variable 'n' [-Wunused-variable] 204 | SQInteger n = 0; | ^ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqobject.o sqobject.cpp In file included from sqobject.cpp:5: sqvm.h: In member function 'bool SQVM::IsFalse(SQObjectPtr&)': sqvm.h:127:52: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 127 | if((type(o) & SQOBJECT_CANBEFALSE) && ( (type(o) == OT_FLOAT) && (_float(o) == SQFloat(0.0)) ) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sqobject.cpp:8: sqtable.h: In member function 'SQTable::_HashNode* SQTable::_Get(const SQObjectPtr&, SQHash)': sqtable.h:68:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 68 | }while(n = n->next); | ~~^~~~~~~~~ sqobject.cpp: In function 'SQUnsignedInteger TranslateIndex(const SQObjectPtr&)': sqobject.cpp:25:16: warning: enumeration value 'OT_FLOAT' not handled in switch [-Wswitch] 25 | switch ( type( idx ) ) { | ^ sqobject.cpp:25:16: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqobject.cpp:25:16: warning: enumeration value 'OT_STRING' not handled in switch [-Wswitch] sqobject.cpp:25:16: warning: enumeration value 'OT_TABLE' not handled in switch [-Wswitch] sqobject.cpp:25:16: warning: enumeration value 'OT_ARRAY' not handled in switch [-Wswitch] sqobject.cpp:25:16: warning: enumeration value 'OT_USERDATA' not handled in switch [-Wswitch] sqobject.cpp:25:16: warning: enumeration value 'OT_CLOSURE' not handled in switch [-Wswitch] sqobject.cpp:25:16: warning: enumeration value 'OT_NATIVECLOSURE' not handled in switch [-Wswitch] sqobject.cpp:25:16: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqobject.cpp:25:16: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqobject.cpp:25:16: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqobject.cpp:25:16: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqobject.cpp:25:16: warning: enumeration value 'OT_CLASS' not handled in switch [-Wswitch] sqobject.cpp:25:16: warning: enumeration value 'OT_INSTANCE' not handled in switch [-Wswitch] sqobject.cpp:25:16: warning: enumeration value 'OT_WEAKREF' not handled in switch [-Wswitch] In file included from sqobject.h:5, from sqpcheader.h:16, from sqobject.cpp:4: squtils.h: In instantiation of 'void sqvector::remove(SQUnsignedInteger) [with T = SQObjectPtr; SQUnsignedInteger = unsigned int]': sqarray.h:70:17: required from here squtils.h:89:31: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct SQObjectPtr' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 89 | memcpy(&_vals[idx], &_vals[idx+1], sizeof(T) * (_size - idx - 1)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sqobject.h:126:8: note: 'struct SQObjectPtr' declared here 126 | struct SQObjectPtr : public SQObject | ^~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqcompiler.o sqcompiler.cpp In file included from sqcompiler.cpp:13: sqvm.h: In member function 'bool SQVM::IsFalse(SQObjectPtr&)': sqvm.h:127:52: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 127 | if((type(o) & SQOBJECT_CANBEFALSE) && ( (type(o) == OT_FLOAT) && (_float(o) == SQFloat(0.0)) ) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sqpcheader.h:12, from sqcompiler.cpp:4: sqcompiler.cpp: In member function 'void SQCompiler::ParseTableOrClass(SQInteger, SQInteger)': sqcompiler.cpp:725:42: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 725 | assert( hasattrs && attrs == key - 1 || !hasattrs ); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqbaselib.o sqbaselib.cpp In file included from sqbaselib.cpp:5: sqvm.h: In member function 'bool SQVM::IsFalse(SQObjectPtr&)': sqvm.h:127:52: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 127 | if((type(o) & SQOBJECT_CANBEFALSE) && ( (type(o) == OT_FLOAT) && (_float(o) == SQFloat(0.0)) ) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sqbaselib.cpp:7: sqtable.h: In member function 'SQTable::_HashNode* SQTable::_Get(const SQObjectPtr&, SQHash)': sqtable.h:68:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 68 | }while(n = n->next); | ~~^~~~~~~~~ sqbaselib.cpp: In function 'SQInteger base_getstackinfos(HSQUIRRELVM)': sqbaselib.cpp:90:30: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 90 | while ( name = sq_getlocal( v, level, seq ) ) { | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sqobject.h:5, from sqpcheader.h:16, from sqbaselib.cpp:4: squtils.h: In instantiation of 'void sqvector::remove(SQUnsignedInteger) [with T = SQObjectPtr; SQUnsignedInteger = unsigned int]': sqarray.h:70:17: required from here squtils.h:89:31: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct SQObjectPtr' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 89 | memcpy(&_vals[idx], &_vals[idx+1], sizeof(T) * (_size - idx - 1)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sqobject.h:126:8: note: 'struct SQObjectPtr' declared here 126 | struct SQObjectPtr : public SQObject | ^~~~~~~~~~~ rm -f libSquirrel.a ar cru libSquirrel.a sqclass.o sqdebug.o sqlexer.o sqtable.o sqmem.o sqstate.o sqvm.o sqapi.o sqfuncstate.o sqobject.o sqcompiler.o sqbaselib.o ar: `u' modifier ignored since `D' is the default (see `U') ranlib libSquirrel.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/squirrel' Making all in sqstdlib make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/sqstdlib' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -I./../squirrel -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqstdaux.o sqstdaux.cpp sqstdaux.cpp: In function 'void sqstd_printcallstack(HSQUIRRELVM)': sqstdaux.cpp:29:38: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 29 | while ( name = sq_getlocal( v, level, seq ) ) { | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sqstdaux.cpp:31:40: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] 31 | switch ( sq_gettype( v, -1 ) ) { | ^ sqstdaux.cpp:31:40: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqstdaux.cpp:31:40: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqstdaux.cpp:31:40: warning: enumeration value 'OT_WEAKREF' not handled in switch [-Wswitch] i586-alt-linux-gcc -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -I./../squirrel -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqstdrex.o sqstdrex.c cc1: warning: command-line option '-std=c++14' is valid for C++/ObjC++ but not for C sqstdrex.c: In function 'sqstd_rex_element': sqstdrex.c:253:27: warning: variable 'op' set but not used [-Wunused-but-set-variable] 253 | SQInteger op; | ^~ sqstdrex.c: In function 'sqstd_rex_matchnode': sqstdrex.c:374:33: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 374 | while ( asd = sqstd_rex_matchnode( exp, temp, asd ) ) { | ^~~ sqstdrex.c:382:33: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 382 | while ( asd = sqstd_rex_matchnode( exp, temp, asd ) ) { | ^~~ sqstdrex.c:417:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 417 | if ( str == exp->_bol && !isspace( *str ) | ^ sqstdrex.c:431:17: warning: value computed is not used [-Wunused-value] 431 | *str++; | ^~~~~~ sqstdrex.c:436:25: warning: value computed is not used [-Wunused-value] 436 | *str++; | ^~~~~~ sqstdrex.c:442:25: warning: value computed is not used [-Wunused-value] 442 | *str++; | ^~~~~~ sqstdrex.c:448:17: warning: value computed is not used [-Wunused-value] 448 | *str++; | ^~~~~~ sqstdrex.c: In function 'sqstd_rex_searchrange': sqstdrex.c:531:17: warning: value computed is not used [-Wunused-value] 531 | *text_begin++; | ^~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -I./../squirrel -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqstdstream.o sqstdstream.cpp sqstdstream.cpp: In function 'SQInteger _stream_readstr(HSQUIRRELVM)': sqstdstream.cpp:44:126: warning: comparison of integer expressions of different signedness: 'SQInteger' {aka 'int'} and 'unsigned int' [-Wsign-compare] 44 | if ( self->Read( sq_getscratchpad( v, ( size + 1 ) * sizeof( wchar_t ) ), size * sizeof( wchar_t ) ) != ( size * sizeof( wchar_t ) ) ) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -I./../squirrel -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqstdsystem.o sqstdsystem.cpp sqstdsystem.cpp: In function 'SQInteger _system_time(HSQUIRRELVM)': sqstdsystem.cpp:51:31: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 51 | sq_pushinteger( v, *( ( SQInteger * )&t ) ); | ~~^~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -I./../squirrel -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqstdblob.o sqstdblob.cpp sqstdblob.cpp: In function 'SQInteger _g_blob_casti2f(HSQUIRRELVM)': sqstdblob.cpp:148:29: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 148 | sq_pushfloat( v, *( ( SQFloat * )&i ) ); | ~~^~~~~~~~~~~~~~~~~ sqstdblob.cpp: In function 'SQInteger _g_blob_castf2i(HSQUIRRELVM)': sqstdblob.cpp:155:31: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 155 | sq_pushinteger( v, *( ( SQInteger * )&f ) ); | ~~^~~~~~~~~~~~~~~~~~~ In file included from sqstdblob.cpp:3: sqstdblob.cpp: In function 'SQRESULT sqstd_register_bloblib(HSQUIRRELVM)': sqstdblob.cpp:229:40: warning: ISO C++ forbids converting a string constant to 'SQChar*' {aka 'char*'} [-Wwrite-strings] 229 | return declare_stream( v, _SC( "blob" ), ( SQUserPointer )SQSTD_BLOB_TYPE_TAG, _SC( "std_blob" ), _blob_methods, bloblib_funcs ); | ^~~~~~ ./../squirrel/squirrel.h:94:16: note: in definition of macro '_SC' 94 | #define _SC(a) a | ^ sqstdblob.cpp:229:93: warning: ISO C++ forbids converting a string constant to 'SQChar*' {aka 'char*'} [-Wwrite-strings] 229 | return declare_stream( v, _SC( "blob" ), ( SQUserPointer )SQSTD_BLOB_TYPE_TAG, _SC( "std_blob" ), _blob_methods, bloblib_funcs ); | ^~~~~~~~~~ ./../squirrel/squirrel.h:94:16: note: in definition of macro '_SC' 94 | #define _SC(a) a | ^ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -I./../squirrel -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqstdio.o sqstdio.cpp sqstdio.cpp: In member function 'bool SQFile::Open(const SQChar*, const SQChar*)': sqstdio.cpp:66:30: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 66 | if ( _handle = sqstd_fopen( filename, mode ) ) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sqstdio.cpp: In function 'SQRESULT sqstd_dofile(HSQUIRRELVM, const SQChar*, SQBool, SQBool)': sqstdio.cpp:316:27: warning: unused variable 'ntop' [-Wunused-variable] 316 | SQInteger ntop = sq_gettop( v ); | ^~~~ In file included from sqstdio.cpp:4: sqstdio.cpp: In function 'SQRESULT sqstd_register_iolib(HSQUIRRELVM)': sqstdio.cpp:372:33: warning: ISO C++ forbids converting a string constant to 'SQChar*' {aka 'char*'} [-Wwrite-strings] 372 | declare_stream( v, _SC( "file" ), ( SQUserPointer )SQSTD_FILE_TYPE_TAG, _SC( "std_file" ), _file_methods, iolib_funcs ); | ^~~~~~ ./../squirrel/squirrel.h:94:16: note: in definition of macro '_SC' 94 | #define _SC(a) a | ^ sqstdio.cpp:372:86: warning: ISO C++ forbids converting a string constant to 'SQChar*' {aka 'char*'} [-Wwrite-strings] 372 | declare_stream( v, _SC( "file" ), ( SQUserPointer )SQSTD_FILE_TYPE_TAG, _SC( "std_file" ), _file_methods, iolib_funcs ); | ^~~~~~~~~~ ./../squirrel/squirrel.h:94:16: note: in definition of macro '_SC' 94 | #define _SC(a) a | ^ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -I./../squirrel -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqstdmath.o sqstdmath.cpp i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -I./../squirrel -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqstdstring.o sqstdstring.cpp rm -f libSqstdlib.a ar cru libSqstdlib.a sqstdaux.o sqstdrex.o sqstdstream.o sqstdsystem.o sqstdblob.o sqstdio.o sqstdmath.o sqstdstring.o ar: `u' modifier ignored since `D' is the default (see `U') ranlib libSqstdlib.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/sqstdlib' Making all in sqbinding make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/sqbinding' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqbinding.o sqbinding.cpp In file included from ../common/constants.h:93, from sqbinding.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../events/../optionsmenu.h:28, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from sqbinding.cpp:19: ../events/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../events/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from ../rpg/rpglib.h:27, from ../creature.h:36, from sqbinding.cpp:20: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from ../rpg/monster.h:26, from ../rpg/rpglib.h:28: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ ../creature.h: In member function 'void Creature::setThirst(int)': ../creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ ../creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ ../creature.h: In member function 'void Creature::setHunger(int)': ../creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ ../creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ In file included from sqbinding.cpp:21: ../item.h: In member function 'void Item::setWeight(float)': ../item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ ../item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqobject.o sqobject.cpp In file included from ../common/constants.h:93, from sqobject.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqgame.o sqgame.cpp In file included from ../common/constants.h:93, from sqgame.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../rpg/rpg.h:23, from sqgame.cpp:19: ../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from sqgame.cpp:20: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from ../rpg/rpglib.h:27, from ../creature.h:36, from sqgame.cpp:21: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from ../rpg/monster.h:26, from ../rpg/rpglib.h:28: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ ../creature.h: In member function 'void Creature::setThirst(int)': ../creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ ../creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ ../creature.h: In member function 'void Creature::setHunger(int)': ../creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ ../creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqcreature.o sqcreature.cpp In file included from ../common/constants.h:93, from sqcreature.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../render/../rpg/rpg.h:23, from ../render/../persist.h:22, from ../render/render.h:23, from ../render/map.h:22, from sqcreature.cpp:20: ../render/../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../render/../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from sqcreature.cpp:21: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from ../rpg/rpglib.h:27, from ../creature.h:36, from sqcreature.cpp:22: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from ../rpg/monster.h:26, from ../rpg/rpglib.h:28: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ ../creature.h: In member function 'void Creature::setThirst(int)': ../creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ ../creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ ../creature.h: In member function 'void Creature::setHunger(int)': ../creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ ../creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqmission.o sqmission.cpp In file included from ../common/constants.h:93, from sqmission.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../events/../optionsmenu.h:28, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from sqmission.cpp:19: ../events/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../events/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from ../rpg/rpglib.h:27, from ../creature.h:36, from sqmission.cpp:20: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from ../rpg/monster.h:26, from ../rpg/rpglib.h:28: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ ../creature.h: In member function 'void Creature::setThirst(int)': ../creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ ../creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ ../creature.h: In member function 'void Creature::setHunger(int)': ../creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ ../creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ In file included from sqmission.cpp:21: ../item.h: In member function 'void Item::setWeight(float)': ../item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ ../item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqitem.o sqitem.cpp In file included from ../common/constants.h:93, from sqitem.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../events/../optionsmenu.h:28, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from sqitem.cpp:19: ../events/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../events/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from ../rpg/rpgitem.h:25, from ../item.h:28, from sqitem.cpp:20: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ ../item.h: In member function 'void Item::setWeight(float)': ../item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ ../item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from ../rpg/monster.h:26, from ../rpg/rpglib.h:28, from sqitem.cpp:21: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqspell.o sqspell.cpp In file included from ../common/constants.h:93, from sqspell.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from ../events/../optionsmenu.h:28, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from sqspell.cpp:19: ../events/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from ../common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ ../events/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from ../events/../optionsmenu.h:33: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ ../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from ../events/../scourge.h:34: ../events/../board.h: In member function 'char* Mission::getMusicTrack()': ../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ ../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from ../rpg/rpglib.h:27, from sqspell.cpp:20: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from ../rpg/monster.h:26, from ../rpg/rpglib.h:28: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ rm -f libSqbinding.a ar cru libSqbinding.a sqbinding.o sqobject.o sqgame.o sqcreature.o sqmission.o sqitem.o sqspell.o ar: `u' modifier ignored since `D' is the default (see `U') ranlib libSqbinding.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/sqbinding' make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src' i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o configlang.o configlang.cpp In file included from common/constants.h:93, from configlang.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from events/../optionsmenu.h:28, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from session.h:25, from configlang.cpp:19: events/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ events/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from events/../optionsmenu.h:33: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from events/../scourge.h:34: events/../board.h: In member function 'char* Mission::getMusicTrack()': events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ configlang.cpp: In member function 'void ConfigLang::parse(std::vector >*)': configlang.cpp:250:65: warning: statement has no effect [-Wunused-value] 250 | assert( node ); | ^~~~ common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ configlang.cpp: In member function 'void ConfigLang::parse(char*)': configlang.cpp:318:41: warning: statement has no effect [-Wunused-value] 318 | assert( node ); | ^~~~ common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o persist.o persist.cpp In file included from common/constants.h:93, from persist.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from rpg/rpg.h:23, from persist.h:22, from persist.cpp:18: rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from render/../events/../optionsmenu.h:33, from render/../events/../scourge.h:29, from render/../events/thirsthungerevent.h:22, from render/../party.h:25, from render/../session.h:25, from render/shapes.h:27, from render/glshape.h:25, from render/renderlib.h:34, from persist.cpp:19: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ render/../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from render/../events/../scourge.h:34: render/../events/../board.h: In member function 'char* Mission::getMusicTrack()': render/../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ render/../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ persist.cpp: At global scope: persist.cpp:221:6: warning: 'void {anonymous}::deleteDiceInfo(DiceInfo*)' defined but not used [-Wunused-function] 221 | void deleteDiceInfo( DiceInfo *info ) { | ^~~~~~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o creature.o creature.cpp In file included from common/constants.h:93, from creature.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from rpg/rpg.h:23, from persist.h:22, from creature.h:32, from creature.cpp:19: rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from rpg/rpglib.h:27, from creature.h:36: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from events/../optionsmenu.h:33, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from session.h:25, from creature.h:37: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from events/../scourge.h:34: events/../board.h: In member function 'char* Mission::getMusicTrack()': events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ In file included from creature.cpp:20: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ creature.cpp: In member function 'float Creature::getArmor(float*, float*, int, Item*)': creature.cpp:2910:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2910 | "armor", armor ); | ^~~~~~~ creature.cpp: In member function 'void Creature::calcArmor(int, float*, float*, bool)': creature.cpp:2941:100: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2941 | session->getSquirrel()->setGlobalVariable( "armor", lastArmor[ t ] ); | ^~~~~~~ creature.cpp:2943:117: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2943 | lastArmor[ t ] = session->getSquirrel()->getGlobalVariable( "armor" ); | ^~~~~~~ creature.cpp: In member function 'float Creature::getAttack(Item*, float*, float*, bool)': creature.cpp:3144:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3144 | "damage", roll ); | ^~~~~~~~ creature.cpp:3146:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3146 | session->getSquirrel()->setGlobalVariable( "damage", roll ); | ^~~~~~~~ creature.cpp:3148:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3148 | roll = session->getSquirrel()->getGlobalVariable( "damage" ); | ^~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o calendar.o calendar.cpp In file included from common/constants.h:93, from calendar.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from rpg/rpg.h:23, from persist.h:22, from creature.h:32, from calendar.cpp:21: rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from rpg/rpglib.h:27, from creature.h:36: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from events/../optionsmenu.h:33, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from session.h:25, from creature.h:37: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from events/../scourge.h:34: events/../board.h: In member function 'char* Mission::getMusicTrack()': events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o date.o date.cpp In file included from common/constants.h:93, from date.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o item.o item.cpp In file included from common/constants.h:93, from item.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from rpg/rpg.h:23, from persist.h:22, from item.h:22, from item.cpp:19: rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from rpg/rpgitem.h:25, from item.h:28: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from render/../events/../optionsmenu.h:33, from render/../events/../scourge.h:29, from render/../events/thirsthungerevent.h:22, from render/../party.h:25, from render/../session.h:25, from render/shapes.h:27, from render/glshape.h:25, from render/renderlib.h:34, from item.cpp:20: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ render/../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from render/../events/../scourge.h:34: render/../events/../board.h: In member function 'char* Mission::getMusicTrack()': render/../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ render/../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28, from item.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from item.cpp:25: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o terraingenerator.o terraingenerator.cpp In file included from common/constants.h:93, from terraingenerator.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from render/../rpg/rpg.h:23, from render/../persist.h:22, from render/render.h:23, from render/map.h:22, from render/renderlib.h:27, from terraingenerator.cpp:19: render/../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ render/../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from render/../events/../optionsmenu.h:33, from render/../events/../scourge.h:29, from render/../events/thirsthungerevent.h:22, from render/../party.h:25, from render/../session.h:25, from render/shapes.h:27, from render/glshape.h:25, from render/renderlib.h:34: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ render/../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from render/../events/../scourge.h:34: render/../events/../board.h: In member function 'char* Mission::getMusicTrack()': render/../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ render/../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from terraingenerator.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from terraingenerator.cpp:25: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from terraingenerator.cpp:26: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ terraingenerator.cpp: In member function 'virtual void TerrainGenerator::addItems(Map*, ShapePalette*)': terraingenerator.cpp:342:21: warning: variable 'valueBonus' set but not used [-Wunused-but-set-variable] 342 | int valueBonus = 0; | ^~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o landgenerator.o landgenerator.cpp In file included from common/constants.h:93, from landgenerator.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from render/../rpg/rpg.h:23, from render/../persist.h:22, from render/render.h:23, from render/map.h:22, from landgenerator.cpp:19: render/../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ render/../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from render/../events/../optionsmenu.h:33, from render/../events/../scourge.h:29, from render/../events/thirsthungerevent.h:22, from render/../party.h:25, from render/../session.h:25, from render/shapes.h:27, from shapepalette.h:25, from landgenerator.cpp:20: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ render/../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from render/../events/../scourge.h:34: render/../events/../board.h: In member function 'char* Mission::getMusicTrack()': render/../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ render/../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from landgenerator.cpp:28: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from landgenerator.cpp:29: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o cavemaker.o cavemaker.cpp In file included from common/constants.h:93, from cavemaker.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from render/../rpg/rpg.h:23, from render/../persist.h:22, from render/render.h:23, from render/map.h:22, from render/renderlib.h:27, from cavemaker.cpp:19: render/../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ render/../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from render/../events/../optionsmenu.h:33, from render/../events/../scourge.h:29, from render/../events/thirsthungerevent.h:22, from render/../party.h:25, from render/../session.h:25, from render/shapes.h:27, from render/glshape.h:25, from render/renderlib.h:34: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ render/../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from render/../events/../scourge.h:34: render/../events/../board.h: In member function 'char* Mission::getMusicTrack()': render/../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ render/../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from cavemaker.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from cavemaker.cpp:25: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from cavemaker.cpp:26: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o dungeongenerator.o dungeongenerator.cpp In file included from common/constants.h:93, from dungeongenerator.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from render/../rpg/rpg.h:23, from render/../persist.h:22, from render/render.h:23, from render/map.h:22, from render/renderlib.h:27, from dungeongenerator.cpp:20: render/../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ render/../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from render/../events/../optionsmenu.h:33, from render/../events/../scourge.h:29, from render/../events/thirsthungerevent.h:22, from render/../party.h:25, from render/../session.h:25, from render/shapes.h:27, from render/glshape.h:25, from render/renderlib.h:34: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ render/../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from render/../events/../scourge.h:34: render/../events/../board.h: In member function 'char* Mission::getMusicTrack()': render/../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ render/../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from dungeongenerator.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from dungeongenerator.cpp:26: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from dungeongenerator.cpp:27: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o mondrian.o mondrian.cpp In file included from common/constants.h:93, from mondrian.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from render/../rpg/rpg.h:23, from render/../persist.h:22, from render/render.h:23, from render/map.h:22, from render/renderlib.h:27, from mondrian.cpp:20: render/../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ render/../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from render/../events/../optionsmenu.h:33, from render/../events/../scourge.h:29, from render/../events/thirsthungerevent.h:22, from render/../party.h:25, from render/../session.h:25, from render/shapes.h:27, from render/glshape.h:25, from render/renderlib.h:34: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ render/../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from render/../events/../scourge.h:34: render/../events/../board.h: In member function 'char* Mission::getMusicTrack()': render/../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ render/../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from mondrian.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from mondrian.cpp:26: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from mondrian.cpp:27: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o main.o main.cpp In file included from common/constants.h:93, from main.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from rpg/rpg.h:23, from persist.h:22, from gameadapter.h:22, from main.cpp:25: rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from events/../optionsmenu.h:33, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from session.h:25, from main.cpp:26: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from events/../scourge.h:34: events/../board.h: In member function 'char* Mission::getMusicTrack()': events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o mainmenu.o mainmenu.cpp In file included from common/constants.h:93, from mainmenu.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from render/../rpg/rpg.h:23, from render/../persist.h:22, from render/render.h:23, from render/map.h:22, from render/renderlib.h:27, from mainmenu.cpp:19: render/../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ render/../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from render/../events/../optionsmenu.h:33, from render/../events/../scourge.h:29, from render/../events/thirsthungerevent.h:22, from render/../party.h:25, from render/../session.h:25, from render/shapes.h:27, from render/glshape.h:25, from render/renderlib.h:34: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ render/../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from render/../events/../scourge.h:34: render/../events/../board.h: In member function 'char* Mission::getMusicTrack()': render/../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ render/../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o mapeditor.o mapeditor.cpp In file included from common/constants.h:93, from mapeditor.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from render/../rpg/rpg.h:23, from render/../persist.h:22, from render/render.h:23, from render/map.h:22, from render/renderlib.h:27, from mapeditor.cpp:20: render/../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ render/../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from render/../events/../optionsmenu.h:33, from render/../events/../scourge.h:29, from render/../events/thirsthungerevent.h:22, from render/../party.h:25, from render/../session.h:25, from render/shapes.h:27, from render/glshape.h:25, from render/renderlib.h:34: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ render/../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from render/../events/../scourge.h:34: render/../events/../board.h: In member function 'char* Mission::getMusicTrack()': render/../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ render/../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from mapeditor.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from mapeditor.cpp:26: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from mapeditor.cpp:27: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ mapeditor.cpp: At global scope: mapeditor.cpp:38:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 38 | { "FLOOR_TILE", N_( "Tile: Passage" ) }, | ^~~~~~~~~~~~ mapeditor.cpp:38:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 38 | { "FLOOR_TILE", N_( "Tile: Passage" ) }, | ^~~~~~~~~~~~~~~ common/constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ mapeditor.cpp:38:25: note: in expansion of macro 'N_' 38 | { "FLOOR_TILE", N_( "Tile: Passage" ) }, | ^~ mapeditor.cpp:39:11: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 39 | { "ROOM_FLOOR_TILE", N_( "Tile: Room" ) } | ^~~~~~~~~~~~~~~~~ mapeditor.cpp:39:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 39 | { "ROOM_FLOOR_TILE", N_( "Tile: Room" ) } | ^~~~~~~~~~~~ common/constants.h:143:30: note: in definition of macro 'gettext_noop' 143 | #define gettext_noop(String) String | ^~~~~~ mapeditor.cpp:39:30: note: in expansion of macro 'N_' 39 | { "ROOM_FLOOR_TILE", N_( "Tile: Room" ) } | ^~ mapeditor.cpp: In member function 'virtual bool MapEditor::handleEvent(Widget*, SDL_Event*)': mapeditor.cpp:606:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 606 | scourge->runSquirrelConsole( "scourgeGame.reloadNuts();" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mapeditor.cpp: In member function 'void MapEditor::processMouseMotion(Uint8, int)': mapeditor.cpp:716:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 716 | button == SDL_BUTTON_RIGHT && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 717 | ( SDL_GetModState() & KMOD_SHIFT ) ) ) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o mapwidget.o mapwidget.cpp In file included from common/constants.h:93, from mapwidget.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from mapwidget.cpp:20: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o netplay.o netplay.cpp In file included from common/constants.h:93, from netplay.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from netplay.h:24, from netplay.cpp:19: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ netplay.cpp: In member function 'virtual char* NetPlay::getGameState()': netplay.cpp:75:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 75 | return "abc"; | ^~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o containerview.o containerview.cpp In file included from common/constants.h:93, from containerview.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from containerview.h:24, from containerview.cpp:19: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from containerview.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from containerview.cpp:23: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from containerview.cpp:24: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o containergui.o containergui.cpp In file included from common/constants.h:93, from containergui.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from containerview.h:24, from containergui.cpp:19: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from containergui.cpp:22: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from containergui.cpp:24: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from containergui.cpp:25: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o conversationgui.o conversationgui.cpp In file included from common/constants.h:93, from conversationgui.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from conversationgui.h:25, from conversationgui.cpp:19: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from conversationgui.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from conversationgui.cpp:22: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ conversationgui.cpp: In constructor 'ConversationGui::ConversationGui(Scourge*)': conversationgui.cpp:75:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 75 | answer = new ScrollingLabel( 10, 25, width - 150, 215, "" ); | ^~ conversationgui.cpp: In member function 'virtual void ConversationGui::wordClicked(const std::string&)': conversationgui.cpp:259:84: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = Util::CaseCompare<__cxx11::basic_string >; _Tp = __cxx11::basic_string]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 259 | vector::iterator pos = find_if( words.begin(), words.end(), bind2nd( Util::CaseCompare(), word ) ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/stl_function.h:1438: /usr/include/c++/13/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ conversationgui.cpp: In member function 'virtual void ConversationGui::showingWord(char*)': conversationgui.cpp:270:58: warning: 'std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = Util::CaseCompare<__cxx11::basic_string >; _Tp = char*]' is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 270 | if ( find_if( words.begin(), words.end(), bind2nd( Util::CaseCompare(), word ) ) != words.end() ) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o infogui.o infogui.cpp In file included from common/constants.h:93, from infogui.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from infogui.h:26, from infogui.cpp:19: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpgitem.h:25, from item.h:28, from infogui.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28, from creature.h:36, from infogui.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o projectile.o projectile.cpp In file included from common/constants.h:93, from projectile.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from render/../rpg/rpg.h:23, from render/../persist.h:22, from render/render.h:23, from render/renderedprojectile.h:24, from projectile.h:24, from projectile.cpp:19: render/../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ render/../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from render/../events/../optionsmenu.h:33, from render/../events/../scourge.h:29, from render/../events/thirsthungerevent.h:22, from render/../party.h:25, from render/../session.h:25, from render/shapes.h:27, from render/glshape.h:25, from render/renderlib.h:34, from projectile.cpp:20: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ render/../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from render/../events/../scourge.h:34: render/../events/../board.h: In member function 'char* Mission::getMusicTrack()': render/../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ render/../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from projectile.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from projectile.cpp:22: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ In file included from projectile.cpp:23: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o session.o session.cpp In file included from common/constants.h:93, from session.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from events/../optionsmenu.h:28, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from session.h:25, from session.cpp:18: events/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ events/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from events/../optionsmenu.h:33: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from events/../scourge.h:34: events/../board.h: In member function 'char* Mission::getMusicTrack()': events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from session.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from session.cpp:21: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from session.cpp:22: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ session.cpp: In member function 'virtual void Session::doInitData()': session.cpp:176:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 176 | adapter->setUpdate( "" ); | ^~ session.cpp: In member function 'virtual Creature* Session::addCreatureFromScript(char*, int, int, int*, int*, int)': session.cpp:334:14: warning: variable 'b' set but not used [-Wunused-but-set-variable] 334 | bool b = true; | ^ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o gameadapter.o gameadapter.cpp In file included from common/constants.h:93, from gameadapter.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from rpg/rpg.h:23, from persist.h:22, from gameadapter.h:22, from gameadapter.cpp:19: rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from events/../optionsmenu.h:33, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from session.h:25, from gameadapter.cpp:20: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from events/../scourge.h:34: events/../board.h: In member function 'char* Mission::getMusicTrack()': events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpgitem.h:25, from item.h:28, from gameadapter.cpp:22: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28, from creature.h:36, from gameadapter.cpp:23: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o scourge.o scourge.cpp In file included from common/constants.h:93, from scourge.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from scourge.cpp:19: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from scourge.cpp:23: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from scourge.cpp:24: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from scourge.cpp:25: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ scourge.h: In constructor 'Scourge::Scourge(UserConfiguration*)': scourge.h:1010:19: warning: 'Scourge::progress' will be initialized after [-Wreorder] 1010 | Progress *progress; | ^~~~~~~~ scourge.h:944:21: warning: 'TextDialog* Scourge::textDialog' [-Wreorder] 944 | TextDialog *textDialog; | ^~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:1037:24: warning: 'Scourge::confirmAutoloadDialog' will be initialized after [-Wreorder] 1037 | ConfirmDialog *confirmAutoloadDialog; | ^~~~~~~~~~~~~~~~~~~~~ scourge.h:1036:24: warning: 'ConfirmDialog* Scourge::confirmQuickloadDialog' [-Wreorder] 1036 | ConfirmDialog *confirmQuickloadDialog; | ^~~~~~~~~~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:1036:24: warning: 'Scourge::confirmQuickloadDialog' will be initialized after [-Wreorder] 1036 | ConfirmDialog *confirmQuickloadDialog; | ^~~~~~~~~~~~~~~~~~~~~~ scourge.h:1035:24: warning: 'ConfirmDialog* Scourge::confirmQuicksaveDialog' [-Wreorder] 1035 | ConfirmDialog *confirmQuicksaveDialog; | ^~~~~~~~~~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:1035:24: warning: 'Scourge::confirmQuicksaveDialog' will be initialized after [-Wreorder] 1035 | ConfirmDialog *confirmQuicksaveDialog; | ^~~~~~~~~~~~~~~~~~~~~~ scourge.h:1034:24: warning: 'ConfirmDialog* Scourge::confirmUpload' [-Wreorder] 1034 | ConfirmDialog *confirmUpload; | ^~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:1034:24: warning: 'Scourge::confirmUpload' will be initialized after [-Wreorder] 1034 | ConfirmDialog *confirmUpload; | ^~~~~~~~~~~~~ scourge.h:1033:24: warning: 'ConfirmDialog* Scourge::dismissHeroDialog' [-Wreorder] 1033 | ConfirmDialog *dismissHeroDialog; | ^~~~~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:1046:17: warning: 'Scourge::chapterIntroWin' will be initialized after [-Wreorder] 1046 | Window *chapterIntroWin; | ^~~~~~~~~~~~~~~ scourge.h:997:24: warning: 'CardContainer* Scourge::cards' [-Wreorder] 997 | CardContainer *cards; | ^~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:997:24: warning: 'Scourge::cards' will be initialized after [-Wreorder] 997 | CardContainer *cards; | ^~~~~ scourge.h:985:17: warning: 'Window* Scourge::mainWin' [-Wreorder] 985 | Window *mainWin, *tbCombatWin; | ^~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:1023:17: warning: 'Scourge::squirrelWin' will be initialized after [-Wreorder] 1023 | Window *squirrelWin; | ^~~~~~~~~~~ scourge.h:943:24: warning: 'ConfirmDialog* Scourge::exitConfirmationDialog' [-Wreorder] 943 | ConfirmDialog *exitConfirmationDialog; | ^~~~~~~~~~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:1039:19: warning: 'Scourge::pcEditor' will be initialized after [-Wreorder] 1039 | PcEditor *pcEditor; | ^~~~~~~~ scourge.h:1019:25: warning: 'RechargeDialog* Scourge::rechargeDialog' [-Wreorder] 1019 | RechargeDialog *rechargeDialog; | ^~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:1019:25: warning: 'Scourge::rechargeDialog' will be initialized after [-Wreorder] 1019 | RechargeDialog *rechargeDialog; | ^~~~~~~~~~~~~~ scourge.h:1018:25: warning: 'IdentifyDialog* Scourge::identifyDialog' [-Wreorder] 1018 | IdentifyDialog *identifyDialog; | ^~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:1018:25: warning: 'Scourge::identifyDialog' will be initialized after [-Wreorder] 1018 | IdentifyDialog *identifyDialog; | ^~~~~~~~~~~~~~ scourge.h:1017:24: warning: 'UncurseDialog* Scourge::uncurseDialog' [-Wreorder] 1017 | UncurseDialog *uncurseDialog; | ^~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:1017:24: warning: 'Scourge::uncurseDialog' will be initialized after [-Wreorder] 1017 | UncurseDialog *uncurseDialog; | ^~~~~~~~~~~~~ scourge.h:1016:22: warning: 'TrainDialog* Scourge::trainDialog' [-Wreorder] 1016 | TrainDialog *trainDialog; | ^~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:1016:22: warning: 'Scourge::trainDialog' will be initialized after [-Wreorder] 1016 | TrainDialog *trainDialog; | ^~~~~~~~~~~ scourge.h:1015:23: warning: 'DonateDialog* Scourge::donateDialog' [-Wreorder] 1015 | DonateDialog *donateDialog; | ^~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:1015:23: warning: 'Scourge::donateDialog' will be initialized after [-Wreorder] 1015 | DonateDialog *donateDialog; | ^~~~~~~~~~~~ scourge.h:1014:21: warning: 'HealDialog* Scourge::healDialog' [-Wreorder] 1014 | HealDialog *healDialog; | ^~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:1014:21: warning: 'Scourge::healDialog' will be initialized after [-Wreorder] 1014 | HealDialog *healDialog; | ^~~~~~~~~~ scourge.h:1013:22: warning: 'TradeDialog* Scourge::tradeDialog' [-Wreorder] 1013 | TradeDialog *tradeDialog; | ^~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:1013:22: warning: 'Scourge::tradeDialog' will be initialized after [-Wreorder] 1013 | TradeDialog *tradeDialog; | ^~~~~~~~~~~ scourge.h:946:26: warning: 'ConversationGui* Scourge::conversationGui' [-Wreorder] 946 | ConversationGui *conversationGui; | ^~~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:946:26: warning: 'Scourge::conversationGui' will be initialized after [-Wreorder] 946 | ConversationGui *conversationGui; | ^~~~~~~~~~~~~~~ scourge.h:945:18: warning: 'InfoGui* Scourge::infoGui' [-Wreorder] 945 | InfoGui *infoGui; | ^~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:1007:17: warning: 'Scourge::boardWin' will be initialized after [-Wreorder] 1007 | Window *boardWin; | ^~~~~~~~ scourge.h:924:19: warning: 'MiniMap* Scourge::miniMap' [-Wreorder] 924 | MiniMap * miniMap; | ^~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:924:19: warning: 'Scourge::miniMap' will be initialized after [-Wreorder] 924 | MiniMap * miniMap; | ^~~~~~~ scourge.h:923:22: warning: 'MapSettings* Scourge::mapSettings' [-Wreorder] 923 | MapSettings *mapSettings; | ^~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:1040:25: warning: 'Scourge::saveDialog' will be initialized after [-Wreorder] 1040 | SavegameDialog *saveDialog; | ^~~~~~~~~~ scourge.h:930:28: warning: 'MultiplayerDialog* Scourge::multiplayer' [-Wreorder] 930 | MultiplayerDialog *multiplayer; | ^~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:930:28: warning: 'Scourge::multiplayer' will be initialized after [-Wreorder] 930 | MultiplayerDialog *multiplayer; | ^~~~~~~~~~~ scourge.h:929:22: warning: 'OptionsMenu* Scourge::optionsMenu' [-Wreorder] 929 | OptionsMenu *optionsMenu; | ^~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.h:929:22: warning: 'Scourge::optionsMenu' will be initialized after [-Wreorder] 929 | OptionsMenu *optionsMenu; | ^~~~~~~~~~~ scourge.h:927:19: warning: 'MainMenu* Scourge::mainMenu' [-Wreorder] 927 | MainMenu *mainMenu; | ^~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ scourge.cpp: In member function 'void Scourge::createUI()': scourge.cpp:1867:95: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1867 | squirrelLabel = new ScrollingLabel( 5, 0, getSDLHandler()->getScreen()->w - 220, 145, "" ); | ^~ scourge.cpp: In member function 'ContainerGui* Scourge::openContainerGui(Item*)': scourge.cpp:2254:35: warning: operation on '((Scourge*)this)->Scourge::containerGuiCount' may be undefined [-Wsequence-point] 2254 | containerGui[containerGuiCount++] = new ContainerGui( this, 10 + containerGuiCount * 15, 10 + containerGuiCount * 15 ); | ~~~~~~~~~~~~~~~~~^~ scourge.cpp: In member function 'void Scourge::createPartyUI()': scourge.cpp:2426:72: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2426 | roundButton = cards->createButton( 8, 0, offsetX, offsetX - 2, "", 0, false ); | ^~ scourge.cpp:2430:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2430 | ioButton = cards->createButton( 8, offsetX, offsetX, 2 * offsetX - 6, "", 0, false ); | ^~ scourge.cpp:2440:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2440 | "", 0, false, | ^~ scourge.cpp:2447:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2447 | "", 0, false, | ^~ scourge.cpp:2455:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2455 | "", 0, true, | ^~ scourge.cpp:2496:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2496 | "", | ^~ scourge.cpp:2515:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2515 | "", 0, true, | ^~ scourge.cpp: In member function 'void Scourge::createBoardUI()': scourge.cpp:3178:70: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3178 | colHeight - 5, "" ); | ^~ scourge.cpp: In member function 'void Scourge::uploadScore()': scourge.cpp:4006:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4006 | if( getSession()->getSquirrel()->getValue( "gameCompleted" ) != NULL ) { | ^~~~~~~~~~~~~~~ scourge.cpp: In member function 'virtual void Scourge::finale(char*, char*)': scourge.cpp:4328:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4328 | getSession()->getSquirrel()->setValue( "gameCompleted", "true" ); | ^~~~~~~~~~~~~~~ scourge.cpp:4328:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4328 | getSession()->getSquirrel()->setValue( "gameCompleted", "true" ); | ^~~~~~ scourge.cpp: In member function 'void Scourge::initChapterIntro(char*, char*)': scourge.cpp:4342:92: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4342 | getSession()->getSound()->playMusicChapter( getSession()->getSquirrel()->getValue( "gameCompleted" ) ); | ^~~~~~~~~~~~~~~ scourge.cpp: In member function 'void Scourge::replayChapterIntro()': scourge.cpp:4366:92: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4366 | getSession()->getSound()->playMusicChapter( getSession()->getSquirrel()->getValue( "gameCompleted" ) ); | ^~~~~~~~~~~~~~~ scourge.cpp: In member function 'void Scourge::endChapterIntro()': scourge.cpp:4376:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4376 | if( getSession()->getSquirrel()->getValue( "gameCompleted" ) == NULL ) { | ^~~~~~~~~~~~~~~ scourge.cpp: In member function 'virtual void Scourge::startMovieMode()': scourge.cpp:4623:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4623 | getSession()->setInterruptFunction( "" ); | ^~ scourge.cpp: In member function 'virtual void Scourge::endMovieMode()': scourge.cpp:4630:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4630 | getSDLHandler()->setContinueAt( "", 0 ); // clear continue at | ^~ scourge.cpp: In member function 'bool Scourge::loadScoreid(const std::string&, char*)': scourge.cpp:4066:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 4066 | fscanf( fp, "%s", p ); | ~~~~~~^~~~~~~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o scourgeview.o scourgeview.cpp In file included from common/constants.h:93, from scourgeview.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from events/../optionsmenu.h:28, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from session.h:25, from battle.h:25, from scourgeview.cpp:19: events/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ events/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from events/../optionsmenu.h:33: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from events/../scourge.h:34: events/../board.h: In member function 'char* Mission::getMusicTrack()': events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from creature.h:36, from scourgeview.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ In file included from scourgeview.cpp:22: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o scourgehandler.o scourgehandler.cpp In file included from common/constants.h:93, from scourgehandler.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from containergui.h:24, from scourgehandler.cpp:19: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from scourgehandler.cpp:23: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from scourgehandler.cpp:24: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from scourgehandler.cpp:25: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ scourgehandler.cpp: In member function 'virtual bool ScourgeHandler::handleEvent(Widget*, SDL_Event*)': scourgehandler.cpp:347:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 347 | scourge->runSquirrelConsole( "scourgeGame.reloadNuts();" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sdleventhandler.o sdleventhandler.cpp In file included from common/constants.h:93, from sdleventhandler.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sdlhandler.o sdlhandler.cpp In file included from common/constants.h:93, from sdlhandler.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from rpg/rpg.h:23, from persist.h:22, from gameadapter.h:22, from sdlhandler.cpp:20: rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from events/../optionsmenu.h:33, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from session.h:25, from sdlhandler.cpp:26: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from events/../scourge.h:34: events/../board.h: In member function 'char* Mission::getMusicTrack()': events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ sdlhandler.cpp: In static member function 'static bool SDLHandler::intersects(int, int, int, int, int, int, int, int)': sdlhandler.cpp:1048:17: warning: narrowing conversion of 'x' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 1048 | x, y, w, h | ^ sdlhandler.cpp:1048:20: warning: narrowing conversion of 'y' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 1048 | x, y, w, h | ^ sdlhandler.cpp:1048:23: warning: narrowing conversion of 'w' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 1048 | x, y, w, h | ^ sdlhandler.cpp:1048:26: warning: narrowing conversion of 'h' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 1048 | x, y, w, h | ^ sdlhandler.cpp:1051:17: warning: narrowing conversion of 'x2' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 1051 | x2, y2, w2, h2 | ^~ sdlhandler.cpp:1051:21: warning: narrowing conversion of 'y2' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 1051 | x2, y2, w2, h2 | ^~ sdlhandler.cpp:1051:25: warning: narrowing conversion of 'w2' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 1051 | x2, y2, w2, h2 | ^~ sdlhandler.cpp:1051:29: warning: narrowing conversion of 'h2' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 1051 | x2, y2, w2, h2 | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sdlscreenview.o sdlscreenview.cpp In file included from common/constants.h:93, from sdlscreenview.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sound.o sound.cpp In file included from common/constants.h:93, from sound.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from rpg/rpg.h:23, from persist.h:22, from board.h:23, from sound.h:27, from sound.cpp:20: rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from events/../optionsmenu.h:33, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from session.h:25, from battle.h:25, from sound.cpp:21: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from rpg/rpglib.h:27, from sound.cpp:23: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from sound.cpp:25: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ sound.cpp: At global scope: sound.cpp:41:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 41 | char *Sound::TELEPORT = "teleport"; | ^~~~~~~~~~ sound.cpp:42:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 42 | char *Sound::OPEN_DOOR = "open door"; | ^~~~~~~~~~~ sound.cpp:43:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 43 | char *Sound::OPEN_BOX = "open box"; | ^~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o pcui.o pcui.cpp In file included from common/constants.h:93, from pcui.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from rpg/rpg.h:23, from rpg/rpglib.h:26, from pcui.cpp:20: rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from rpg/rpglib.h:27: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from optionsmenu.h:33, from scourge.h:29, from pcui.cpp:24: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from pcui.cpp:25: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from pcui.cpp:26: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o textscroller.o textscroller.cpp In file included from common/constants.h:93, from textscroller.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from textscroller.cpp:19: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o equip.o equip.cpp In file included from common/constants.h:93, from equip.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from render/../rpg/rpg.h:23, from render/../persist.h:22, from render/render.h:23, from render/map.h:22, from render/renderlib.h:27, from equip.cpp:20: render/../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ render/../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from render/../events/../optionsmenu.h:33, from render/../events/../scourge.h:29, from render/../events/thirsthungerevent.h:22, from render/../party.h:25, from render/../session.h:25, from render/shapes.h:27, from render/glshape.h:25, from render/renderlib.h:34: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ render/../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from render/../events/../scourge.h:34: render/../events/../board.h: In member function 'char* Mission::getMusicTrack()': render/../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ render/../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from equip.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from equip.cpp:27: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from equip.cpp:28: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ equip.cpp: At global scope: equip.cpp:53:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 53 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~~~ equip.cpp:53:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 53 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~~~ equip.cpp:53:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 53 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~ equip.cpp:53:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 53 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~~~~ equip.cpp:53:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 53 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~~~ equip.cpp:53:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 53 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~~~~~~~~~~ equip.cpp: In member function 'void Equip::drawCapabilities()': equip.cpp:572:79: warning: self-comparison always evaluates to true [-Wtautological-compare] 572 | if ( !found && mx >= xx && mx < xx + SPELL_SIZE && yy >= yy && my < yy + SPELL_SIZE ) { | ~~ ^~ ~~ equip.cpp: In constructor 'MissionInfoUI::MissionInfoUI(PcUi*, int, int, int, int)': equip.cpp:725:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 725 | description = new ScrollingLabel( x, y, w, h - 95, "" ); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o inven.o inven.cpp In file included from common/constants.h:93, from inven.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from containerview.h:24, from inven.h:28, from inven.cpp:18: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from inven.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from inven.cpp:26: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from inven.cpp:27: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o portrait.o portrait.cpp In file included from common/constants.h:93, from portrait.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from render/../rpg/rpg.h:23, from render/../persist.h:22, from render/render.h:23, from render/map.h:22, from render/renderlib.h:27, from portrait.cpp:19: render/../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ render/../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from render/../events/../optionsmenu.h:33, from render/../events/../scourge.h:29, from render/../events/thirsthungerevent.h:22, from render/../party.h:25, from render/../session.h:25, from render/shapes.h:27, from render/glshape.h:25, from render/renderlib.h:34: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ render/../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from render/../events/../scourge.h:34: render/../events/../board.h: In member function 'char* Mission::getMusicTrack()': render/../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ render/../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from portrait.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from portrait.cpp:26: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from portrait.cpp:27: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ portrait.cpp: At global scope: portrait.cpp:64:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 64 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~~~ portrait.cpp:64:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 64 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~~~ portrait.cpp:64:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 64 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~ portrait.cpp:64:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 64 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~~~~ portrait.cpp:64:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 64 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~~~ portrait.cpp:64:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 64 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o shapepalette.o shapepalette.cpp In file included from common/constants.h:93, from shapepalette.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from render/../rpg/rpg.h:23, from render/../persist.h:22, from render/render.h:23, from render/shapes.h:22, from shapepalette.h:25, from shapepalette.cpp:19: render/../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ render/../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from render/../events/../optionsmenu.h:33, from render/../events/../scourge.h:29, from render/../events/thirsthungerevent.h:22, from render/../party.h:25, from render/../session.h:25, from render/shapes.h:27: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ render/../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from render/../events/../scourge.h:34: render/../events/../board.h: In member function 'char* Mission::getMusicTrack()': render/../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ render/../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from shapepalette.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o util.o util.cpp In file included from common/constants.h:93, from util.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from util.cpp:19: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from render/../events/../optionsmenu.h:33, from render/../events/../scourge.h:29, from render/../events/thirsthungerevent.h:22, from render/../party.h:25, from render/../session.h:25, from render/shapes.h:27, from render/glshape.h:25, from render/renderlib.h:34, from util.cpp:20: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ render/../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from render/../events/../scourge.h:34: render/../events/../board.h: In member function 'char* Mission::getMusicTrack()': render/../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ render/../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ util.cpp: In function 'char* Util::getOpenGLError()': util.cpp:93:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 93 | case GL_NO_ERROR : return "GL_NO_ERROR"; | ^~~~~~~~~~~~~ util.cpp:94:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 94 | case GL_INVALID_ENUM : return "GL_INVALID_ENUM"; | ^~~~~~~~~~~~~~~~~ util.cpp:95:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 95 | case GL_INVALID_VALUE : return "GL_INVALID_VALUE"; | ^~~~~~~~~~~~~~~~~~ util.cpp:96:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 96 | case GL_INVALID_OPERATION : return "GL_INVALID_OPERATION"; | ^~~~~~~~~~~~~~~~~~~~~~ util.cpp:97:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 97 | case GL_STACK_OVERFLOW : return "GL_STACK_OVERFLOW"; | ^~~~~~~~~~~~~~~~~~~ util.cpp:98:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 98 | case GL_OUT_OF_MEMORY : return "GL_OUT_OF_MEMORY"; | ^~~~~~~~~~~~~~~~~~ util.cpp:101:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 101 | return "Unknown error"; | ^~~~~~~~~~~~~~~ util.cpp: In function 'float Util::getLightComp(float, float, float)': util.cpp:351:13: warning: variable 'q' set but not used [-Wunused-but-set-variable] 351 | int q = 1; | ^ util.cpp: In function 'void Util::mt_srand(Uint32)': util.cpp:421:18: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 421 | for( ; i < MT_N; ++i ) | ^ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o text.o text.cpp In file included from common/constants.h:93, from text.cpp:23: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | text.cpp: In member function 'TexFont* TexturedText::txfLoadFont(std::string&)': text.cpp:63:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 63 | lastError = "file open failed."; | ^~~~~~~~~~~~~~~~~~~ text.cpp:75:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 75 | lastError = "not a texture font file."; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:85:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 85 | lastError = "not a texture font file."; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 88 | #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } | ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:90:9: note: in expansion of macro 'EXPECT' 90 | EXPECT( 1 ); | ^~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 88 | #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } | ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:92:9: note: in expansion of macro 'EXPECT' 92 | EXPECT( 1 ); | ^~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 88 | #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } | ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:94:9: note: in expansion of macro 'EXPECT' 94 | EXPECT( 1 ); | ^~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 88 | #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } | ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:96:9: note: in expansion of macro 'EXPECT' 96 | EXPECT( 1 ); | ^~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 88 | #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } | ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:98:9: note: in expansion of macro 'EXPECT' 98 | EXPECT( 1 ); | ^~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 88 | #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } | ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:100:9: note: in expansion of macro 'EXPECT' 100 | EXPECT( 1 ); | ^~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 88 | #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } | ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:113:9: note: in expansion of macro 'EXPECT' 113 | EXPECT( txf->num_glyphs ); | ^~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 88 | #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } | ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:174:25: note: in expansion of macro 'EXPECT' 174 | EXPECT( txf->tex_width * txf->tex_height ); | ^~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 88 | #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } | ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:184:25: note: in expansion of macro 'EXPECT' 184 | EXPECT( txf->tex_width * txf->tex_height ); | ^~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 88 | #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } | ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:193:17: note: in expansion of macro 'EXPECT' 193 | EXPECT( stride * height ); | ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o minimap.o minimap.cpp In file included from common/constants.h:93, from minimap.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from render/../rpg/rpg.h:23, from render/../persist.h:22, from render/render.h:23, from render/map.h:22, from render/renderlib.h:27, from minimap.cpp:20: render/../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ render/../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from render/../events/../optionsmenu.h:33, from render/../events/../scourge.h:29, from render/../events/thirsthungerevent.h:22, from render/../party.h:25, from render/../session.h:25, from render/shapes.h:27, from render/glshape.h:25, from render/renderlib.h:34: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ render/../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from render/../events/../scourge.h:34: render/../events/../board.h: In member function 'char* Mission::getMusicTrack()': render/../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ render/../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpgitem.h:25, from item.h:28, from minimap.cpp:26: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28, from creature.h:36, from minimap.cpp:27: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o optionsmenu.o optionsmenu.cpp In file included from common/constants.h:93, from optionsmenu.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from rpg/rpg.h:23, from persist.h:22, from board.h:23, from scourge.h:34, from optionsmenu.h:26, from optionsmenu.cpp:19: rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o partyeditor.o partyeditor.cpp In file included from common/constants.h:93, from partyeditor.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from events/../optionsmenu.h:28, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from partyeditor.h:25, from partyeditor.cpp:19: events/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ events/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from events/../optionsmenu.h:33: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from events/../scourge.h:34: events/../board.h: In member function 'char* Mission::getMusicTrack()': events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from partyeditor.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from partyeditor.cpp:22: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from partyeditor.cpp:23: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ partyeditor.cpp: In member function 'void PartyEditor::addStartingBackpack(Creature*)': partyeditor.cpp:200:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 200 | pc->addSpell( Spell::getSpellByName( "Flame of Azun" ) ); | ^~~~~~~~~~~~~~~ partyeditor.cpp:201:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 201 | pc->addSpell( Spell::getSpellByName( "Ole Taffy's purty colors" ) ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ partyeditor.cpp:204:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 204 | pc->addSpell( Spell::getSpellByName( "Silent knives" ) ); | ^~~~~~~~~~~~~~~ partyeditor.cpp:206:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 206 | pc->addSpell( Spell::getSpellByName( "Stinging light" ) ); | ^~~~~~~~~~~~~~~~ partyeditor.cpp:209:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 209 | pc->addSpell( Spell::getSpellByName( "Lesser healing touch" ) ); | ^~~~~~~~~~~~~~~~~~~~~~ partyeditor.cpp:211:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 211 | pc->addSpell( Spell::getSpellByName( "Body of stone" ) ); | ^~~~~~~~~~~~~~~ partyeditor.cpp:216:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 216 | pc->addSpell( Spell::getSpellByName( "Ring of Harm" ) ); | ^~~~~~~~~~~~~~ partyeditor.cpp:217:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 217 | pc->addSpell( Spell::getSpellByName( "Malice Storm" ) ); | ^~~~~~~~~~~~~~ partyeditor.cpp:218:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 218 | pc->addSpell( Spell::getSpellByName( "Unholy Decimator" ) ); | ^~~~~~~~~~~~~~~~~~ partyeditor.cpp:219:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 219 | pc->addSpell( Spell::getSpellByName( "Remove curse" ) ); | ^~~~~~~~~~~~~~ partyeditor.cpp:220:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 220 | pc->addSpell( Spell::getSpellByName( "Teleportation" ) ); | ^~~~~~~~~~~~~~~ partyeditor.cpp:221:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 221 | pc->addSpell( Spell::getSpellByName( "Recall to life" ) ); | ^~~~~~~~~~~~~~~~ partyeditor.cpp:222:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 222 | pc->addSpell( Spell::getSpellByName( "Blast of Fury" ) ); | ^~~~~~~~~~~~~~~ partyeditor.cpp:223:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 223 | pc->addSpell( Spell::getSpellByName( "Dori's Tumblers" ) ); | ^~~~~~~~~~~~~~~~~ partyeditor.cpp:224:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 224 | pc->addSpell( Spell::getSpellByName( "Gust of wind" ) ); | ^~~~~~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o pceditor.o pceditor.cpp In file included from common/constants.h:93, from pceditor.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from rpg/rpg.h:23, from pceditor.h:24, from pceditor.cpp:18: rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33, from scourge.h:29, from pceditor.cpp:26: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from creature.h:36, from pceditor.cpp:27: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ pceditor.cpp: In member function 'void PcEditor::createUI()': pceditor.cpp:548:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 548 | "+", | ^~~ pceditor.cpp:555:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 555 | "-", | ^~~ pceditor.cpp:634:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 634 | "<<", IMAGE_TAB ); | ^~~~ pceditor.cpp:637:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 637 | " >>", IMAGE_TAB ); | ^~~~~~~~ pceditor.cpp:648:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 648 | "<<", IMAGE_TAB ); | ^~~~ pceditor.cpp:651:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 651 | " >>", IMAGE_TAB ); | ^~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o multiplayer.o multiplayer.cpp In file included from common/constants.h:93, from multiplayer.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from multiplayer.h:23, from multiplayer.cpp:19: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from multiplayer.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from multiplayer.cpp:22: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o userconfiguration.o userconfiguration.cpp In file included from common/constants.h:93, from userconfiguration.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from userconfiguration.cpp:19: userconfiguration.h: In constructor 'UserConfiguration::UserConfiguration()': userconfiguration.h:81:14: warning: 'UserConfiguration::enableScreenshots' will be initialized after [-Wreorder] 81 | bool enableScreenshots; | ^~~~~~~~~~~~~~~~~ userconfiguration.h:80:13: warning: 'int UserConfiguration::tooltipInterval' [-Wreorder] 80 | int tooltipInterval; | ^~~~~~~~~~~~~~~ userconfiguration.cpp:299:1: warning: when initialized here [-Wreorder] 299 | UserConfiguration::UserConfiguration() | ^~~~~~~~~~~~~~~~~ userconfiguration.cpp: In member function 'void UserConfiguration::saveConfiguration()': userconfiguration.cpp:522:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 522 | writeFile( configFile, "Modify at your own risks.\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:523:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 523 | writeFile( configFile, "-------------------------------------------------\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:524:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 524 | writeFile( configFile, "- A line not beginning with BIND or SET is ignored (spaces excepted)\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:525:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 525 | writeFile( configFile, "- Only one instruction per line will be processed\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:526:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 526 | writeFile( configFile, "- No upper/lower case distinction\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:527:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 527 | writeFile( configFile, "- A space is a parameter separator so replace spaces by '_' if needed in your parameters.\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:528:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 528 | writeFile( configFile, " Example : for 'left bracket' put 'left_bracket'\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:529:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 529 | writeFile( configFile, "- No specific order needed between BIND/SET commands\n\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:530:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 530 | writeFile( configFile, "Syntax : \n" ); | ^~~~~~~~~~~~~ userconfiguration.cpp:531:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 531 | writeFile( configFile, "- BIND sdl_key_name engineAction\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:532:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 532 | writeFile( configFile, "- SET variable value\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:533:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 533 | writeFile( configFile, "without the '-' at the beginning\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:534:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 534 | writeFile( configFile, "sdl_key_names are defined in SDL.h\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:535:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 535 | writeFile( configFile, "engineActions and variables are defined in userconfiguration.h\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:536:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 536 | writeFile( configFile, "-------------------------------------------------\n\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:542:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 542 | writeFile( configFile, "// Bindings\n" ); | ^~~~~~~~~~~~~~~ userconfiguration.cpp:556:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 556 | writeFile( configFile, "\n// Video settings\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o board.o board.cpp In file included from common/constants.h:93, from board.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from rpg/rpg.h:23, from persist.h:22, from board.h:23, from board.cpp:19: rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from render/../events/../optionsmenu.h:33, from render/../events/../scourge.h:29, from render/../events/thirsthungerevent.h:22, from render/../party.h:25, from render/../session.h:25, from render/shapes.h:27, from render/glshape.h:25, from render/renderlib.h:34, from board.cpp:20: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ render/../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from rpg/rpglib.h:27, from board.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from board.cpp:24: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from board.cpp:25: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ board.cpp: In static member function 'static void Mission::saveMapData(GameAdapter*, const std::string&)': board.cpp:662:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 662 | config = ConfigLang::fromString( "[map]\n[/map]\n" ); | ^~~~~~~~~~~~~~~~~ board.cpp: In member function 'NpcInfoInfo* NpcInfo::save()': board.cpp:925:43: warning: the address of 'NpcInfo::subtypeStr' will never be NULL [-Waddress] 925 | strcpy( ( char* )info->subtype, ( subtypeStr ? subtypeStr : "" ) ); | ^~~~~~~~~~ board.h:141:14: note: 'NpcInfo::subtypeStr' declared here 141 | char subtypeStr[255]; | ^~~~~~~~~~ board.cpp: In member function 'Mission* MapPlace::findOrCreateMission(Board*, MissionInfo*)': board.cpp:949:117: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 949 | mission = new Mission( board, level, depth + 1, false, name, display_name, description, NULL, NULL, "", music, "", "", short_name ); | ^~ board.cpp:949:128: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 949 | mission = new Mission( board, level, depth + 1, false, name, display_name, description, NULL, NULL, "", music, "", "", short_name ); | ^~ board.cpp:949:132: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 949 | mission = new Mission( board, level, depth + 1, false, name, display_name, description, NULL, NULL, "", music, "", "", short_name ); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o conversation.o conversation.cpp In file included from common/constants.h:93, from conversation.h:4, from conversation.cpp:1: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from conversation.cpp:3: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from rpg/rpglib.h:27, from creature.h:36, from conversation.cpp:4: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from events/../optionsmenu.h:33, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from session.h:25, from creature.h:37: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from events/../scourge.h:34: events/../board.h: In member function 'char* Mission::getMusicTrack()': events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o battle.o battle.cpp In file included from common/constants.h:93, from battle.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from events/../optionsmenu.h:28, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from session.h:25, from battle.h:25, from battle.cpp:19: events/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ events/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from events/../optionsmenu.h:33: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from events/../scourge.h:34: events/../board.h: In member function 'char* Mission::getMusicTrack()': events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from battle.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from battle.cpp:22: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from battle.cpp:24: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ battle.cpp: At global scope: battle.cpp:37:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 37 | "sound/weapon-swish/handheld/sw1.wav", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:38:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 38 | "sound/weapon-swish/handheld/sw2.wav", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:39:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 39 | "sound/weapon-swish/handheld/sw3.wav", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:41:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 41 | "sound/weapon-swish/bows/swb2.wav", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:42:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 42 | "sound/weapon-swish/bows/swb3.wav", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:44:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 44 | "sound/potion/pd1.wav" | ^~~~~~~~~~~~~~~~~~~~~~ battle.cpp: In member function 'int Battle::getAdjustedWait(int)': battle.cpp:331:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 331 | getSession()->getSquirrel()->setGlobalVariable( "turnWait", originalWait ); | ^~~~~~~~~~ battle.cpp:345:97: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 345 | int newWait = static_cast( getSession()->getSquirrel()->getGlobalVariable( "turnWait" ) ); | ^~~~~~~~~~ battle.cpp: In member function 'void Battle::hitWithItem()': battle.cpp:1287:89: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1287 | getSession()->getSquirrel()->setGlobalVariable( "damage", damage ); | ^~~~~~~~ battle.cpp:1289:98: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1289 | damage = getSession()->getSquirrel()->getGlobalVariable( "damage" ); | ^~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o party.o party.cpp In file included from common/constants.h:93, from party.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from events/../optionsmenu.h:28, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from party.cpp:19: events/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ events/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from events/../optionsmenu.h:33: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from events/../scourge.h:34: events/../board.h: In member function 'char* Mission::getMusicTrack()': events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from party.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from party.cpp:22: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from party.cpp:23: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ party.cpp: In static member function 'static void Party::createHardCodedParty(Session*, Creature**, int*)': party.cpp:535:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 535 | pc[2]->addSpell( Spell::getSpellByName( "Flame of Azun" ) ); | ^~~~~~~~~~~~~~~ party.cpp:536:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 536 | pc[2]->addSpell( Spell::getSpellByName( "Ole Taffy's purty colors" ) ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ party.cpp:537:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 537 | pc[2]->addSpell( Spell::getSpellByName( "Silent knives" ) ); | ^~~~~~~~~~~~~~~ party.cpp:538:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 538 | pc[2]->addSpell( Spell::getSpellByName( "Stinging light" ) ); | ^~~~~~~~~~~~~~~~ party.cpp:539:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 539 | pc[2]->addSpell( Spell::getSpellByName( "Burning stare" ) ); | ^~~~~~~~~~~~~~~ party.cpp:541:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 541 | pc[3]->addSpell( Spell::getSpellByName( "Lesser healing touch" ) ); | ^~~~~~~~~~~~~~~~~~~~~~ party.cpp:542:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 542 | pc[3]->addSpell( Spell::getSpellByName( "Body of stone" ) ); | ^~~~~~~~~~~~~~~ party.cpp:543:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 543 | pc[3]->addSpell( Spell::getSpellByName( "Bless group" ) ); | ^~~~~~~~~~~~~ party.cpp:544:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 544 | pc[3]->addSpell( Spell::getSpellByName( "Invisibility" ) ); | ^~~~~~~~~~~~~~ party.cpp:545:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 545 | pc[3]->addSpell( Spell::getSpellByName( "Poison of ignorance" ) ); | ^~~~~~~~~~~~~~~~~~~~~ party.cpp:546:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 546 | pc[3]->addSpell( Spell::getSpellByName( "Transmute poison" ) ); | ^~~~~~~~~~~~~~~~~~ party.cpp:547:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 547 | pc[3]->addSpell( Spell::getSpellByName( "Cursed ways" ) ); | ^~~~~~~~~~~~~ party.cpp:548:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 548 | pc[3]->addSpell( Spell::getSpellByName( "Remove curse" ) ); | ^~~~~~~~~~~~~~ party.cpp:549:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 549 | pc[3]->addSpell( Spell::getSpellByName( "Enthrall fiend" ) ); | ^~~~~~~~~~~~~~~~ party.cpp:550:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 550 | pc[3]->addSpell( Spell::getSpellByName( "Break from possession" ) ); | ^~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o spellcaster.o spellcaster.cpp In file included from common/constants.h:93, from spellcaster.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from events/../optionsmenu.h:28, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from session.h:25, from spellcaster.h:25, from spellcaster.cpp:18: events/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ events/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from events/../optionsmenu.h:33: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from events/../scourge.h:34: events/../board.h: In member function 'char* Mission::getMusicTrack()': events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpgitem.h:25, from item.h:28, from spellcaster.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28, from creature.h:36, from spellcaster.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ spellcaster.cpp: In member function 'void SpellCaster::causeDamage(bool, GLuint, GLfloat)': spellcaster.cpp:421:73: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 421 | battle->getSession()->getSquirrel()->setGlobalVariable( "damage", damage ); | ^~~~~~~~ spellcaster.cpp:423:82: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 423 | damage = battle->getSession()->getSquirrel()->getGlobalVariable( "damage" ); | ^~~~~~~~ spellcaster.cpp: In member function 'void SpellCaster::hailAttack()': spellcaster.cpp:715:52: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] 715 | causeDamage( ( GLuint )( i * 50 ) ); | ~~~~^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o itemlist.o itemlist.cpp In file included from common/constants.h:93, from itemlist.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from itemlist.cpp:19: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from creature.h:36, from itemlist.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ In file included from itemlist.cpp:21: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o tradedialog.o tradedialog.cpp In file included from common/constants.h:93, from tradedialog.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from tradedialog.cpp:19: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from creature.h:36, from tradedialog.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ In file included from tradedialog.cpp:21: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o uncursedialog.o uncursedialog.cpp In file included from common/constants.h:93, from uncursedialog.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from uncursedialog.cpp:19: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from creature.h:36, from uncursedialog.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ In file included from uncursedialog.cpp:21: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o identifydialog.o identifydialog.cpp In file included from common/constants.h:93, from identifydialog.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from identifydialog.cpp:19: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from creature.h:36, from identifydialog.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ In file included from identifydialog.cpp:21: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o rechargedialog.o rechargedialog.cpp In file included from common/constants.h:93, from rechargedialog.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from rechargedialog.cpp:19: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from creature.h:36, from rechargedialog.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ In file included from rechargedialog.cpp:21: item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o healdialog.o healdialog.cpp In file included from common/constants.h:93, from healdialog.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from healdialog.cpp:20: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from creature.h:36, from healdialog.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ healdialog.cpp: In constructor 'HealDialog::HealDialog(Scourge*)': healdialog.cpp:44:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 44 | spellDescription = new ScrollingLabel( 10, 210, w - 20, 70, "" ); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o savegamedialog.o savegamedialog.cpp In file included from common/constants.h:93, from savegamedialog.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from savegamedialog.cpp:20: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from creature.h:36, from savegamedialog.cpp:23: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o donatedialog.o donatedialog.cpp In file included from common/constants.h:93, from donatedialog.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from donatedialog.cpp:20: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from creature.h:36, from donatedialog.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ donatedialog.cpp: In constructor 'DonateDialog::DonateDialog(Scourge*)': donatedialog.cpp:46:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 46 | result = new ScrollingLabel( 10, 75, w - 20, 65, "" ); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o texteffect.o texteffect.cpp In file included from common/constants.h:93, from texteffect.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from texteffect.cpp:19: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o traindialog.o traindialog.cpp In file included from common/constants.h:93, from traindialog.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from optionsmenu.h:28, from scourge.h:29, from traindialog.cpp:20: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from optionsmenu.h:33: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from scourge.h:34: board.h: In member function 'char* Mission::getMusicTrack()': board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from creature.h:36, from traindialog.cpp:22: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ traindialog.cpp: In constructor 'TrainDialog::TrainDialog(Scourge*)': traindialog.cpp:51:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 51 | description = new ScrollingLabel( 10, 205, w - 30, 120, "" ); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o upload.o upload.cpp In file included from common/constants.h:93, from upload.cpp:14: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o characterinfo.o characterinfo.cpp In file included from common/constants.h:93, from characterinfo.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from events/../optionsmenu.h:28, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from session.h:25, from characterinfo.h:25, from characterinfo.cpp:18: events/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ events/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from events/../optionsmenu.h:33: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from events/../scourge.h:34: events/../board.h: In member function 'char* Mission::getMusicTrack()': events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpgitem.h:25, from item.h:28, from characterinfo.cpp:19: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ item.h: In member function 'void Item::setWeight(float)': item.h:160:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~~~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28, from creature.h:36, from characterinfo.cpp:20: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o skillsview.o skillsview.cpp In file included from common/constants.h:93, from skillsview.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from events/../optionsmenu.h:28, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from session.h:25, from skillsview.h:25, from skillsview.cpp:18: events/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ events/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from events/../optionsmenu.h:33: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from events/../scourge.h:34: events/../board.h: In member function 'char* Mission::getMusicTrack()': events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from creature.h:36, from skillsview.cpp:22: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o astar.o astar.cpp In file included from common/constants.h:93, from astar.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from render/../rpg/rpg.h:23, from render/../persist.h:22, from render/render.h:23, from render/location.h:23, from astar.h:30, from astar.cpp:19: render/../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ render/../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from render/../events/../optionsmenu.h:33, from render/../events/../scourge.h:29, from render/../events/thirsthungerevent.h:22, from render/../party.h:25, from render/../session.h:25, from render/shapes.h:27, from render/glshape.h:25, from render/renderlib.h:34, from astar.cpp:20: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ render/../events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from render/../events/../scourge.h:34: render/../events/../board.h: In member function 'char* Mission::getMusicTrack()': render/../events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ render/../events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ In file included from rpg/rpglib.h:27, from creature.h:36, from astar.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o cellular.o cellular.cpp In file included from common/constants.h:93, from cellular.cpp:17: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from cellular.cpp:19: util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ cellular.cpp: In member function 'void CellularAutomaton::findRooms()': cellular.cpp:377:37: warning: statement has no effect [-Wunused-value] 377 | assert( roomCounter < MAX_ROOM_COUNT ); common/constants.h:175:19: note: in definition of macro 'assert' 175 | #define assert(x) x; | ^ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o quickhull.o quickhull.cpp In file included from common/constants.h:93, from quickhull.cpp:21: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o pathmanager.o pathmanager.cpp In file included from common/constants.h:93, from pathmanager.cpp:18: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | In file included from render/../rpg/rpg.h:23, from render/../persist.h:22, from render/render.h:23, from render/location.h:23, from astar.h:30, from pathmanager.cpp:19: render/../rpg/../util.h:128:59: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 128 | template struct equal_ignore_case : public std::binary_function { | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/bits/refwrap.h:39, from /usr/include/c++/13/vector:68, from common/constants.h:84: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ render/../rpg/../util.h:136:53: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 136 | template struct CaseCompare : public std::binary_function { | ^~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ In file included from rpg/rpglib.h:27, from creature.h:36, from pathmanager.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:32: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from rpg/monster.h:26, from rpg/rpglib.h:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:84: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~~~~~ In file included from events/../optionsmenu.h:33, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from session.h:25, from creature.h:37: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~ events/../gui/multiplelabel.h:54:75: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 54 | if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; | ^~~~~~ In file included from events/../scourge.h:34: events/../board.h: In member function 'char* Mission::getMusicTrack()': events/../board.h:321:26: warning: the address of 'Mission::music' will never be NULL [-Waddress] 321 | return ( music && music[0] ) ? music : NULL; | ^~~~~ events/../board.h:168:14: note: 'Mission::music' declared here 168 | char music[255]; | ^~~~~ creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h:614:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 614 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; thirst = n; evalSpecialSkills(); | ^~ creature.h: In member function 'void Creature::setHunger(int)': creature.h:623:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ creature.h:623:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 623 | if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); | ^~ i586-alt-linux-g++ -pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic -std=c++14 -D_FILE_OFFSET_BITS=64 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -o scourge configlang.o persist.o creature.o calendar.o date.o item.o terraingenerator.o landgenerator.o cavemaker.o dungeongenerator.o mondrian.o main.o mainmenu.o mapeditor.o mapwidget.o netplay.o containerview.o containergui.o conversationgui.o infogui.o projectile.o session.o gameadapter.o scourge.o scourgeview.o scourgehandler.o sdleventhandler.o sdlhandler.o sdlscreenview.o sound.o pcui.o textscroller.o equip.o inven.o portrait.o shapepalette.o util.o text.o minimap.o optionsmenu.o partyeditor.o pceditor.o multiplayer.o userconfiguration.o board.o conversation.o battle.o party.o spellcaster.o itemlist.o tradedialog.o uncursedialog.o identifydialog.o rechargedialog.o healdialog.o savegamedialog.o donatedialog.o texteffect.o traindialog.o upload.o characterinfo.o skillsview.o astar.o cellular.o quickhull.o pathmanager.o ../src/common/libScourgeCommon.a ../src/freetype/libScourgeFreeType.a ../src/gui/libScourgeGui.a ../src/rpg/libScourgeRpg.a ../src/net/libScourgeNet.a ../src/render/libScourgeRender.a ../src/io/libScourgeIo.a ../src/sqbinding/libSqbinding.a ../src/sqstdlib/libSqstdlib.a ../src/squirrel/libSquirrel.a ../src/events/libScourgeEvents.a ../src/test/libScourgeTest.a -ldl -lm -lz -lSDL -lpthread -lSDL_mixer -lSDL_net -lSDL_ttf -lSDL_image -lGL -lGLU -lfreetype In function 'snprintf', inlined from 'saveScreenshot' at scourgehandler.cpp:682:15, inlined from 'handleEvent' at scourgehandler.cpp:214:18: /usr/include/bits/stdio2.h:54:35: warning: '__builtin___snprintf_chk' specified bound 256 exceeds destination size 255 [-Wstringop-overflow=] 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^ make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src' make[2]: Leaving directory '/usr/src/RPM/BUILD/scourge/src' make[2]: Entering directory '/usr/src/RPM/BUILD/scourge' make[2]: Leaving directory '/usr/src/RPM/BUILD/scourge' make[1]: Leaving directory '/usr/src/RPM/BUILD/scourge' make: Leaving directory '/usr/src/RPM/BUILD/scourge' + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.19618 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/scourge-buildroot + : + /bin/rm -rf -- /usr/src/tmp/scourge-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games + cd scourge + /usr/bin/make 'INSTALL=/usr/libexec/rpm-build/install -p' prefix=/usr/src/tmp/scourge-buildroot/usr exec_prefix=/usr/src/tmp/scourge-buildroot/usr bindir=/usr/src/tmp/scourge-buildroot/usr/bin sbindir=/usr/src/tmp/scourge-buildroot/usr/sbin sysconfdir=/usr/src/tmp/scourge-buildroot/etc datadir=/usr/src/tmp/scourge-buildroot/usr/share includedir=/usr/src/tmp/scourge-buildroot/usr/include libdir=/usr/src/tmp/scourge-buildroot/usr/lib libexecdir=/usr/src/tmp/scourge-buildroot/usr/lib localstatedir=/usr/src/tmp/scourge-buildroot/var/lib runstatedir=/usr/src/tmp/scourge-buildroot/var/run sharedstatedir=/usr/src/tmp/scourge-buildroot/var/lib mandir=/usr/src/tmp/scourge-buildroot/usr/share/man infodir=/usr/src/tmp/scourge-buildroot/usr/share/info install make: Entering directory '/usr/src/RPM/BUILD/scourge' Making install in intl make[1]: Entering directory '/usr/src/RPM/BUILD/scourge/intl' if { test "scourge" = "gettext-runtime" || test "scourge" = "gettext-tools"; } \ && test 'no' = yes; then \ /usr/bin/mkdir -p /usr/src/tmp/scourge-buildroot/usr/lib /usr/src/tmp/scourge-buildroot/usr/include; \ /usr/libexec/rpm-build/install -p -m 644 libintl.h /usr/src/tmp/scourge-buildroot/usr/include/libintl.h; \ @LIBTOOL@ --mode=install \ /usr/libexec/rpm-build/install -p -m 644 libintl.a /usr/src/tmp/scourge-buildroot/usr/lib/libintl.a; \ if test "@RELOCATABLE@" = yes; then \ dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < /usr/src/tmp/scourge-buildroot/usr/lib/libintl.la | sed -e "s,^',," -e "s,'\$,,"`; \ if test -n "$dependencies"; then \ rm -f /usr/src/tmp/scourge-buildroot/usr/lib/libintl.la; \ fi; \ fi; \ else \ : ; \ fi if test "scourge" = "gettext-tools" \ && test 'no' = no \ && test yes != no; then \ /usr/bin/mkdir -p /usr/src/tmp/scourge-buildroot/usr/lib; \ @LIBTOOL@ --mode=install \ /usr/libexec/rpm-build/install -p -m 644 libgnuintl.a /usr/src/tmp/scourge-buildroot/usr/lib/libgnuintl.a; \ rm -f /usr/src/tmp/scourge-buildroot/usr/lib/preloadable_libintl.so; \ /usr/libexec/rpm-build/install -p -m 644 /usr/src/tmp/scourge-buildroot/usr/lib/libgnuintl.so /usr/src/tmp/scourge-buildroot/usr/lib/preloadable_libintl.so; \ @LIBTOOL@ --mode=uninstall \ rm -f /usr/src/tmp/scourge-buildroot/usr/lib/libgnuintl.a; \ else \ : ; \ fi if test 'no' = yes; then \ test yes != no || /usr/bin/mkdir -p /usr/src/tmp/scourge-buildroot/usr/lib; \ temp=/usr/src/tmp/scourge-buildroot/usr/lib/t-charset.alias; \ dest=/usr/src/tmp/scourge-buildroot/usr/lib/charset.alias; \ if test -f /usr/src/tmp/scourge-buildroot/usr/lib/charset.alias; then \ orig=/usr/src/tmp/scourge-buildroot/usr/lib/charset.alias; \ sed -f ref-add.sed $orig > $temp; \ /usr/libexec/rpm-build/install -p -m 644 $temp $dest; \ rm -f $temp; \ else \ if test yes = no; then \ orig=charset.alias; \ sed -f ref-add.sed $orig > $temp; \ /usr/libexec/rpm-build/install -p -m 644 $temp $dest; \ rm -f $temp; \ fi; \ fi; \ /usr/bin/mkdir -p /usr/src/tmp/scourge-buildroot/usr/share/locale; \ test -f /usr/src/tmp/scourge-buildroot/usr/share/locale/locale.alias \ && orig=/usr/src/tmp/scourge-buildroot/usr/share/locale/locale.alias \ || orig=./locale.alias; \ temp=/usr/src/tmp/scourge-buildroot/usr/share/locale/t-locale.alias; \ dest=/usr/src/tmp/scourge-buildroot/usr/share/locale/locale.alias; \ sed -f ref-add.sed $orig > $temp; \ /usr/libexec/rpm-build/install -p -m 644 $temp $dest; \ rm -f $temp; \ else \ : ; \ fi if test "scourge" = "gettext-tools"; then \ /usr/bin/mkdir -p /usr/src/tmp/scourge-buildroot/usr/share/gettext/intl; \ /usr/libexec/rpm-build/install -p -m 644 VERSION /usr/src/tmp/scourge-buildroot/usr/share/gettext/intl/VERSION; \ /usr/libexec/rpm-build/install -p -m 644 ChangeLog.inst /usr/src/tmp/scourge-buildroot/usr/share/gettext/intl/ChangeLog; \ dists="COPYING.LIB-2.0 COPYING.LIB-2.1 Makefile.in config.charset locale.alias ref-add.sin ref-del.sin export.h gmo.h gettextP.h hash-string.h loadinfo.h plural-exp.h eval-plural.h localcharset.h lock.h relocatable.h xsize.h printf-args.h printf-args.c printf-parse.h wprintf-parse.h printf-parse.c vasnprintf.h vasnwprintf.h vasnprintf.c os2compat.h libgnuintl.h.in bindtextdom.c dcgettext.c dgettext.c gettext.c finddomain.c hash-string.c loadmsgcat.c localealias.c textdomain.c l10nflist.c explodename.c dcigettext.c dcngettext.c dngettext.c ngettext.c plural.y plural-exp.c localcharset.c lock.c relocatable.c langprefs.c localename.c log.c printf.c version.c osdep.c os2compat.c intl-exports.c intl-compat.c"; \ for file in $dists; do \ /usr/libexec/rpm-build/install -p -m 644 ./$file \ /usr/src/tmp/scourge-buildroot/usr/share/gettext/intl/$file; \ done; \ chmod a+x /usr/src/tmp/scourge-buildroot/usr/share/gettext/intl/config.charset; \ dists="plural.c"; \ for file in $dists; do \ if test -f $file; then dir=.; else dir=.; fi; \ /usr/libexec/rpm-build/install -p -m 644 $dir/$file \ /usr/src/tmp/scourge-buildroot/usr/share/gettext/intl/$file; \ done; \ dists="xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h"; \ for file in $dists; do \ rm -f /usr/src/tmp/scourge-buildroot/usr/share/gettext/intl/$file; \ done; \ else \ : ; \ fi make[1]: Leaving directory '/usr/src/RPM/BUILD/scourge/intl' Making install in po make[1]: Entering directory '/usr/src/RPM/BUILD/scourge/po' /usr/bin/mkdir -p /usr/src/tmp/scourge-buildroot/usr/share installing en.gmo as /usr/src/tmp/scourge-buildroot/usr/share/locale/en/LC_MESSAGES/scourge.mo installing hu.gmo as /usr/src/tmp/scourge-buildroot/usr/share/locale/hu/LC_MESSAGES/scourge.mo installing it.gmo as /usr/src/tmp/scourge-buildroot/usr/share/locale/it/LC_MESSAGES/scourge.mo installing fr.gmo as /usr/src/tmp/scourge-buildroot/usr/share/locale/fr/LC_MESSAGES/scourge.mo installing pl.gmo as /usr/src/tmp/scourge-buildroot/usr/share/locale/pl/LC_MESSAGES/scourge.mo installing pt_BR.gmo as /usr/src/tmp/scourge-buildroot/usr/share/locale/pt_BR/LC_MESSAGES/scourge.mo installing pt.gmo as /usr/src/tmp/scourge-buildroot/usr/share/locale/pt/LC_MESSAGES/scourge.mo installing ru.gmo as /usr/src/tmp/scourge-buildroot/usr/share/locale/ru/LC_MESSAGES/scourge.mo installing de.gmo as /usr/src/tmp/scourge-buildroot/usr/share/locale/de/LC_MESSAGES/scourge.mo installing sv.gmo as /usr/src/tmp/scourge-buildroot/usr/share/locale/sv/LC_MESSAGES/scourge.mo installing es.gmo as /usr/src/tmp/scourge-buildroot/usr/share/locale/es/LC_MESSAGES/scourge.mo if test "scourge" = "gettext-tools"; then \ /usr/bin/mkdir -p /usr/src/tmp/scourge-buildroot/usr/share/gettext/po; \ for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot Makevars.template; do \ /usr/libexec/rpm-build/install -p -m 644 ./$file \ /usr/src/tmp/scourge-buildroot/usr/share/gettext/po/$file; \ done; \ for file in Makevars; do \ rm -f /usr/src/tmp/scourge-buildroot/usr/share/gettext/po/$file; \ done; \ else \ : ; \ fi make[1]: Leaving directory '/usr/src/RPM/BUILD/scourge/po' Making install in src make[1]: Entering directory '/usr/src/RPM/BUILD/scourge/src' Making install in common make[2]: Entering directory '/usr/src/RPM/BUILD/scourge/src/common' make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/common' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/common' make[2]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/common' Making install in freetype make[2]: Entering directory '/usr/src/RPM/BUILD/scourge/src/freetype' make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/freetype' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/freetype' make[2]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/freetype' Making install in gui make[2]: Entering directory '/usr/src/RPM/BUILD/scourge/src/gui' make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/gui' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/gui' make[2]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/gui' Making install in test make[2]: Entering directory '/usr/src/RPM/BUILD/scourge/src/test' make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/test' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/test' make[2]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/test' Making install in rpg make[2]: Entering directory '/usr/src/RPM/BUILD/scourge/src/rpg' make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/rpg' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/rpg' make[2]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/rpg' Making install in events make[2]: Entering directory '/usr/src/RPM/BUILD/scourge/src/events' make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/events' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/events' make[2]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/events' Making install in net make[2]: Entering directory '/usr/src/RPM/BUILD/scourge/src/net' make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/net' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/net' make[2]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/net' Making install in render make[2]: Entering directory '/usr/src/RPM/BUILD/scourge/src/render' make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/render' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/render' make[2]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/render' Making install in io make[2]: Entering directory '/usr/src/RPM/BUILD/scourge/src/io' make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/io' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/io' make[2]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/io' Making install in squirrel make[2]: Entering directory '/usr/src/RPM/BUILD/scourge/src/squirrel' make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/squirrel' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/squirrel' make[2]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/squirrel' Making install in sqstdlib make[2]: Entering directory '/usr/src/RPM/BUILD/scourge/src/sqstdlib' make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/sqstdlib' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/sqstdlib' make[2]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/sqstdlib' Making install in sqbinding make[2]: Entering directory '/usr/src/RPM/BUILD/scourge/src/sqbinding' make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/sqbinding' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/sqbinding' make[2]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/sqbinding' make[2]: Entering directory '/usr/src/RPM/BUILD/scourge/src' make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src' /usr/bin/mkdir -p '/usr/src/tmp/scourge-buildroot/usr/bin' /usr/libexec/rpm-build/install -p scourge '/usr/src/tmp/scourge-buildroot/usr/bin' make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src' make[2]: Leaving directory '/usr/src/RPM/BUILD/scourge/src' make[1]: Leaving directory '/usr/src/RPM/BUILD/scourge/src' make[1]: Entering directory '/usr/src/RPM/BUILD/scourge' make[2]: Entering directory '/usr/src/RPM/BUILD/scourge' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/usr/src/RPM/BUILD/scourge' make[1]: Leaving directory '/usr/src/RPM/BUILD/scourge' make: Leaving directory '/usr/src/RPM/BUILD/scourge' + mkdir -p /usr/src/tmp/scourge-buildroot/usr/share/scourge + mkdir -p /usr/src/tmp/scourge-buildroot/usr/share/pixmaps + mkdir -p /usr/src/tmp/scourge-buildroot/usr/share/applications + mkdir -p /usr/src/tmp/scourge-buildroot/usr/share/icons/hicolor/16x16/apps + mkdir -p /usr/src/tmp/scourge-buildroot/usr/share/icons/hicolor/48x48/apps + mkdir -p /usr/src/tmp/scourge-buildroot/usr/share/icons/hicolor/32x32/apps + install -p -m 644 assets/scourge.png /usr/src/tmp/scourge-buildroot/usr/share/icons/hicolor/48x48/apps/scourge.png + install -p -m 644 assets/scourge.desktop /usr/src/tmp/scourge-buildroot/usr/share/applications + install -p -m 644 assets/scourge.png /usr/src/tmp/scourge-buildroot/usr/share/pixmaps + cp -aRf ../scourge_data/cave ../scourge_data/chapters ../scourge_data/config ../scourge_data/fonts ../scourge_data/icons ../scourge_data/items ../scourge_data/mapgrid ../scourge_data/maps ../scourge_data/models ../scourge_data/objects ../scourge_data/portraits ../scourge_data/script ../scourge_data/sound ../scourge_data/textures ../scourge_data/themes ../scourge_data/tools ../scourge_data/translations /usr/src/tmp/scourge-buildroot/usr/share/scourge + rm /usr/src/tmp/scourge-buildroot/usr/share/scourge/fonts/DejaVuLGCSans.ttf /usr/src/tmp/scourge-buildroot/usr/share/scourge/fonts/DejaVuLGCSansMono.ttf + ln -srf /usr/src/tmp/scourge-buildroot/usr/share/fonts/ttf/dejavu-lgc/DejaVuLGCSans.ttf /usr/src/tmp/scourge-buildroot/usr/share/scourge/fonts/DejaVuLGCSans.ttf + ln -srf /usr/src/tmp/scourge-buildroot/usr/share/fonts/ttf/dejavu-lgc/DejaVuLGCSansMono.ttf /usr/src/tmp/scourge-buildroot/usr/share/scourge/fonts/DejaVuLGCSansMono.ttf + /usr/lib/rpm/find-lang --with-gnome scourge + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/scourge-buildroot (auto) Verifying and fixing files in /usr/src/tmp/scourge-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) /usr/share/applications/scourge.desktop: performed minor cleanup: 13d12 < Encoding=UTF-8 Checking contents of files in /usr/src/tmp/scourge-buildroot/ (default) Compressing files in /usr/src/tmp/scourge-buildroot (auto) Verifying ELF objects in /usr/src/tmp/scourge-buildroot (arch=strict,fhs=strict,lfs=strict,lint=strict,rpath=strict,stack=strict,textrel=strict,unresolved=strict) Splitting links to aliased files under /{,s}bin in /usr/src/tmp/scourge-buildroot Processing files: scourge-0.21.1-alt7.svn3264 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.35576 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd scourge + DOCDIR=/usr/src/tmp/scourge-buildroot/usr/share/doc/scourge-0.21.1 + export DOCDIR + rm -rf /usr/src/tmp/scourge-buildroot/usr/share/doc/scourge-0.21.1 + /bin/mkdir -p /usr/src/tmp/scourge-buildroot/usr/share/doc/scourge-0.21.1 + cp -prL AUTHORS COPYING ChangeLog NEWS README /usr/src/tmp/scourge-buildroot/usr/share/doc/scourge-0.21.1 + chmod -R go-w /usr/src/tmp/scourge-buildroot/usr/share/doc/scourge-0.21.1 + chmod -R a+rX /usr/src/tmp/scourge-buildroot/usr/share/doc/scourge-0.21.1 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.RVaB7t find-provides: running scripts (alternatives,debuginfo,gir,lib,pam,perl,pkgconfig,python,python3,shell,typelib) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.tKpRVj find-requires: running scripts (cpp,debuginfo,files,gir-js,gir-python,gir,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services,typelib) Requires: scourge-data = 0.21.1-alt7.svn3264, fonts-ttf-dejavu-lgc, /lib/ld-linux.so.2, libGL.so.1 >= set:piqUKwt1oTBl90ncjMdTBeoEXIC3s0Abi7T24ZrDNh4hcu6Ng7ZeFDVed3Zg8rFmFQODPrsfK7alsC1jQg2BZ4l2aJJ2iKBYLGwd44gHi8BmcoMjgsZGiWe7Jg9gz792q6BSZlMlL9xU4jem99uj6LAg94GoRjUTXc6G2zIeaZaYtXRLE0yLne03gGZkiK5BdMdbtXbQMoHiYA03, libGLU.so.1 >= set:jg1tiTZCo6dn3, libSDL-1.2.so.0 >= set:lfwMF08v7vMIi5wcrFuRqM7h3CZ69G07Mvmu6v2ZH5ZnuApe1dcmSO2CmlyMw77nXOYngtuHhPJXPghTIIfj0, libSDL_image-1.2.so.0 >= set:jifK3, libSDL_mixer-1.2.so.0 >= set:kfgpCc7vXEI6xTPfcrzB3pFPiiBNMbiJUhSgfPFV6H55ohYFHlnN60, libSDL_net-1.2.so.0 >= set:je8XlnNNcrlHNKbMua6QBhZaSb671CDxnQKp75d7VgV2, libSDL_ttf-2.0.so.0 >= set:jfs5Ako11ACTo2HWcGYJ0XwYK6, libc.so.6(GLIBC_2.0), libc.so.6(GLIBC_2.1), libc.so.6(GLIBC_2.1.3), libc.so.6(GLIBC_2.11), libc.so.6(GLIBC_2.2), libc.so.6(GLIBC_2.3), libc.so.6(GLIBC_2.3.4), libc.so.6(GLIBC_2.33), libc.so.6(GLIBC_2.34), libc.so.6(GLIBC_2.38), libc.so.6(GLIBC_2.4), libc.so.6(GLIBC_2.7), libgcc_s.so.1(GCC_3.0), libgcc_s.so.1(GCC_3.3.1), libm.so.6(GLIBC_2.0), libm.so.6(GLIBC_2.1), libm.so.6(GLIBC_2.27), libm.so.6(GLIBC_2.29), libstdc++.so.6(CXXABI_1.3), libstdc++.so.6(CXXABI_1.3.8), libstdc++.so.6(CXXABI_1.3.9), libstdc++.so.6(GLIBCXX_3.4), libstdc++.so.6(GLIBCXX_3.4.11), libstdc++.so.6(GLIBCXX_3.4.20), libstdc++.so.6(GLIBCXX_3.4.21), libstdc++.so.6(GLIBCXX_3.4.26), libstdc++.so.6(GLIBCXX_3.4.29), libstdc++.so.6(GLIBCXX_3.4.32), libstdc++.so.6(GLIBCXX_3.4.9), libz.so.1 >= set:khdWPIUrJuazh01Xf1, 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.yJBCQn Creating scourge-debuginfo package Processing files: scourge-data-0.21.1-alt7.svn3264 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.qRzeCr find-provides: running scripts (alternatives,debuginfo,gir,lib,pam,perl,pkgconfig,python,python3,shell,typelib) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.UMdauC find-requires: running scripts (cpp,debuginfo,files,gir-js,gir-python,gir,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services,typelib) Processing files: scourge-debuginfo-0.21.1-alt7.svn3264 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.ZKqFXu find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.PX2OjV find-requires: running scripts (debuginfo) Requires: scourge = 0.21.1-alt7.svn3264, /usr/lib/debug/lib/ld-linux.so.2.debug, debug(libGL.so.1), debug(libGLU.so.1), debug(libSDL-1.2.so.0), debug(libSDL_image-1.2.so.0), debug(libSDL_mixer-1.2.so.0), debug(libSDL_net-1.2.so.0), debug(libSDL_ttf-2.0.so.0), debug(libc.so.6), debug(libgcc_s.so.1), debug(libm.so.6), debug(libstdc++.so.6), debug(libz.so.1) Adding to scourge a strict dependency on scourge-data Adding to scourge-debuginfo a strict dependency on scourge Wrote: /usr/src/RPM/RPMS/i586/scourge-0.21.1-alt7.svn3264.i586.rpm (w2.lzdio) Wrote: /usr/src/RPM/RPMS/noarch/scourge-data-0.21.1-alt7.svn3264.noarch.rpm (w2T16.xzdio) Wrote: /usr/src/RPM/RPMS/i586/scourge-debuginfo-0.21.1-alt7.svn3264.i586.rpm (w2T16.xzdio) 373.33user 47.44system 4:04.35elapsed 172%CPU (0avgtext+0avgdata 503336maxresident)k 0inputs+0outputs (0major+11411501minor)pagefaults 0swaps /.out/scourge-data-0.21.1-alt7.svn3264.noarch.rpm: license not found in '/usr/share/license' directory: GPL2 /.out/scourge-0.21.1-alt7.svn3264.i586.rpm: license not found in '/usr/share/license' directory: GPL2 /.out/scourge-debuginfo-0.21.1-alt7.svn3264.i586.rpm: license not found in '/usr/share/license' directory: GPL2 3.89user 3.59system 4:35.90elapsed 2%CPU (0avgtext+0avgdata 127420maxresident)k 13968inputs+0outputs (0major+250873minor)pagefaults 0swaps --- scourge-0.21.1-alt7.svn3264.i586.rpm.repo 2021-10-05 11:51:03.000000000 +0000 +++ scourge-0.21.1-alt7.svn3264.i586.rpm.hasher 2024-04-27 10:58:31.772433718 +0000 @@ -38,2 +38,5 @@ Requires: libc.so.6(GLIBC_2.3.4) +Requires: libc.so.6(GLIBC_2.33) +Requires: libc.so.6(GLIBC_2.34) +Requires: libc.so.6(GLIBC_2.38) Requires: libc.so.6(GLIBC_2.4) @@ -55,2 +58,3 @@ Requires: libstdc++.so.6(GLIBCXX_3.4.29) +Requires: libstdc++.so.6(GLIBCXX_3.4.32) Requires: libstdc++.so.6(GLIBCXX_3.4.9) @@ -61,3 +65,3 @@ Provides: scourge = 0.21.1-alt7.svn3264:sisyphus+286430.100.1.1 -File: /usr/bin/scourge 100755 root:root 4aeab77c150bd249b725f4f4ff60dec0 +File: /usr/bin/scourge 100755 root:root 17d7f4bcb37e7a2f777de23cb80e669b File: /usr/share/applications/scourge.desktop 100644 root:root 3b06de6da6fb397506a66c2481783617 @@ -82,2 +86,2 @@ File: /usr/share/pixmaps/scourge.png 100644 root:root a404bdfe8d67840aad1cb6d8fd2e2e52 -RPMIdentity: 050e7e471d864d3ad422c4473a5ec3796fc33b3cec8e6552c941ead0848ce49b71f83e7314283422d11c97d564edfe55f704cb991b2da3c133ef2c7e528be662 +RPMIdentity: dd946afc828c114de09d5c8e7a28937bfdd9223e66d30995afb33cbb240d2f294e81d47d69d32ef9b2112afe0c2e169c181e9d22eedb05c5bb3184fe46fce01b --- scourge-debuginfo-0.21.1-alt7.svn3264.i586.rpm.repo 2021-10-05 11:51:03.000000000 +0000 +++ scourge-debuginfo-0.21.1-alt7.svn3264.i586.rpm.hasher 2024-04-27 10:58:31.996437587 +0000 @@ -1,4 +1,4 @@ -/usr/lib/debug/.build-id/c9 40755 root:root -/usr/lib/debug/.build-id/c9/13b08c79a3de3d94ed9d61907f9dd47102f494 120777 root:root ../../../../bin/scourge -/usr/lib/debug/.build-id/c9/13b08c79a3de3d94ed9d61907f9dd47102f494.debug 120777 root:root ../../usr/bin/scourge.debug +/usr/lib/debug/.build-id/b1 40755 root:root +/usr/lib/debug/.build-id/b1/327e2a729c51ca3cbb3ef681ee3dc9ee31a569 120777 root:root ../../../../bin/scourge +/usr/lib/debug/.build-id/b1/327e2a729c51ca3cbb3ef681ee3dc9ee31a569.debug 120777 root:root ../../usr/bin/scourge.debug /usr/lib/debug/usr/bin/scourge.debug 100644 root:root @@ -380,6 +380,6 @@ Provides: scourge-debuginfo = 0.21.1-alt7.svn3264:sisyphus+286430.100.1.1 -File: /usr/lib/debug/.build-id/c9 40755 root:root -File: /usr/lib/debug/.build-id/c9/13b08c79a3de3d94ed9d61907f9dd47102f494 120777 root:root ../../../../bin/scourge -File: /usr/lib/debug/.build-id/c9/13b08c79a3de3d94ed9d61907f9dd47102f494.debug 120777 root:root ../../usr/bin/scourge.debug -File: /usr/lib/debug/usr/bin/scourge.debug 100644 root:root f86baf13b1c0479821cda6d4913b9c68 +File: /usr/lib/debug/.build-id/b1 40755 root:root +File: /usr/lib/debug/.build-id/b1/327e2a729c51ca3cbb3ef681ee3dc9ee31a569 120777 root:root ../../../../bin/scourge +File: /usr/lib/debug/.build-id/b1/327e2a729c51ca3cbb3ef681ee3dc9ee31a569.debug 120777 root:root ../../usr/bin/scourge.debug +File: /usr/lib/debug/usr/bin/scourge.debug 100644 root:root 5bcc0e226e06bec38006fb1689587eae File: /usr/src/debug/scourge 40755 root:root @@ -744,2 +744,2 @@ File: /usr/src/debug/scourge/src/util.h 100644 root:root 9ea4c8ab1ae1085db2893a4b48147f70 -RPMIdentity: a370d9e82bc873932786593d50c5ff75455511526f552333abd2b94a380273edb25fcc441cb27a1e9d2d1ee4e65fddd1b6c06db7de6f8031bbb62443b70346b8 +RPMIdentity: 831a68f93b5c0fed789d5263ed8d6ceef6cede9ec64ff2ee43183399f6e73d996785b378d25853e04c582c7fa70c21ac595c0e7599ac9053f57ade1ae6289cd4