<86>Jun 16 02:07:49 userdel[110852]: delete user 'rooter' <86>Jun 16 02:07:49 userdel[110852]: removed group 'rooter' owned by 'rooter' <86>Jun 16 02:07:49 userdel[110852]: removed shadow group 'rooter' owned by 'rooter' <86>Jun 16 02:07:49 groupadd[110897]: group added to /etc/group: name=rooter, GID=1793 <86>Jun 16 02:07:49 groupadd[110897]: group added to /etc/gshadow: name=rooter <86>Jun 16 02:07:49 groupadd[110897]: new group: name=rooter, GID=1793 <86>Jun 16 02:07:49 useradd[110936]: new user: name=rooter, UID=1793, GID=1793, home=/root, shell=/bin/bash <86>Jun 16 02:07:49 userdel[110980]: delete user 'builder' <86>Jun 16 02:07:49 userdel[110980]: removed group 'builder' owned by 'builder' <86>Jun 16 02:07:49 userdel[110980]: removed shadow group 'builder' owned by 'builder' <86>Jun 16 02:07:49 groupadd[111026]: group added to /etc/group: name=builder, GID=1794 <86>Jun 16 02:07:49 groupadd[111026]: group added to /etc/gshadow: name=builder <86>Jun 16 02:07:49 groupadd[111026]: new group: name=builder, GID=1794 <86>Jun 16 02:07:49 useradd[111066]: new user: name=builder, UID=1794, GID=1794, home=/usr/src, shell=/bin/bash /usr/src/in/srpm/scourge-0.21.1-alt6.svn3264.src.rpm: license not found in '/usr/share/license' directory: GPL2 <13>Jun 16 02:08:05 rpmi: libglvnd-7:1.6.0-alt1 p10+308277.140.4.1 1671274291 installed <13>Jun 16 02:08:05 rpmi: libogg-1.3.5-alt1 sisyphus+278100.3400.1.1 1626058929 installed <13>Jun 16 02:08:05 rpmi: libexpat-2.5.0-alt1 p10+324220.100.1.1 1688465137 installed <13>Jun 16 02:08:05 rpmi: libflac8-1.3.3.0.79.37d1-alt2 sisyphus+278100.1400.1.1 1626058195 installed <13>Jun 16 02:08:05 rpmi: libvorbis-1.3.7-alt1 sisyphus+275738.100.1.1 1624751601 installed <13>Jun 16 02:08:05 rpmi: libgraphite2-1.3.14-alt2.1 sisyphus+279571.100.1.2 1626605111 installed <13>Jun 16 02:08:05 rpmi: libpng16-1.6.37-alt1 sisyphus+275734.100.2.1 1624788826 installed <13>Jun 16 02:08:05 rpmi: libjpeg-2:2.1.5.1-alt1.p10.2 p10+347367.100.3.1 1715149001 installed <13>Jun 16 02:08:05 rpmi: libmpg123-1.30.2-alt1 p10+307797.100.3.1 1666362749 installed <13>Jun 16 02:08:05 rpmi: xorg-proto-devel-2021.5-alt1 p10+295526.40.6.1 1646400646 installed <13>Jun 16 02:08:05 rpmi: libwayland-server-1.22.0-alt1.1 p10+332446.100.1.1 1697975867 installed <13>Jun 16 02:08:06 rpmi: libicu69-1:6.9.1-alt2 sisyphus+277632.100.1.1 1625726150 installed <13>Jun 16 02:08:06 rpmi: icu-utils-1:6.9.1-alt2 sisyphus+277632.100.1.1 1625726150 installed <13>Jun 16 02:08:06 rpmi: libicu-devel-1:6.9.1-alt2 sisyphus+277632.100.1.1 1625726150 installed <13>Jun 16 02:08:06 rpmi: libgraphite2-devel-1.3.14-alt2.1 sisyphus+279571.100.1.2 1626605111 installed <13>Jun 16 02:08:06 rpmi: libOpenGL-7:1.6.0-alt1 p10+308277.140.4.1 1671274291 installed <13>Jun 16 02:08:06 rpmi: libGLES-7:1.6.0-alt1 p10+308277.140.4.1 1671274291 installed <13>Jun 16 02:08:06 rpmi: libbrotlicommon-1.0.9-alt2 sisyphus+278430.100.1.2 1626213212 installed <13>Jun 16 02:08:06 rpmi: libbrotlidec-1.0.9-alt2 sisyphus+278430.100.1.2 1626213212 installed <13>Jun 16 02:08:06 rpmi: libharfbuzz-5.3.1-alt1 p10+311526.40.12.1 1678459109 installed <13>Jun 16 02:08:06 rpmi: libfreetype-2.11.0-alt1 p10+281745.100.1.1 1628002271 installed <13>Jun 16 02:08:06 rpmi: libharfbuzz-icu-5.3.1-alt1 p10+311526.40.12.1 1678459109 installed <13>Jun 16 02:08:06 rpmi: libharfbuzz-gobject-5.3.1-alt1 p10+311526.40.12.1 1678459109 installed <13>Jun 16 02:08:06 rpmi: libmad-0.15.1b-alt9 sisyphus+278239.100.1.1 1626080123 installed <13>Jun 16 02:08:06 rpmi: timidity-instruments-1:1.0-alt1 sisyphus+276870.100.1.1 1625246545 installed <13>Jun 16 02:08:06 rpmi: libwebp7-1.3.2-alt1 p10+334597.100.5.1 1701266006 installed <13>Jun 16 02:08:06 rpmi: libjbig2.1-2.1-alt2 p10+327649.100.4.1 1693857180 installed <13>Jun 16 02:08:06 rpmi: libdeflate-1.10-alt1 p10+300002.40.4.1 1652888688 installed <13>Jun 16 02:08:06 rpmi: libtiff5-4.4.0-alt2 p10+327649.400.4.1 1693857754 installed <13>Jun 16 02:08:06 rpmi: libopus-1.4-alt1 p10+322083.100.3.1 1686925405 installed <13>Jun 16 02:08:06 rpmi: liblame-3.100-alt1 sisyphus+276241.100.1.2 1624925657 installed <13>Jun 16 02:08:06 rpmi: libgsm-1.0.17-alt1 sisyphus+275359.100.2.1 1624907612 installed <13>Jun 16 02:08:06 rpmi: libsndfile-1.1.0-alt1 p10+307797.200.3.1 1666362813 installed <13>Jun 16 02:08:06 rpmi: liblz4-1:1.9.4-alt1 p10+350711.100.1.1 1718009144 installed <13>Jun 16 02:08:06 rpmi: libsystemd-1:249.17-alt2 p10+340218.100.1.1 1707505676 installed <13>Jun 16 02:08:06 rpmi: libdbus-1.14.10-alt1 p10+342527.100.1.1 1710230133 installed <13>Jun 16 02:08:06 rpmi: libasyncns-0.8-alt2.qa1 sisyphus+275091.100.1.1 1624402241 installed <13>Jun 16 02:08:06 rpmi: libxshmfence-1.3-alt1 sisyphus+278248.100.1.1 1626080762 installed <13>Jun 16 02:08:06 rpmi: libX11-locales-3:1.8.7-alt1 p10+330924.200.2.1 1697304232 installed <13>Jun 16 02:08:06 rpmi: libXdmcp-1.1.3-alt1 sisyphus+278816.100.1.1 1626219231 installed <13>Jun 16 02:08:06 rpmi: libXau-1.0.9-alt1 sisyphus+278247.100.1.1 1626080736 installed <13>Jun 16 02:08:06 rpmi: libxcb-1.14-alt1 sisyphus+277968.100.1.3 1625952322 installed <13>Jun 16 02:08:07 rpmi: libX11-3:1.8.7-alt1 p10+330924.200.2.1 1697304232 installed <13>Jun 16 02:08:07 rpmi: libXext-1.3.4-alt1 sisyphus+278817.100.1.3 1626262596 installed <13>Jun 16 02:08:07 rpmi: libpulseaudio-17.0-alt2 p10+339259.100.6.1 1707986187 installed <13>Jun 16 02:08:07 rpmi: libmikmod-3.3.11.1-alt2 sisyphus+278211.100.1.1 1626077581 installed <13>Jun 16 02:08:07 rpmi: libXxf86vm-1.1.4-alt2 sisyphus+275334.100.2.2 1624577011 installed <13>Jun 16 02:08:07 rpmi: libXfixes-5.0.3-alt1 sisyphus+275326.100.2.2 1624573638 installed <13>Jun 16 02:08:07 rpmi: libXrender-0.9.10-alt1 sisyphus+278480.100.1.2 1626227740 installed <13>Jun 16 02:08:07 rpmi: libXrandr-1.5.2-alt1 sisyphus+275330.100.2.2 1624575558 installed <13>Jun 16 02:08:08 rpmi: libxcb-devel-1.14-alt1 sisyphus+277968.100.1.3 1625952322 installed <13>Jun 16 02:08:08 rpmi: libX11-devel-3:1.8.7-alt1 p10+330924.200.2.1 1697304232 installed <13>Jun 16 02:08:08 rpmi: libwayland-client-1.22.0-alt1.1 p10+332446.100.1.1 1697975867 installed <13>Jun 16 02:08:08 rpmi: libpciaccess-1:0.17-alt1 p10+321839.100.2.1 1686299452 installed <13>Jun 16 02:08:08 rpmi: libdrm-1:2.4.118-alt1 p10+336491.100.3.1 1703318945 installed <13>Jun 16 02:08:08 rpmi: libGLX-mesa-4:23.1.9-alt2 p10+336018.100.3.1 1703319968 installed <13>Jun 16 02:08:08 rpmi: libGLX-7:1.6.0-alt1 p10+308277.140.4.1 1671274291 installed <13>Jun 16 02:08:08 rpmi: libGL-7:1.6.0-alt1 p10+308277.140.4.1 1671274291 installed <13>Jun 16 02:08:08 rpmi: libGLU-4:9.0.1-alt1 sisyphus+278350.100.1.2 1626174382 installed <13>Jun 16 02:08:08 rpmi: libgbm-4:23.1.9-alt2 p10+336018.100.3.1 1703319968 installed <13>Jun 16 02:08:08 rpmi: libEGL-mesa-4:23.1.9-alt2 p10+336018.100.3.1 1703319968 installed <13>Jun 16 02:08:08 rpmi: libEGL-7:1.6.0-alt1 p10+308277.140.4.1 1671274291 installed <13>Jun 16 02:08:08 rpmi: libglvnd-devel-7:1.6.0-alt1 p10+308277.140.4.1 1671274291 installed <13>Jun 16 02:08:08 rpmi: libGLU-devel-4:9.0.1-alt1 sisyphus+278350.100.1.2 1626174382 installed <13>Jun 16 02:08:08 rpmi: libgdbm-1.8.3-alt10 sisyphus+278100.1600.1.1 1626058413 installed <13>Jun 16 02:08:08 rpmi: xml-utils-1:2.9.12-alt1.p10.1 p10+314068.100.3.1 1675354348 installed <13>Jun 16 02:08:08 rpmi: rpm-build-gir-0.7.3-alt3 sisyphus+242150.100.1.1 1575312005 installed <13>Jun 16 02:08:08 rpmi: gcc-c++-common-1.4.27-alt1 sisyphus+278099.1300.1.1 1626028636 installed <13>Jun 16 02:08:09 rpmi: libstdc++10-devel-10.3.1-alt2 sisyphus+277353.100.2.1 1625525890 installed <13>Jun 16 02:08:09 rpmi: gcc10-c++-10.3.1-alt2 sisyphus+277353.100.2.1 1625525890 installed <13>Jun 16 02:08:09 rpmi: libp11-kit-0.24.1-alt1 p10+305061.100.3.1 1660573397 installed <13>Jun 16 02:08:09 rpmi: libtasn1-4.19.0-alt1 p10+309071.100.2.1 1668522760 installed <13>Jun 16 02:08:09 rpmi: rpm-macros-alternatives-0.5.2-alt1 p10+309129.100.2.1 1668066636 installed <13>Jun 16 02:08:09 rpmi: alternatives-0.5.2-alt1 p10+309129.100.2.1 1668066636 installed <13>Jun 16 02:08:09 rpmi: ca-certificates-2022.09.15-alt1 p10+308004.100.2.1 1665748370 installed <13>Jun 16 02:08:09 rpmi: ca-trust-0.1.6-alt1 p10+344774.100.1.1 1712685728 installed <13>Jun 16 02:08:09 rpmi: p11-kit-trust-0.24.1-alt1 p10+305061.100.3.1 1660573397 installed <13>Jun 16 02:08:09 rpmi: libcrypto1.1-1.1.1w-alt0.p10.1 p10+330586.100.4.1 1697560982 installed <13>Jun 16 02:08:09 rpmi: libssl1.1-1.1.1w-alt0.p10.1 p10+330586.100.4.1 1697560982 installed <13>Jun 16 02:08:09 rpmi: python3-3.9.18-alt1 p10+340781.400.5.1 1709555259 installed <13>Jun 16 02:08:10 rpmi: python3-base-3.9.18-alt1 p10+340781.400.5.1 1709555259 installed <13>Jun 16 02:08:10 rpmi: glib2-devel-2.68.4-alt4 p10+296885.100.1.1 1647705736 installed <13>Jun 16 02:08:10 rpmi: libfreetype-devel-2.11.0-alt1 p10+281745.100.1.1 1628002271 installed <13>Jun 16 02:08:10 rpmi: libharfbuzz-devel-5.3.1-alt1 p10+311526.40.12.1 1678459109 installed <13>Jun 16 02:08:10 rpmi: alsa-ucm-conf-1.2.8-alt8 p10+323518.100.1.1 1687447425 installed <13>Jun 16 02:08:10 rpmi: alsa-topology-conf-1.2.5.1-alt1 sisyphus+274777.100.1.1 1624089141 installed <13>Jun 16 02:08:10 rpmi: libalsa-1:1.2.8-alt1 p10+310792.200.3.1 1670940516 installed <13>Jun 16 02:08:10 rpmi: libSDL-1.2.14-alt9 sisyphus+275261.100.1.2 1624469000 installed <13>Jun 16 02:08:10 rpmi: libSDL-devel-1.2.14-alt9 sisyphus+275261.100.1.2 1624469000 installed <13>Jun 16 02:08:10 rpmi: libSDL_image-1.2.12-alt3.gitd0ea78d sisyphus+278696.40.4.1 1626250409 installed <13>Jun 16 02:08:10 rpmi: libSDL_mixer-1.2.12-alt2.git40a7e1a sisyphus+278696.140.4.1 1626250504 installed <13>Jun 16 02:08:10 rpmi: libSDL_net-1.2.8-alt2.git9a629d6 sisyphus+278696.300.4.1 1626250578 installed <13>Jun 16 02:08:10 rpmi: libSDL_ttf-2.0.11-alt1.git1ed61fe sisyphus+278696.400.4.1 1626250621 installed <13>Jun 16 02:08:10 rpmi: libSDL_ttf-devel-2.0.11-alt1.git1ed61fe sisyphus+278696.400.4.1 1626250621 installed <13>Jun 16 02:08:10 rpmi: libSDL_net-devel-1.2.8-alt2.git9a629d6 sisyphus+278696.300.4.1 1626250578 installed <13>Jun 16 02:08:10 rpmi: libSDL_mixer-devel-1.2.12-alt2.git40a7e1a sisyphus+278696.140.4.1 1626250504 installed <13>Jun 16 02:08:10 rpmi: libSDL_image-devel-1.2.12-alt3.gitd0ea78d sisyphus+278696.40.4.1 1626250409 installed <13>Jun 16 02:08:10 rpmi: gcc-c++-10-alt1 sisyphus+263054.200.3.1 1607517515 installed <13>Jun 16 02:08:10 rpmi: libGL-devel-4:23.1.9-alt2 p10+336018.100.3.1 1703319968 installed <13>Jun 16 02:08:10 rpmi: zlib-devel-1.2.13-alt1 p10+318109.100.2.1 1682690580 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/scourge-0.21.1-alt6.svn3264.nosrc.rpm (w1.gzdio) Installing scourge-0.21.1-alt6.svn3264.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.18943 + 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.18943 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd scourge + autoreconf -fisv 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 autoreconf-default: configure.in: AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_VERSION autoreconf-default: configure.in: not using Libtool autoreconf-default: configure.in: not using Intltool autoreconf-default: configure.in: not using gtk-doc autoreconf-default: running: /usr/bin/autoconf-2.60 --force autoreconf-default: running: /usr/bin/autoheader-2.60 --force 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' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export FFLAGS + FCFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export FCFLAGS + '[' -n '' ']' ++ printf %s '-pipe -frecord-gcc-switches -Wall -g -O2' ++ sed -r 's/(^|[[:space:]]+)-[^m][^[:space:]]*//g' + ASFLAGS= + 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 --build=x86_64-alt-linux --host=x86_64-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --disable-silent-rules --without-included-gettext --with-data-dir=/usr/share/scourge checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports the include directive... yes (GNU style) checking for x86_64-alt-linux-gcc... x86_64-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 we are using the GNU C compiler... yes checking whether x86_64-alt-linux-gcc accepts -g... yes checking for x86_64-alt-linux-gcc option to accept ISO C89... none needed checking whether x86_64-alt-linux-gcc understands -c and -o together... yes checking dependency style of x86_64-alt-linux-gcc... none checking how to run the C preprocessor... x86_64-alt-linux-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes 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... x86_64-alt-linux-gnu checking host system type... x86_64-alt-linux-gnu checking whether we are using the GNU C Library 2 or newer... yes checking for x86_64-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 stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/param.h... yes checking for getpagesize... yes checking for working mmap... yes checking whether integer division by zero raises SIGFPE... yes 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 pthread.h usability... yes checking pthread.h presence... 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 argz.h usability... yes checking argz.h presence... yes checking for argz.h... yes checking limits.h usability... yes checking limits.h presence... 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.7.6, 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 stddef.h usability... yes checking stddef.h presence... 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 x86_64-alt-linux-gcc... (cached) x86_64-alt-linux-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether x86_64-alt-linux-gcc accepts -g... (cached) yes checking for x86_64-alt-linux-gcc option to accept ISO C89... (cached) none needed checking whether x86_64-alt-linux-gcc understands -c and -o together... (cached) yes checking dependency style of x86_64-alt-linux-gcc... (cached) none checking for x86_64-alt-linux-g++... x86_64-alt-linux-g++ checking whether we are using the GNU C++ compiler... yes checking whether x86_64-alt-linux-g++ accepts -g... yes checking dependency style of x86_64-alt-linux-g++... none checking for x86_64-alt-linux-ranlib... ranlib checking whether make sets $(MAKE)... (cached) yes checking for ANSI C header files... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking whether time.h and sys/time.h may both be included... 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 ieeefp.h usability... no checking ieeefp.h presence... 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 GL/glx.h usability... yes checking GL/glx.h presence... 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' x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o binreloc.o binreloc.c x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from constants.h:93, from constants.cpp:18: /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:18: constants.cpp:83:7: 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:3: note: in expansion of macro 'N_' 83 | N_( "Infamy awaits in the dungeons of Scourge!" ), | ^~ constants.cpp:84:7: 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:3: note: in expansion of macro 'N_' 84 | N_( "Another day, another sewer! Welcome to Scourge!" ), | ^~ constants.cpp:85:7: 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:3: note: in expansion of macro 'N_' 85 | N_( "Happy hunting; welcome to Scourge!" )}, | ^~ constants.cpp:86:8: 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:4: note: in expansion of macro 'N_' 86 | { N_( "That item is out of your reach" ), | ^~ constants.cpp:87:8: 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:4: note: in expansion of macro 'N_' 87 | N_( "You can't touch that" ), | ^~ constants.cpp:88:8: 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:4: note: in expansion of macro 'N_' 88 | N_( "You have to be closer to get that" ), | ^~ constants.cpp:89:8: 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:4: note: in expansion of macro 'N_' 89 | N_( "You are too far to reach it" )}, | ^~ constants.cpp:90:8: 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:4: note: in expansion of macro 'N_' 90 | { N_( "The door is blocked" ), | ^~ constants.cpp:91:8: 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:4: note: in expansion of macro 'N_' 91 | N_( "Something is blocking that door" ), | ^~ constants.cpp:92:8: 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:4: note: in expansion of macro 'N_' 92 | N_( "You can't use that door; something is in the way" )}, | ^~ constants.cpp:93:8: 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:4: note: in expansion of macro 'N_' 93 | { N_( "You are now in single-step mode" )}, | ^~ constants.cpp:94:8: 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:4: note: in expansion of macro 'N_' 94 | { N_( "You are now in group mode" )}, | ^~ constants.cpp:95:8: 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:4: note: in expansion of macro 'N_' 95 | { N_( "Paused: you have entered turn-based mode" )}, | ^~ constants.cpp:96:8: 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:4: note: in expansion of macro 'N_' 96 | { N_( "Un-paused: you are in real-time mode" )}, | ^~ constants.cpp:97:8: 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:4: note: in expansion of macro 'N_' 97 | { N_( "Close" )}, | ^~ constants.cpp:98:8: 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:4: note: in expansion of macro 'N_' 98 | { N_( "Drop Item" )}, | ^~ constants.cpp:99:8: 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:4: note: in expansion of macro 'N_' 99 | { N_( "Open Item" )}, | ^~ constants.cpp:100:8: 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:4: note: in expansion of macro 'N_' 100 | { N_( "Drag items to/from the list, Right click for info" )}, | ^~ constants.cpp:101:8: 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:4: note: in expansion of macro 'N_' 101 | { N_( "Play Mission" )}, | ^~ constants.cpp:102:8: 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:4: note: in expansion of macro 'N_' 102 | { N_( "Do you really want to exit this mission?" )}, | ^~ constants.cpp:103:8: 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:4: note: in expansion of macro 'N_' 103 | { N_( "Teleport back to base?" )}, | ^~ constants.cpp:104:8: 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:4: note: in expansion of macro 'N_' 104 | { N_( "OK" )}, | ^~ constants.cpp:105:8: 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:4: note: in expansion of macro 'N_' 105 | { N_( "Cancel" )}, | ^~ constants.cpp:106:8: 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:4: note: in expansion of macro 'N_' 106 | { N_( "Yes" )}, | ^~ constants.cpp:107:8: 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:4: note: in expansion of macro 'N_' 107 | { N_( "No" )}, | ^~ constants.cpp:108:8: 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:4: note: in expansion of macro 'N_' 108 | { N_( "Select a character who is alive and has leveled up." )}, | ^~ constants.cpp:109:8: 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:4: note: in expansion of macro 'N_' 109 | { N_( "No skill points available." )}, | ^~ constants.cpp:110:8: 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:4: note: in expansion of macro 'N_' 110 | { N_( "Select a skill first." )}, | ^~ constants.cpp:111:8: 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:4: note: in expansion of macro 'N_' 111 | { N_( "S.C.O.U.R.G.E. dialog" )}, | ^~ constants.cpp:112:8: 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:4: note: in expansion of macro 'N_' 112 | { N_( "Use gate to descend a level?" ), | ^~ constants.cpp:113:8: 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:4: note: in expansion of macro 'N_' 113 | N_( "Use gate to ascend a level?" )}, | ^~ constants.cpp:114:8: 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:4: note: in expansion of macro 'N_' 114 | { N_( "A dead character cannot perform this action." )}, | ^~ constants.cpp:115:8: 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:4: note: in expansion of macro 'N_' 115 | { N_( "hp:" )}, | ^~ constants.cpp:116:8: 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:4: note: in expansion of macro 'N_' 116 | { N_( "ac:" )}, | ^~ constants.cpp:117:8: 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:4: note: in expansion of macro 'N_' 117 | { N_( "Your magic fizzles and dies." ), | ^~ constants.cpp:118:8: 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:4: note: in expansion of macro 'N_' 118 | N_( "Only the roaches are impressed by your mumbled words." ), | ^~ constants.cpp:119:8: 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:4: note: in expansion of macro 'N_' 119 | N_( "The silence is broken only by some crickets nearby." ), | ^~ constants.cpp:120:8: 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:4: note: in expansion of macro 'N_' 120 | N_( "Bazzoomm! A small cloud of smoke rises to the ceiling." )}, | ^~ constants.cpp:121:8: 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:4: note: in expansion of macro 'N_' 121 | { N_( "Your character cannot equip that item." )}, | ^~ constants.cpp:122:8: 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:4: note: in expansion of macro 'N_' 122 | { N_( "Fill out the server details, first." )}, | ^~ constants.cpp:123:8: 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:4: note: in expansion of macro 'N_' 123 | { N_( "Unable to connect to server." )}, | ^~ constants.cpp:124:8: 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:4: note: in expansion of macro 'N_' 124 | { N_( "You hear a very loud, metallic sound nearby." ), | ^~ constants.cpp:125:8: 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:4: note: in expansion of macro 'N_' 125 | N_( "Something clicks." ), | ^~ constants.cpp:126:8: 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:4: note: in expansion of macro 'N_' 126 | N_( "The loud twang doesn't help; this is freaky enough already." )}, | ^~ constants.cpp:127:8: 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:4: note: in expansion of macro 'N_' 127 | { N_( "A muffled, metalic, grating noise echoes from the dark." ), | ^~ constants.cpp:128:8: 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:4: 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:8: 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:4: note: in expansion of macro 'N_' 129 | { N_( "You feel the resonance of an almost sub-tonal bass note." ), | ^~ constants.cpp:130:8: 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:4: note: in expansion of macro 'N_' 130 | N_( "An omnious sound floats from a distant corner." )}, | ^~ constants.cpp:131:8: 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:4: note: in expansion of macro 'N_' 131 | { N_( "Suck! It is locked shut!" ), | ^~ constants.cpp:132:8: 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:4: note: in expansion of macro 'N_' 132 | N_( "Try as you might, you can't open it." ), | ^~ constants.cpp:133:8: 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:4: note: in expansion of macro 'N_' 133 | N_( "Perhaps it's locked." )}, | ^~ constants.cpp:134:8: 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:4: note: in expansion of macro 'N_' 134 | { N_( "This teleporter is off-line." ), | ^~ constants.cpp:135:8: 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:4: note: in expansion of macro 'N_' 135 | N_( "Nothing happens." ), | ^~ constants.cpp:136:8: 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:4: note: in expansion of macro 'N_' 136 | N_( "The teleporter blinks unimpressively." )}, | ^~ constants.cpp:137:8: 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:4: note: in expansion of macro 'N_' 137 | { N_( "Information" )}, | ^~ constants.cpp:138:8: 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:4: note: in expansion of macro 'N_' 138 | { N_( "Delete old saved game?" )}, | ^~ constants.cpp:139:8: 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:4: note: in expansion of macro 'N_' 139 | { N_( "You're not experienced enough to equip it yet." )}, | ^~ constants.cpp:140:8: 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:4: note: in expansion of macro 'N_' 140 | { N_( "Change key" )}, | ^~ constants.cpp:141:8: 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:4: note: in expansion of macro 'N_' 141 | { N_( "Waiting for new key (Esc to cancel)" )}, | ^~ constants.cpp:142:8: 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:4: note: in expansion of macro 'N_' 142 | { N_( "Conversation" )}, | ^~ constants.cpp:143:8: 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:4: note: in expansion of macro 'N_' 143 | { N_( "Trade" )}, | ^~ constants.cpp:144:8: 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:4: note: in expansion of macro 'N_' 144 | { N_( "Train" )}, | ^~ constants.cpp:145:8: 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:4: note: in expansion of macro 'N_' 145 | { N_( "Healing Services" )}, | ^~ constants.cpp:146:8: 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:4: note: in expansion of macro 'N_' 146 | { N_( "Donate to Temple" )}, | ^~ constants.cpp:147:8: 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:4: note: in expansion of macro 'N_' 147 | { N_( "You don't meet the prerequisites for this capability." )}, | ^~ constants.cpp:148:8: 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:4: note: in expansion of macro 'N_' 148 | { N_( "You cannot activate an automatic capability." )}, | ^~ constants.cpp:149:8: 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:4: note: in expansion of macro 'N_' 149 | { N_( "A two handed item requires two free hands." )}, | ^~ constants.cpp:150:8: 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:4: note: in expansion of macro 'N_' 150 | { N_( "TRAIN" )}, | ^~ constants.cpp:151:8: 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:4: note: in expansion of macro 'N_' 151 | { N_( "SKILL" )}, | ^~ constants.cpp:152:8: 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:4: note: in expansion of macro 'N_' 152 | { N_( "A magical force turns the lock's tumbles to open." ), | ^~ constants.cpp:153:8: 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:4: note: in expansion of macro 'N_' 153 | N_( "Some kind of summoned energy opens the lock." )}, | ^~ constants.cpp:154:8: 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:4: note: in expansion of macro 'N_' 154 | { N_( "Killed by" ), | ^~ constants.cpp:155:8: 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:4: note: in expansion of macro 'N_' 155 | N_( "Annihilated by" ), | ^~ constants.cpp:156:8: 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:4: note: in expansion of macro 'N_' 156 | N_( "Slain by" ), | ^~ constants.cpp:157:8: 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:4: note: in expansion of macro 'N_' 157 | N_( "Brought low by" ), | ^~ constants.cpp:158:8: 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:4: note: in expansion of macro 'N_' 158 | N_( "Dropped by" ), | ^~ constants.cpp:159:8: 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:4: note: in expansion of macro 'N_' 159 | N_( "Ruined by" ), | ^~ constants.cpp:160:8: 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:4: note: in expansion of macro 'N_' 160 | N_( "Extinguished by" ), | ^~ constants.cpp:161:8: 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:4: note: in expansion of macro 'N_' 161 | N_( "Laid low by" )}, | ^~ constants.cpp:162:8: 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:4: note: in expansion of macro 'N_' 162 | { N_( "Uncurse items" )}, | ^~ constants.cpp:163:8: 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:4: note: in expansion of macro 'N_' 163 | { N_( "Recharge items" )}, | ^~ constants.cpp:164:8: 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:4: 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' x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from fontmgr.cpp:28: /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:12: warning: 'FontMgr::ttfFont' will be initialized after [-Wreorder] 68 | TTF_Font *ttfFont; | ^~~~~~~ fontmgr.h:66:6: 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' x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from guitheme.cpp:18: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from widget.cpp:18: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from slider.cpp:17: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from textfield.cpp:18: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from widgetview.cpp:18: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from canvas.cpp:17: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from button.cpp:17: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from label.cpp:17: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from checkbox.cpp:17: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from cardcontainer.cpp:17: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from draganddrop.cpp:18: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from multiplelabel.cpp:17: /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:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from scrollinglist.cpp:17: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from scrollinglabel.cpp:17: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from window.cpp:17: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from confirmdialog.cpp:18: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from textdialog.cpp:18: /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:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 45 | "" ); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from progress.cpp:18: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from eventhandler.cpp:18: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from gui.cpp:17: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | gui.cpp: In member function 'void ScourgeGui::prevWindowToTop(Window*, bool)': gui.cpp:237:92: warning: 'prevZ' may be used uninitialized in this function [-Wmaybe-uninitialized] 237 | if ( window[i]->isVisible() && ( window[i]->getZ() > win->getZ() ) && ( prevWindow == -1 || window[i]->getZ() < prevZ ) ) { | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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' x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from combattest.h:21, from combattest.cpp:17: /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/rpglib.h:27, from combattest.cpp:18: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:11: 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, from combattest.cpp:18: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:70: 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:3: 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:61: 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 combattest.cpp:19: ../creature.h: In member function 'void Creature::setThirst(int)': ../creature.h:614:3: 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:22: 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:3: 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:22: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ ../item.h:160:28: 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' x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from character.cpp:18: /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.cpp:19: character.h: In static member function 'static int Characters::getRootCount()': character.h:66:11: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ spell.h:300:70: 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 ); | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from rpg.cpp:17: /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 rpgitem.h:25, from rpg.cpp:19: character.h: In static member function 'static int Characters::getRootCount()': character.h:66:11: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from rpgitem.cpp:17: /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 rpgitem.h:25, from rpgitem.cpp:18: character.h: In static member function 'static int Characters::getRootCount()': character.h:66:11: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ spell.h:300:70: 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:3: 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:61: 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 rpgitem.cpp:17: rpgitem.cpp: At global scope: rpgitem.cpp:49:6: 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:2: note: in expansion of macro 'N_' 49 | N_( "Slashing" ), | ^~ rpgitem.cpp:50:6: 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:2: note: in expansion of macro 'N_' 50 | N_( "Piercing" ), | ^~ rpgitem.cpp:51:6: 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:2: note: in expansion of macro 'N_' 51 | N_( "Crushing" ) | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from monster.cpp:17: /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 rpgitem.h:25, from monster.h:25, from monster.cpp:18: character.h: In static member function 'static int Characters::getRootCount()': character.h:66:11: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from monster.h:26, from monster.cpp:18: spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ spell.h:300:70: 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 ); | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from spell.cpp:17: /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.cpp:18: spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ spell.h:300:70: 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 spell.cpp:18: 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:7: warning: 'Spell::action' will be initialized after [-Wreorder] 79 | Dice action; | ^~~~~~ spell.h:74:14: 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, | ^~~~~ spell.cpp: In static member function 'static void MagicSchool::initMagic()': spell.cpp:136:112: warning: 'alignment' may be used uninitialized in this function [-Wmaybe-uninitialized] 136 | current = new MagicSchool( name, displayName, notes, skill, resistSkill, alignment, red, green, blue, symbol ); | ^ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from specialskill.cpp:17: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | 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' x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from event.cpp:17: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from thirsthungerevent.cpp:18: /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:33, from ../scourge.h:29, from thirsthungerevent.h:22, from thirsthungerevent.cpp:19: ../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../gui/multiplelabel.h:54:3: 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:61: 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 ../creature.h:36, from thirsthungerevent.cpp:21: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:11: 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, from ../creature.h:36, from thirsthungerevent.cpp:21: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:70: 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 thirsthungerevent.cpp:21: ../creature.h: In member function 'void Creature::setThirst(int)': ../creature.h:614:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from potionexpirationevent.cpp:18: /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/rpglib.h:27, from potionexpirationevent.cpp:20: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:11: 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, from potionexpirationevent.cpp:20: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:70: 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:3: 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:61: 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 potionexpirationevent.cpp:22: ../item.h: In member function 'void Item::setWeight(float)': ../item.h:160:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ ../item.h:160:28: 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:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from statemodexpirationevent.cpp:19: /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/../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 statemodexpirationevent.cpp:21: ../render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../render/../events/../gui/multiplelabel.h:54:3: 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:61: 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 ../creature.h:36, from statemodexpirationevent.cpp:22: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:11: 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, from ../creature.h:36, from statemodexpirationevent.cpp:22: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:70: 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 statemodexpirationevent.cpp:22: ../creature.h: In member function 'void Creature::setThirst(int)': ../creature.h:614:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from reloadevent.cpp:17: /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:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from reloadevent.cpp:19: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:3: 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:61: 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; | ^~~~~~ 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' x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from broadcast.cpp:1: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from client.cpp:1: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | client.cpp: In member function 'int Client::connect()': client.cpp:193:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 193 | for ( int i = 0; tryToReconnect && RETRY_COUNT <= 0 || i < RETRY_COUNT; i++ ) { | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from clientinfo.cpp:1: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | clientinfo.cpp: In destructor 'virtual ClientInfo::~ClientInfo()': clientinfo.cpp:40:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 40 | TCPUtil::send( socket, "CLOSING" ); | ^~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from commands.cpp:1: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from gamestatehandler.cpp:1: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from server.cpp:1: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from tcputil.cpp:1: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from testgamestatehandler.cpp:1: /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' x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from shapes.cpp:18: /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:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from shapes.h:27, from shapes.cpp:19: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:3: 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:61: 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; | ^~~~~~ shapes.cpp: In member function 'GLuint Shapes::getBMPData(const string&, TextureData&, int*, int*)': shapes.cpp:640:27: 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/", "" }; | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from renderedcreature.cpp:17: /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: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:3: 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:61: 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 /usr/include/string.h:532, from /usr/include/SDL/SDL_stdinc.h:60, from /usr/include/SDL/SDL_main.h:26, from /usr/include/SDL/SDL.h:30, from ../common/constants.h:92, from renderedcreature.cpp:17: In function 'char* strncpy(char*, const char*, size_t)', inlined from 'virtual void RenderedCreature::say(const char*)' at renderedcreature.cpp:267:9: /usr/include/bits/string_fortified.h:91:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 2000 equals destination size [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from fog.cpp:18: /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: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:3: 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:61: 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; | ^~~~~~ fog.cpp: In member function 'void Fog::draw(int, int, int, int, CFrustum*)': fog.cpp:161:6: warning: variable 'f' set but not used [-Wunused-but-set-variable] 161 | int f[1000]; | ^ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from maprenderhelper.cpp:18: /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: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:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from map.cpp:18: /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: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:3: 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:61: 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 map.cpp:35: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:70: 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:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 226 | outdoorShadow = adapter->getNamedTexture( "outdoors_shadow" ); | ^~~~~~~~~~~~~~~~~ map.cpp:227:48: 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::getMapXYZAtScreenXY(Uint16*, Uint16*, Uint16*, Location**)': map.cpp:3587:24: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3587 | adapter->setDebugStr( "map: " ); | ^~~~~~~ map.cpp:3513:6: 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 ); | ^~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o mapsettings.o mapsettings.cpp x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, 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/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: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:3: 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:61: 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; | ^~~~~~ mapmemory.cpp: In member function 'Location* MapMemoryManager::newLocation()': mapmemory.cpp:80:18: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 80 | pos->texIndex = NULL; | ^~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from maprender.cpp:18: /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: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:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, 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/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: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:3: 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:61: 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; | ^~~~~~ indoor.cpp: In member function 'virtual void Indoor::drawWaterPosition(int, int, float, float, Shape*)': indoor.cpp:423:9: warning: variable 'name' set but not used [-Wunused-but-set-variable] 423 | GLuint name; | ^~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, 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/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: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:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from mapadapter.cpp:18: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from frustum.cpp:15: /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: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:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from renderedprojectile.cpp:18: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from projectilerenderer.cpp:18: /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: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, from projectilerenderer.cpp:19: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from location.cpp:19: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, 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/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: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:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from effect.cpp:18: /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: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:3: 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:61: 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; | ^~~~~~ effect.cpp: In constructor 'Effect::Effect(Map*, Preferences*, Shapes*, int, int)': effect.cpp:31:66: 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::setSize(int, int)': effect.cpp:85:60: 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 ); | ^~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from shape.cpp:18: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from glshape.cpp:18: /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: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 glshape.cpp:19: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from glcaveshape.cpp:17: /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: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, from glcaveshape.cpp:18: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:3: 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:61: 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; | ^~~~~~ glcaveshape.cpp: In member function 'void GLCaveShape::Common::calculateLight()': glcaveshape.cpp:364:9: warning: variable 'q' set but not used [-Wunused-but-set-variable] 364 | int q = 1; | ^ glcaveshape.cpp: In constructor 'GLCaveShape::GLCaveShape(Shapes*, Texture*, int, int, int, const char*, int, int, int, int, int, int)': glcaveshape.cpp:92:68: warning: '*.GLCaveShape::.GLShape::color' is used uninitialized in this function [-Wuninitialized] 92 | : GLShape( texture, width, depth, height, name, 0, color, index ) { | ^ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from gllocator.cpp:19: /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: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 gllocator.h:23, from gllocator.cpp:20: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from gltorch.cpp:18: /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: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 gltorch.h:22, from gltorch.cpp:19: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from glteleporter.cpp:18: /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: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, from glteleporter.cpp:19: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from cutscene.cpp:18: /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:33, 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/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from animatedshape.cpp:18: /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: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:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from modelwrapper.cpp:18: /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: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:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from Md2.cpp:12: /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: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 Md2.cpp:13: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:3: 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:61: 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; | ^~~~~~ Md2.cpp: In member function 'bool CLoadMD2::ImportMD2(t3DModel*, std::string&)': Md2.cpp:50:7: 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:7: 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:7: 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:8: 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 ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from md2shape.cpp:28: /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: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:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from Md3.cpp:17: /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: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:3: 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:61: 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; | ^~~~~~ Md3.cpp: In member function 'bool CModelMD3::LoadModel(const string&)': Md3.cpp:603:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 603 | LinkModel( &m_Lower, &m_Upper, "tag_torso" ); | ^~~~~~~~~~~ Md3.cpp:606:32: 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 string&, const string&, MD3Shape*)': Md3.cpp:726:34: 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:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1360 | animationIndex = getAnimationIndex( "TORSO_STAND", &m_Upper ); | ^~~~~~~~~~~~~ Md3.cpp:1362:39: 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 string&, MD3Shape*)': Md3.cpp:1955:17: 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:7: 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:7: 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:7: 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:8: 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:8: 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:8: 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:8: 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:8: 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 ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from md3shape.cpp:18: /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: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:3: 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:61: 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; | ^~~~~~ md3shape.cpp: In constructor 'MD3Shape::MD3Shape(CModelMD3*, ModelLoader*, float, Texture*, int, int, int, const char*, int, Uint32, Uint8)': md3shape.cpp:43:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 43 | md3->SetTorsoAnimation( "TORSO_STAND", true, this ); | ^~~~~~~~~~~~~ md3shape.cpp:44:25: 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:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 155 | md3->SetTorsoAnimation( "TORSO_ATTACK", true, this ); | ^~~~~~~~~~~~~~ md3shape.cpp:156:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 156 | md3->SetLegsAnimation( "LEGS_IDLE", true, this ); | ^~~~~~~~~~~ md3shape.cpp:159:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 159 | md3->SetTorsoAnimation( "TORSO_STAND", true, this ); | ^~~~~~~~~~~~~ md3shape.cpp:160:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 160 | md3->SetLegsAnimation( "LEGS_IDLE", true, this ); | ^~~~~~~~~~~ md3shape.cpp:163:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 163 | md3->SetTorsoAnimation( "TORSO_STAND", true, this ); | ^~~~~~~~~~~~~ md3shape.cpp:164:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 164 | md3->SetLegsAnimation( "LEGS_WALK", true, this ); | ^~~~~~~~~~~ md3shape.cpp:170:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 170 | md3->SetTorsoAnimation( "TORSO_STAND", true, this ); | ^~~~~~~~~~~~~ md3shape.cpp:171:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 171 | md3->SetLegsAnimation( "LEGS_IDLE", true, this ); | ^~~~~~~~~~~ md3shape.cpp:174:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 174 | md3->SetTorsoAnimation( "TORSO_STAND2", true, this ); | ^~~~~~~~~~~~~~ md3shape.cpp:175:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 175 | md3->SetLegsAnimation( "LEGS_IDLE", true, this ); | ^~~~~~~~~~~ md3shape.cpp:178:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 178 | md3->SetTorsoAnimation( "TORSO_GESTURE", true, this ); | ^~~~~~~~~~~~~~~ md3shape.cpp:179:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 179 | md3->SetLegsAnimation( "LEGS_IDLE", true, this ); | ^~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from 3ds.cpp:16: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | 3ds.cpp: In member function 'void CLoad3DS::ReadVertices(t3DObject*, tChunk*)': 3ds.cpp:522:71: 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 ); | ^ In file included from 3ds.cpp:16: ../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:7: 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:8: 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 ); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from 3dsshape.cpp:18: /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: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, from 3dsshape.cpp:22: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:3: 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:61: 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; | ^~~~~~ 3dsshape.cpp: In member function 'void C3DSShape::preRenderLight()': 3dsshape.cpp:316:9: warning: variable 'q' set but not used [-Wunused-but-set-variable] 316 | int q = 1; | ^ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from weather.cpp:18: /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:33, 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/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:3: 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:61: 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 ../creature.h:36, from weather.cpp:25: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:11: 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, from ../creature.h:36, from weather.cpp:25: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:70: 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 weather.cpp:25: ../creature.h: In member function 'void Creature::setThirst(int)': ../creature.h:614:3: 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:22: 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:3: 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:22: 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(); | ^~ weather.cpp: In member function 'void Weather::drawWeather()': weather.cpp:391:28: warning: 'snowIntensity' may be used uninitialized in this function [-Wmaybe-uninitialized] 391 | if ( shouldDrawWeather && snowIntensity ) { | ^~~~~~~~~~~~~ weather.cpp:366:28: warning: 'fogIntensity' may be used uninitialized in this function [-Wmaybe-uninitialized] 366 | if ( shouldDrawWeather && fogIntensity ) { | ^~~~~~~~~~~~ weather.cpp:545:16: warning: 'thunderIntensity' may be used uninitialized in this function [-Wmaybe-uninitialized] 545 | brightness = ( ( 201 - ( float )lightningTime ) / 100 ) * lightningBrightness * thunderIntensity; | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ weather.cpp:435:35: warning: 'rainIntensity' may be used uninitialized in this function [-Wmaybe-uninitialized] 435 | } else if ( shouldDrawWeather && rainIntensity ) { | ^~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from virtualshape.cpp:18: /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: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 virtualshape.h:22, from virtualshape.cpp:19: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from texture.cpp:17: /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:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from texture.cpp:19: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:3: 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:61: 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 texture.cpp:18: texture.h: In constructor 'Texture::Actual::Actual()': texture.h:124:15: warning: 'Texture::Actual::_group_name' will be initialized after [-Wreorder] 124 | std::string _group_name; | ^~~~~~~~~~~ texture.h:123:16: warning: 'SDL_Surface* Texture::Actual::_surface' [-Wreorder] 123 | SDL_Surface* _surface; | ^~~~~~~~ texture.cpp:28:1: warning: when initialized here [-Wreorder] 28 | Texture::Actual::Actual() | ^~~~~~~ In file included from texture.cpp:17: texture.cpp: In member function 'bool Texture::Actual::createTile(const SDL_Surface*, int, int, int, int)': texture.cpp:164:32: 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:25: 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 string&, Texture::Actual*, Texture::Actual*, Texture::Actual*, Texture::Actual*, Texture::Actual*, Texture::Actual*, Texture::Actual*, Texture::Actual*, Texture::Actual*)': texture.cpp:412:32: 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:25: 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:32: 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:25: 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 string&)': texture.cpp:583:32: 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:25: 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:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 626 | Constants::checkTexture( "Texture::Actual::loadImage", _width, _height ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from texture.cpp:17: texture.cpp: In member function 'bool Texture::Actual::letsToBind()': texture.cpp:640:19: 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:32: 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:25: 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:15: 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(Texture::Actual*)': texture.cpp:725:15: 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:17: 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:15: 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:15: 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:15: 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:20: 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' x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o file.o file.cpp x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from zipfile.cpp:17: /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' x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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:38: 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:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 68 | }while(n = n->next); | ~~^~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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:38: 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:10: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 16 | switch ( type( ci._closure ) ) { | ^ sqdebug.cpp:16:10: warning: enumeration value 'OT_INTEGER' not handled in switch [-Wswitch] sqdebug.cpp:16:10: warning: enumeration value 'OT_FLOAT' not handled in switch [-Wswitch] sqdebug.cpp:16:10: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqdebug.cpp:16:10: warning: enumeration value 'OT_STRING' not handled in switch [-Wswitch] sqdebug.cpp:16:10: warning: enumeration value 'OT_TABLE' not handled in switch [-Wswitch] sqdebug.cpp:16:10: warning: enumeration value 'OT_ARRAY' not handled in switch [-Wswitch] sqdebug.cpp:16:10: warning: enumeration value 'OT_USERDATA' not handled in switch [-Wswitch] sqdebug.cpp:16:10: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqdebug.cpp:16:10: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqdebug.cpp:16:10: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqdebug.cpp:16:10: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqdebug.cpp:16:10: warning: enumeration value 'OT_CLASS' not handled in switch [-Wswitch] sqdebug.cpp:16:10: warning: enumeration value 'OT_INSTANCE' not handled in switch [-Wswitch] sqdebug.cpp:16:10: warning: enumeration value 'OT_WEAKREF' not handled in switch [-Wswitch] x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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:12: 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:7: warning: unused variable 'isfloat' [-Wunused-variable] 393 | bool isfloat = false; | ^~~~~~~ sqlexer.cpp: In member function 'SQInteger SQLexer::ReadID()': sqlexer.cpp:442:17: warning: unused variable 'size' [-Wunused-variable] 442 | SQInteger res, size = 0; | ^~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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:38: 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:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 68 | }while(n = n->next); | ~~^~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqmem.o sqmem.cpp x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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:38: 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:12: 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:9: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 220 | switch ( type( o ) ) { | ^ sqstate.cpp:220:9: warning: enumeration value 'OT_INTEGER' not handled in switch [-Wswitch] sqstate.cpp:220:9: warning: enumeration value 'OT_FLOAT' not handled in switch [-Wswitch] sqstate.cpp:220:9: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqstate.cpp:220:9: warning: enumeration value 'OT_STRING' not handled in switch [-Wswitch] sqstate.cpp:220:9: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqstate.cpp:220:9: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqstate.cpp:220:9: 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:21: required from here squtils.h:89:10: 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)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sqpcheader.h:16, from sqstate.cpp:4: sqobject.h:126:8: note: 'struct SQObjectPtr' declared here 126 | struct SQObjectPtr : public SQObject | ^~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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:38: 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:12: 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:9: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 122 | switch ( type( o ) ) { | ^ sqvm.cpp:122:9: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqvm.cpp:122:9: warning: enumeration value 'OT_STRING' not handled in switch [-Wswitch] sqvm.cpp:122:9: warning: enumeration value 'OT_ARRAY' not handled in switch [-Wswitch] sqvm.cpp:122:9: warning: enumeration value 'OT_CLOSURE' not handled in switch [-Wswitch] sqvm.cpp:122:9: warning: enumeration value 'OT_NATIVECLOSURE' not handled in switch [-Wswitch] sqvm.cpp:122:9: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqvm.cpp:122:9: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqvm.cpp:122:9: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqvm.cpp:122:9: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqvm.cpp:122:9: warning: enumeration value 'OT_CLASS' not handled in switch [-Wswitch] sqvm.cpp:122:9: 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:10: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 151 | switch ( type( o1 ) ) { | ^ sqvm.cpp:151:10: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqvm.cpp:151:10: warning: enumeration value 'OT_ARRAY' not handled in switch [-Wswitch] sqvm.cpp:151:10: warning: enumeration value 'OT_CLOSURE' not handled in switch [-Wswitch] sqvm.cpp:151:10: warning: enumeration value 'OT_NATIVECLOSURE' not handled in switch [-Wswitch] sqvm.cpp:151:10: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqvm.cpp:151:10: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqvm.cpp:151:10: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqvm.cpp:151:10: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqvm.cpp:151:10: warning: enumeration value 'OT_CLASS' not handled in switch [-Wswitch] sqvm.cpp:151:10: 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:18: 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:9: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 474 | switch ( type( o1 ) ) { | ^ sqvm.cpp:474:9: warning: enumeration value 'OT_INTEGER' not handled in switch [-Wswitch] sqvm.cpp:474:9: warning: enumeration value 'OT_FLOAT' not handled in switch [-Wswitch] sqvm.cpp:474:9: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqvm.cpp:474:9: warning: enumeration value 'OT_CLOSURE' not handled in switch [-Wswitch] sqvm.cpp:474:9: warning: enumeration value 'OT_NATIVECLOSURE' not handled in switch [-Wswitch] sqvm.cpp:474:9: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqvm.cpp:474:9: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqvm.cpp:474:9: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqvm.cpp:474:9: warning: enumeration value 'OT_WEAKREF' not handled in switch [-Wswitch] sqvm.cpp: In member function 'bool SQVM::CLOSURE_OP(SQObjectPtr&, SQFunctionProto*)': sqvm.cpp:554:15: 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:17: 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&, SQVM::ExecutionType)': sqvm.cpp:837:12: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 837 | switch ( type( STK( arg1 ) ) ) { | ^ sqvm.cpp:837:12: warning: enumeration value 'OT_INTEGER' not handled in switch [-Wswitch] sqvm.cpp:837:12: warning: enumeration value 'OT_FLOAT' not handled in switch [-Wswitch] sqvm.cpp:837:12: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqvm.cpp:837:12: warning: enumeration value 'OT_STRING' not handled in switch [-Wswitch] sqvm.cpp:837:12: warning: enumeration value 'OT_ARRAY' not handled in switch [-Wswitch] sqvm.cpp:837:12: warning: enumeration value 'OT_USERDATA' not handled in switch [-Wswitch] sqvm.cpp:837:12: warning: enumeration value 'OT_CLOSURE' not handled in switch [-Wswitch] sqvm.cpp:837:12: warning: enumeration value 'OT_NATIVECLOSURE' not handled in switch [-Wswitch] sqvm.cpp:837:12: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqvm.cpp:837:12: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqvm.cpp:837:12: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqvm.cpp:837:12: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqvm.cpp:837:12: warning: enumeration value 'OT_INSTANCE' not handled in switch [-Wswitch] sqvm.cpp:837:12: 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:11: 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:9: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 1102 | switch ( type( self ) ) { | ^ sqvm.cpp:1102:9: warning: enumeration value 'OT_INTEGER' not handled in switch [-Wswitch] sqvm.cpp:1102:9: warning: enumeration value 'OT_FLOAT' not handled in switch [-Wswitch] sqvm.cpp:1102:9: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqvm.cpp:1102:9: warning: enumeration value 'OT_STRING' not handled in switch [-Wswitch] sqvm.cpp:1102:9: warning: enumeration value 'OT_USERDATA' not handled in switch [-Wswitch] sqvm.cpp:1102:9: warning: enumeration value 'OT_CLOSURE' not handled in switch [-Wswitch] sqvm.cpp:1102:9: warning: enumeration value 'OT_NATIVECLOSURE' not handled in switch [-Wswitch] sqvm.cpp:1102:9: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqvm.cpp:1102:9: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqvm.cpp:1102:9: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqvm.cpp:1102:9: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqvm.cpp:1102:9: warning: enumeration value 'OT_CLASS' not handled in switch [-Wswitch] sqvm.cpp:1102:9: 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:21: required from here squtils.h:89:10: 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)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sqpcheader.h:16, from sqvm.cpp:4: sqobject.h:126:8: note: 'struct SQObjectPtr' declared here 126 | struct SQObjectPtr : public SQObject | ^~~~~~~~~~~ sqvm.cpp: In member function 'bool SQVM::ArithMetaMethod(SQInteger, const SQObjectPtr&, const SQObjectPtr&, SQObjectPtr&)': sqvm.cpp:115:24: warning: 'mm' may be used uninitialized in this function [-Wmaybe-uninitialized] 115 | return CallMetaMethod( _delegable( o1 ), mm, 2, dest ); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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:38: 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:12: 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:4: 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:108: 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:5: 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:9: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 659 | switch ( type( self ) ) { | ^ sqapi.cpp:659:9: warning: enumeration value 'OT_INTEGER' not handled in switch [-Wswitch] sqapi.cpp:659:9: warning: enumeration value 'OT_FLOAT' not handled in switch [-Wswitch] sqapi.cpp:659:9: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqapi.cpp:659:9: warning: enumeration value 'OT_STRING' not handled in switch [-Wswitch] sqapi.cpp:659:9: warning: enumeration value 'OT_ARRAY' not handled in switch [-Wswitch] sqapi.cpp:659:9: warning: enumeration value 'OT_CLOSURE' not handled in switch [-Wswitch] sqapi.cpp:659:9: warning: enumeration value 'OT_NATIVECLOSURE' not handled in switch [-Wswitch] sqapi.cpp:659:9: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqapi.cpp:659:9: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqapi.cpp:659:9: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqapi.cpp:659:9: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqapi.cpp:659:9: warning: enumeration value 'OT_CLASS' not handled in switch [-Wswitch] sqapi.cpp:659:9: warning: enumeration value 'OT_INSTANCE' not handled in switch [-Wswitch] sqapi.cpp:659:9: warning: enumeration value 'OT_WEAKREF' not handled in switch [-Wswitch] sqapi.cpp: In function 'void sq_setreleasehook(HSQUIRRELVM, SQInteger, SQRELEASEHOOK)': sqapi.cpp:815:10: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 815 | switch ( type( ud ) ) { | ^ sqapi.cpp:815:10: warning: enumeration value 'OT_INTEGER' not handled in switch [-Wswitch] sqapi.cpp:815:10: warning: enumeration value 'OT_FLOAT' not handled in switch [-Wswitch] sqapi.cpp:815:10: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqapi.cpp:815:10: warning: enumeration value 'OT_STRING' not handled in switch [-Wswitch] sqapi.cpp:815:10: warning: enumeration value 'OT_TABLE' not handled in switch [-Wswitch] sqapi.cpp:815:10: warning: enumeration value 'OT_ARRAY' not handled in switch [-Wswitch] sqapi.cpp:815:10: warning: enumeration value 'OT_CLOSURE' not handled in switch [-Wswitch] sqapi.cpp:815:10: warning: enumeration value 'OT_NATIVECLOSURE' not handled in switch [-Wswitch] sqapi.cpp:815:10: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqapi.cpp:815:10: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqapi.cpp:815:10: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqapi.cpp:815:10: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqapi.cpp:815:10: warning: enumeration value 'OT_CLASS' not handled in switch [-Wswitch] sqapi.cpp:815:10: warning: enumeration value 'OT_WEAKREF' not handled in switch [-Wswitch] sqapi.cpp: In function 'SQRESULT sq_writeclosure(HSQUIRRELVM, SQWRITEFUNC, SQUserPointer)': sqapi.cpp:833:13: 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:21: required from here squtils.h:89:10: 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)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sqpcheader.h:16, from sqapi.cpp:4: sqobject.h:126:8: note: 'struct SQObjectPtr' declared here 126 | struct SQObjectPtr : public SQObject | ^~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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:12: 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:9: warning: enumeration value 'OT_NULL' not handled in switch [-Wswitch] 75 | switch ( type( o ) ) { | ^ sqfuncstate.cpp:75:9: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqfuncstate.cpp:75:9: warning: enumeration value 'OT_TABLE' not handled in switch [-Wswitch] sqfuncstate.cpp:75:9: warning: enumeration value 'OT_ARRAY' not handled in switch [-Wswitch] sqfuncstate.cpp:75:9: warning: enumeration value 'OT_USERDATA' not handled in switch [-Wswitch] sqfuncstate.cpp:75:9: warning: enumeration value 'OT_CLOSURE' not handled in switch [-Wswitch] sqfuncstate.cpp:75:9: warning: enumeration value 'OT_NATIVECLOSURE' not handled in switch [-Wswitch] sqfuncstate.cpp:75:9: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqfuncstate.cpp:75:9: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqfuncstate.cpp:75:9: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqfuncstate.cpp:75:9: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqfuncstate.cpp:75:9: warning: enumeration value 'OT_CLASS' not handled in switch [-Wswitch] sqfuncstate.cpp:75:9: warning: enumeration value 'OT_INSTANCE' not handled in switch [-Wswitch] sqfuncstate.cpp:75:9: warning: enumeration value 'OT_WEAKREF' not handled in switch [-Wswitch] sqfuncstate.cpp: In member function 'SQInteger SQFuncState::GetConstant(const SQObject&)': sqfuncstate.cpp:210:19: warning: comparison of integer expressions of different signedness: 'SQInteger' {aka 'int'} and 'unsigned int' [-Wsign-compare] 210 | if ( _nliterals > MAX_LITERALS ) { sqfuncstate.cpp:204:12: warning: unused variable 'n' [-Wunused-variable] 204 | SQInteger n = 0; | ^ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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:38: 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:12: 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:9: warning: enumeration value 'OT_FLOAT' not handled in switch [-Wswitch] 25 | switch ( type( idx ) ) { | ^ sqobject.cpp:25:9: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] sqobject.cpp:25:9: warning: enumeration value 'OT_STRING' not handled in switch [-Wswitch] sqobject.cpp:25:9: warning: enumeration value 'OT_TABLE' not handled in switch [-Wswitch] sqobject.cpp:25:9: warning: enumeration value 'OT_ARRAY' not handled in switch [-Wswitch] sqobject.cpp:25:9: warning: enumeration value 'OT_USERDATA' not handled in switch [-Wswitch] sqobject.cpp:25:9: warning: enumeration value 'OT_CLOSURE' not handled in switch [-Wswitch] sqobject.cpp:25:9: warning: enumeration value 'OT_NATIVECLOSURE' not handled in switch [-Wswitch] sqobject.cpp:25:9: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqobject.cpp:25:9: warning: enumeration value 'OT_USERPOINTER' not handled in switch [-Wswitch] sqobject.cpp:25:9: warning: enumeration value 'OT_THREAD' not handled in switch [-Wswitch] sqobject.cpp:25:9: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqobject.cpp:25:9: warning: enumeration value 'OT_CLASS' not handled in switch [-Wswitch] sqobject.cpp:25:9: warning: enumeration value 'OT_INSTANCE' not handled in switch [-Wswitch] sqobject.cpp:25:9: 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:21: required from here squtils.h:89:10: 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)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sqpcheader.h:16, from sqobject.cpp:4: sqobject.h:126:8: note: 'struct SQObjectPtr' declared here 126 | struct SQObjectPtr : public SQObject | ^~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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:38: 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:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 725 | assert( hasattrs && attrs == key - 1 || !hasattrs ); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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:38: 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:12: 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:16: 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:21: required from here squtils.h:89:10: 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)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sqpcheader.h:16, from sqbaselib.cpp:4: 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' x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 29 | while ( name = sq_getlocal( v, level, seq ) ) { | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sqstdaux.cpp:31:12: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] 31 | switch ( sq_gettype( v, -1 ) ) { | ^ sqstdaux.cpp:31:12: warning: enumeration value 'OT_GENERATOR' not handled in switch [-Wswitch] sqstdaux.cpp:31:12: warning: enumeration value 'OT_FUNCPROTO' not handled in switch [-Wswitch] sqstdaux.cpp:31:12: warning: enumeration value 'OT_WEAKREF' not handled in switch [-Wswitch] x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqstdrex.o sqstdrex.c sqstdrex.c: In function 'sqstd_rex_element': sqstdrex.c:253:13: warning: variable 'op' set but not used [-Wunused-but-set-variable] 253 | SQInteger op; | ^~ sqstdrex.c: In function 'sqstd_rex_matchnode': sqstdrex.c:374:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 374 | while ( asd = sqstd_rex_matchnode( exp, temp, asd ) ) { | ^~~ sqstdrex.c:382:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 382 | while ( asd = sqstd_rex_matchnode( exp, temp, asd ) ) { | ^~~ sqstdrex.c:417:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 417 | if ( str == exp->_bol && !isspace( *str ) | ^ sqstdrex.c:431:3: warning: value computed is not used [-Wunused-value] 431 | *str++; | ^~~~~~ sqstdrex.c:436:4: warning: value computed is not used [-Wunused-value] 436 | *str++; | ^~~~~~ sqstdrex.c:442:4: warning: value computed is not used [-Wunused-value] 442 | *str++; | ^~~~~~ sqstdrex.c:448:3: warning: value computed is not used [-Wunused-value] 448 | *str++; | ^~~~~~ sqstdrex.c: In function 'sqstd_rex_searchrange': sqstdrex.c:531:3: warning: value computed is not used [-Wunused-value] 531 | *text_begin++; | ^~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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:105: warning: comparison of integer expressions of different signedness: 'SQInteger' {aka 'int'} and 'long unsigned int' [-Wsign-compare] 44 | if ( self->Read( sq_getscratchpad( v, ( size + 1 ) * sizeof( wchar_t ) ), size * sizeof( wchar_t ) ) != ( size * sizeof( wchar_t ) ) ) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 51 | sq_pushinteger( v, *( ( SQInteger * )&t ) ); | ~~^~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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:22: 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:24: 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:33: 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:86: 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 | ^ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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:16: 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:13: 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:26: 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:79: 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 | ^ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqstdmath.o sqstdmath.cpp x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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' x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from sqbinding.cpp:17: /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:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from sqbinding.cpp:19: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:3: 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:61: 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 ../creature.h:36, from sqbinding.cpp:20: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:11: 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, from ../creature.h:36, from sqbinding.cpp:20: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:70: 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 sqbinding.cpp:20: ../creature.h: In member function 'void Creature::setThirst(int)': ../creature.h:614:3: 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:22: 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:3: 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:22: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ ../item.h:160:28: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from sqobject.cpp:17: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from sqgame.cpp:17: /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: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:3: 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:61: 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 ../creature.h:36, from sqgame.cpp:21: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:11: 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, from ../creature.h:36, from sqgame.cpp:21: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:70: 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 sqgame.cpp:21: ../creature.h: In member function 'void Creature::setThirst(int)': ../creature.h:614:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from sqcreature.cpp:17: /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: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:3: 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:61: 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 ../creature.h:36, from sqcreature.cpp:22: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:11: 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, from ../creature.h:36, from sqcreature.cpp:22: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:70: 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 sqcreature.cpp:22: ../creature.h: In member function 'void Creature::setThirst(int)': ../creature.h:614:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from sqmission.cpp:17: /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:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from sqmission.cpp:19: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:3: 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:61: 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 ../creature.h:36, from sqmission.cpp:20: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:11: 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, from ../creature.h:36, from sqmission.cpp:20: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:70: 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 sqmission.cpp:20: ../creature.h: In member function 'void Creature::setThirst(int)': ../creature.h:614:3: 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:22: 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:3: 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:22: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ ../item.h:160:28: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from sqitem.cpp:17: /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:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from sqitem.cpp:19: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:3: 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:61: 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/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:11: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from sqitem.cpp:20: ../item.h: In member function 'void Item::setWeight(float)': ../item.h:160:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ ../item.h:160:28: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:70: 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 ); | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from ../common/constants.h:93, from sqspell.cpp:17: /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:33, from ../events/../scourge.h:29, from ../events/thirsthungerevent.h:22, from ../party.h:25, from ../session.h:25, from sqspell.cpp:19: ../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': ../events/../gui/multiplelabel.h:54:3: 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:61: 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 sqspell.cpp:20: ../rpg/character.h: In static member function 'static int Characters::getRootCount()': ../rpg/character.h:66:11: 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, from sqspell.cpp:20: ../rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': ../rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ ../rpg/spell.h:300:70: 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' x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from configlang.cpp:17: /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:33, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from session.h:25, from configlang.cpp:19: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:3: 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:61: 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 configlang.cpp:17: configlang.cpp: In member function 'void ConfigLang::parse(std::vector >*)': configlang.cpp:250:16: 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:13: 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; | ^ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from persist.cpp:17: /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/../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:3: 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:61: 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; | ^~~~~~ 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 ) { | ^~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from creature.cpp:18: /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/rpglib.h:27, from creature.h:36, from creature.cpp:19: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from creature.h:36, from creature.cpp:19: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 creature.cpp:19: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:3: 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:61: 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 creature.cpp:19: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:12: 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:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2941 | session->getSquirrel()->setGlobalVariable( "armor", lastArmor[ t ] ); | ^~~~~~~ creature.cpp:2943:68: 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:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3144 | "damage", roll ); | ^~~~~~~~ creature.cpp:3146:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3146 | session->getSquirrel()->setGlobalVariable( "damage", roll ); | ^~~~~~~~ creature.cpp:3148:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 3148 | roll = session->getSquirrel()->getGlobalVariable( "damage" ); | ^~~~~~~~ creature.cpp: In member function 'float Creature::_ZN8Creature17getInfluenceBonusEP4ItemiPKc.part.0(Item*, int, const char*)': creature.cpp:3025:38: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 115 [-Wformat-truncation=] 3025 | snprintf( message, 120, "...%s %s:%s %d-%d %s %d, %s=%.2f", | ^~ creature.cpp:3025:28: note: assuming directive output of 4 bytes 3025 | snprintf( message, 120, "...%s %s:%s %d-%d %s %d, %s=%.2f", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6557, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from common/constants.h:87, from creature.cpp:18: /usr/include/bits/stdio2.h:70:35: note: '__builtin___snprintf_chk' output 19 or more bytes (assuming 274) into a destination of size 120 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from calendar.cpp:18: /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/rpglib.h:27, from creature.h:36, from calendar.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from creature.h:36, from calendar.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 calendar.cpp:21: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:3: 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:61: 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 calendar.cpp:21: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from date.cpp:18: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from item.cpp:18: /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/rpgitem.h:25, from item.h:28, from item.cpp:19: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from item.cpp:19: item.h: In member function 'void Item::setWeight(float)': item.h:160:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: 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:61: 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/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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from terraingenerator.cpp:17: /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/../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 terraingenerator.cpp:19: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:3: 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:61: 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 terraingenerator.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from terraingenerator.cpp:20: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: 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:22: 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:3: 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:22: 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:7: warning: variable 'valueBonus' set but not used [-Wunused-but-set-variable] 342 | int valueBonus = 0; | ^~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from landgenerator.cpp:17: /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/../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:3: 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:61: 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 landgenerator.cpp:28: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from landgenerator.cpp:28: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from cavemaker.cpp:17: /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/../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 cavemaker.cpp:19: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:3: 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:61: 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 cavemaker.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from cavemaker.cpp:20: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from dungeongenerator.cpp:18: /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/../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 dungeongenerator.cpp:20: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:3: 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:61: 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 dungeongenerator.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from dungeongenerator.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from mondrian.cpp:18: /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/../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 mondrian.cpp:20: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:3: 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:61: 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 mondrian.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from mondrian.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from main.cpp:17: /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: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:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from mainmenu.cpp:17: /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/../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 mainmenu.cpp:19: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from mapeditor.cpp:18: /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/../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 mapeditor.cpp:20: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:3: 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:61: 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 mapeditor.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from mapeditor.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: 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:22: 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:3: 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:22: 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:4: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 38 | { "FLOOR_TILE", N_( "Tile: Passage" ) }, | ^~~~~~~~~~~~ In file included from mapeditor.cpp:18: mapeditor.cpp:38:22: 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:18: note: in expansion of macro 'N_' 38 | { "FLOOR_TILE", N_( "Tile: Passage" ) }, | ^~ mapeditor.cpp:39:4: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 39 | { "ROOM_FLOOR_TILE", N_( "Tile: Room" ) } | ^~~~~~~~~~~~~~~~~ In file included from mapeditor.cpp:18: mapeditor.cpp:39:27: 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:23: 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:32: 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:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 716 | button == SDL_BUTTON_RIGHT && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 717 | ( SDL_GetModState() & KMOD_SHIFT ) ) ) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from mapwidget.cpp:18: /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:33, from scourge.h:29, from mapwidget.cpp:20: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from netplay.cpp:18: /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:33, from scourge.h:29, from netplay.h:24, from netplay.cpp:19: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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; | ^~~~~~ netplay.cpp: In member function 'virtual char* NetPlay::getGameState()': netplay.cpp:75:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 75 | return "abc"; | ^~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from containerview.cpp:18: /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:33, from scourge.h:29, from containerview.h:24, from containerview.cpp:19: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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 containerview.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from containerview.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from containergui.cpp:18: /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:33, from scourge.h:29, from containerview.h:24, from containergui.cpp:19: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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 containergui.cpp:22: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from containergui.cpp:22: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from conversationgui.cpp:18: /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:33, from scourge.h:29, from conversationgui.h:25, from conversationgui.cpp:19: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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 conversationgui.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from conversationgui.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: 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:22: 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:3: 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:22: 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:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 75 | answer = new ScrollingLabel( 10, 25, width - 150, 215, "" ); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from infogui.cpp:18: /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:33, from scourge.h:29, from infogui.h:26, from infogui.cpp:19: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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/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:11: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from infogui.cpp:20: item.h: In member function 'void Item::setWeight(float)': item.h:160:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 infogui.cpp:21: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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(); | ^~ infogui.cpp: In member function 'void InfoGui::appendMagicItemInfo(char*, Item*)': infogui.cpp:757:28: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 78 [-Wformat-truncation=] 757 | snprintf( tmp2, 80, "| %s +%d", Skill::skills[skill]->getDisplayName(), bonus ); | ^~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6557, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from common/constants.h:87, from infogui.cpp:18: /usr/include/bits/stdio2.h:70:35: note: '__builtin___snprintf_chk' output between 6 and 270 bytes into a destination of size 80 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ infogui.cpp: In member function 'void InfoGui::describe()': infogui.cpp:583:33: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] 583 | snprintf( tmp, TXT_SIZE, "%s|", item->getSpell()->getNotes() ); | ^ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6557, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from common/constants.h:87, from infogui.cpp:18: /usr/include/bits/stdio2.h:70:35: note: '__builtin___snprintf_chk' output between 2 and 1001 bytes into a destination of size 1000 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ infogui.cpp: In member function 'virtual bool InfoGui::handleEvent(Widget*, SDL_Event*)': infogui.cpp:295:33: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 247 [-Wformat-truncation=] 295 | snprintf( key, 255, "ID_ITEM.%s", scourge->getParty()->getPlayer()->getName() ); | ^~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6557, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from common/constants.h:87, from infogui.cpp:18: /usr/include/bits/stdio2.h:70:35: note: '__builtin___snprintf_chk' output between 9 and 263 bytes into a destination of size 255 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from projectile.cpp:18: /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/../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:3: 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:61: 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 projectile.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from projectile.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: 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:22: 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:3: 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:22: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from session.cpp:17: /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:33, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from session.h:25, from session.cpp:18: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:3: 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:61: 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 session.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from session.cpp:20: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: 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:22: 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:3: 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:22: 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:22: 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:7: warning: variable 'b' set but not used [-Wunused-but-set-variable] 334 | bool b = true; | ^ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from gameadapter.cpp:18: /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: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:3: 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:61: 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/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:11: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from gameadapter.cpp:22: item.h: In member function 'void Item::setWeight(float)': item.h:160:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 gameadapter.cpp:23: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from scourge.cpp:18: /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:33, from scourge.h:29, from scourge.cpp:19: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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 scourge.cpp:23: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from scourge.cpp:23: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: 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:22: 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:3: 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:22: 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 scourge.cpp:19: scourge.h: In constructor 'Scourge::Scourge(UserConfiguration*)': scourge.h:1010:12: warning: 'Scourge::progress' will be initialized after [-Wreorder] 1010 | Progress *progress; | ^~~~~~~~ scourge.h:944:14: warning: 'TextDialog* Scourge::textDialog' [-Wreorder] 944 | TextDialog *textDialog; | ^~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1037:17: warning: 'Scourge::confirmAutoloadDialog' will be initialized after [-Wreorder] 1037 | ConfirmDialog *confirmAutoloadDialog; | ^~~~~~~~~~~~~~~~~~~~~ scourge.h:1036:17: warning: 'ConfirmDialog* Scourge::confirmQuickloadDialog' [-Wreorder] 1036 | ConfirmDialog *confirmQuickloadDialog; | ^~~~~~~~~~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1036:17: warning: 'Scourge::confirmQuickloadDialog' will be initialized after [-Wreorder] 1036 | ConfirmDialog *confirmQuickloadDialog; | ^~~~~~~~~~~~~~~~~~~~~~ scourge.h:1035:17: warning: 'ConfirmDialog* Scourge::confirmQuicksaveDialog' [-Wreorder] 1035 | ConfirmDialog *confirmQuicksaveDialog; | ^~~~~~~~~~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1035:17: warning: 'Scourge::confirmQuicksaveDialog' will be initialized after [-Wreorder] 1035 | ConfirmDialog *confirmQuicksaveDialog; | ^~~~~~~~~~~~~~~~~~~~~~ scourge.h:1034:17: warning: 'ConfirmDialog* Scourge::confirmUpload' [-Wreorder] 1034 | ConfirmDialog *confirmUpload; | ^~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1034:17: warning: 'Scourge::confirmUpload' will be initialized after [-Wreorder] 1034 | ConfirmDialog *confirmUpload; | ^~~~~~~~~~~~~ scourge.h:1033:17: warning: 'ConfirmDialog* Scourge::dismissHeroDialog' [-Wreorder] 1033 | ConfirmDialog *dismissHeroDialog; | ^~~~~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1046:10: warning: 'Scourge::chapterIntroWin' will be initialized after [-Wreorder] 1046 | Window *chapterIntroWin; | ^~~~~~~~~~~~~~~ scourge.h:997:17: warning: 'CardContainer* Scourge::cards' [-Wreorder] 997 | CardContainer *cards; | ^~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:997:17: warning: 'Scourge::cards' will be initialized after [-Wreorder] 997 | CardContainer *cards; | ^~~~~ scourge.h:985:10: warning: 'Window* Scourge::mainWin' [-Wreorder] 985 | Window *mainWin, *tbCombatWin; | ^~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1023:10: warning: 'Scourge::squirrelWin' will be initialized after [-Wreorder] 1023 | Window *squirrelWin; | ^~~~~~~~~~~ scourge.h:943:17: warning: 'ConfirmDialog* Scourge::exitConfirmationDialog' [-Wreorder] 943 | ConfirmDialog *exitConfirmationDialog; | ^~~~~~~~~~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1039:12: warning: 'Scourge::pcEditor' will be initialized after [-Wreorder] 1039 | PcEditor *pcEditor; | ^~~~~~~~ scourge.h:1019:18: warning: 'RechargeDialog* Scourge::rechargeDialog' [-Wreorder] 1019 | RechargeDialog *rechargeDialog; | ^~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1019:18: warning: 'Scourge::rechargeDialog' will be initialized after [-Wreorder] 1019 | RechargeDialog *rechargeDialog; | ^~~~~~~~~~~~~~ scourge.h:1018:18: warning: 'IdentifyDialog* Scourge::identifyDialog' [-Wreorder] 1018 | IdentifyDialog *identifyDialog; | ^~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1018:18: warning: 'Scourge::identifyDialog' will be initialized after [-Wreorder] 1018 | IdentifyDialog *identifyDialog; | ^~~~~~~~~~~~~~ scourge.h:1017:17: warning: 'UncurseDialog* Scourge::uncurseDialog' [-Wreorder] 1017 | UncurseDialog *uncurseDialog; | ^~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1017:17: warning: 'Scourge::uncurseDialog' will be initialized after [-Wreorder] 1017 | UncurseDialog *uncurseDialog; | ^~~~~~~~~~~~~ scourge.h:1016:15: warning: 'TrainDialog* Scourge::trainDialog' [-Wreorder] 1016 | TrainDialog *trainDialog; | ^~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1016:15: warning: 'Scourge::trainDialog' will be initialized after [-Wreorder] 1016 | TrainDialog *trainDialog; | ^~~~~~~~~~~ scourge.h:1015:16: warning: 'DonateDialog* Scourge::donateDialog' [-Wreorder] 1015 | DonateDialog *donateDialog; | ^~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1015:16: warning: 'Scourge::donateDialog' will be initialized after [-Wreorder] 1015 | DonateDialog *donateDialog; | ^~~~~~~~~~~~ scourge.h:1014:14: warning: 'HealDialog* Scourge::healDialog' [-Wreorder] 1014 | HealDialog *healDialog; | ^~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1014:14: warning: 'Scourge::healDialog' will be initialized after [-Wreorder] 1014 | HealDialog *healDialog; | ^~~~~~~~~~ scourge.h:1013:15: warning: 'TradeDialog* Scourge::tradeDialog' [-Wreorder] 1013 | TradeDialog *tradeDialog; | ^~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1013:15: warning: 'Scourge::tradeDialog' will be initialized after [-Wreorder] 1013 | TradeDialog *tradeDialog; | ^~~~~~~~~~~ scourge.h:946:19: warning: 'ConversationGui* Scourge::conversationGui' [-Wreorder] 946 | ConversationGui *conversationGui; | ^~~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:946:19: warning: 'Scourge::conversationGui' will be initialized after [-Wreorder] 946 | ConversationGui *conversationGui; | ^~~~~~~~~~~~~~~ scourge.h:945:11: warning: 'InfoGui* Scourge::infoGui' [-Wreorder] 945 | InfoGui *infoGui; | ^~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1007:10: warning: 'Scourge::boardWin' will be initialized after [-Wreorder] 1007 | Window *boardWin; | ^~~~~~~~ scourge.h:924:12: warning: 'MiniMap* Scourge::miniMap' [-Wreorder] 924 | MiniMap * miniMap; | ^~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:924:12: warning: 'Scourge::miniMap' will be initialized after [-Wreorder] 924 | MiniMap * miniMap; | ^~~~~~~ scourge.h:923:15: warning: 'MapSettings* Scourge::mapSettings' [-Wreorder] 923 | MapSettings *mapSettings; | ^~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1040:18: warning: 'Scourge::saveDialog' will be initialized after [-Wreorder] 1040 | SavegameDialog *saveDialog; | ^~~~~~~~~~ scourge.h:930:21: warning: 'MultiplayerDialog* Scourge::multiplayer' [-Wreorder] 930 | MultiplayerDialog *multiplayer; | ^~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:930:21: warning: 'Scourge::multiplayer' will be initialized after [-Wreorder] 930 | MultiplayerDialog *multiplayer; | ^~~~~~~~~~~ scourge.h:929:15: warning: 'OptionsMenu* Scourge::optionsMenu' [-Wreorder] 929 | OptionsMenu *optionsMenu; | ^~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] 94 | Scourge::Scourge( UserConfiguration *config ) | ^~~~~~~ In file included from scourge.cpp:19: scourge.h:929:15: warning: 'Scourge::optionsMenu' will be initialized after [-Wreorder] 929 | OptionsMenu *optionsMenu; | ^~~~~~~~~~~ scourge.h:927:12: 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:88: 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:65: 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:72: 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:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2440 | "", 0, false, | ^~ scourge.cpp:2447:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2447 | "", 0, false, | ^~ scourge.cpp:2455:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2455 | "", 0, true, | ^~ scourge.cpp:2496:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 2496 | "", | ^~ scourge.cpp:2515:25: 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:63: 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:45: 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:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 4328 | getSession()->getSquirrel()->setValue( "gameCompleted", "true" ); | ^~~~~~~~~~~~~~~ scourge.cpp:4328:58: 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:85: 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:85: 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:45: 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:38: 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:34: 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 string&, char*)': scourge.cpp:4066:8: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 4066 | fscanf( fp, "%s", p ); | ~~~~~~^~~~~~~~~~~~~~~ scourge.cpp: In member function 'void Scourge::updatePartyUI()': scourge.cpp:3068:52: warning: '%s' directive output may be truncated writing up to 99 bytes into a region of size 79 [-Wformat-truncation=] 3068 | snprintf( version, VER_SIZE, "S.C.O.U.R.G.E. v%s %s", SCOURGE_VERSION, | ^~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6557, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from common/constants.h:87, from scourge.cpp:18: /usr/include/bits/stdio2.h:70:35: note: '__builtin___snprintf_chk' output between 22 and 121 bytes into a destination of size 100 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from scourgeview.cpp:17: /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:33, 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/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:3: 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:61: 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 creature.h:36, from scourgeview.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from creature.h:36, from scourgeview.cpp:20: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 scourgeview.cpp:20: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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; | ^~~~~~ scourgeview.cpp: In member function 'virtual void ScourgeView::drawAfter()': scourgeview.cpp:1142:30: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 80 [-Wformat-truncation=] 1142 | snprintf( msg, MSG_SIZE, "%s %d/%d (%s %d)", c->getName(), c->getBattle()->getAP(), c->getBattle()->getStartingAP(), | ^~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6557, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from common/constants.h:87, from scourgeview.cpp:17: /usr/include/bits/stdio2.h:70:35: note: '__builtin___snprintf_chk' output 10 or more bytes (assuming 264) into a destination of size 80 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scourgeview.cpp:1145:30: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 80 [-Wformat-truncation=] 1145 | snprintf( msg, MSG_SIZE, "%s %d/%d", c->getName(), c->getBattle()->getAP(), c->getBattle()->getStartingAP() ); | ^~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6557, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from common/constants.h:87, from scourgeview.cpp:17: /usr/include/bits/stdio2.h:70:35: note: '__builtin___snprintf_chk' output between 5 and 279 bytes into a destination of size 80 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from scourgehandler.cpp:17: /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:33, from scourge.h:29, from containergui.h:24, from scourgehandler.cpp:19: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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 scourgehandler.cpp:23: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from scourgehandler.cpp:23: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: 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:22: 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:3: 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:22: 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:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 347 | scourge->runSquirrelConsole( "scourgeGame.reloadNuts();" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6557, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from common/constants.h:87, from scourgehandler.cpp:17: In function 'int snprintf(char*, size_t, const char*, ...)', inlined from 'void ScourgeHandler::saveScreenshot()' at scourgehandler.cpp:682:15: /usr/include/bits/stdio2.h:70:35: warning: 'int __builtin___snprintf_chk(char*, long unsigned int, int, long unsigned int, const char*, ...)' specified bound 256 exceeds destination size 255 [-Wstringop-overflow=] 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from sdleventhandler.cpp:18: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from sdlhandler.cpp:18: /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: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:3: 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:61: 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; | ^~~~~~ sdlhandler.cpp: In static member function 'static bool SDLHandler::intersects(int, int, int, int, int, int, int, int)': sdlhandler.cpp:1048:3: warning: narrowing conversion of 'x' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 1048 | x, y, w, h | ^ sdlhandler.cpp:1048:6: warning: narrowing conversion of 'y' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 1048 | x, y, w, h | ^ sdlhandler.cpp:1048:9: warning: narrowing conversion of 'w' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 1048 | x, y, w, h | ^ sdlhandler.cpp:1048:12: warning: narrowing conversion of 'h' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 1048 | x, y, w, h | ^ sdlhandler.cpp:1051:3: warning: narrowing conversion of 'x2' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 1051 | x2, y2, w2, h2 | ^~ sdlhandler.cpp:1051:7: warning: narrowing conversion of 'y2' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 1051 | x2, y2, w2, h2 | ^~ sdlhandler.cpp:1051:11: warning: narrowing conversion of 'w2' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 1051 | x2, y2, w2, h2 | ^~ sdlhandler.cpp:1051:15: warning: narrowing conversion of 'h2' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 1051 | x2, y2, w2, h2 | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from sdlscreenview.cpp:18: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from sound.cpp:17: /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: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:3: 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:61: 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:11: 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, from sound.cpp:23: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: 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:22: 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:3: 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:22: 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"; | ^~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from pcui.cpp:18: /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/rpglib.h:27, from pcui.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from pcui.cpp:20: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: 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:61: 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 pcui.cpp:25: item.h: In member function 'void Item::setWeight(float)': item.h:160:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from textscroller.cpp:17: /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:33, from scourge.h:29, from textscroller.cpp:19: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from equip.cpp:18: /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/../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 equip.cpp:20: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:3: 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:61: 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 equip.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from equip.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: 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:22: 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:3: 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:22: 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:2: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 53 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~~~ equip.cpp:53:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 53 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~~~ equip.cpp:53:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 53 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~ equip.cpp:53:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 53 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~~~~ equip.cpp:53:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 53 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~~~ equip.cpp:53:51: 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:58: 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:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 725 | description = new ScrollingLabel( x, y, w, h - 95, "" ); | ^~ equip.cpp: In member function 'bool Equip::handleEvent(SDL_Event*)': equip.cpp:197:41: warning: '%s' directive output may be truncated writing up to 2999 bytes into a region of size 2998 [-Wformat-truncation=] 197 | snprintf( tooltip, TEXT_SIZE, "%s:|%s|%s:%d %s:%d", | ^~ 198 | spell->getDisplayName(), 199 | tmp, | ~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6557, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from common/constants.h:87, from equip.cpp:18: /usr/include/bits/stdio2.h:70:35: note: '__builtin___snprintf_chk' output 9 or more bytes (assuming 3008) into a destination of size 3000 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ equip.cpp: In member function 'void Equip::drawCapabilities()': equip.cpp:580:41: warning: '%s' directive output may be truncated writing up to 2999 bytes into a region of size 2998 [-Wformat-truncation=] 580 | snprintf( tooltip, TEXT_SIZE, "%s:|%s|%s", ss->getDisplayName(), tmp, ss->getType() == SpecialSkill::SKILL_TYPE_MANUAL ? _( "Manual Capability" ) : _( "Automatic Capability" ) ); | ^~ ~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6557, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from common/constants.h:87, from equip.cpp:18: /usr/include/bits/stdio2.h:70:35: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 3003) into a destination of size 3000 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:532, from /usr/include/SDL/SDL_stdinc.h:60, from /usr/include/SDL/SDL_main.h:26, from /usr/include/SDL/SDL.h:30, from common/constants.h:92, from equip.cpp:18: In function 'char* strncpy(char*, const char*, size_t)', inlined from 'void MissionInfoUI::refresh()' at equip.cpp:782:10: /usr/include/bits/string_fortified.h:91:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 3000 equals destination size [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from inven.cpp:17: /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:33, from scourge.h:29, from containerview.h:24, from inven.h:28, from inven.cpp:18: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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 inven.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from inven.cpp:20: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from portrait.cpp:17: /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/../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 portrait.cpp:19: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:3: 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:61: 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 portrait.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from portrait.cpp:20: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: 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:22: 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:3: 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:22: 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:2: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 64 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~~~ portrait.cpp:64:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 64 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~~~ portrait.cpp:64:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 64 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~ portrait.cpp:64:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 64 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~~~~ portrait.cpp:64:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 64 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~~~ portrait.cpp:64:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 64 | "nature", "divine", "life", "history", "tricks", "confrontation" | ^~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from shapepalette.cpp:18: /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/../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 shapepalette.cpp:19: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:3: 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:61: 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 shapepalette.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from shapepalette.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 ); | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from util.cpp:18: /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/../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:3: 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:61: 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; | ^~~~~~ util.cpp: In function 'char* Util::getOpenGLError()': util.cpp:93:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 93 | case GL_NO_ERROR : return "GL_NO_ERROR"; | ^~~~~~~~~~~~~ util.cpp:94:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 94 | case GL_INVALID_ENUM : return "GL_INVALID_ENUM"; | ^~~~~~~~~~~~~~~~~ util.cpp:95:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 95 | case GL_INVALID_VALUE : return "GL_INVALID_VALUE"; | ^~~~~~~~~~~~~~~~~~ util.cpp:96:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 96 | case GL_INVALID_OPERATION : return "GL_INVALID_OPERATION"; | ^~~~~~~~~~~~~~~~~~~~~~ util.cpp:97:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 97 | case GL_STACK_OVERFLOW : return "GL_STACK_OVERFLOW"; | ^~~~~~~~~~~~~~~~~~~ util.cpp:98:33: 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:10: 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:6: 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:11: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 421 | for( ; i < MT_N; ++i ) | ^ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from text.cpp:23: /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:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 63 | lastError = "file open failed."; | ^~~~~~~~~~~~~~~~~~~ text.cpp:75:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 75 | lastError = "not a texture font file."; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:85:15: 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:2: 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:2: 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:2: 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:2: 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:2: 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:2: 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:2: 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:4: 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:4: 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:3: note: in expansion of macro 'EXPECT' 193 | EXPECT( stride * height ); | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from minimap.cpp:18: /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/../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 minimap.cpp:20: render/../events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': render/../events/../gui/multiplelabel.h:54:3: 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:61: 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/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:11: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from minimap.cpp:26: item.h: In member function 'void Item::setWeight(float)': item.h:160:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 minimap.cpp:27: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from optionsmenu.cpp:18: /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:33, from optionsmenu.cpp:19: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from partyeditor.cpp:18: /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:33, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from partyeditor.h:25, from partyeditor.cpp:19: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:3: 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:61: 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 partyeditor.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from partyeditor.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: 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:22: 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:3: 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:22: 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:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 200 | pc->addSpell( Spell::getSpellByName( "Flame of Azun" ) ); | ^~~~~~~~~~~~~~~ partyeditor.cpp:201:40: 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:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 204 | pc->addSpell( Spell::getSpellByName( "Silent knives" ) ); | ^~~~~~~~~~~~~~~ partyeditor.cpp:206:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 206 | pc->addSpell( Spell::getSpellByName( "Stinging light" ) ); | ^~~~~~~~~~~~~~~~ partyeditor.cpp:209:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 209 | pc->addSpell( Spell::getSpellByName( "Lesser healing touch" ) ); | ^~~~~~~~~~~~~~~~~~~~~~ partyeditor.cpp:211:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 211 | pc->addSpell( Spell::getSpellByName( "Body of stone" ) ); | ^~~~~~~~~~~~~~~ partyeditor.cpp:216:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 216 | pc->addSpell( Spell::getSpellByName( "Ring of Harm" ) ); | ^~~~~~~~~~~~~~ partyeditor.cpp:217:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 217 | pc->addSpell( Spell::getSpellByName( "Malice Storm" ) ); | ^~~~~~~~~~~~~~ partyeditor.cpp:218:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 218 | pc->addSpell( Spell::getSpellByName( "Unholy Decimator" ) ); | ^~~~~~~~~~~~~~~~~~ partyeditor.cpp:219:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 219 | pc->addSpell( Spell::getSpellByName( "Remove curse" ) ); | ^~~~~~~~~~~~~~ partyeditor.cpp:220:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 220 | pc->addSpell( Spell::getSpellByName( "Teleportation" ) ); | ^~~~~~~~~~~~~~~ partyeditor.cpp:221:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 221 | pc->addSpell( Spell::getSpellByName( "Recall to life" ) ); | ^~~~~~~~~~~~~~~~ partyeditor.cpp:222:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 222 | pc->addSpell( Spell::getSpellByName( "Blast of Fury" ) ); | ^~~~~~~~~~~~~~~ partyeditor.cpp:223:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 223 | pc->addSpell( Spell::getSpellByName( "Dori's Tumblers" ) ); | ^~~~~~~~~~~~~~~~~ partyeditor.cpp:224:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 224 | pc->addSpell( Spell::getSpellByName( "Gust of wind" ) ); | ^~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from pceditor.cpp:17: /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:33, from scourge.h:29, from pceditor.cpp:26: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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 creature.h:36, from pceditor.cpp:27: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from creature.h:36, from pceditor.cpp:27: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 pceditor.cpp:27: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 548 | "+", | ^~~ pceditor.cpp:555:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 555 | "-", | ^~~ pceditor.cpp:634:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 634 | "<<", IMAGE_TAB ); | ^~~~ pceditor.cpp:637:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 637 | " >>", IMAGE_TAB ); | ^~~~~~~~ pceditor.cpp:648:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 648 | "<<", IMAGE_TAB ); | ^~~~ pceditor.cpp:651:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 651 | " >>", IMAGE_TAB ); | ^~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from multiplayer.cpp:18: /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:33, from scourge.h:29, from multiplayer.h:23, from multiplayer.cpp:19: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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 multiplayer.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from multiplayer.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from userconfiguration.cpp:18: /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:7: warning: 'UserConfiguration::enableScreenshots' will be initialized after [-Wreorder] 81 | bool enableScreenshots; | ^~~~~~~~~~~~~~~~~ userconfiguration.h:80:6: 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:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 522 | writeFile( configFile, "Modify at your own risks.\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:523:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 523 | writeFile( configFile, "-------------------------------------------------\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:524:25: 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:25: 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:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 526 | writeFile( configFile, "- No upper/lower case distinction\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:527:25: 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:25: 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:25: 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:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 530 | writeFile( configFile, "Syntax : \n" ); | ^~~~~~~~~~~~~ userconfiguration.cpp:531:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 531 | writeFile( configFile, "- BIND sdl_key_name engineAction\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:532:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 532 | writeFile( configFile, "- SET variable value\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:533:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 533 | writeFile( configFile, "without the '-' at the beginning\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:534:25: 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:25: 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:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 536 | writeFile( configFile, "-------------------------------------------------\n\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ userconfiguration.cpp:542:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 542 | writeFile( configFile, "// Bindings\n" ); | ^~~~~~~~~~~~~~~ userconfiguration.cpp:556:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 556 | writeFile( configFile, "\n// Video settings\n" ); | ^~~~~~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from board.cpp:18: /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/../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:3: 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:61: 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:11: 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, from board.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: 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:22: 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:3: 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:22: 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 string&)': board.cpp:662:36: 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 'Mission* MapPlace::findOrCreateMission(Board*, MissionInfo*)': board.cpp:949:103: 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:114: 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:118: 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 ); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from conversation.h:4, from conversation.cpp:1: /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/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:11: 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, from creature.h:36, from conversation.cpp:4: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 conversation.cpp:4: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:3: 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:61: 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 conversation.cpp:4: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from battle.cpp:18: /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:33, 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/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:3: 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:61: 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 battle.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from battle.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: 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:22: 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:3: 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:22: 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:2: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 37 | "sound/weapon-swish/handheld/sw1.wav", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:38:2: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 38 | "sound/weapon-swish/handheld/sw2.wav", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:39:2: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 39 | "sound/weapon-swish/handheld/sw3.wav", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:41:2: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 41 | "sound/weapon-swish/bows/swb2.wav", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:42:2: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 42 | "sound/weapon-swish/bows/swb3.wav", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ battle.cpp:44:2: 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:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 331 | getSession()->getSquirrel()->setGlobalVariable( "turnWait", originalWait ); | ^~~~~~~~~~ battle.cpp:345:83: 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:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1287 | getSession()->getSquirrel()->setGlobalVariable( "damage", damage ); | ^~~~~~~~ battle.cpp:1289:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 1289 | damage = getSession()->getSquirrel()->getGlobalVariable( "damage" ); | ^~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from party.cpp:18: /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:33, from events/../scourge.h:29, from events/thirsthungerevent.h:22, from party.h:25, from party.cpp:19: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:3: 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:61: 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 party.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from party.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: 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:22: 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:3: 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:22: 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:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 535 | pc[2]->addSpell( Spell::getSpellByName( "Flame of Azun" ) ); | ^~~~~~~~~~~~~~~ party.cpp:536:42: 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:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 537 | pc[2]->addSpell( Spell::getSpellByName( "Silent knives" ) ); | ^~~~~~~~~~~~~~~ party.cpp:538:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 538 | pc[2]->addSpell( Spell::getSpellByName( "Stinging light" ) ); | ^~~~~~~~~~~~~~~~ party.cpp:539:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 539 | pc[2]->addSpell( Spell::getSpellByName( "Burning stare" ) ); | ^~~~~~~~~~~~~~~ party.cpp:541:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 541 | pc[3]->addSpell( Spell::getSpellByName( "Lesser healing touch" ) ); | ^~~~~~~~~~~~~~~~~~~~~~ party.cpp:542:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 542 | pc[3]->addSpell( Spell::getSpellByName( "Body of stone" ) ); | ^~~~~~~~~~~~~~~ party.cpp:543:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 543 | pc[3]->addSpell( Spell::getSpellByName( "Bless group" ) ); | ^~~~~~~~~~~~~ party.cpp:544:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 544 | pc[3]->addSpell( Spell::getSpellByName( "Invisibility" ) ); | ^~~~~~~~~~~~~~ party.cpp:545:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 545 | pc[3]->addSpell( Spell::getSpellByName( "Poison of ignorance" ) ); | ^~~~~~~~~~~~~~~~~~~~~ party.cpp:546:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 546 | pc[3]->addSpell( Spell::getSpellByName( "Transmute poison" ) ); | ^~~~~~~~~~~~~~~~~~ party.cpp:547:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 547 | pc[3]->addSpell( Spell::getSpellByName( "Cursed ways" ) ); | ^~~~~~~~~~~~~ party.cpp:548:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 548 | pc[3]->addSpell( Spell::getSpellByName( "Remove curse" ) ); | ^~~~~~~~~~~~~~ party.cpp:549:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 549 | pc[3]->addSpell( Spell::getSpellByName( "Enthrall fiend" ) ); | ^~~~~~~~~~~~~~~~ party.cpp:550:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 550 | pc[3]->addSpell( Spell::getSpellByName( "Break from possession" ) ); | ^~~~~~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from spellcaster.cpp:17: /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:33, 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/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:3: 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:61: 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/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:11: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from spellcaster.cpp:20: item.h: In member function 'void Item::setWeight(float)': item.h:160:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 spellcaster.cpp:21: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 421 | battle->getSession()->getSquirrel()->setGlobalVariable( "damage", damage ); | ^~~~~~~~ spellcaster.cpp:423:68: 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:31: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] 715 | causeDamage( ( GLuint )( i * 50 ) ); | ~~~~^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from itemlist.cpp:17: /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:33, from scourge.h:29, from itemlist.cpp:19: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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 creature.h:36, from itemlist.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from creature.h:36, from itemlist.cpp:20: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 itemlist.cpp:20: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from tradedialog.cpp:17: /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:33, from scourge.h:29, from tradedialog.cpp:19: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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 creature.h:36, from tradedialog.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from creature.h:36, from tradedialog.cpp:20: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 tradedialog.cpp:20: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from uncursedialog.cpp:17: /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:33, from scourge.h:29, from uncursedialog.cpp:19: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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 creature.h:36, from uncursedialog.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from creature.h:36, from uncursedialog.cpp:20: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 uncursedialog.cpp:20: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from identifydialog.cpp:17: /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:33, from scourge.h:29, from identifydialog.cpp:19: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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 creature.h:36, from identifydialog.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from creature.h:36, from identifydialog.cpp:20: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 identifydialog.cpp:20: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from rechargedialog.cpp:17: /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:33, from scourge.h:29, from rechargedialog.cpp:19: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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 creature.h:36, from rechargedialog.cpp:20: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from creature.h:36, from rechargedialog.cpp:20: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 rechargedialog.cpp:20: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from healdialog.cpp:18: /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:33, from scourge.h:29, from healdialog.cpp:20: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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 creature.h:36, from healdialog.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from creature.h:36, from healdialog.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 healdialog.cpp:21: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 44 | spellDescription = new ScrollingLabel( 10, 210, w - 20, 70, "" ); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from savegamedialog.cpp:18: /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:33, from scourge.h:29, from savegamedialog.cpp:20: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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 creature.h:36, from savegamedialog.cpp:23: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from creature.h:36, from savegamedialog.cpp:23: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 savegamedialog.cpp:23: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from donatedialog.cpp:18: /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:33, from scourge.h:29, from donatedialog.cpp:20: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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 creature.h:36, from donatedialog.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from creature.h:36, from donatedialog.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 donatedialog.cpp:21: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 46 | result = new ScrollingLabel( 10, 75, w - 20, 65, "" ); | ^~ donatedialog.cpp: In member function 'void DonateDialog::updateUI()': donatedialog.cpp:73:38: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 248 [-Wformat-truncation=] 73 | snprintf( s, TXT_SIZE, "%s (%s %d), %s.", | ^~ ...... 77 | tmp ); | ~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6557, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from common/constants.h:87, from donatedialog.cpp:18: /usr/include/bits/stdio2.h:70:35: note: '__builtin___snprintf_chk' output 9 or more bytes (assuming 263) into a destination of size 255 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from texteffect.cpp:17: /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:33, from scourge.h:29, from texteffect.cpp:19: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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; | ^~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from traindialog.cpp:18: /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:33, from scourge.h:29, from traindialog.cpp:20: gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': gui/multiplelabel.h:54:3: 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:61: 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 creature.h:36, from traindialog.cpp:22: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from creature.h:36, from traindialog.cpp:22: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 traindialog.cpp:22: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 51 | description = new ScrollingLabel( 10, 205, w - 30, 120, "" ); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from upload.cpp:14: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | upload.cpp: In static member function 'static int Upload::uploadScoreToWeb(char*, char (&)[300])': upload.cpp:131:51: warning: '%s' directive output may be truncated writing up to 4999 bytes into a region of size 288 [-Wformat-truncation=] 131 | snprintf( result, RESULT_SIZE, "Bad result: %s", res ); | ^~ ~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6557, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from common/constants.h:87, from upload.cpp:14: /usr/include/bits/stdio2.h:70:35: note: '__builtin___snprintf_chk' output between 13 and 5012 bytes into a destination of size 300 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ upload.cpp:127:59: warning: '%s' directive output may be truncated writing up to 4999 bytes into a region of size 280 [-Wformat-truncation=] 127 | snprintf( result, RESULT_SIZE, "Can't parse result: %s", res ); | ^~ ~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6557, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from common/constants.h:87, from upload.cpp:14: /usr/include/bits/stdio2.h:70:35: note: '__builtin___snprintf_chk' output between 21 and 5020 bytes into a destination of size 300 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from characterinfo.cpp:17: /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:33, 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/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:3: 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:61: 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/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:11: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] 66 | return NULL; | ^~~~ In file included from characterinfo.cpp:19: item.h: In member function 'void Item::setWeight(float)': item.h:160:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 160 | if ( f < 0.0f )f = 0.1f; weight = f; | ^~ item.h:160:28: 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:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 characterinfo.cpp:20: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from skillsview.cpp:17: /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:33, 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/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:3: 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:61: 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 creature.h:36, from skillsview.cpp:22: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from creature.h:36, from skillsview.cpp:22: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 skillsview.cpp:22: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from astar.cpp:18: /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/../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:3: 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:61: 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 creature.h:36, from astar.cpp:21: rpg/character.h: In static member function 'static int Characters::getRootCount()': rpg/character.h:66:11: 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, from creature.h:36, from astar.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 astar.cpp:21: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from cellular.cpp:17: /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:17: cellular.cpp: In member function 'void CellularAutomaton::findRooms()': cellular.cpp:377:23: 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; | ^ x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from quickhull.cpp:21: /usr/include/GL/glext.h:35: note: this is the location of the previous definition 35 | #define GL_GLEXT_VERSION 20220530 | x86_64-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/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -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, from common/constants.h:93, from pathmanager.cpp:18: /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/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:11: 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, from creature.h:36, from pathmanager.cpp:21: rpg/spell.h: In member function 'void MagicSchool::addToDeityDescription(char*)': rpg/spell.h:300:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 300 | if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); | ^~ rpg/spell.h:300:70: 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 pathmanager.cpp:21: events/../gui/multiplelabel.h: In member function 'const char* MultipleLabel::getText(int)': events/../gui/multiplelabel.h:54:3: 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:61: 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 pathmanager.cpp:21: creature.h: In member function 'void Creature::setThirst(int)': creature.h:614:3: 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:22: 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:3: 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:22: 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(); | ^~ x86_64-alt-linux-g++ -pipe -frecord-gcc-switches -Wall -g -O2 -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 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.45015 + 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:/bin:/usr/bin:/usr/X11R6/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/lib64 libexecdir=/usr/src/tmp/scourge-buildroot/usr/lib localstatedir=/usr/src/tmp/scourge-buildroot/var/lib 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 \ /bin/mkdir -p /usr/src/tmp/scourge-buildroot/usr/lib64 /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/lib64/libintl.a; \ if test "@RELOCATABLE@" = yes; then \ dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < /usr/src/tmp/scourge-buildroot/usr/lib64/libintl.la | sed -e "s,^',," -e "s,'\$,,"`; \ if test -n "$dependencies"; then \ rm -f /usr/src/tmp/scourge-buildroot/usr/lib64/libintl.la; \ fi; \ fi; \ else \ : ; \ fi if test "scourge" = "gettext-tools" \ && test 'no' = no \ && test yes != no; then \ /bin/mkdir -p /usr/src/tmp/scourge-buildroot/usr/lib64; \ @LIBTOOL@ --mode=install \ /usr/libexec/rpm-build/install -p -m 644 libgnuintl.a /usr/src/tmp/scourge-buildroot/usr/lib64/libgnuintl.a; \ rm -f /usr/src/tmp/scourge-buildroot/usr/lib64/preloadable_libintl.so; \ /usr/libexec/rpm-build/install -p -m 644 /usr/src/tmp/scourge-buildroot/usr/lib64/libgnuintl.so /usr/src/tmp/scourge-buildroot/usr/lib64/preloadable_libintl.so; \ @LIBTOOL@ --mode=uninstall \ rm -f /usr/src/tmp/scourge-buildroot/usr/lib64/libgnuintl.a; \ else \ : ; \ fi if test 'no' = yes; then \ test yes != no || /bin/mkdir -p /usr/src/tmp/scourge-buildroot/usr/lib64; \ temp=/usr/src/tmp/scourge-buildroot/usr/lib64/t-charset.alias; \ dest=/usr/src/tmp/scourge-buildroot/usr/lib64/charset.alias; \ if test -f /usr/src/tmp/scourge-buildroot/usr/lib64/charset.alias; then \ orig=/usr/src/tmp/scourge-buildroot/usr/lib64/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; \ /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 \ /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' /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 \ /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' /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=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Processing files: scourge-0.21.1-alt6.svn3264 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.68931 + 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.XLgHik 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.mxVoGl 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-alt6.svn3264, fonts-ttf-dejavu-lgc, /lib64/ld-linux-x86-64.so.2, libGL.so.1()(64bit) >= set:piqUKwt1oTBl90ncjMdTBeoEXIC3s0Abi7T24a8TZc2O6ZnrayNP86WETjfPtq6Y1AJkHkqVPVdK7T3BaePw9q8xOuGigFJlgOJAZBlM622El9Aib6cU98KvliTVE5a1qY8hgPEQSLwHuj2N9CsIiiYCcu9xi8kNGDMLTpck56ptkWlZuSHvh14vLs06wkZ9AsbarwrmWSnExNmBUtVbXx0, libGLU.so.1()(64bit) >= set:jg1tiTZCo6dn3, libSDL-1.2.so.0()(64bit) >= set:lfwMF08v7vMIi5wcrFuRqM7h3CZ69G07Mvmu6v2ZH5ZnuApe1dcmSO2CmlyMw77nXOYngtuHhPJXPghTIIfj0, libSDL_image-1.2.so.0()(64bit) >= set:jifK3, libSDL_mixer-1.2.so.0()(64bit) >= set:kfgpCc7vXEI6xTPfcrzB3pFPiiBNMbiJUhSgfPFV6H55ohYFHlnN60, libSDL_net-1.2.so.0()(64bit) >= set:je8XlnNNcrlHNKbMua6QBhZaSb671CDxnQKp75d7VgV2, libSDL_ttf-2.0.so.0()(64bit) >= set:jfs5Ako11ACTo2HWcGYJ0XwYK6, libc.so.6(GLIBC_2.11)(64bit), libc.so.6(GLIBC_2.14)(64bit), libc.so.6(GLIBC_2.2.5)(64bit), libc.so.6(GLIBC_2.3)(64bit), libc.so.6(GLIBC_2.3.4)(64bit), libc.so.6(GLIBC_2.4)(64bit), libc.so.6(GLIBC_2.7)(64bit), libgcc_s.so.1(GCC_3.0)(64bit), libm.so.6(GLIBC_2.2.5)(64bit), libm.so.6(GLIBC_2.27)(64bit), libm.so.6(GLIBC_2.29)(64bit), libpthread.so.0(GLIBC_2.2.5)(64bit), libstdc++.so.6(CXXABI_1.3)(64bit), libstdc++.so.6(CXXABI_1.3.8)(64bit), libstdc++.so.6(CXXABI_1.3.9)(64bit), libstdc++.so.6(GLIBCXX_3.4)(64bit), libstdc++.so.6(GLIBCXX_3.4.11)(64bit), libstdc++.so.6(GLIBCXX_3.4.20)(64bit), libstdc++.so.6(GLIBCXX_3.4.21)(64bit), libstdc++.so.6(GLIBCXX_3.4.9)(64bit), libz.so.1()(64bit) >= 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.bmiJtj Creating scourge-debuginfo package Processing files: scourge-data-0.21.1-alt6.svn3264 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.QU4rPm 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.5dO49j 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-alt6.svn3264 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.zaeOul find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.OVhrsm find-requires: running scripts (debuginfo) Requires: scourge = 0.21.1-alt6.svn3264, /usr/lib/debug/lib64/ld-linux-x86-64.so.2.debug, debug64(libGL.so.1), debug64(libGLU.so.1), debug64(libSDL-1.2.so.0), debug64(libSDL_image-1.2.so.0), debug64(libSDL_mixer-1.2.so.0), debug64(libSDL_net-1.2.so.0), debug64(libSDL_ttf-2.0.so.0), debug64(libc.so.6), debug64(libgcc_s.so.1), debug64(libm.so.6), debug64(libpthread.so.0), debug64(libstdc++.so.6), debug64(libz.so.1) Wrote: /usr/src/RPM/RPMS/x86_64/scourge-0.21.1-alt6.svn3264.x86_64.rpm (w2.lzdio) Wrote: /usr/src/RPM/RPMS/noarch/scourge-data-0.21.1-alt6.svn3264.noarch.rpm (w2T16.xzdio) Wrote: /usr/src/RPM/RPMS/x86_64/scourge-debuginfo-0.21.1-alt6.svn3264.x86_64.rpm (w2T16.xzdio) 330.01user 46.15system 4:49.40elapsed 129%CPU (0avgtext+0avgdata 543040maxresident)k 0inputs+0outputs (0major+11726604minor)pagefaults 0swaps /.out/scourge-data-0.21.1-alt6.svn3264.noarch.rpm: license not found in '/usr/share/license' directory: GPL2 /.out/scourge-0.21.1-alt6.svn3264.x86_64.rpm: license not found in '/usr/share/license' directory: GPL2 /.out/scourge-debuginfo-0.21.1-alt6.svn3264.x86_64.rpm: license not found in '/usr/share/license' directory: GPL2 3.73user 3.63system 5:19.52elapsed 2%CPU (0avgtext+0avgdata 129020maxresident)k 14616inputs+0outputs (0major+245043minor)pagefaults 0swaps --- scourge-0.21.1-alt6.svn3264.x86_64.rpm.repo 2018-06-27 13:37:24.000000000 +0000 +++ scourge-0.21.1-alt6.svn3264.x86_64.rpm.hasher 2024-06-16 02:13:04.795698638 +0000 @@ -24,3 +24,3 @@ Requires: /lib64/ld-linux-x86-64.so.2 -Requires: libGL.so.1()(64bit) >= set:ohKMwXx7IbLRb7J0a1ayvcl2UypRPiPwWi7gFdZIkuKiDU170phWo5VdWAZk4NAzliZikSP2sY1jAK3gjdrqEEoRraeyxvBNt6DXxQPoDCww3BRhFnNXS96dq6hoI8BmZsVcKDXxi5DNw9Eb8D7bXFBwGJlAHf4NXYLmM622El9MIniOtkSoH40t7YSn8ZqFzmmBUKYPu8 +Requires: libGL.so.1()(64bit) >= set:piqUKwt1oTBl90ncjMdTBeoEXIC3s0Abi7T24a8TZc2O6ZnrayNP86WETjfPtq6Y1AJkHkqVPVdK7T3BaePw9q8xOuGigFJlgOJAZBlM622El9Aib6cU98KvliTVE5a1qY8hgPEQSLwHuj2N9CsIiiYCcu9xi8kNGDMLTpck56ptkWlZuSHvh14vLs06wkZ9AsbarwrmWSnExNmBUtVbXx0 Requires: rpmlib(SetVersions) @@ -42,2 +42,3 @@ Requires: libm.so.6(GLIBC_2.27)(64bit) +Requires: libm.so.6(GLIBC_2.29)(64bit) Requires: libpthread.so.0(GLIBC_2.2.5)(64bit) @@ -55,3 +56,3 @@ Provides: scourge = 0.21.1-alt6.svn3264 -File: /usr/bin/scourge 100755 root:root 4cd50a3d784ad495002d45337d327016 +File: /usr/bin/scourge 100755 root:root 997e629da167ed9a28897dc7feb92bad File: /usr/share/applications/scourge.desktop 100644 root:root 3b06de6da6fb397506a66c2481783617 @@ -64,14 +65,14 @@ File: /usr/share/icons/hicolor/48x48/apps/scourge.png 100644 root:root a404bdfe8d67840aad1cb6d8fd2e2e52 -File: /usr/share/locale/de/LC_MESSAGES/scourge.mo 100644 root:root 264ff5b79f36fd6ce8b6e0bd5d443847 -File: /usr/share/locale/en/LC_MESSAGES/scourge.mo 100644 root:root d5c38824c95e39baf424a5109b49bc47 -File: /usr/share/locale/es/LC_MESSAGES/scourge.mo 100644 root:root ab432b77e58885b8ab5c62938136e5ed -File: /usr/share/locale/fr/LC_MESSAGES/scourge.mo 100644 root:root 814bb91aff769fd5d8dbe60e86959d05 -File: /usr/share/locale/hu/LC_MESSAGES/scourge.mo 100644 root:root e00581c27299838c06de802639116599 -File: /usr/share/locale/it/LC_MESSAGES/scourge.mo 100644 root:root a5ae33ca451afc8086af75dedebbfae4 -File: /usr/share/locale/pl/LC_MESSAGES/scourge.mo 100644 root:root 775d4a4b1ea35bdeb14ccc0df4e867f5 -File: /usr/share/locale/pt/LC_MESSAGES/scourge.mo 100644 root:root 3cbe91f7e5c851baa8cb96020dc32678 -File: /usr/share/locale/pt_BR/LC_MESSAGES/scourge.mo 100644 root:root ba771e777c86d97087a4eb59edf7a1a1 -File: /usr/share/locale/ru/LC_MESSAGES/scourge.mo 100644 root:root 3d53b3b66bb4713f507a89206454322f -File: /usr/share/locale/sv/LC_MESSAGES/scourge.mo 100644 root:root d11958141601d99d5da8577247e398f8 +File: /usr/share/locale/de/LC_MESSAGES/scourge.mo 100644 root:root 2a70f407efa74871a2feb52271731376 +File: /usr/share/locale/en/LC_MESSAGES/scourge.mo 100644 root:root 0cc359a11e8381108c0b790460ce65bd +File: /usr/share/locale/es/LC_MESSAGES/scourge.mo 100644 root:root 7646c6d651e0f844ddd68a2b38812d73 +File: /usr/share/locale/fr/LC_MESSAGES/scourge.mo 100644 root:root 81cd0bbb6ce5463e17a588b18d0999ff +File: /usr/share/locale/hu/LC_MESSAGES/scourge.mo 100644 root:root 5bfc89956936f87a83e7a07da288f472 +File: /usr/share/locale/it/LC_MESSAGES/scourge.mo 100644 root:root 593a9d95e070cf738d59166b8136aa4b +File: /usr/share/locale/pl/LC_MESSAGES/scourge.mo 100644 root:root 10e5fa93d7a15b0bf571ec15f74c6f0f +File: /usr/share/locale/pt/LC_MESSAGES/scourge.mo 100644 root:root bfc5baaf0f065fdec2b95bf0ff3678db +File: /usr/share/locale/pt_BR/LC_MESSAGES/scourge.mo 100644 root:root e98045bb153fc12b9c48bb7736a28c60 +File: /usr/share/locale/ru/LC_MESSAGES/scourge.mo 100644 root:root c0a06dfe8b91973305fc767c674444e1 +File: /usr/share/locale/sv/LC_MESSAGES/scourge.mo 100644 root:root 18bd005b96ef7bc353d90e56cc11cc0f File: /usr/share/pixmaps/scourge.png 100644 root:root a404bdfe8d67840aad1cb6d8fd2e2e52 -RPMIdentity: 345d3c805109cb10e229bdcf5e8b4c7d41e4b1c30da7c688f1ab201b9f652f0ba3f8231554478fd2ce0121693a54a881f03bafb6e8415295cbccd0591f25fb2e +RPMIdentity: 5ea75e07896dd72c5932b1e63462d77ce4b4e7dda9d74b44152524adab6a7c82db9cc2ba860482e091f3debc40503a5753d3c1d660bba84bb71795e61192df9e --- scourge-debuginfo-0.21.1-alt6.svn3264.x86_64.rpm.repo 2018-06-27 13:37:24.000000000 +0000 +++ scourge-debuginfo-0.21.1-alt6.svn3264.x86_64.rpm.hasher 2024-06-16 02:13:04.996702196 +0000 @@ -1,4 +1,4 @@ -/usr/lib/debug/.build-id/5f 40755 root:root -/usr/lib/debug/.build-id/5f/ffd84fd63e3e1569e1da20f4d3d9f4ef6954f4 120777 root:root ../../../../bin/scourge -/usr/lib/debug/.build-id/5f/ffd84fd63e3e1569e1da20f4d3d9f4ef6954f4.debug 120777 root:root ../../usr/bin/scourge.debug +/usr/lib/debug/.build-id/8a 40755 root:root +/usr/lib/debug/.build-id/8a/ef44dc8025883696d7aeb49e48afe3ad831d5d 120777 root:root ../../../../bin/scourge +/usr/lib/debug/.build-id/8a/ef44dc8025883696d7aeb49e48afe3ad831d5d.debug 120777 root:root ../../usr/bin/scourge.debug /usr/lib/debug/usr/bin/scourge.debug 100644 root:root @@ -381,6 +381,6 @@ Provides: scourge-debuginfo = 0.21.1-alt6.svn3264 -File: /usr/lib/debug/.build-id/5f 40755 root:root -File: /usr/lib/debug/.build-id/5f/ffd84fd63e3e1569e1da20f4d3d9f4ef6954f4 120777 root:root ../../../../bin/scourge -File: /usr/lib/debug/.build-id/5f/ffd84fd63e3e1569e1da20f4d3d9f4ef6954f4.debug 120777 root:root ../../usr/bin/scourge.debug -File: /usr/lib/debug/usr/bin/scourge.debug 100644 root:root eaa8b119b27c3ca04699bb171fb4a4b0 +File: /usr/lib/debug/.build-id/8a 40755 root:root +File: /usr/lib/debug/.build-id/8a/ef44dc8025883696d7aeb49e48afe3ad831d5d 120777 root:root ../../../../bin/scourge +File: /usr/lib/debug/.build-id/8a/ef44dc8025883696d7aeb49e48afe3ad831d5d.debug 120777 root:root ../../usr/bin/scourge.debug +File: /usr/lib/debug/usr/bin/scourge.debug 100644 root:root d5e135f5f3a24e4ca91f06ad56c7f08e File: /usr/src/debug/scourge 40755 root:root @@ -745,2 +745,2 @@ File: /usr/src/debug/scourge/src/util.h 100644 root:root 9ea4c8ab1ae1085db2893a4b48147f70 -RPMIdentity: 5a50f52eae6613876d390e71b93d18535cc6f30705e6db380008da1de3980b69add1b5e1ea56d20b798f59de3201611d7c72bfc06cf6f343b06f3e38dd13a799 +RPMIdentity: bb5fa9d00fb9cc3f2448ce8923ddb154b753f3be8c77b5609f2d8b0697149e9a19e5ffb72ce9b7af00e37a7412060027a14943bd801141a17b6bf5e69bb2a1ac