<86>Apr 28 08:32:54 userdel[103637]: delete user 'rooter' <86>Apr 28 08:32:54 userdel[103637]: removed group 'rooter' owned by 'rooter' <86>Apr 28 08:32:54 userdel[103637]: removed shadow group 'rooter' owned by 'rooter' <86>Apr 28 08:32:54 groupadd[103648]: group added to /etc/group: name=rooter, GID=681 <86>Apr 28 08:32:54 groupadd[103648]: group added to /etc/gshadow: name=rooter <86>Apr 28 08:32:54 groupadd[103648]: new group: name=rooter, GID=681 <86>Apr 28 08:32:54 useradd[103662]: new user: name=rooter, UID=681, GID=681, home=/root, shell=/bin/bash <86>Apr 28 08:32:54 userdel[103735]: delete user 'builder' <86>Apr 28 08:32:54 userdel[103735]: removed group 'builder' owned by 'builder' <86>Apr 28 08:32:54 userdel[103735]: removed shadow group 'builder' owned by 'builder' <86>Apr 28 08:32:54 groupadd[103889]: group added to /etc/group: name=builder, GID=682 <86>Apr 28 08:32:54 groupadd[103889]: group added to /etc/gshadow: name=builder <86>Apr 28 08:32:54 groupadd[103889]: new group: name=builder, GID=682 <86>Apr 28 08:32:54 useradd[103934]: new user: name=builder, UID=682, GID=682, home=/usr/src, shell=/bin/bash <13>Apr 28 08:33:30 rpmi: libglvnd-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634542 installed <13>Apr 28 08:33:30 rpmi: libogg-1.3.3-alt1 sisyphus+221902.4000.4.1 1550598661 installed <13>Apr 28 08:33:30 rpmi: libexpat-2.2.4-alt1 1503305345 installed <13>Apr 28 08:33:30 rpmi: libflac8-1.3.2-alt2 sisyphus+220898.4400.11.1 1551973321 installed <13>Apr 28 08:33:30 rpmi: libvorbis-1.3.6-alt2 sisyphus+220072.200.2.2 1548744475 installed <13>Apr 28 08:33:30 rpmi: libgraphite2-1.3.13-alt2 sisyphus+226799.100.1.1 1554648241 installed <13>Apr 28 08:33:30 rpmi: libpng16-1.6.36-alt1 sisyphus+219478.100.1.1 1547633314 installed <13>Apr 28 08:33:30 rpmi: libharfbuzz-2.2.0-alt2 sisyphus+226762.500.12.1 1555021895 installed <13>Apr 28 08:33:30 rpmi: libfreetype-2.10.0-alt2 sisyphus+226881.100.2.1 1555676286 installed <13>Apr 28 08:33:30 rpmi: libjpeg-2:2.0.2-alt1 sisyphus+226996.100.1.1 1554902907 installed <13>Apr 28 08:33:30 rpmi: xorg-proto-devel-2018.4-alt3 1527685079 installed <13>Apr 28 08:33:30 rpmi: libwayland-server-1.17.0-alt1 sisyphus+225894.100.1.1 1553872805 installed <13>Apr 28 08:33:32 rpmi: libicu64-1:6.4.2-alt1 sisyphus+227580.100.1.2 1555784329 installed <13>Apr 28 08:33:32 rpmi: icu-utils-1:6.4.2-alt1 sisyphus+227580.100.1.2 1555784329 installed <13>Apr 28 08:33:32 rpmi: libicu-devel-1:6.4.2-alt1 sisyphus+227580.100.1.2 1555784329 installed <13>Apr 28 08:33:32 rpmi: libharfbuzz-icu-2.2.0-alt2 sisyphus+226762.500.12.1 1555021895 installed <13>Apr 28 08:33:32 rpmi: libgraphite2-devel-1.3.13-alt2 sisyphus+226799.100.1.1 1554648241 installed <13>Apr 28 08:33:32 rpmi: libOpenGL-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634542 installed <13>Apr 28 08:33:32 rpmi: libGLES-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634542 installed <13>Apr 28 08:33:32 rpmi: libmad-0.15.1b-alt9 sisyphus+222614.100.1.1 1550890149 installed <13>Apr 28 08:33:32 rpmi: timidity-instruments-1:1.0-alt1 1166705614 installed <13>Apr 28 08:33:32 rpmi: libwebp7-1.0.2-alt1 sisyphus+219651.100.1.2 1548057725 installed <13>Apr 28 08:33:32 rpmi: libjbig-2.1-alt1 1401380926 installed <13>Apr 28 08:33:32 rpmi: libtiff5-4.0.10.0.57.f9fc01c3-alt1 sisyphus+226958.100.1.1 1554850940 installed <13>Apr 28 08:33:32 rpmi: libgsm-1.0.17-alt1 1523356165 installed <13>Apr 28 08:33:32 rpmi: libsndfile-1.0.28-alt2 sisyphus.212728.100 1536333068 installed <13>Apr 28 08:33:32 rpmi: liblz4-1:1.9.1-alt1 sisyphus+228057.100.1.1 1556059318 installed <13>Apr 28 08:33:32 rpmi: libgpg-error-1.36-alt1 sisyphus+225621.300.1.1 1553521082 installed <13>Apr 28 08:33:33 rpmi: libgcrypt20-1.8.4-alt1 sisyphus+225621.500.1.1 1553521735 installed <13>Apr 28 08:33:33 rpmi: libsystemd-1:242-alt4 sisyphus+228096.200.2.3 1556157409 installed <13>Apr 28 08:33:33 rpmi: libdbus-1.12.12-alt2 sisyphus+221234.100.1.2 1549918047 installed <13>Apr 28 08:33:33 rpmi: libasyncns-0.8-alt2.qa1 1365949820 installed <13>Apr 28 08:33:33 rpmi: libalsa-1:1.1.8-alt2 sisyphus+221894.200.4.1 1550583286 installed <13>Apr 28 08:33:33 rpmi: libxshmfence-1.3-alt1 sisyphus+223149.1000.2.1 1551268571 installed <13>Apr 28 08:33:33 rpmi: libX11-locales-3:1.6.7-alt1 sisyphus+226735.100.2.2 1554615009 installed <13>Apr 28 08:33:33 rpmi: libXdmcp-1.1.3-alt1 sisyphus+225206.600.1.2 1552949353 installed <13>Apr 28 08:33:33 rpmi: libXau-1.0.9-alt1 sisyphus+223149.200.2.1 1551268152 installed <13>Apr 28 08:33:33 rpmi: libxcb-1.13.1-alt1 sisyphus+226527.100.2.2 1554593801 installed <13>Apr 28 08:33:33 rpmi: libX11-3:1.6.7-alt1 sisyphus+226735.100.2.2 1554615005 installed <13>Apr 28 08:33:33 rpmi: libXext-1.3.4-alt1 sisyphus+225206.700.1.2 1552949429 installed <13>Apr 28 08:33:33 rpmi: libpulseaudio-12.2-alt1 1535623585 installed <13>Apr 28 08:33:33 rpmi: libmikmod-3.3.11.1-alt2 1502706814 installed <13>Apr 28 08:33:33 rpmi: libXxf86vm-1.1.4-alt2 1527672187 installed <13>Apr 28 08:33:33 rpmi: libXdamage-1.1.5-alt1 sisyphus+225206.500.1.2 1552949286 installed <13>Apr 28 08:33:33 rpmi: libXfixes-5.0.3-alt1 sisyphus+226736.100.2.2 1554614841 installed <13>Apr 28 08:33:33 rpmi: libXrender-0.9.8-alt1 1371312112 installed <13>Apr 28 08:33:33 rpmi: libXrandr-1.5.2-alt1 sisyphus+225206.1300.1.2 1552949710 installed <13>Apr 28 08:33:33 rpmi: libSDL-1.2.14-alt7 1483707272 installed <13>Apr 28 08:33:33 rpmi: libSDL_image-1.2.12-alt2 sisyphus+223384.100.1.1 1551514520 installed <13>Apr 28 08:33:33 rpmi: libSDL_mixer-1.2.12-alt1 1421435874 installed <13>Apr 28 08:33:33 rpmi: libSDL_net-1.2.8-alt1 1333963614 installed <13>Apr 28 08:33:33 rpmi: libSDL_ttf-2.0.10-alt2 1314052177 installed <13>Apr 28 08:33:34 rpmi: libxcb-devel-1.13.1-alt1 sisyphus+226527.100.2.2 1554593801 installed <13>Apr 28 08:33:34 rpmi: libX11-devel-3:1.6.7-alt1 sisyphus+226735.100.2.2 1554615005 installed <13>Apr 28 08:33:34 rpmi: libwayland-client-1.17.0-alt1 sisyphus+225894.100.1.1 1553872805 installed <13>Apr 28 08:33:34 rpmi: libpciaccess-1:0.14-alt1 1528969252 installed <13>Apr 28 08:33:34 rpmi: libdrm-1:2.4.98-alt1 sisyphus+228121.100.4.1 1556184495 installed <13>Apr 28 08:33:34 rpmi: libGLX-mesa-4:19.0.3-alt1 sisyphus+228121.200.4.1 1556185275 installed <13>Apr 28 08:33:34 rpmi: libGLX-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634542 installed <13>Apr 28 08:33:34 rpmi: libGL-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634542 installed <13>Apr 28 08:33:34 rpmi: libGLU-4:9.0.0-alt1 1347643784 installed <13>Apr 28 08:33:34 rpmi: libgbm-4:19.0.3-alt1 sisyphus+228121.200.4.1 1556185275 installed <13>Apr 28 08:33:34 rpmi: libEGL-mesa-4:19.0.3-alt1 sisyphus+228121.200.4.1 1556185275 installed <13>Apr 28 08:33:34 rpmi: libEGL-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634542 installed <13>Apr 28 08:33:34 rpmi: libglvnd-devel-7:1.1.1-alt1 sisyphus+224993.100.4.1 1552634542 installed <13>Apr 28 08:33:34 rpmi: libEGL-devel-4:19.0.3-alt1 sisyphus+228121.200.4.1 1556185275 installed <13>Apr 28 08:33:34 rpmi: libGL-devel-4:19.0.3-alt1 sisyphus+228121.200.4.1 1556185275 installed <13>Apr 28 08:33:34 rpmi: libGLU-devel-4:9.0.0-alt1 1347643784 installed <13>Apr 28 08:33:34 rpmi: libSDL-devel-1.2.14-alt7 1483707272 installed <13>Apr 28 08:33:34 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Apr 28 08:33:34 rpmi: xml-utils-1:2.9.4.0.12.e905-alt1.1 sisyphus+225625.3000.91.1 1555282065 installed <13>Apr 28 08:33:34 rpmi: rpm-build-gir-0.7.2-alt4 1534675014 installed <13>Apr 28 08:33:34 rpmi: gcc-c++-common-1.4.23-alt1 sisyphus+221902.2500.4.1 1550596716 installed <13>Apr 28 08:33:35 rpmi: libstdc++8-devel-8.3.1-alt3 sisyphus+228100.100.1.1 1556142437 installed <13>Apr 28 08:33:36 rpmi: gcc8-c++-8.3.1-alt3 sisyphus+228100.100.1.1 1556142437 installed <13>Apr 28 08:33:36 rpmi: libp11-kit-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Apr 28 08:33:36 rpmi: libtasn1-4.13-alt2 1521133850 installed <13>Apr 28 08:33:36 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Apr 28 08:33:36 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Apr 28 08:33:36 rpmi: ca-certificates-2019.03.31-alt1 sisyphus+226302.100.1.1 1554055265 installed <13>Apr 28 08:33:36 rpmi: ca-trust-0.1.1-alt2 1515595785 installed <13>Apr 28 08:33:36 rpmi: p11-kit-trust-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Apr 28 08:33:36 rpmi: libcrypto1.1-1.1.1b-alt2 sisyphus+227249.100.2.1 1555667822 installed <13>Apr 28 08:33:36 rpmi: libssl1.1-1.1.1b-alt2 sisyphus+227249.100.2.1 1555667822 installed <13>Apr 28 08:33:36 rpmi: libpython3-3.7.3-alt1 sisyphus+225625.574.90.1 1555274251 installed <13>Apr 28 08:33:36 rpmi: python3-3.7.3-alt1 sisyphus+225625.574.90.1 1555274251 installed <13>Apr 28 08:33:37 rpmi: python3-base-3.7.3-alt1 sisyphus+225625.574.90.1 1555274251 installed <13>Apr 28 08:33:37 rpmi: glib2-devel-2.60.1-alt2 sisyphus+227881.100.1.2 1555820556 installed <13>Apr 28 08:33:37 rpmi: libharfbuzz-devel-2.2.0-alt2 sisyphus+226762.500.12.1 1555021895 installed <13>Apr 28 08:33:37 rpmi: libfreetype-devel-2.10.0-alt2 sisyphus+226881.100.2.1 1555676286 installed <13>Apr 28 08:33:37 rpmi: gcc-c++-8-alt1 sisyphus+222164.100.1.1 1550685959 installed <13>Apr 28 08:33:37 rpmi: libSDL_image-devel-1.2.12-alt2 sisyphus+223384.100.1.1 1551514520 installed <13>Apr 28 08:33:37 rpmi: libSDL_mixer-devel-1.2.12-alt1 1421435874 installed <13>Apr 28 08:33:37 rpmi: libSDL_net-devel-1.2.8-alt1 1333963614 installed <13>Apr 28 08:33:37 rpmi: libSDL_ttf-devel-2.0.10-alt2 1314052177 installed <13>Apr 28 08:33:37 rpmi: zlib-devel-1.2.11-alt1 sisyphus+221902.6000.4.1 1550601058 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/scourge-0.21.1-alt6.svn3264.nosrc.rpm Installing scourge-0.21.1-alt6.svn3264.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.40690 + 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.38130 + 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 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + '[' -n '' ']' ++ printf %s '-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' ++ sed -r 's/(^|[[:space:]]+)-[^m][^[:space:]]*//g' + ASFLAGS=' -march=i586 -mtune=generic' + export ASFLAGS + export lt_cv_deplibs_check_method=pass_all + lt_cv_deplibs_check_method=pass_all + readlink -e -- ./configure + xargs -ri dirname -- '{}' + xargs -ri find '{}' -type f '(' -name config.sub -or -name config.guess ')' -printf '%h/\n' + sort -u + xargs -rn1 install -pm755 -- /usr/share/gnu-config/config.sub /usr/share/gnu-config/config.guess + ./configure --build=i586-alt-linux --host=i586-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --disable-silent-rules --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 i586-alt-linux-gcc... i586-alt-linux-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i586-alt-linux-gcc accepts -g... yes checking for i586-alt-linux-gcc option to accept ISO C89... none needed checking whether i586-alt-linux-gcc understands -c and -o together... yes checking dependency style of i586-alt-linux-gcc... none checking how to run the C preprocessor... i586-alt-linux-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking 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... i586-alt-linux-gnu checking host system type... i586-alt-linux-gnu checking whether we are using the GNU C Library 2 or newer... yes checking for i586-alt-linux-ranlib... no checking for ranlib... ranlib checking for simple visibility declarations... yes checking for inline... inline checking for size_t... yes checking for stdint.h... yes checking for working alloca.h... yes checking for alloca... yes checking for 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.0.5, 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 i586-alt-linux-gcc... (cached) i586-alt-linux-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether i586-alt-linux-gcc accepts -g... (cached) yes checking for i586-alt-linux-gcc option to accept ISO C89... (cached) none needed checking whether i586-alt-linux-gcc understands -c and -o together... (cached) yes checking dependency style of i586-alt-linux-gcc... (cached) none checking for i586-alt-linux-g++... i586-alt-linux-g++ checking whether we are using the GNU C++ compiler... yes checking whether i586-alt-linux-g++ accepts -g... yes checking dependency style of i586-alt-linux-g++... none checking for i586-alt-linux-ranlib... ranlib checking whether make sets $(MAKE)... (cached) yes checking for 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' i586-alt-linux-gcc -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o binreloc.o binreloc.c i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from constants.h:93, from constants.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] }; ^ constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] constants.cpp:165:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] rm -f libScourgeCommon.a ar cru libScourgeCommon.a binreloc.o constants.o ranlib libScourgeCommon.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/common' Making all in freetype make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/freetype' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from fontmgr.cpp:28: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] TTF_Font *ttfFont; ^~~~~~~ fontmgr.h:66:6: warning: 'int FontMgr::shadowX' [-Wreorder] int shadowX, shadowY; ^~~~~~~ fontmgr.cpp:42:1: warning: when initialized here [-Wreorder] FontMgr::FontMgr( TTF_Font *font, int shadowX, int shadowY ) : ^~~~~~~ rm -f libScourgeFreeType.a ar cru libScourgeFreeType.a fontmgr.o ranlib libScourgeFreeType.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/freetype' Making all in gui make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/gui' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from guitheme.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from widget.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from slider.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from textfield.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from widgetview.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from canvas.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from button.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from label.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from checkbox.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from cardcontainer.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from draganddrop.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from multiplelabel.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from scrollinglist.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from scrollinglabel.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from window.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from confirmdialog.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from textdialog.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 textdialog.cpp: In constructor 'TextDialog::TextDialog(ScourgeGui*, const char*)': textdialog.cpp:45:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] "" ); ^ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from progress.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from eventhandler.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from gui.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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 ranlib libScourgeGui.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/gui' Making all in test make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/test' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, 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:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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] 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' 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] 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' 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] 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' 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] 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' 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] 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' 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:70: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] Creature *attacker = createCharacter( session, "RA", "Attacker", 1 ); ^ combattest.cpp:71:70: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] Creature *defender = createCharacter( session, "RA", "Defender", 1 ); ^ rm -f libScourgeTest.a ar cru libScourgeTest.a combattest.o ranlib libScourgeTest.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/test' Making all in rpg make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/rpg' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from character.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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] 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' if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from rpg.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] return NULL; ^~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from rpgitem.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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] 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' 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ rpgitem.cpp: At global scope: rpgitem.cpp:52:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] }; ^ rpgitem.cpp:52:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] rpgitem.cpp:52:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from monster.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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] 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' if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from spell.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] Dice action; ^~~~~~ spell.h:74:14: warning: 'std::__cxx11::string Spell::sound' [-Wreorder] std::string sound; ^~~~~ spell.cpp:277:1: warning: when initialized here [-Wreorder] 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] current = new MagicSchool( name, displayName, notes, skill, resistSkill, alignment, red, green, blue, symbol ); ^ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from specialskill.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 rm -f libScourgeRpg.a ar cru libScourgeRpg.a character.o rpg.o rpgitem.o monster.o spell.o specialskill.o ranlib libScourgeRpg.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/rpg' Making all in events make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/events' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from event.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from thirsthungerevent.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from potionexpirationevent.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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] 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' 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] 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' 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from statemodexpirationevent.cpp:19: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from reloadevent.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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 ranlib libScourgeEvents.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/events' Making all in net make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/net' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from broadcast.cpp:1: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from client.cpp:1: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 client.cpp: In member function 'int Client::connect()': client.cpp:193:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] for ( int i = 0; tryToReconnect && RETRY_COUNT <= 0 || i < RETRY_COUNT; i++ ) { ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from clientinfo.cpp:1: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 clientinfo.cpp: In destructor 'virtual ClientInfo::~ClientInfo()': clientinfo.cpp:40:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] TCPUtil::send( socket, "CLOSING" ); ^ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from commands.cpp:1: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from gamestatehandler.cpp:1: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from server.cpp:1: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from tcputil.cpp:1: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from testgamestatehandler.cpp:1: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 rm -f libScourgeNet.a ar cru libScourgeNet.a broadcast.o client.o clientinfo.o commands.o gamestatehandler.o server.o tcputil.o testgamestatehandler.o ranlib libScourgeNet.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/net' Making all in render make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/render' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from shapes.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] Constants::checkTexture( "Shapes::loadGLTextures", width, height ); ^ shapes.cpp: At global scope: shapes.cpp:861:80: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] char *textureDirs[] = { "/textures/", "/cave/default/", "/objects/houses/", "" }; ^ shapes.cpp:861:80: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] shapes.cpp:861:80: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] shapes.cpp:861:80: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from renderedcreature.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from fog.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] int f[1000]; ^ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from maprenderhelper.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from map.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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' if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); ^~~~~~ map.cpp: In constructor 'Map::Map(MapAdapter*, Preferences*, Shapes*)': map.cpp:226:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] outdoorShadow = adapter->getNamedTexture( "outdoors_shadow" ); ^ map.cpp:227:71: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] outdoorShadowTree = adapter->getNamedTexture( "outdoors_shadow_tree" ); ^ map.cpp: In member function 'void Map::getMapXYZAtScreenXY(Uint16*, Uint16*, Uint16*, Location**)': map.cpp:3587:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] adapter->setDebugStr( "map: " ); ^ map.cpp:3513:6: warning: variable 'res' set but not used [-Wunused-but-set-variable] int res = gluUnProject( win_x, win_y, 0.0f, modelview, projection, viewport, &px, &py, &pz ); ^~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o mapsettings.o mapsettings.cpp i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, 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:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] pos->texIndex = NULL; ^~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from maprender.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, 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:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] GLuint name; ^~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, 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:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from mapadapter.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from frustum.cpp:15: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from renderedprojectile.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from projectilerenderer.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from location.cpp:19: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, 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:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from effect.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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:71: warning: unsigned conversion from 'int' to 'Uint8' {aka 'unsigned char'} changes value from '2000' to '208' [-Woverflow] 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:65: warning: unsigned conversion from 'int' to 'Uint8' {aka 'unsigned char'} changes value from '2000' to '208' [-Woverflow] shape = new GLShape( 0, width, height, width, NULL, 0, 0, 2000 ); ^ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from shape.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from glshape.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from glcaveshape.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] : GLShape( texture, width, depth, height, name, 0, color, index ) { ^ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from gllocator.cpp:19: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from gltorch.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from glteleporter.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from cutscene.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from animatedshape.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from modelwrapper.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from Md2.cpp:12: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ Md2.cpp: In member function 'bool CLoadMD2::ImportMD2(t3DModel*, std::__cxx11::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] 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] 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] 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] fread( pFrame, 1, m_Header.frameSize, m_FilePointer ); ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from md2shape.cpp:28: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from Md3.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] LinkModel( &m_Lower, &m_Upper, "tag_torso" ); ^ Md3.cpp:606:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] LinkModel( &m_Upper, &m_Head, "tag_head" ); ^ Md3.cpp: In member function 'bool CModelMD3::LoadWeapon(const string&, const string&, MD3Shape*)': Md3.cpp:726:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] LinkModel( &m_Upper, &m_Weapon, "tag_weapon" ); ^ Md3.cpp: In member function 'void CModelMD3::findModelBounds(t3DModel*, float*, float*)': Md3.cpp:1360:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] animationIndex = getAnimationIndex( "TORSO_STAND", &m_Upper ); ^ Md3.cpp:1362:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 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] texture.uTile = texture.uTile = 1; ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ Md3.cpp: In member function 'bool CLoadMD3::ImportMD3(t3DModel*, std::__cxx11::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] 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] 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] 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] 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] 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] 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] 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] fread( m_pVertices, sizeof( tMd3Triangle ), meshHeader.numMeshFrames * meshHeader.numVertices, m_FilePointer ); ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from md3shape.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] md3->SetTorsoAnimation( "TORSO_STAND", true, this ); ^ md3shape.cpp:44:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] md3->SetLegsAnimation( "LEGS_IDLE", true, this ); ^ md3shape.cpp: In member function 'virtual void MD3Shape::setModelAnimation()': md3shape.cpp:155:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] md3->SetTorsoAnimation( "TORSO_ATTACK", true, this ); ^ md3shape.cpp:156:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] md3->SetLegsAnimation( "LEGS_IDLE", true, this ); ^ md3shape.cpp:159:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] md3->SetTorsoAnimation( "TORSO_STAND", true, this ); ^ md3shape.cpp:160:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] md3->SetLegsAnimation( "LEGS_IDLE", true, this ); ^ md3shape.cpp:163:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] md3->SetTorsoAnimation( "TORSO_STAND", true, this ); ^ md3shape.cpp:164:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] md3->SetLegsAnimation( "LEGS_WALK", true, this ); ^ md3shape.cpp:170:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] md3->SetTorsoAnimation( "TORSO_STAND", true, this ); ^ md3shape.cpp:171:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] md3->SetLegsAnimation( "LEGS_IDLE", true, this ); ^ md3shape.cpp:174:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] md3->SetTorsoAnimation( "TORSO_STAND2", true, this ); ^ md3shape.cpp:175:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] md3->SetLegsAnimation( "LEGS_IDLE", true, this ); ^ md3shape.cpp:178:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] md3->SetTorsoAnimation( "TORSO_GESTURE", true, this ); ^ md3shape.cpp:179:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] md3->SetLegsAnimation( "LEGS_IDLE", true, this ); ^ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from 3ds.cpp:16: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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 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] 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] fread( pBuffer + index, 1, 1, m_FilePointer ); ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from 3dsshape.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] int q = 1; ^ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from weather.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ weather.cpp: In member function 'void Weather::drawWeather()': weather.cpp:306:23: warning: 'snowIntensity' may be used uninitialized in this function [-Wmaybe-uninitialized] float rainIntensity, snowIntensity, thunderIntensity, fogIntensity; ^~~~~~~~~~~~~ weather.cpp:306:56: warning: 'fogIntensity' may be used uninitialized in this function [-Wmaybe-uninitialized] float rainIntensity, snowIntensity, thunderIntensity, fogIntensity; ^~~~~~~~~~~~ weather.cpp:545:16: warning: 'thunderIntensity' may be used uninitialized in this function [-Wmaybe-uninitialized] brightness = ( ( 201 - ( float )lightningTime ) / 100 ) * lightningBrightness * thunderIntensity; ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ weather.cpp:435:35: warning: 'rainIntensity' may be used uninitialized in this function [-Wmaybe-uninitialized] } else if ( shouldDrawWeather && rainIntensity ) { ^~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from virtualshape.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from texture.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] std::string _group_name; ^~~~~~~~~~~ texture.h:123:16: warning: 'SDL_Surface* Texture::Actual::_surface' [-Wreorder] SDL_Surface* _surface; ^~~~~~~~ texture.cpp:28:1: warning: when initialized here [-Wreorder] 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 'int' [-Wsign-compare] assert( _id != INVALID && _id != INPROGRESS ); ~~~~^~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' #define assert(x) x; ^ texture.cpp:164:25: warning: statement has no effect [-Wunused-value] assert( _id != INVALID && _id != INPROGRESS ); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' #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 'int' [-Wsign-compare] assert( _id != INVALID && _id != INPROGRESS ); ~~~~^~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' #define assert(x) x; ^ texture.cpp:412:25: warning: statement has no effect [-Wunused-value] assert( _id != INVALID && _id != INPROGRESS ); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' #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 'int' [-Wsign-compare] assert( _id != INVALID && _id != INPROGRESS ); ~~~~^~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' #define assert(x) x; ^ texture.cpp:549:25: warning: statement has no effect [-Wunused-value] assert( _id != INVALID && _id != INPROGRESS ); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' #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 'int' [-Wsign-compare] assert( _id != INVALID && _id != INPROGRESS ); ~~~~^~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' #define assert(x) x; ^ texture.cpp:583:25: warning: statement has no effect [-Wunused-value] assert( _id != INVALID && _id != INPROGRESS ); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' #define assert(x) x; ^ texture.cpp: In member function 'bool Texture::Actual::loadImage()': texture.cpp:626:73: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 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] assert( _surface != NULL ); ^ ../common/constants.h:175:19: note: in definition of macro 'assert' #define assert(x) x; ^ texture.cpp:689:32: warning: comparison of integer expressions of different signedness: 'GLuint' {aka 'unsigned int'} and 'int' [-Wsign-compare] assert( _id != INVALID && _id != INPROGRESS ); ~~~~^~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' #define assert(x) x; ^ texture.cpp:689:25: warning: statement has no effect [-Wunused-value] assert( _id != INVALID && _id != INPROGRESS ); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' #define assert(x) x; ^ texture.cpp: In copy constructor 'Texture::Texture(const Texture&)': texture.cpp:719:15: warning: statement has no effect [-Wunused-value] assert( _ref != NULL ); ^ ../common/constants.h:175:19: note: in definition of macro 'assert' #define assert(x) x; ^ texture.cpp: In constructor 'Texture::Texture(Texture::Actual*)': texture.cpp:725:15: warning: statement has no effect [-Wunused-value] assert( node != NULL ); ^ ../common/constants.h:175:19: note: in definition of macro 'assert' #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] assert( false && "Texture was assigned to itself, probably bug" ); ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../common/constants.h:175:19: note: in definition of macro 'assert' #define assert(x) x; ^ texture.cpp:744:15: warning: statement has no effect [-Wunused-value] assert( _ref != NULL ); ^ ../common/constants.h:175:19: note: in definition of macro 'assert' #define assert(x) x; ^ texture.cpp: In member function 'void Texture::clear()': texture.cpp:750:15: warning: statement has no effect [-Wunused-value] assert( _ref != NULL ); ^ ../common/constants.h:175:19: note: in definition of macro 'assert' #define assert(x) x; ^ texture.cpp: In member function 'void Texture::swap(Texture&)': texture.cpp:759:15: warning: statement has no effect [-Wunused-value] assert( _ref != NULL ); ^ ../common/constants.h:175:19: note: in definition of macro 'assert' #define assert(x) x; ^ texture.cpp:760:20: warning: statement has no effect [-Wunused-value] assert( that._ref != NULL ); ^ ../common/constants.h:175:19: note: in definition of macro 'assert' #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 ranlib libScourgeRender.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/render' Making all in io make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/io' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o file.o file.cpp i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from zipfile.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 rm -f libScourgeIo.a ar cru libScourgeIo.a file.o zipfile.o ranlib libScourgeIo.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/io' Making all in squirrel make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/squirrel' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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] 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] }while(n = n->next); ~~^~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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] 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] 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] i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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] }while(n = n->next); ~~^~~~~~~~~ sqlexer.cpp: In member function 'SQInteger SQLexer::ReadNumber()': sqlexer.cpp:393:7: warning: unused variable 'isfloat' [-Wunused-variable] bool isfloat = false; ^~~~~~~ sqlexer.cpp: In member function 'SQInteger SQLexer::ReadID()': sqlexer.cpp:442:17: warning: unused variable 'size' [-Wunused-variable] SQInteger res, size = 0; ^~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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] 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] }while(n = n->next); ~~^~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqmem.o sqmem.cpp i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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] 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] }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] 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] 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 struct SQObjectPtr : public SQObject ^~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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] 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] }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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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 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] return CallMetaMethod( _delegable( o1 ), mm, 2, dest ); ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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] 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] }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] 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' 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] 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] 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] 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] 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] 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 struct SQObjectPtr : public SQObject ^~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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] }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] 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] if ( _nliterals > MAX_LITERALS ) { sqfuncstate.cpp:204:12: warning: unused variable 'n' [-Wunused-variable] SQInteger n = 0; ^ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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] 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] }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] 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] 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 struct SQObjectPtr : public SQObject ^~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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] 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] assert( hasattrs && attrs == key - 1 || !hasattrs ); ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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] 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] }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] 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] 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 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 ranlib libSquirrel.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/squirrel' Making all in sqstdlib make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/sqstdlib' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -I./../squirrel -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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] while ( name = sq_getlocal( v, level, seq ) ) { ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sqstdaux.cpp:31:12: warning: enumeration value 'OT_BOOL' not handled in switch [-Wswitch] 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] i586-alt-linux-gcc -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -I./../squirrel -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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] SQInteger op; ^~ sqstdrex.c: In function 'sqstd_rex_matchnode': sqstdrex.c:374:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while ( asd = sqstd_rex_matchnode( exp, temp, asd ) ) { ^~~ sqstdrex.c:382:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while ( asd = sqstd_rex_matchnode( exp, temp, asd ) ) { ^~~ sqstdrex.c:417:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if ( str == exp->_bol && !isspace( *str ) ^ sqstdrex.c:431:3: warning: value computed is not used [-Wunused-value] *str++; ^~~~~~ sqstdrex.c:436:4: warning: value computed is not used [-Wunused-value] *str++; ^~~~~~ sqstdrex.c:442:4: warning: value computed is not used [-Wunused-value] *str++; ^~~~~~ sqstdrex.c:448:3: warning: value computed is not used [-Wunused-value] *str++; ^~~~~~ sqstdrex.c: In function 'sqstd_rex_searchrange': sqstdrex.c:531:3: warning: value computed is not used [-Wunused-value] *text_begin++; ^~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -I./../squirrel -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 'unsigned int' [-Wsign-compare] if ( self->Read( sq_getscratchpad( v, ( size + 1 ) * sizeof( wchar_t ) ), size * sizeof( wchar_t ) ) != ( size * sizeof( wchar_t ) ) ) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -I./../squirrel -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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] sq_pushinteger( v, *( ( SQInteger * )&t ) ); ~~^~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -I./../squirrel -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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] 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] sq_pushinteger( v, *( ( SQInteger * )&f ) ); ~~^~~~~~~~~~~~~~~~~~~ sqstdblob.cpp: In function 'SQRESULT sqstd_register_bloblib(HSQUIRRELVM)': sqstdblob.cpp:229:129: warning: ISO C++ forbids converting a string constant to 'SQChar*' {aka 'char*'} [-Wwrite-strings] return declare_stream( v, _SC( "blob" ), ( SQUserPointer )SQSTD_BLOB_TYPE_TAG, _SC( "std_blob" ), _blob_methods, bloblib_funcs ); ^ sqstdblob.cpp:229:129: warning: ISO C++ forbids converting a string constant to 'SQChar*' {aka 'char*'} [-Wwrite-strings] i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -I./../squirrel -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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] 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] SQInteger ntop = sq_gettop( v ); ^~~~ sqstdio.cpp: In function 'SQRESULT sqstd_register_iolib(HSQUIRRELVM)': sqstdio.cpp:372:120: warning: ISO C++ forbids converting a string constant to 'SQChar*' {aka 'char*'} [-Wwrite-strings] declare_stream( v, _SC( "file" ), ( SQUserPointer )SQSTD_FILE_TYPE_TAG, _SC( "std_file" ), _file_methods, iolib_funcs ); ^ sqstdio.cpp:372:120: warning: ISO C++ forbids converting a string constant to 'SQChar*' {aka 'char*'} [-Wwrite-strings] i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -I./../squirrel -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o sqstdmath.o sqstdmath.cpp i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -I./../squirrel -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 ranlib libSqstdlib.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/sqstdlib' Making all in sqbinding make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src/sqbinding' i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from sqbinding.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( f < 0.0f )f = 0.1f; weight = f; ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from sqobject.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from sqgame.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from sqcreature.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from sqmission.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( f < 0.0f )f = 0.1f; weight = f; ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from sqitem.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); ^~~~~~ i586-alt-linux-g++ -DHAVE_CONFIG_H -I. -I../.. -I/.. -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from ../common/constants.h:93, from sqspell.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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 ranlib libSqbinding.a make[3]: Leaving directory '/usr/src/RPM/BUILD/scourge/src/sqbinding' make[3]: Entering directory '/usr/src/RPM/BUILD/scourge/src' i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from configlang.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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 >*)': common/constants.h:175:20: warning: statement has no effect [-Wunused-value] #define assert(x) x; ^ configlang.cpp:250:8: note: in expansion of macro 'assert' assert( node ); ^~~~~~ configlang.cpp: In member function 'void ConfigLang::parse(char*)': common/constants.h:175:20: warning: statement has no effect [-Wunused-value] #define assert(x) x; ^ configlang.cpp:318:5: note: in expansion of macro 'assert' assert( node ); ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from persist.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] void deleteDiceInfo( DiceInfo *info ) { ^~~~~~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from creature.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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] 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' 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] 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' 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] 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' 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] 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' 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] 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' if ( f < 0.0f )f = 0.1f; weight = f; ^~~~~~ creature.cpp: In member function 'float Creature::getArmor(float*, float*, int, Item*)': creature.cpp:2910:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] "armor", armor ); ^ creature.cpp: In member function 'void Creature::calcArmor(int, float*, float*, bool)': creature.cpp:2941:75: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] session->getSquirrel()->setGlobalVariable( "armor", lastArmor[ t ] ); ^ creature.cpp:2943:76: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] lastArmor[ t ] = session->getSquirrel()->getGlobalVariable( "armor" ); ^ creature.cpp: In member function 'float Creature::getAttack(Item*, float*, float*, bool)': creature.cpp:3144:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] "damage", roll ); ^ creature.cpp:3146:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] session->getSquirrel()->setGlobalVariable( "damage", roll ); ^ creature.cpp:3148:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] roll = session->getSquirrel()->getGlobalVariable( "damage" ); ^ creature.cpp: In function 'float Creature::getInfluenceBonus(Item*, int, const char*)': creature.cpp:3025:28: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 115 [-Wformat-truncation=] snprintf( message, 120, "...%s %s:%s %d-%d %s %d, %s=%.2f", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ creature.cpp:3025:28: note: assuming directive output of 4 bytes In file included from /usr/include/stdio.h:862, from /usr/include/c++/8/cstdio:42, from /usr/include/c++/8/ext/string_conversions.h:43, from /usr/include/c++/8/bits/basic_string.h:6400, from /usr/include/c++/8/string:52, from /usr/include/c++/8/stdexcept:39, from /usr/include/c++/8/array:39, from /usr/include/c++/8/tuple:39, from /usr/include/c++/8/bits/stl_map.h:63, from /usr/include/c++/8/map:61, from common/constants.h:86, from creature.cpp:18: /usr/include/bits/stdio2.h:64:35: note: '__builtin___snprintf_chk' output 19 or more bytes (assuming 274) into a destination of size 120 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from calendar.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from date.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from item.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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] 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' 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] 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' 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from terraingenerator.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' 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] int valueBonus = 0; ^~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from landgenerator.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from cavemaker.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from dungeongenerator.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from mondrian.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from main.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from mainmenu.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from mapeditor.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ mapeditor.cpp: At global scope: mapeditor.cpp:40:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] }; ^ mapeditor.cpp:40:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] mapeditor.cpp:40:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] mapeditor.cpp:40:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] mapeditor.cpp: In member function 'virtual bool MapEditor::handleEvent(Widget*, SDL_Event*)': mapeditor.cpp:606:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] scourge->runSquirrelConsole( "scourgeGame.reloadNuts();" ); ^ mapeditor.cpp: In member function 'void MapEditor::processMouseMotion(Uint8, int)': mapeditor.cpp:716:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses] button == SDL_BUTTON_RIGHT && ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ ( SDL_GetModState() & KMOD_SHIFT ) ) ) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from mapwidget.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from netplay.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] return "abc"; ^~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from containerview.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from containergui.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from conversationgui.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ conversationgui.cpp: In constructor 'ConversationGui::ConversationGui(Scourge*)': conversationgui.cpp:75:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] answer = new ScrollingLabel( 10, 25, width - 150, 215, "" ); ^ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from infogui.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' 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:25: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 78 [-Wformat-truncation=] snprintf( tmp2, 80, "| %s +%d", Skill::skills[skill]->getDisplayName(), bonus ); ^~~~~~~~~~ In file included from /usr/include/stdio.h:862, from /usr/include/c++/8/cstdio:42, from /usr/include/c++/8/ext/string_conversions.h:43, from /usr/include/c++/8/bits/basic_string.h:6400, from /usr/include/c++/8/string:52, from /usr/include/c++/8/stdexcept:39, from /usr/include/c++/8/array:39, from /usr/include/c++/8/tuple:39, from /usr/include/c++/8/bits/stl_map.h:63, from /usr/include/c++/8/map:61, from common/constants.h:86, from infogui.cpp:18: /usr/include/bits/stdio2.h:64:35: note: '__builtin___snprintf_chk' output between 6 and 270 bytes into a destination of size 80 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ infogui.cpp: In member function 'void InfoGui::describe()': infogui.cpp:583:29: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] snprintf( tmp, TXT_SIZE, "%s|", item->getSpell()->getNotes() ); ^~~~~ In file included from /usr/include/stdio.h:862, from /usr/include/c++/8/cstdio:42, from /usr/include/c++/8/ext/string_conversions.h:43, from /usr/include/c++/8/bits/basic_string.h:6400, from /usr/include/c++/8/string:52, from /usr/include/c++/8/stdexcept:39, from /usr/include/c++/8/array:39, from /usr/include/c++/8/tuple:39, from /usr/include/c++/8/bits/stl_map.h:63, from /usr/include/c++/8/map:61, from common/constants.h:86, from infogui.cpp:18: /usr/include/bits/stdio2.h:64:35: note: '__builtin___snprintf_chk' output between 2 and 1001 bytes into a destination of size 1000 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from projectile.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( f < 0.0f )f = 0.1f; weight = f; ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from session.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' 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:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 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] bool b = true; ^ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from gameadapter.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from scourge.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' 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] Progress *progress; ^~~~~~~~ scourge.h:944:14: warning: 'TextDialog* Scourge::textDialog' [-Wreorder] TextDialog *textDialog; ^~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1037:17: warning: 'Scourge::confirmAutoloadDialog' will be initialized after [-Wreorder] ConfirmDialog *confirmAutoloadDialog; ^~~~~~~~~~~~~~~~~~~~~ scourge.h:1036:17: warning: 'ConfirmDialog* Scourge::confirmQuickloadDialog' [-Wreorder] ConfirmDialog *confirmQuickloadDialog; ^~~~~~~~~~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1036:17: warning: 'Scourge::confirmQuickloadDialog' will be initialized after [-Wreorder] ConfirmDialog *confirmQuickloadDialog; ^~~~~~~~~~~~~~~~~~~~~~ scourge.h:1035:17: warning: 'ConfirmDialog* Scourge::confirmQuicksaveDialog' [-Wreorder] ConfirmDialog *confirmQuicksaveDialog; ^~~~~~~~~~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1035:17: warning: 'Scourge::confirmQuicksaveDialog' will be initialized after [-Wreorder] ConfirmDialog *confirmQuicksaveDialog; ^~~~~~~~~~~~~~~~~~~~~~ scourge.h:1034:17: warning: 'ConfirmDialog* Scourge::confirmUpload' [-Wreorder] ConfirmDialog *confirmUpload; ^~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1034:17: warning: 'Scourge::confirmUpload' will be initialized after [-Wreorder] ConfirmDialog *confirmUpload; ^~~~~~~~~~~~~ scourge.h:1033:17: warning: 'ConfirmDialog* Scourge::dismissHeroDialog' [-Wreorder] ConfirmDialog *dismissHeroDialog; ^~~~~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1046:10: warning: 'Scourge::chapterIntroWin' will be initialized after [-Wreorder] Window *chapterIntroWin; ^~~~~~~~~~~~~~~ scourge.h:997:17: warning: 'CardContainer* Scourge::cards' [-Wreorder] CardContainer *cards; ^~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:997:17: warning: 'Scourge::cards' will be initialized after [-Wreorder] CardContainer *cards; ^~~~~ scourge.h:985:10: warning: 'Window* Scourge::mainWin' [-Wreorder] Window *mainWin, *tbCombatWin; ^~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1023:10: warning: 'Scourge::squirrelWin' will be initialized after [-Wreorder] Window *squirrelWin; ^~~~~~~~~~~ scourge.h:943:17: warning: 'ConfirmDialog* Scourge::exitConfirmationDialog' [-Wreorder] ConfirmDialog *exitConfirmationDialog; ^~~~~~~~~~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1039:12: warning: 'Scourge::pcEditor' will be initialized after [-Wreorder] PcEditor *pcEditor; ^~~~~~~~ scourge.h:1019:18: warning: 'RechargeDialog* Scourge::rechargeDialog' [-Wreorder] RechargeDialog *rechargeDialog; ^~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1019:18: warning: 'Scourge::rechargeDialog' will be initialized after [-Wreorder] RechargeDialog *rechargeDialog; ^~~~~~~~~~~~~~ scourge.h:1018:18: warning: 'IdentifyDialog* Scourge::identifyDialog' [-Wreorder] IdentifyDialog *identifyDialog; ^~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1018:18: warning: 'Scourge::identifyDialog' will be initialized after [-Wreorder] IdentifyDialog *identifyDialog; ^~~~~~~~~~~~~~ scourge.h:1017:17: warning: 'UncurseDialog* Scourge::uncurseDialog' [-Wreorder] UncurseDialog *uncurseDialog; ^~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1017:17: warning: 'Scourge::uncurseDialog' will be initialized after [-Wreorder] UncurseDialog *uncurseDialog; ^~~~~~~~~~~~~ scourge.h:1016:15: warning: 'TrainDialog* Scourge::trainDialog' [-Wreorder] TrainDialog *trainDialog; ^~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1016:15: warning: 'Scourge::trainDialog' will be initialized after [-Wreorder] TrainDialog *trainDialog; ^~~~~~~~~~~ scourge.h:1015:16: warning: 'DonateDialog* Scourge::donateDialog' [-Wreorder] DonateDialog *donateDialog; ^~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1015:16: warning: 'Scourge::donateDialog' will be initialized after [-Wreorder] DonateDialog *donateDialog; ^~~~~~~~~~~~ scourge.h:1014:14: warning: 'HealDialog* Scourge::healDialog' [-Wreorder] HealDialog *healDialog; ^~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1014:14: warning: 'Scourge::healDialog' will be initialized after [-Wreorder] HealDialog *healDialog; ^~~~~~~~~~ scourge.h:1013:15: warning: 'TradeDialog* Scourge::tradeDialog' [-Wreorder] TradeDialog *tradeDialog; ^~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1013:15: warning: 'Scourge::tradeDialog' will be initialized after [-Wreorder] TradeDialog *tradeDialog; ^~~~~~~~~~~ scourge.h:946:19: warning: 'ConversationGui* Scourge::conversationGui' [-Wreorder] ConversationGui *conversationGui; ^~~~~~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:946:19: warning: 'Scourge::conversationGui' will be initialized after [-Wreorder] ConversationGui *conversationGui; ^~~~~~~~~~~~~~~ scourge.h:945:11: warning: 'InfoGui* Scourge::infoGui' [-Wreorder] InfoGui *infoGui; ^~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1007:10: warning: 'Scourge::boardWin' will be initialized after [-Wreorder] Window *boardWin; ^~~~~~~~ scourge.h:924:12: warning: 'MiniMap* Scourge::miniMap' [-Wreorder] MiniMap * miniMap; ^~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:924:12: warning: 'Scourge::miniMap' will be initialized after [-Wreorder] MiniMap * miniMap; ^~~~~~~ scourge.h:923:15: warning: 'MapSettings* Scourge::mapSettings' [-Wreorder] MapSettings *mapSettings; ^~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:1040:18: warning: 'Scourge::saveDialog' will be initialized after [-Wreorder] SavegameDialog *saveDialog; ^~~~~~~~~~ scourge.h:930:21: warning: 'MultiplayerDialog* Scourge::multiplayer' [-Wreorder] MultiplayerDialog *multiplayer; ^~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:930:21: warning: 'Scourge::multiplayer' will be initialized after [-Wreorder] MultiplayerDialog *multiplayer; ^~~~~~~~~~~ scourge.h:929:15: warning: 'OptionsMenu* Scourge::optionsMenu' [-Wreorder] OptionsMenu *optionsMenu; ^~~~~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ In file included from scourge.cpp:19: scourge.h:929:15: warning: 'Scourge::optionsMenu' will be initialized after [-Wreorder] OptionsMenu *optionsMenu; ^~~~~~~~~~~ scourge.h:927:12: warning: 'MainMenu* Scourge::mainMenu' [-Wreorder] MainMenu *mainMenu; ^~~~~~~~ scourge.cpp:94:1: warning: when initialized here [-Wreorder] Scourge::Scourge( UserConfiguration *config ) ^~~~~~~ scourge.cpp: In member function 'void Scourge::createUI()': scourge.cpp:1867:91: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 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] containerGui[containerGuiCount++] = new ContainerGui( this, 10 + containerGuiCount * 15, 10 + containerGuiCount * 15 ); ~~~~~~~~~~~~~~~~~^~ scourge.cpp: In member function 'void Scourge::createPartyUI()': scourge.cpp:2426:78: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] roundButton = cards->createButton( 8, 0, offsetX, offsetX - 2, "", 0, false ); ^ scourge.cpp:2430:85: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] ioButton = cards->createButton( 8, offsetX, offsetX, 2 * offsetX - 6, "", 0, false ); ^ scourge.cpp:2441:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] getShapePalette()->getExitTexture() ); ^ scourge.cpp:2448:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] getShapePalette()->getOptionsTexture() ); ^ scourge.cpp:2456:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] getShapePalette()->getGroupTexture() ); ^ scourge.cpp:2499:83: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] getShapePalette()->getDismissTexture() ); ^ scourge.cpp:2516:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] getShapePalette()->getBackpackTexture() ); ^ scourge.cpp: In member function 'void Scourge::createBoardUI()': scourge.cpp:3178:66: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] colHeight - 5, "" ); ^ scourge.cpp: In member function 'void Scourge::uploadScore()': scourge.cpp:4006:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if( getSession()->getSquirrel()->getValue( "gameCompleted" ) != NULL ) { ^ scourge.cpp: In member function 'virtual void Scourge::finale(char*, char*)': scourge.cpp:4328:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] getSession()->getSquirrel()->setValue( "gameCompleted", "true" ); ^ scourge.cpp:4328:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] scourge.cpp: In member function 'void Scourge::initChapterIntro(char*, char*)': scourge.cpp:4342:101: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] getSession()->getSound()->playMusicChapter( getSession()->getSquirrel()->getValue( "gameCompleted" ) ); ^ scourge.cpp: In member function 'void Scourge::replayChapterIntro()': scourge.cpp:4366:101: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] getSession()->getSound()->playMusicChapter( getSession()->getSquirrel()->getValue( "gameCompleted" ) ); ^ scourge.cpp: In member function 'void Scourge::endChapterIntro()': scourge.cpp:4376:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if( getSession()->getSquirrel()->getValue( "gameCompleted" ) == NULL ) { ^ scourge.cpp: In member function 'virtual void Scourge::startMovieMode()': scourge.cpp:4623:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] getSession()->setInterruptFunction( "" ); ^ scourge.cpp: In member function 'virtual void Scourge::endMovieMode()': scourge.cpp:4630:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 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] fscanf( fp, "%s", p ); ~~~~~~^~~~~~~~~~~~~~~ scourge.cpp: In member function 'void Scourge::updatePartyUI()': scourge.cpp:3068:32: warning: '%s' directive output may be truncated writing up to 99 bytes into a region of size 79 [-Wformat-truncation=] snprintf( version, VER_SIZE, "S.C.O.U.R.G.E. v%s %s", SCOURGE_VERSION, ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:862, from /usr/include/c++/8/cstdio:42, from /usr/include/c++/8/ext/string_conversions.h:43, from /usr/include/c++/8/bits/basic_string.h:6400, from /usr/include/c++/8/string:52, from /usr/include/c++/8/stdexcept:39, from /usr/include/c++/8/array:39, from /usr/include/c++/8/tuple:39, from /usr/include/c++/8/bits/stl_map.h:63, from /usr/include/c++/8/map:61, from common/constants.h:86, from scourge.cpp:18: /usr/include/bits/stdio2.h:64:35: note: '__builtin___snprintf_chk' output between 22 and 121 bytes into a destination of size 100 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from scourgeview.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( f < 0.0f )f = 0.1f; weight = f; ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from scourgehandler.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' 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:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] scourge->runSquirrelConsole( "scourgeGame.reloadNuts();" ); ^ In file included from /usr/include/stdio.h:862, from /usr/include/c++/8/cstdio:42, from /usr/include/c++/8/ext/string_conversions.h:43, from /usr/include/c++/8/bits/basic_string.h:6400, from /usr/include/c++/8/string:52, from /usr/include/c++/8/stdexcept:39, from /usr/include/c++/8/array:39, from /usr/include/c++/8/tuple:39, from /usr/include/c++/8/bits/stl_map.h:63, from /usr/include/c++/8/map:61, from common/constants.h:86, 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:64:35: warning: 'int __builtin___snprintf_chk(char*, unsigned int, int, unsigned int, const char*, ...)' specified bound 256 exceeds destination size 255 [-Wstringop-overflow=] return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from sdleventhandler.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from sdlhandler.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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:1049:2: warning: narrowing conversion of 'x' from 'int' to 'Sint16' {aka 'short int'} inside { } [-Wnarrowing] }; ^ sdlhandler.cpp:1049:2: warning: narrowing conversion of 'y' from 'int' to 'Sint16' {aka 'short int'} inside { } [-Wnarrowing] sdlhandler.cpp:1049:2: warning: narrowing conversion of 'w' from 'int' to 'Uint16' {aka 'short unsigned int'} inside { } [-Wnarrowing] sdlhandler.cpp:1049:2: warning: narrowing conversion of 'h' from 'int' to 'Uint16' {aka 'short unsigned int'} inside { } [-Wnarrowing] sdlhandler.cpp:1052:2: warning: narrowing conversion of 'x2' from 'int' to 'Sint16' {aka 'short int'} inside { } [-Wnarrowing] }; ^ sdlhandler.cpp:1052:2: warning: narrowing conversion of 'y2' from 'int' to 'Sint16' {aka 'short int'} inside { } [-Wnarrowing] sdlhandler.cpp:1052:2: warning: narrowing conversion of 'w2' from 'int' to 'Uint16' {aka 'short unsigned int'} inside { } [-Wnarrowing] sdlhandler.cpp:1052:2: warning: narrowing conversion of 'h2' from 'int' to 'Uint16' {aka 'short unsigned int'} inside { } [-Wnarrowing] i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from sdlscreenview.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from sound.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] char *Sound::TELEPORT = "teleport"; ^~~~~~~~~~ sound.cpp:42:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] char *Sound::OPEN_DOOR = "open door"; ^~~~~~~~~~~ sound.cpp:43:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] char *Sound::OPEN_BOX = "open box"; ^~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from pcui.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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] 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' 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] 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' 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from textscroller.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from equip.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ equip.cpp: At global scope: equip.cpp:54:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] }; ^ equip.cpp:54:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] equip.cpp:54:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] equip.cpp:54:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] equip.cpp:54:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] equip.cpp:54:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] equip.cpp: In member function 'void Equip::drawCapabilities()': equip.cpp:572:58: warning: self-comparison always evaluates to true [-Wtautological-compare] 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:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] description = new ScrollingLabel( x, y, w, h - 95, "" ); ^ equip.cpp: In member function 'bool Equip::handleEvent(SDL_Event*)': equip.cpp:197:36: warning: '%s' directive output may be truncated writing up to 2999 bytes into a region of size 2998 [-Wformat-truncation=] snprintf( tooltip, TEXT_SIZE, "%s:|%s|%s:%d %s:%d", ^~~~~~~~~~~~~~~~~~~~ equip.cpp:199:16: tmp, ~~~ In file included from /usr/include/stdio.h:862, from /usr/include/c++/8/cstdio:42, from /usr/include/c++/8/ext/string_conversions.h:43, from /usr/include/c++/8/bits/basic_string.h:6400, from /usr/include/c++/8/string:52, from /usr/include/c++/8/stdexcept:39, from /usr/include/c++/8/array:39, from /usr/include/c++/8/tuple:39, from /usr/include/c++/8/bits/stl_map.h:63, from /usr/include/c++/8/map:61, from common/constants.h:86, from equip.cpp:18: /usr/include/bits/stdio2.h:64:35: note: '__builtin___snprintf_chk' output 9 or more bytes (assuming 3008) into a destination of size 3000 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ equip.cpp: In member function 'void Equip::drawCapabilities()': equip.cpp:580:36: warning: '%s' directive output may be truncated writing up to 2999 bytes into a region of size 2998 [-Wformat-truncation=] 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:862, from /usr/include/c++/8/cstdio:42, from /usr/include/c++/8/ext/string_conversions.h:43, from /usr/include/c++/8/bits/basic_string.h:6400, from /usr/include/c++/8/string:52, from /usr/include/c++/8/stdexcept:39, from /usr/include/c++/8/array:39, from /usr/include/c++/8/tuple:39, from /usr/include/c++/8/bits/stl_map.h:63, from /usr/include/c++/8/map:61, from common/constants.h:86, from equip.cpp:18: /usr/include/bits/stdio2.h:64:35: note: '__builtin___snprintf_chk' output 4 or more bytes (assuming 3003) into a destination of size 3000 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from inven.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from portrait.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ portrait.cpp: At global scope: portrait.cpp:65:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] }; ^ portrait.cpp:65:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] portrait.cpp:65:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] portrait.cpp:65:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] portrait.cpp:65:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] portrait.cpp:65:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from shapepalette.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' if ( strlen( deityDescription ) ) strcat( deityDescription, " " ); strcat( deityDescription, s ); ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from util.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] case GL_NO_ERROR : return "GL_NO_ERROR"; ^~~~~~~~~~~~~ util.cpp:94:32: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] case GL_INVALID_ENUM : return "GL_INVALID_ENUM"; ^~~~~~~~~~~~~~~~~ util.cpp:95:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] case GL_INVALID_VALUE : return "GL_INVALID_VALUE"; ^~~~~~~~~~~~~~~~~~ util.cpp:96:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] case GL_INVALID_OPERATION : return "GL_INVALID_OPERATION"; ^~~~~~~~~~~~~~~~~~~~~~ util.cpp:97:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] case GL_STACK_OVERFLOW : return "GL_STACK_OVERFLOW"; ^~~~~~~~~~~~~~~~~~~ util.cpp:98:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 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] 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] 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] for( ; i < MT_N; ++i ) ^ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from text.cpp:23: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 text.cpp: In member function 'TexFont* TexturedText::txfLoadFont(std::__cxx11::string&)': text.cpp:63:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] lastError = "file open failed."; ^~~~~~~~~~~~~~~~~~~ text.cpp:75:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] lastError = "not a texture font file."; ^~~~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:85:15: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] lastError = "not a texture font file."; ^~~~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:90:2: note: in expansion of macro 'EXPECT' EXPECT( 1 ); ^~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:92:2: note: in expansion of macro 'EXPECT' EXPECT( 1 ); ^~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:94:2: note: in expansion of macro 'EXPECT' EXPECT( 1 ); ^~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:96:2: note: in expansion of macro 'EXPECT' EXPECT( 1 ); ^~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:98:2: note: in expansion of macro 'EXPECT' EXPECT( 1 ); ^~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:100:2: note: in expansion of macro 'EXPECT' EXPECT( 1 ); ^~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:113:2: note: in expansion of macro 'EXPECT' EXPECT( txf->num_glyphs ); ^~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:174:4: note: in expansion of macro 'EXPECT' EXPECT( txf->tex_width * txf->tex_height ); ^~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:184:4: note: in expansion of macro 'EXPECT' EXPECT( txf->tex_width * txf->tex_height ); ^~~~~~ text.cpp:88:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] #define EXPECT(n) if (got != n) { lastError = "premature end of file."; goto error; } ^~~~~~~~~~~~~~~~~~~~~~~~ text.cpp:193:3: note: in expansion of macro 'EXPECT' EXPECT( stride * height ); ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from minimap.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from optionsmenu.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from partyeditor.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' 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:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc->addSpell( Spell::getSpellByName( "Flame of Azun" ) ); ^ partyeditor.cpp:201:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc->addSpell( Spell::getSpellByName( "Ole Taffy's purty colors" ) ); ^ partyeditor.cpp:204:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc->addSpell( Spell::getSpellByName( "Silent knives" ) ); ^ partyeditor.cpp:206:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc->addSpell( Spell::getSpellByName( "Stinging light" ) ); ^ partyeditor.cpp:209:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc->addSpell( Spell::getSpellByName( "Lesser healing touch" ) ); ^ partyeditor.cpp:211:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc->addSpell( Spell::getSpellByName( "Body of stone" ) ); ^ partyeditor.cpp:216:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc->addSpell( Spell::getSpellByName( "Ring of Harm" ) ); ^ partyeditor.cpp:217:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc->addSpell( Spell::getSpellByName( "Malice Storm" ) ); ^ partyeditor.cpp:218:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc->addSpell( Spell::getSpellByName( "Unholy Decimator" ) ); ^ partyeditor.cpp:219:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc->addSpell( Spell::getSpellByName( "Remove curse" ) ); ^ partyeditor.cpp:220:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc->addSpell( Spell::getSpellByName( "Teleportation" ) ); ^ partyeditor.cpp:221:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc->addSpell( Spell::getSpellByName( "Recall to life" ) ); ^ partyeditor.cpp:222:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc->addSpell( Spell::getSpellByName( "Blast of Fury" ) ); ^ partyeditor.cpp:223:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc->addSpell( Spell::getSpellByName( "Dori's Tumblers" ) ); ^ partyeditor.cpp:224:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc->addSpell( Spell::getSpellByName( "Gust of wind" ) ); ^ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from pceditor.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ pceditor.cpp: In member function 'void PcEditor::createUI()': pceditor.cpp:549:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] STAT_TAB ); ^ pceditor.cpp:556:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] STAT_TAB ); ^ pceditor.cpp:634:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] "<<", IMAGE_TAB ); ^ pceditor.cpp:637:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] " >>", IMAGE_TAB ); ^ pceditor.cpp:648:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] "<<", IMAGE_TAB ); ^ pceditor.cpp:651:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] " >>", IMAGE_TAB ); ^ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from multiplayer.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from userconfiguration.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] bool enableScreenshots; ^~~~~~~~~~~~~~~~~ userconfiguration.h:80:6: warning: 'int UserConfiguration::tooltipInterval' [-Wreorder] int tooltipInterval; ^~~~~~~~~~~~~~~ userconfiguration.cpp:299:1: warning: when initialized here [-Wreorder] UserConfiguration::UserConfiguration() ^~~~~~~~~~~~~~~~~ userconfiguration.cpp: In member function 'void UserConfiguration::saveConfiguration()': userconfiguration.cpp:522:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] writeFile( configFile, "Modify at your own risks.\n" ); ^ userconfiguration.cpp:523:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] writeFile( configFile, "-------------------------------------------------\n" ); ^ userconfiguration.cpp:524:98: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] writeFile( configFile, "- A line not beginning with BIND or SET is ignored (spaces excepted)\n" ); ^ userconfiguration.cpp:525:79: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] writeFile( configFile, "- Only one instruction per line will be processed\n" ); ^ userconfiguration.cpp:526:63: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] writeFile( configFile, "- No upper/lower case distinction\n" ); ^ userconfiguration.cpp:527:119: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] writeFile( configFile, "- A space is a parameter separator so replace spaces by '_' if needed in your parameters.\n" ); ^ userconfiguration.cpp:528:81: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] writeFile( configFile, " Example : for 'left bracket' put 'left_bracket'\n" ); ^ userconfiguration.cpp:529:84: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] writeFile( configFile, "- No specific order needed between BIND/SET commands\n\n" ); ^ userconfiguration.cpp:530:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] writeFile( configFile, "Syntax : \n" ); ^ userconfiguration.cpp:531:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] writeFile( configFile, "- BIND sdl_key_name engineAction\n" ); ^ userconfiguration.cpp:532:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] writeFile( configFile, "- SET variable value\n" ); ^ userconfiguration.cpp:533:62: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] writeFile( configFile, "without the '-' at the beginning\n" ); ^ userconfiguration.cpp:534:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] writeFile( configFile, "sdl_key_names are defined in SDL.h\n" ); ^ userconfiguration.cpp:535:92: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] writeFile( configFile, "engineActions and variables are defined in userconfiguration.h\n" ); ^ userconfiguration.cpp:536:81: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] writeFile( configFile, "-------------------------------------------------\n\n" ); ^ userconfiguration.cpp:542:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] writeFile( configFile, "// Bindings\n" ); ^ userconfiguration.cpp:556:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] writeFile( configFile, "\n// Video settings\n" ); ^ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from board.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' 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:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] config = ConfigLang::fromString( "[map]\n[/map]\n" ); ^ board.cpp: In member function 'Mission* MapPlace::findOrCreateMission(Board*, MissionInfo*)': board.cpp:949:133: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] mission = new Mission( board, level, depth + 1, false, name, display_name, description, NULL, NULL, "", music, "", "", short_name ); ^ board.cpp:949:133: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] board.cpp:949:133: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, 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:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from battle.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ battle.cpp: At global scope: battle.cpp:45:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] }; ^ battle.cpp:45:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] battle.cpp:45:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] battle.cpp:45:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] battle.cpp:45:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] battle.cpp:45:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] battle.cpp: In member function 'int Battle::getAdjustedWait(int)': battle.cpp:331:76: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] getSession()->getSquirrel()->setGlobalVariable( "turnWait", originalWait ); ^ battle.cpp:345:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] int newWait = static_cast( getSession()->getSquirrel()->getGlobalVariable( "turnWait" ) ); ^ battle.cpp: In member function 'void Battle::hitWithItem()': battle.cpp:1287:71: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] getSession()->getSquirrel()->setGlobalVariable( "damage", damage ); ^ battle.cpp:1289:72: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] damage = getSession()->getSquirrel()->getGlobalVariable( "damage" ); ^ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from party.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' 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:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc[2]->addSpell( Spell::getSpellByName( "Flame of Azun" ) ); ^ party.cpp:536:69: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc[2]->addSpell( Spell::getSpellByName( "Ole Taffy's purty colors" ) ); ^ party.cpp:537:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc[2]->addSpell( Spell::getSpellByName( "Silent knives" ) ); ^ party.cpp:538:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc[2]->addSpell( Spell::getSpellByName( "Stinging light" ) ); ^ party.cpp:539:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc[2]->addSpell( Spell::getSpellByName( "Burning stare" ) ); ^ party.cpp:541:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc[3]->addSpell( Spell::getSpellByName( "Lesser healing touch" ) ); ^ party.cpp:542:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc[3]->addSpell( Spell::getSpellByName( "Body of stone" ) ); ^ party.cpp:543:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc[3]->addSpell( Spell::getSpellByName( "Bless group" ) ); ^ party.cpp:544:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc[3]->addSpell( Spell::getSpellByName( "Invisibility" ) ); ^ party.cpp:545:64: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc[3]->addSpell( Spell::getSpellByName( "Poison of ignorance" ) ); ^ party.cpp:546:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc[3]->addSpell( Spell::getSpellByName( "Transmute poison" ) ); ^ party.cpp:547:56: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc[3]->addSpell( Spell::getSpellByName( "Cursed ways" ) ); ^ party.cpp:548:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc[3]->addSpell( Spell::getSpellByName( "Remove curse" ) ); ^ party.cpp:549:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc[3]->addSpell( Spell::getSpellByName( "Enthrall fiend" ) ); ^ party.cpp:550:66: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] pc[3]->addSpell( Spell::getSpellByName( "Break from possession" ) ); ^ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from spellcaster.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' 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:76: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] battle->getSession()->getSquirrel()->setGlobalVariable( "damage", damage ); ^ spellcaster.cpp:423:77: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 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] causeDamage( ( GLuint )( i * 50 ) ); ~~~~^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from itemlist.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( f < 0.0f )f = 0.1f; weight = f; ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from tradedialog.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( f < 0.0f )f = 0.1f; weight = f; ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from uncursedialog.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( f < 0.0f )f = 0.1f; weight = f; ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from identifydialog.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( f < 0.0f )f = 0.1f; weight = f; ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from rechargedialog.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( f < 0.0f )f = 0.1f; weight = f; ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from healdialog.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ healdialog.cpp: In constructor 'HealDialog::HealDialog(Scourge*)': healdialog.cpp:44:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] spellDescription = new ScrollingLabel( 10, 210, w - 20, 70, "" ); ^ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from savegamedialog.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from donatedialog.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ donatedialog.cpp: In constructor 'DonateDialog::DonateDialog(Scourge*)': donatedialog.cpp:46:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] result = new ScrollingLabel( 10, 75, w - 20, 65, "" ); ^ donatedialog.cpp: In member function 'void DonateDialog::updateUI()': donatedialog.cpp:73:25: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 248 [-Wformat-truncation=] snprintf( s, TXT_SIZE, "%s (%s %d), %s.", ^~~~~~~~~~~~~~~~~ donatedialog.cpp:77:12: tmp ); ~~~ In file included from /usr/include/stdio.h:862, from /usr/include/c++/8/cstdio:42, from /usr/include/c++/8/ext/string_conversions.h:43, from /usr/include/c++/8/bits/basic_string.h:6400, from /usr/include/c++/8/string:52, from /usr/include/c++/8/stdexcept:39, from /usr/include/c++/8/array:39, from /usr/include/c++/8/tuple:39, from /usr/include/c++/8/bits/stl_map.h:63, from /usr/include/c++/8/map:61, from common/constants.h:86, from donatedialog.cpp:18: /usr/include/bits/stdio2.h:64:35: note: '__builtin___snprintf_chk' output 9 or more bytes (assuming 263) into a destination of size 255 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from texteffect.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' if ( i >= 0 && i < getNbText() ) return vText[i].c_str(); return NULL; ^~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from traindialog.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ traindialog.cpp: In constructor 'TrainDialog::TrainDialog(Scourge*)': traindialog.cpp:51:61: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] description = new ScrollingLabel( 10, 205, w - 30, 120, "" ); ^ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from upload.cpp:14: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 upload.cpp: In static member function 'static int Upload::uploadScoreToWeb(char*, char (&)[300])': upload.cpp:131:38: warning: '%s' directive output may be truncated writing up to 4999 bytes into a region of size 288 [-Wformat-truncation=] snprintf( result, RESULT_SIZE, "Bad result: %s", res ); ^~~~~~~~~~~~~~~~ ~~~ In file included from /usr/include/stdio.h:862, from /usr/include/c++/8/cstdio:42, from /usr/include/c++/8/ext/string_conversions.h:43, from /usr/include/c++/8/bits/basic_string.h:6400, from /usr/include/c++/8/string:52, from /usr/include/c++/8/stdexcept:39, from /usr/include/c++/8/array:39, from /usr/include/c++/8/tuple:39, from /usr/include/c++/8/bits/stl_map.h:63, from /usr/include/c++/8/map:61, from common/constants.h:86, from upload.cpp:14: /usr/include/bits/stdio2.h:64:35: note: '__builtin___snprintf_chk' output between 13 and 5012 bytes into a destination of size 300 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ upload.cpp:127:38: warning: '%s' directive output may be truncated writing up to 4999 bytes into a region of size 280 [-Wformat-truncation=] snprintf( result, RESULT_SIZE, "Can't parse result: %s", res ); ^~~~~~~~~~~~~~~~~~~~~~~~ ~~~ In file included from /usr/include/stdio.h:862, from /usr/include/c++/8/cstdio:42, from /usr/include/c++/8/ext/string_conversions.h:43, from /usr/include/c++/8/bits/basic_string.h:6400, from /usr/include/c++/8/string:52, from /usr/include/c++/8/stdexcept:39, from /usr/include/c++/8/array:39, from /usr/include/c++/8/tuple:39, from /usr/include/c++/8/bits/stl_map.h:63, from /usr/include/c++/8/map:61, from common/constants.h:86, from upload.cpp:14: /usr/include/bits/stdio2.h:64:35: note: '__builtin___snprintf_chk' output between 21 and 5020 bytes into a destination of size 300 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from characterinfo.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from skillsview.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from astar.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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' 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] 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from cellular.cpp:17: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] assert( roomCounter < MAX_ROOM_COUNT ); common/constants.h:175:19: note: in definition of macro 'assert' #define assert(x) x; ^ i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from quickhull.cpp:21: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 i586-alt-linux-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I./gui -I./events -I./rpg -I../intl -I../intl -DBR_PTHREAD=0 -DHAVE_SDL=1 -DHAVE_SDL_MIXER=1 -DHAVE_SDL_NET=1 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDATA_DIR=\"/usr/share/scourge\" -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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 #define GL_GLEXT_VERSION 29 In file included from /usr/include/GL/gl.h:2055, from /usr/include/SDL/SDL_opengl.h:46, from common/constants.h:93, from pathmanager.cpp:18: /usr/include/GL/glext.h:54: note: this is the location of the previous definition #define GL_GLEXT_VERSION 20180725 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] 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] 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' 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] 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' 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] 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' 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] 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' if ( n < 0 )n = 0; if ( n > 10 )n = 10; hunger = n; evalSpecialSkills(); ^~ i586-alt-linux-g++ -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -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.79488 + 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 + cd scourge + /usr/bin/make 'INSTALL=/bin/install -p' prefix=/usr/src/tmp/scourge-buildroot/usr exec_prefix=/usr/src/tmp/scourge-buildroot/usr bindir=/usr/src/tmp/scourge-buildroot/usr/bin sbindir=/usr/src/tmp/scourge-buildroot/usr/sbin sysconfdir=/usr/src/tmp/scourge-buildroot/etc datadir=/usr/src/tmp/scourge-buildroot/usr/share includedir=/usr/src/tmp/scourge-buildroot/usr/include libdir=/usr/src/tmp/scourge-buildroot/usr/lib libexecdir=/usr/src/tmp/scourge-buildroot/usr/lib localstatedir=/usr/src/tmp/scourge-buildroot/var/lib 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/lib /usr/src/tmp/scourge-buildroot/usr/include; \ /bin/install -p -m 644 libintl.h /usr/src/tmp/scourge-buildroot/usr/include/libintl.h; \ @LIBTOOL@ --mode=install \ /bin/install -p -m 644 libintl.a /usr/src/tmp/scourge-buildroot/usr/lib/libintl.a; \ if test "@RELOCATABLE@" = yes; then \ dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < /usr/src/tmp/scourge-buildroot/usr/lib/libintl.la | sed -e "s,^',," -e "s,'\$,,"`; \ if test -n "$dependencies"; then \ rm -f /usr/src/tmp/scourge-buildroot/usr/lib/libintl.la; \ fi; \ fi; \ else \ : ; \ fi if test "scourge" = "gettext-tools" \ && test 'no' = no \ && test yes != no; then \ /bin/mkdir -p /usr/src/tmp/scourge-buildroot/usr/lib; \ @LIBTOOL@ --mode=install \ /bin/install -p -m 644 libgnuintl.a /usr/src/tmp/scourge-buildroot/usr/lib/libgnuintl.a; \ rm -f /usr/src/tmp/scourge-buildroot/usr/lib/preloadable_libintl.so; \ /bin/install -p -m 644 /usr/src/tmp/scourge-buildroot/usr/lib/libgnuintl.so /usr/src/tmp/scourge-buildroot/usr/lib/preloadable_libintl.so; \ @LIBTOOL@ --mode=uninstall \ rm -f /usr/src/tmp/scourge-buildroot/usr/lib/libgnuintl.a; \ else \ : ; \ fi if test 'no' = yes; then \ test yes != no || /bin/mkdir -p /usr/src/tmp/scourge-buildroot/usr/lib; \ temp=/usr/src/tmp/scourge-buildroot/usr/lib/t-charset.alias; \ dest=/usr/src/tmp/scourge-buildroot/usr/lib/charset.alias; \ if test -f /usr/src/tmp/scourge-buildroot/usr/lib/charset.alias; then \ orig=/usr/src/tmp/scourge-buildroot/usr/lib/charset.alias; \ sed -f ref-add.sed $orig > $temp; \ /bin/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; \ /bin/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; \ /bin/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; \ /bin/install -p -m 644 VERSION /usr/src/tmp/scourge-buildroot/usr/share/gettext/intl/VERSION; \ /bin/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 \ /bin/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; \ /bin/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 \ /bin/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' /bin/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) /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) verify-elf: WARNING: ./usr/bin/scourge: uses non-LFS functions: __xstat fopen readdir Hardlinking identical .pyc and .pyo files Processing files: scourge-0.21.1-alt6.svn3264 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.54803 + 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.2Z24n9 find-provides: running scripts (alternatives,debuginfo,gir,lib,pam,perl,pkgconfig,python,shell,typelib) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.WrJjQo find-requires: running scripts (cpp,debuginfo,files,gir-js,gir-python,gir,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks,typelib) Requires: scourge-data = 0.21.1-alt6.svn3264, fonts-ttf-dejavu-lgc, /lib/ld-linux.so.2, libGL.so.1 >= set:piqUKwt1oTBl90ncjMdTBeoEXIC3s0Abi7T24a8TZc2O6ZnrayNP86WETjfPtq6Y1AJkHkqVPVdK7T3BaePw9q8xOuGigFJlgOJAZBlM622El9Aib6cU98KvliTVE5a1qY8hgPEQSLwHuj2N9CsIiiYCcu9xi8kNGDMLTpck56ptkWlZuSHvh14vLs06wkZ9AsbarwrmWSnExNmBUtVbXx0, libGLU.so.1 >= set:jg1tiTZCo6dn3, libSDL-1.2.so.0 >= set:lfwMF08v7vMIi5wcrFuRqM7h3CZ69G07Mvmu6v2ZH5ZnuApe1dcmSO2CmlyMw77nXOYngtuHhPJXPghTIIfj0, libSDL_image-1.2.so.0 >= set:jifK3, libSDL_mixer-1.2.so.0 >= set:kfgpCc7vXEI6xTPfcrzB3pFPiiBNMbiJUhSgfPFV6H55ohYFHlnN60, libSDL_net-1.2.so.0 >= set:je8XlnNNcrlHNKbMua6QBhZaSb671CDxnQKp75d7VgV2, libSDL_ttf-2.0.so.0 >= set:jfs5Ako11ACTo2HWcGYJ0XwYK6, libc.so.6(GLIBC_2.0), libc.so.6(GLIBC_2.1), libc.so.6(GLIBC_2.1.3), libc.so.6(GLIBC_2.11), libc.so.6(GLIBC_2.2), libc.so.6(GLIBC_2.3), libc.so.6(GLIBC_2.3.4), libc.so.6(GLIBC_2.4), libc.so.6(GLIBC_2.7), libgcc_s.so.1(GCC_3.0), libm.so.6(GLIBC_2.0), libm.so.6(GLIBC_2.1), libm.so.6(GLIBC_2.27), libpthread.so.0(GLIBC_2.0), libstdc++.so.6(CXXABI_1.3), libstdc++.so.6(CXXABI_1.3.8), libstdc++.so.6(CXXABI_1.3.9), libstdc++.so.6(GLIBCXX_3.4), libstdc++.so.6(GLIBCXX_3.4.11), libstdc++.so.6(GLIBCXX_3.4.20), libstdc++.so.6(GLIBCXX_3.4.21), libstdc++.so.6(GLIBCXX_3.4.9), libz.so.1 >= set:khdWPIUrJuazh01Xf1, rtld(GNU_HASH) Requires(rpmlib): rpmlib(SetVersions) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.7cUiCh 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.oMhQ28 find-provides: running scripts (alternatives,debuginfo,gir,lib,pam,perl,pkgconfig,python,shell,typelib) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.7ibSfv find-requires: running scripts (cpp,debuginfo,files,gir-js,gir-python,gir,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks,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.0fgKBa find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.dgQznc find-requires: running scripts (debuginfo) Requires: scourge = 0.21.1-alt6.svn3264, /usr/lib/debug/lib/ld-linux.so.2.debug, debug(libGL.so.1), debug(libGLU.so.1), debug(libSDL-1.2.so.0), debug(libSDL_image-1.2.so.0), debug(libSDL_mixer-1.2.so.0), debug(libSDL_net-1.2.so.0), debug(libSDL_ttf-2.0.so.0), debug(libc.so.6), debug(libgcc_s.so.1), debug(libm.so.6), debug(libpthread.so.0), debug(libstdc++.so.6), debug(libz.so.1) Wrote: /usr/src/RPM/RPMS/i586/scourge-0.21.1-alt6.svn3264.i586.rpm Wrote: /usr/src/RPM/RPMS/noarch/scourge-data-0.21.1-alt6.svn3264.noarch.rpm Wrote: /usr/src/RPM/RPMS/i586/scourge-debuginfo-0.21.1-alt6.svn3264.i586.rpm 492.27user 20.78system 15:36.98elapsed 54%CPU (0avgtext+0avgdata 319884maxresident)k 0inputs+0outputs (0major+10906087minor)pagefaults 0swaps 521.61user 24.20system 16:31.11elapsed 55%CPU (0avgtext+0avgdata 319884maxresident)k 17632inputs+0outputs (0major+11299551minor)pagefaults 0swaps --- scourge-0.21.1-alt6.svn3264.i586.rpm.repo 2018-06-27 13:38:18.000000000 +0000 +++ scourge-0.21.1-alt6.svn3264.i586.rpm.hasher 2019-04-28 08:49:23.356485631 +0000 @@ -24,3 +24,3 @@ Requires: /lib/ld-linux.so.2 -Requires: libGL.so.1 >= set:ohKMwXx7IbLRb7J0a1ayvcl2UypRPiPwWi7gFdZIkuKiDU170phWo5VdWAZk4NAzliZikSP2sY1jAK3gjdrqEEoRraeyxvBNt6DXxQPoDCww3BRhFnNXS96dq6hoI8BmZsVcKDXxi5DNw9Eb8D7bXFBwGJlAHf4NXYLmM622El9MIniOtkSoH40t7YSn8ZqFzmmBUKYPu8 +Requires: libGL.so.1 >= set:piqUKwt1oTBl90ncjMdTBeoEXIC3s0Abi7T24a8TZc2O6ZnrayNP86WETjfPtq6Y1AJkHkqVPVdK7T3BaePw9q8xOuGigFJlgOJAZBlM622El9Aib6cU98KvliTVE5a1qY8hgPEQSLwHuj2N9CsIiiYCcu9xi8kNGDMLTpck56ptkWlZuSHvh14vLs06wkZ9AsbarwrmWSnExNmBUtVbXx0 Requires: rpmlib(SetVersions)