<86>Apr 21 03:35:01 userdel[78064]: delete user 'rooter' <86>Apr 21 03:35:01 groupadd[78077]: group added to /etc/group: name=rooter, GID=537 <86>Apr 21 03:35:01 groupadd[78077]: group added to /etc/gshadow: name=rooter <86>Apr 21 03:35:01 groupadd[78077]: new group: name=rooter, GID=537 <86>Apr 21 03:35:01 useradd[78088]: new user: name=rooter, UID=537, GID=537, home=/root, shell=/bin/bash <86>Apr 21 03:35:01 userdel[78099]: delete user 'builder' <86>Apr 21 03:35:01 userdel[78099]: removed group 'builder' owned by 'builder' <86>Apr 21 03:35:01 groupadd[78135]: group added to /etc/group: name=builder, GID=538 <86>Apr 21 03:35:01 groupadd[78135]: group added to /etc/gshadow: name=builder <86>Apr 21 03:35:01 groupadd[78135]: new group: name=builder, GID=538 <86>Apr 21 03:35:01 useradd[78147]: new user: name=builder, UID=538, GID=538, home=/usr/src, shell=/bin/bash <13>Apr 21 03:35:05 rpmi: libboost_system1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:05 rpmi: libboost_thread1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:06 rpmi: libpng15-1.5.28-alt1 1484572014 installed <13>Apr 21 03:35:06 rpmi: libibverbs-1.1.8-alt1 1423045776 installed <13>Apr 21 03:35:06 rpmi: librdmacm-1.0.19.1-alt2 1423057437 installed <13>Apr 21 03:35:06 rpmi: libjpeg-2:1.3.1-alt0.1 1388074033 installed <13>Apr 21 03:35:06 rpmi: xorg-xproto-devel-7.0.31-alt0.M80P.1 p8+226471.100.1.1 1554301566 installed <13>Apr 21 03:35:06 rpmi: libdapl-1.2.16-alt2 1297310513 installed <13>Apr 21 03:35:06 rpmi: libboost_context1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:06 rpmi: libboost_filesystem1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:06 rpmi: perl-Encode-2.83-alt1 1459157776 installed <13>Apr 21 03:35:06 rpmi: libogg-1.3.2-alt1 1416015875 installed <13>Apr 21 03:35:06 rpmi: libquadmath0-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 21 03:35:06 rpmi: libboost_python1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:06 rpmi: libboost_serialization1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:06 rpmi: libicu56-1:5.6.1-alt1.1 1458012333 installed <13>Apr 21 03:35:06 rpmi: libboost_regex1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:06 rpmi: libboost_graph1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:07 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 21 03:35:07 rpmi: libboost_log1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:07 rpmi: libboost_locale1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:07 rpmi: libgfortran3-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 21 03:35:07 rpmi: libquadmath5-devel-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 21 03:35:07 rpmi: libflac8-1.2.1-alt11.1 1434275120 installed <13>Apr 21 03:35:07 rpmi: libvorbis-1.3.4-alt1 1395615320 installed <13>Apr 21 03:35:07 rpmi: libboost_coroutine1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:07 rpmi: libtiff5-4.0.3-alt1 1348347498 installed <13>Apr 21 03:35:07 rpmi: libjasper-1.900.1-alt3 1391718482 installed <13>Apr 21 03:35:07 rpmi: libicns-0.7.1-alt1.2 1349372938 installed <13>Apr 21 03:35:07 rpmi: libboost_wave1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:07 rpmi: libboost_atomic1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:07 rpmi: libboost_random1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:07 rpmi: libboost_chrono1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:07 rpmi: libboost_timer1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:07 rpmi: perl-Term-Cap-1.17-alt1 1445018869 installed <13>Apr 21 03:35:07 rpmi: perl-Term-ANSIColor-4.05-alt1 1458575791 installed <13>Apr 21 03:35:07 rpmi: perl-Pod-Escapes-1.07-alt1 1418767892 installed <13>Apr 21 03:35:07 rpmi: perl-Pod-Simple-3.32-alt1 1447205413 installed <13>Apr 21 03:35:07 rpmi: zlib-devel-1.2.8-alt1 1371079009 installed <13>Apr 21 03:35:07 rpmi: libboost_signals1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:07 rpmi: libboost_program_options1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:07 rpmi: libboost_math_tr1l1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:07 rpmi: libboost_math_tr1f1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:07 rpmi: libboost_math_tr11.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:07 rpmi: libboost_math_c99l1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:07 rpmi: libboost_math_c99f1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:07 rpmi: libboost_math_c991.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:07 rpmi: libgraphite2-1.3.10-alt0.M80P.1 1496411360 installed <13>Apr 21 03:35:07 rpmi: libmad-0.15.1b-alt8 1398374528 installed <13>Apr 21 03:35:07 rpmi: timidity-instruments-1:1.0-alt1 1166705614 installed <13>Apr 21 03:35:07 rpmi: libwrap-1:7.6-alt11 1297041305 installed <13>Apr 21 03:35:07 rpmi: libgsm-1.0.13-alt8 1365910842 installed <13>Apr 21 03:35:07 rpmi: libsndfile-1.0.28-alt1.M80P.1 p8.212938.100 1536756416 installed <13>Apr 21 03:35:07 rpmi: libjson-c-0.12-alt1 1401212997 installed <13>Apr 21 03:35:07 rpmi: liblz4-1:1.7.5-alt1 1488766699 installed <13>Apr 21 03:35:07 rpmi: libgpg-error-1.31-alt1.M80P.1 1529024730 installed <13>Apr 21 03:35:07 rpmi: libgcrypt20-1.8.3-alt4 p8+219793.200.6.1 1551112986 installed <13>Apr 21 03:35:07 rpmi: libsystemd-1:239-alt1.M80P.1 p8+226956.200.2.1 1555431492 installed <13>Apr 21 03:35:07 rpmi: libdbus-1.10.24-alt4.M80P.1 1518773282 installed <13>Apr 21 03:35:07 rpmi: libasyncns-0.8-alt2.qa1 1365949819 installed <13>Apr 21 03:35:07 rpmi: libalsa-1:1.1.0-alt1.1.1 1454429213 installed <13>Apr 21 03:35:07 rpmi: xorg-kbproto-devel-1.0.6-alt1 1332531883 installed <13>Apr 21 03:35:07 rpmi: libxshmfence-1.2-alt1 1420972191 installed <13>Apr 21 03:35:07 rpmi: libpciaccess-1:0.13.4-alt1 1431681688 installed <13>Apr 21 03:35:07 rpmi: libdrm-1:2.4.89-alt1.M80P.1 1516609380 installed <13>Apr 21 03:35:07 rpmi: libX11-locales-3:1.6.3-alt1 1431956885 installed <13>Apr 21 03:35:07 rpmi: libXdmcp-1.1.1-alt1 1334617699 installed <13>Apr 21 03:35:07 rpmi: libXau-1.0.8-alt1 1369565807 installed <13>Apr 21 03:35:07 rpmi: libxcb-1.12-alt2 p8.218219.300 1545313310 installed <13>Apr 21 03:35:07 rpmi: libX11-3:1.6.3-alt1 1431956911 installed <13>Apr 21 03:35:07 rpmi: libXext-1.3.3-alt1 1409902932 installed <13>Apr 21 03:35:07 rpmi: libpulseaudio-9.0-alt2 1469793979 installed <13>Apr 21 03:35:07 rpmi: libmikmod-3.3.8-alt1.1 1449204660 installed <13>Apr 21 03:35:07 rpmi: libXxf86vm-1.1.3-alt1 1369984824 installed <13>Apr 21 03:35:07 rpmi: libXdamage-1.1.3-alt4 1297162596 installed <13>Apr 21 03:35:07 rpmi: libXfixes-5.0.1-alt1 1369809606 installed <13>Apr 21 03:35:07 rpmi: libGL-4:18.0.5-alt1.M80P.1 p8+226404.100.1.1 1554206332 installed <13>Apr 21 03:35:07 rpmi: libGLU-4:9.0.0-alt1 1347643776 installed <13>Apr 21 03:35:07 rpmi: libGLEW2.0-2.0.0-alt1 1470176354 installed <13>Apr 21 03:35:07 rpmi: libXrender-0.9.8-alt1 1371312110 installed <13>Apr 21 03:35:07 rpmi: libXrandr-1.5.0-alt1 1431936188 installed <13>Apr 21 03:35:07 rpmi: libSDL-1.2.14-alt6.M80P.1 1483818219 installed <13>Apr 21 03:35:07 rpmi: libSDL_image-1.2.12-alt1 1347907933 installed <13>Apr 21 03:35:07 rpmi: libSDL_mixer-1.2.12-alt1 1421435872 installed <13>Apr 21 03:35:09 rpmi: libxcb-devel-1.12-alt2 p8.218219.300 1545313310 installed <13>Apr 21 03:35:09 rpmi: libX11-devel-3:1.6.3-alt1 1431956911 installed <13>Apr 21 03:35:09 rpmi: libGL-devel-4:18.0.5-alt1.M80P.1 p8+226404.100.1.1 1554206332 installed <13>Apr 21 03:35:09 rpmi: libGLU-devel-4:9.0.0-alt1 1347643776 installed <13>Apr 21 03:35:09 rpmi: libSDL-devel-1.2.14-alt6.M80P.1 1483818219 installed <13>Apr 21 03:35:09 rpmi: libibcommon-1.2.0-alt2 1297310586 installed <13>Apr 21 03:35:09 rpmi: libibcommon-devel-1.2.0-alt2 1297310586 installed <13>Apr 21 03:35:09 rpmi: libibumad-1.3.6-alt2 1297311908 installed <13>Apr 21 03:35:09 rpmi: libibumad-devel-1.3.6-alt2 1297311908 installed <13>Apr 21 03:35:09 rpmi: libsysfs-2.1.0-alt8 1435686567 installed <13>Apr 21 03:35:09 rpmi: libsysfs-devel-2.1.0-alt8 1435686567 installed <13>Apr 21 03:35:09 rpmi: libibverbs-devel-1.1.8-alt1 1423045776 installed <13>Apr 21 03:35:09 rpmi: librdmacm-devel-1.0.19.1-alt2 1423057437 installed <13>Apr 21 03:35:09 rpmi: libdapl-devel-1.2.16-alt2 1297310513 installed <13>Apr 21 03:35:09 rpmi: gcc-fortran-common-1.4.20-alt1 1432315196 installed <13>Apr 21 03:35:09 rpmi: libgfortran5-devel-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 21 03:35:10 rpmi: gcc5-fortran-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 21 03:35:10 rpmi: gcc-c++-common-1.4.20-alt1 1432315196 installed <13>Apr 21 03:35:10 rpmi: libstdc++5-devel-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 21 03:35:11 rpmi: gcc5-c++-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 21 03:35:11 rpmi: tcsh-6.18.01-alt2 1442313244 installed <13>Apr 21 03:35:11 rpmi: rpm-macros-mpi-selector-1.0.3-alt3 1504498675 installed <13>Apr 21 03:35:11 rpmi: mpi-selector-1.0.3-alt3 1504498675 installed <13>Apr 21 03:35:11 rpmi: openmpi-1.6.4-alt2 1423058639 installed <13>Apr 21 03:35:11 rpmi: libboost_mpi1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:11 rpmi: libboost_graph_parallel1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:11 rpmi: libboost_mpi_python1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:11 rpmi: openmpi-devel-1.6.4-alt2 1423058639 installed <13>Apr 21 03:35:11 rpmi: boost-python-headers-1:1.58.0-alt4 1463060108 installed <13>Apr 21 03:35:11 rpmi: libboost_test1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:11 rpmi: libboost_iostreams1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:11 rpmi: libboost_date_time1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:11 rpmi: libboost_container1.58.0-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:11 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 21 03:35:11 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 21 03:35:11 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 03:35:11 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 21 03:35:11 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 21 03:35:11 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 21 03:35:11 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 21 03:35:11 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 21 03:35:11 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 21 03:35:11 rpmi: libSDL_image-devel-1.2.12-alt1 1347907933 installed <13>Apr 21 03:35:11 rpmi: libSDL_mixer-devel-1.2.12-alt1 1421435872 installed <13>Apr 21 03:35:11 rpmi: libGLEW-devel-2.0.0-alt1 1470176354 installed <13>Apr 21 03:35:11 rpmi: libpng-devel-1.5.28-alt1 1484572014 installed <13>Apr 21 03:35:11 rpmi: libicns-utils-0.7.1-alt1.2 1349372938 installed <13>Apr 21 03:35:11 rpmi: desktop-file-utils-0.22.0.patchset1-alt1 1412210843 installed <13>Apr 21 03:35:11 rpmi: ccache-3.0.1-alt1.1 1346234570 installed <13>Apr 21 03:35:11 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 21 03:35:11 rpmi: perl-Pod-Usage-1.68-alt1 1451923699 installed <13>Apr 21 03:35:11 rpmi: perl-podlators-4.07-alt1 1458574366 installed <13>Apr 21 03:35:11 rpmi: libharfbuzz-1.6.3-alt0.M80P.1 1509918814 installed <13>Apr 21 03:35:12 rpmi: libfreetype-2.8-alt0.M80P.3 1505462817 installed <13>Apr 21 03:35:12 rpmi: libSDL_ttf-2.0.10-alt2 1314052175 installed <13>Apr 21 03:35:12 rpmi: boost-devel-headers-1:1.58.0-alt4 1463060108 installed <13>Apr 21 03:35:12 rpmi: boost-devel-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:12 rpmi: boost-context-devel-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:12 rpmi: boost-interprocess-devel-1:1.58.0-alt4 1463060108 installed <13>Apr 21 03:35:12 rpmi: boost-polygon-devel-1:1.58.0-alt4 1463060108 installed <13>Apr 21 03:35:12 rpmi: boost-filesystem-devel-1:1.58.0-alt4 1463059984 installed <86>Apr 21 03:35:12 groupadd[95833]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 21 03:35:12 groupadd[95833]: group added to /etc/gshadow: name=_keytab <86>Apr 21 03:35:12 groupadd[95833]: new group: name=_keytab, GID=499 <13>Apr 21 03:35:12 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 21 03:35:12 rpmi: boost-wave-devel-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:13 rpmi: boost-geometry-devel-1:1.58.0-alt4 1463060108 installed <13>Apr 21 03:35:13 rpmi: boost-flyweight-devel-1:1.58.0-alt4 1463060108 installed <13>Apr 21 03:35:13 rpmi: boost-coroutine-devel-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:13 rpmi: boost-asio-devel-1:1.58.0-alt4 1463060108 installed <13>Apr 21 03:35:13 rpmi: boost-locale-devel-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:13 rpmi: boost-lockfree-devel-1:1.58.0-alt4 1463060108 installed <13>Apr 21 03:35:13 rpmi: boost-log-devel-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:13 rpmi: boost-math-devel-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:13 rpmi: boost-msm-devel-1:1.58.0-alt4 1463060108 installed <13>Apr 21 03:35:13 rpmi: boost-multiprecision-devel-1:1.58.0-alt4 1463060108 installed <13>Apr 21 03:35:13 rpmi: boost-program_options-devel-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:13 rpmi: boost-signals-devel-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:13 rpmi: libSDL_ttf-devel-2.0.10-alt2 1314052175 installed <13>Apr 21 03:35:13 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 03:35:13 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 03:35:13 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 03:35:13 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 03:35:13 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 03:35:13 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 03:35:13 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 03:35:13 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 03:35:13 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 03:35:13 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 03:35:13 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 03:35:13 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 03:35:13 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 03:35:13 rpmi: boost-python-devel-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:13 rpmi: boost-mpi-devel-1:1.58.0-alt4 1463059984 installed <13>Apr 21 03:35:13 rpmi: boost-graph-parallel-devel-1:1.58.0-alt4 1463059984 installed Installing frogatto-1.3.3-alt2_5.M80P.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.22760 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d + echo 'Source #0 (frogatto-1.3.3-a7ef3bf.tar.gz):' Source #0 (frogatto-1.3.3-a7ef3bf.tar.gz): + /bin/gzip -dc /usr/src/RPM/SOURCES/frogatto-1.3.3-a7ef3bf.tar.gz + /bin/tar -xf - + cd frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #0 (frogatto-1.2-Makefile.patch):' Patch #0 (frogatto-1.2-Makefile.patch): + /usr/bin/patch -p1 patching file Makefile + echo 'Patch #1 (frogatto-1.3-no-boost-mt.patch):' Patch #1 (frogatto-1.3-no-boost-mt.patch): + /usr/bin/patch -p1 patching file Makefile + echo 'Patch #2 (frogatto-1.3-fonts.patch):' Patch #2 (frogatto-1.3-fonts.patch): + /usr/bin/patch -p1 patching file src/font.cpp patching file src/vector_text.cpp + echo 'Patch #3 (frogatto-1.3-narrowing-conversion-fixes.patch):' Patch #3 (frogatto-1.3-narrowing-conversion-fixes.patch): + /usr/bin/patch -p1 patching file src/debug_console.cpp patching file src/dialog.cpp patching file src/draw_scene.cpp patching file src/editor.cpp patching file src/editor_module_properties_dialog.cpp patching file src/entity.cpp patching file src/font.cpp patching file src/formula_constants.cpp patching file src/geometry.cpp patching file src/grid_widget.cpp patching file src/label.cpp patching file src/level.cpp patching file src/level_object.cpp patching file src/level_runner.cpp patching file src/texture.hpp + sed -i 's!"./locale/"!"/usr/share/locale/"!' src/i18n.cpp + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.18993 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d + make 'BASE_CXXFLAGS=-pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing' make: Entering directory `/usr/src/RPM/BUILD/frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d' ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/IMG_savepng.cpp src/IMG_savepng.cpp: In function 'int IMG_SavePNG_RW(SDL_RWops*, SDL_Surface*, int)': src/IMG_savepng.cpp:169:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i=0;ipalette->ncolors;i++) { ^ src/IMG_savepng.cpp:210:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;ih;i++){ ^ src/IMG_savepng.cpp:302:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;ih;i++){ ^ src/IMG_savepng.cpp:314:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;ih;i++){ ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/IMG_savepng.cpp > IMG_savepng.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/achievements.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/achievements.cpp > achievements.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/animation_creator.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/label.hpp:22, from src/animation_preview_widget.hpp:9, from src/animation_creator.hpp:11, from src/animation_creator.cpp:6: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/label.hpp:22, from src/animation_preview_widget.hpp:9, from src/animation_creator.hpp:11, from src/animation_creator.cpp:6: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/label.hpp:22:0, from src/animation_preview_widget.hpp:9, from src/animation_creator.hpp:11, from src/animation_creator.cpp:6: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/dropdown_widget.hpp:13:0, from src/animation_creator.hpp:15, from src/animation_creator.cpp:6: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ In file included from src/animation_creator.cpp:7:0: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/animation_creator.cpp:13: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/animation_creator.cpp:13: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/animation_creator.cpp:13: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ In file included from src/animation_creator.cpp:6:0: src/animation_creator.hpp: In constructor 'gui::animation_creator_dialog::animation_creator_dialog(int, int, int, int, const variant&)': src/animation_creator.hpp:79:7: warning: 'gui::animation_creator_dialog::dragging_slider_' will be initialized after [-Wreorder] bool dragging_slider_; ^ src/animation_creator.hpp:61:7: warning: 'bool gui::animation_creator_dialog::changed_' [-Wreorder] bool changed_; // current animation modified? ^ src/animation_creator.cpp:102:1: warning: when initialized here [-Wreorder] animation_creator_dialog::animation_creator_dialog(int x, int y, int w, int h, const variant& anims) ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/animation_creator.cpp > animation_creator.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/animation_preview_widget.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/label.hpp:22, from src/animation_preview_widget.hpp:9, from src/animation_preview_widget.cpp:4: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/label.hpp:22, from src/animation_preview_widget.hpp:9, from src/animation_preview_widget.cpp:4: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/label.hpp:22:0, from src/animation_preview_widget.hpp:9, from src/animation_preview_widget.cpp:4: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/pathfinding.hpp:17, from src/animation_preview_widget.cpp:8: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/pathfinding.hpp:17, from src/animation_preview_widget.cpp:8: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/pathfinding.hpp:17, from src/animation_preview_widget.cpp:8: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/pathfinding.hpp:17, from src/animation_preview_widget.cpp:8: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/animation_preview_widget.cpp: In member function 'virtual void gui::animation_preview_widget::handle_draw() const': src/animation_preview_widget.cpp:399:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(x2 > image_texture.width()) { ^ src/animation_preview_widget.cpp:407:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(y2 > image_texture.height()) { ^ src/animation_preview_widget.cpp:451:58: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(rect_chosen || !(dragging_sides_bitmap_&TOP_SIDE) && point_in_rect(point(mousex, mousey), rect(box.x(), box.y2()-4, box.w(), 9))) { ^ src/animation_preview_widget.cpp:461:25: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses] if(rect_chosen || (!dragging_sides_bitmap_&LEFT_SIDE) && point_in_rect(point(mousex, mousey), rect(box.x2()-4, box.y(), 9, box.h()))) { ^ src/animation_preview_widget.cpp:461:59: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(rect_chosen || (!dragging_sides_bitmap_&LEFT_SIDE) && point_in_rect(point(mousex, mousey), rect(box.x2()-4, box.y(), 9, box.h()))) { ^ In file included from src/animation_preview_widget.cpp:8:0: src/pathfinding.hpp: In instantiation of 'pathfinding::graph_node::graph_node(const N&) [with N = variant; T = decimal]': src/pathfinding.hpp:129:109: required from here src/pathfinding.hpp:83:4: warning: 'pathfinding::graph_node::src_' will be initialized after [-Wreorder] N src_; ^ src/pathfinding.hpp:82:4: warning: 'decimal pathfinding::graph_node::f_' [-Wreorder] T f_, g_, h_; ^ src/pathfinding.hpp:42:2: warning: when initialized here [-Wreorder] graph_node(const N& src) ^ src/pathfinding.hpp: In instantiation of 'pathfinding::graph_node::graph_node(const N&) [with N = point; T = int]': src/animation_preview_widget.cpp:99:71: required from here src/pathfinding.hpp:83:4: warning: 'pathfinding::graph_node::src_' will be initialized after [-Wreorder] N src_; ^ src/pathfinding.hpp:82:4: warning: 'int pathfinding::graph_node::f_' [-Wreorder] T f_, g_, h_; ^ src/pathfinding.hpp:42:2: warning: when initialized here [-Wreorder] graph_node(const N& src) ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/animation_preview_widget.cpp > animation_preview_widget.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/animation_widget.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/label.hpp:22, from src/animation_widget.hpp:10, from src/animation_widget.cpp:1: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/label.hpp:22, from src/animation_widget.hpp:10, from src/animation_widget.cpp:1: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/label.hpp:22:0, from src/animation_widget.hpp:10, from src/animation_widget.cpp:1: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/animation_widget.cpp > animation_widget.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/asserts.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/level.hpp:20, from src/editor.hpp:13, from src/asserts.cpp:4: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/editor.hpp:13, from src/asserts.cpp:4: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/editor.hpp:13, from src/asserts.cpp:4: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/editor.hpp:13, from src/asserts.cpp:4: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/editor.hpp:13, from src/asserts.cpp:4: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/editor.hpp:13, from src/asserts.cpp:4: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/editor.hpp:13, from src/asserts.cpp:4: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/asserts.cpp > asserts.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/background.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/level.hpp:20, from src/background.cpp:15: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/background.cpp:15: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/background.cpp:15: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/background.cpp:15: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/background.cpp:15: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/background.cpp:15: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/background.cpp:15: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/background.cpp: In member function 'void background::draw(int, int, const rect&, const std::vector&, int, int) const': src/background.cpp:261:13: warning: unused variable 'scissor_scale' [-Wunused-variable] const int scissor_scale = preferences::double_scale() ? 2 : 1; ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/background.cpp > background.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/background_task_pool.cpp src/background_task_pool.cpp: In function 'void background_task_pool::{anonymous}::run_task(boost::function, int)': src/background_task_pool.cpp:31:19: warning: unused variable 'completed_tasks_mutex' [-Wunused-variable] threading::lock(*completed_tasks_mutex); ^ src/background_task_pool.cpp: In function 'void background_task_pool::pump()': src/background_task_pool.cpp:60:20: warning: unused variable 'completed_tasks_mutex' [-Wunused-variable] threading::lock(*completed_tasks_mutex); ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/background_task_pool.cpp > background_task_pool.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/base64.cpp src/base64.cpp: In function 'void base64::decodeblock(const char*, std::vector::iterator&)': src/base64.cpp:105:41: warning: array subscript has type 'char' [-Wchar-subscripts] unsigned long nn = (_base64inv[in[0]] << 18) | (_base64inv[in[1]] << 12) ^ src/base64.cpp:105:69: warning: array subscript has type 'char' [-Wchar-subscripts] unsigned long nn = (_base64inv[in[0]] << 18) | (_base64inv[in[1]] << 12) ^ src/base64.cpp:106:28: warning: array subscript has type 'char' [-Wchar-subscripts] | (_base64inv[in[2]] << 6) | (_base64inv[in[3]]); ^ src/base64.cpp:106:55: warning: array subscript has type 'char' [-Wchar-subscripts] | (_base64inv[in[2]] << 6) | (_base64inv[in[3]]); ^ src/base64.cpp: At global scope: src/base64.cpp:149:39: warning: 'TEST_VAR_base64_encode' defined but not used [-Wunused-variable] src/base64.cpp:158:43: warning: 'TEST_VAR_base64_encode_bin' defined but not used [-Wunused-variable] src/base64.cpp:175:39: warning: 'TEST_VAR_base64_decode' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/base64.cpp > base64.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/blur.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/blur.cpp > blur.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/border_widget.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/border_widget.hpp:6, from src/border_widget.cpp:3: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/border_widget.hpp:6, from src/border_widget.cpp:3: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/border_widget.hpp:6:0, from src/border_widget.cpp:3: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/border_widget.cpp > border_widget.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/button.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/button.hpp:19, from src/button.cpp:16: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/button.hpp:19, from src/button.cpp:16: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/button.hpp:19:0, from src/button.cpp:16: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/button.cpp:16:0: src/button.hpp: In constructor 'gui::button::button(const string&, boost::function)': src/button.hpp:53:27: warning: 'gui::button::onclick_' will be initialized after [-Wreorder] boost::function onclick_; ^ src/button.hpp:50:20: warning: 'gui::BUTTON_RESOLUTION gui::button::button_resolution_' [-Wreorder] BUTTON_RESOLUTION button_resolution_; ^ src/button.cpp:28:1: warning: when initialized here [-Wreorder] button::button(const std::string& str, boost::function onclick) ^ In file included from src/button.cpp:16:0: src/button.hpp:51:15: warning: 'gui::button::button_style_' will be initialized after [-Wreorder] BUTTON_STYLE button_style_; ^ src/button.hpp:48:6: warning: 'int gui::button::hpadding_' [-Wreorder] int hpadding_; ^ src/button.cpp:28:1: warning: when initialized here [-Wreorder] button::button(const std::string& str, boost::function onclick) ^ In file included from src/button.cpp:16:0: src/button.hpp:48:6: warning: 'gui::button::hpadding_' will be initialized after [-Wreorder] int hpadding_; ^ src/button.hpp:47:6: warning: 'int gui::button::vpadding_' [-Wreorder] int vpadding_; ^ src/button.cpp:28:1: warning: when initialized here [-Wreorder] button::button(const std::string& str, boost::function onclick) ^ In file included from src/button.cpp:16:0: src/button.hpp: In constructor 'gui::button::button(gui::widget_ptr, boost::function, gui::BUTTON_STYLE, gui::BUTTON_RESOLUTION)': src/button.hpp:53:27: warning: 'gui::button::onclick_' will be initialized after [-Wreorder] boost::function onclick_; ^ src/button.hpp:50:20: warning: 'gui::BUTTON_RESOLUTION gui::button::button_resolution_' [-Wreorder] BUTTON_RESOLUTION button_resolution_; ^ src/button.cpp:38:1: warning: when initialized here [-Wreorder] button::button(widget_ptr label, boost::function onclick, BUTTON_STYLE button_style, BUTTON_RESOLUTION button_resolution) ^ In file included from src/button.cpp:16:0: src/button.hpp:54:7: warning: 'gui::button::down_' will be initialized after [-Wreorder] bool down_; ^ src/button.hpp:48:6: warning: 'int gui::button::hpadding_' [-Wreorder] int hpadding_; ^ src/button.cpp:38:1: warning: when initialized here [-Wreorder] button::button(widget_ptr label, boost::function onclick, BUTTON_STYLE button_style, BUTTON_RESOLUTION button_resolution) ^ In file included from src/button.cpp:16:0: src/button.hpp:48:6: warning: 'gui::button::hpadding_' will be initialized after [-Wreorder] int hpadding_; ^ src/button.hpp:47:6: warning: 'int gui::button::vpadding_' [-Wreorder] int vpadding_; ^ src/button.cpp:38:1: warning: when initialized here [-Wreorder] button::button(widget_ptr label, boost::function onclick, BUTTON_STYLE button_style, BUTTON_RESOLUTION button_resolution) ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/button.cpp > button.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/character_editor_dialog.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/border_widget.hpp:6, from src/character_editor_dialog.cpp:4: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/border_widget.hpp:6, from src/character_editor_dialog.cpp:4: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/border_widget.hpp:6:0, from src/character_editor_dialog.cpp:4: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/character_editor_dialog.hpp:9:0, from src/character_editor_dialog.cpp:6: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/editor.hpp:13, from src/character_editor_dialog.cpp:7: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/editor.hpp:13, from src/character_editor_dialog.cpp:7: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/editor.hpp:13, from src/character_editor_dialog.cpp:7: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/editor.hpp:13, from src/character_editor_dialog.cpp:7: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/character_editor_dialog.cpp: In member function 'void editor_dialogs::character_editor_dialog::init()': src/character_editor_dialog.cpp:47:15: warning: unused variable 'frame' [-Wunused-variable] const frame& frame = *editor_.all_characters()[editor_.get_object()].preview_frame(); ^ src/character_editor_dialog.cpp: In member function 'gui::widget_ptr editor_dialogs::character_editor_dialog::generate_grid(const string&)': src/character_editor_dialog.cpp:84:43: warning: suggest parentheses around '&&' within '||' [-Wparentheses] matches = p == id.c_str() || p != NULL && *(p-1) == '_'; ^ src/character_editor_dialog.cpp:118:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != borders.size(); ++n) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/character_editor_dialog.cpp > character_editor_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/checkbox.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/button.hpp:19, from src/checkbox.hpp:4, from src/checkbox.cpp:3: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/button.hpp:19, from src/checkbox.hpp:4, from src/checkbox.cpp:3: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/button.hpp:19:0, from src/checkbox.hpp:4, from src/checkbox.cpp:3: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/checkbox.cpp:3:0: src/checkbox.hpp: In constructor 'gui::checkbox::checkbox(const variant&, game_logic::formula_callable*)': src/checkbox.hpp:22:7: warning: 'gui::checkbox::checked_' will be initialized after [-Wreorder] bool checked_; ^ src/checkbox.cpp:39:100: warning: base 'gui::button' [-Wreorder] checkbox::checkbox(const variant& v, game_logic::formula_callable* e) : checked_(false), button(v,e) ^ src/checkbox.cpp:39:1: warning: when initialized here [-Wreorder] checkbox::checkbox(const variant& v, game_logic::formula_callable* e) : checked_(false), button(v,e) ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/checkbox.cpp > checkbox.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/checksum.cpp src/checksum.cpp: In constructor 'checksum::manager::manager()': src/checksum.cpp:51:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != keys.size(); ++n) { ^ src/checksum.cpp: At global scope: src/checksum.cpp:135:79: warning: 'UTILITY_VAR_sign_game_data' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/checksum.cpp > checksum.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/code_editor_dialog.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/border_widget.hpp:6, from src/code_editor_dialog.cpp:6: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/border_widget.hpp:6, from src/code_editor_dialog.cpp:6: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/border_widget.hpp:6:0, from src/code_editor_dialog.cpp:6: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/code_editor_widget.hpp:9:0, from src/code_editor_dialog.hpp:10, from src/code_editor_dialog.cpp:8: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ In file included from src/custom_object.hpp:15:0, from src/code_editor_dialog.cpp:10: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/code_editor_dialog.cpp:23: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/code_editor_dialog.cpp:23: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/code_editor_dialog.cpp:23: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/code_editor_dialog.cpp: In member function 'void code_editor_dialog::load_file(std::__cxx11::string, bool)': src/code_editor_dialog.cpp:150:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index == files_.size()) { ^ src/code_editor_dialog.cpp: In member function 'void code_editor_dialog::select_file(int)': src/code_editor_dialog.cpp:218:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index < 0 || index >= files_.size()) { ^ src/code_editor_dialog.cpp: In member function 'void code_editor_dialog::process()': src/code_editor_dialog.cpp:311:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(invalidated_ && SDL_GetTicks() > invalidated_ + 200) { ^ src/code_editor_dialog.cpp: In member function 'void code_editor_dialog::select_suggestion(int)': src/code_editor_dialog.cpp:758:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index >= 0 && index < suggestions_.size()) { ^ src/code_editor_dialog.cpp:761:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(suggestions_prefix_ >= 0 && suggestions_prefix_ < str.size()) { ^ src/code_editor_dialog.cpp: At global scope: src/code_editor_dialog.cpp:775:73: warning: 'UTILITY_VAR_codeedit' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/code_editor_dialog.cpp > code_editor_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/code_editor_widget.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/image_widget.hpp:22, from src/slider.hpp:18, from src/code_editor_widget.hpp:8, from src/code_editor_widget.cpp:2: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/image_widget.hpp:22, from src/slider.hpp:18, from src/code_editor_widget.hpp:8, from src/code_editor_widget.cpp:2: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/image_widget.hpp:22:0, from src/slider.hpp:18, from src/code_editor_widget.hpp:8, from src/code_editor_widget.cpp:2: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/code_editor_widget.hpp:9:0, from src/code_editor_widget.cpp:2: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ src/code_editor_widget.cpp: In member function 'virtual void gui::code_editor_widget::on_change()': src/code_editor_widget.cpp:88:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != opening_brackets.back().size(); ++n) { ^ src/code_editor_widget.cpp:153:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != opening_brackets.size(); ++n) { ^ src/code_editor_widget.cpp: In member function 'virtual graphics::color gui::code_editor_widget::get_character_color(int, int) const': src/code_editor_widget.cpp:181:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != itor->second.size(); ++n) { ^ src/code_editor_widget.cpp:185:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cursor_col() == match_col+1 || colors_[match_row].size() == match_col+1 && cursor_col() > match_col+1) { ^ src/code_editor_widget.cpp:185:80: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(cursor_col() == match_col+1 || colors_[match_row].size() == match_col+1 && cursor_col() > match_col+1) { ^ src/code_editor_widget.cpp:192:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(row >= 0 && row < colors_.size(), "Invalid row: " << row << " /" << colors_.size()); ^ src/code_editor_widget.cpp:193:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(col >= 0 && col < colors_[row].size(), "Invalid col: " << col << " /" << colors_[row].size()); ^ src/code_editor_widget.cpp: In member function 'void gui::code_editor_widget::on_slider_move(double)': src/code_editor_widget.cpp:303:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(row_slider_ >= 0 && row_slider_ < get_data().size(), "Illegal row value for slider: " << row_slider_ << " / " << get_data().size()); ^ src/code_editor_widget.cpp: In member function 'gui::code_editor_widget::ObjectInfo gui::code_editor_widget::get_object_at(int, int) const': src/code_editor_widget.cpp:416:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(pos >= 0 && pos <= current_text_.size(), "Unexpected position in code editor widget: " << pos << " / " << current_text_.size()); ^ src/code_editor_widget.cpp:420:6: warning: unused variable 'nbracket' [-Wunused-variable] int nbracket = 0; ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/code_editor_widget.cpp > code_editor_widget.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/color_chart.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/color_chart.cpp > color_chart.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/compress.cpp src/compress.cpp: In function 'void TEST_compression_test()': src/compress.cpp:81:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != data.size(); ++n) { ^ src/compress.cpp:88:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != data.size(); ++n) { ^ src/compress.cpp: At global scope: src/compress.cpp:78:42: warning: 'TEST_VAR_compression_test' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/compress.cpp > compress.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/current_generator.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/current_generator.cpp > current_generator.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/decimal.cpp src/decimal.cpp: In static member function 'static decimal decimal::from_string(const string&)': src/decimal.cpp:35:10: warning: unused variable 'result_value' [-Wunused-variable] int64_t result_value = n*DECIMAL_PRECISION + m; ^ src/decimal.cpp: In function 'decimal operator/(const decimal&, const decimal&)': src/decimal.cpp:114:19: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(a.value() < 0 && b.value() > 0 || b.value() < 0 && a.value() > 0) { ^ src/decimal.cpp: At global scope: src/decimal.cpp:128:45: warning: 'TEST_VAR_decimal_from_string' defined but not used [-Wunused-variable] src/decimal.cpp:139:40: warning: 'TEST_VAR_decimal_output' defined but not used [-Wunused-variable] src/decimal.cpp:154:37: warning: 'TEST_VAR_decimal_mul' defined but not used [-Wunused-variable] src/decimal.cpp:167:37: warning: 'TEST_VAR_decimal_div' defined but not used [-Wunused-variable] src/decimal.cpp:172:72: warning: 'BENCHMARK_VAR_decimal_div_bench' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/decimal.cpp > decimal.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/difficulty.cpp src/difficulty.cpp: In function 'void difficulty::{anonymous}::create_difficulty_map()': src/difficulty.cpp:27:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < diff["difficulties"].num_elements(); i++) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/difficulty.cpp > difficulty.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/drag_widget.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/image_widget.hpp:22, from src/drag_widget.cpp:7: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/image_widget.hpp:22, from src/drag_widget.cpp:7: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/image_widget.hpp:22:0, from src/drag_widget.cpp:7: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/drag_widget.cpp:8:0: src/drag_widget.hpp: In constructor 'gui::drag_widget::drag_widget(int, int, int, int, gui::drag_widget::drag_direction, boost::function, boost::function, boost::function)': src/drag_widget.hpp:53:17: warning: 'gui::drag_widget::dir_' will be initialized after [-Wreorder] drag_direction dir_; ^ src/drag_widget.hpp:39:34: warning: 'boost::function gui::drag_widget::drag_start_' [-Wreorder] boost::function drag_start_; ^ src/drag_widget.cpp:75:1: warning: when initialized here [-Wreorder] drag_widget::drag_widget(const int x, const int y, const int w, const int h, ^ src/drag_widget.cpp: In member function 'bool gui::drag_widget::handle_mousedown(const SDL_MouseButtonEvent&, bool)': src/drag_widget.cpp:220:6: warning: unused variable 'button_state' [-Wunused-variable] int button_state = SDL_GetMouseState(&p.x, &p.y); ^ src/drag_widget.cpp: In member function 'bool gui::drag_widget::handle_mouseup(const SDL_MouseButtonEvent&, bool)': src/drag_widget.cpp:237:6: warning: unused variable 'button_state' [-Wunused-variable] int button_state = SDL_GetMouseState(&mousex, &mousey); ^ src/drag_widget.cpp: In member function 'bool gui::drag_widget::handle_mousemotion(const SDL_MouseMotionEvent&, bool)': src/drag_widget.cpp:251:6: warning: unused variable 'button_state' [-Wunused-variable] int button_state = SDL_GetMouseState(&p.x, &p.y); ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/drag_widget.cpp > drag_widget.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/dropdown_widget.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/image_widget.hpp:22, from src/dropdown_widget.cpp:6: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/image_widget.hpp:22, from src/dropdown_widget.cpp:6: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/image_widget.hpp:22:0, from src/dropdown_widget.cpp:6: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/dropdown_widget.hpp:13:0, from src/dropdown_widget.cpp:7: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ In file included from src/dropdown_widget.cpp:7:0: src/dropdown_widget.hpp: In constructor 'gui::dropdown_widget::dropdown_widget(const dropdown_list&, int, int, gui::dropdown_widget::dropdown_type)': src/dropdown_widget.hpp:56:16: warning: 'gui::dropdown_widget::type_' will be initialized after [-Wreorder] dropdown_type type_; ^ src/dropdown_widget.hpp:55:6: warning: 'int gui::dropdown_widget::current_selection_' [-Wreorder] int current_selection_; ^ src/dropdown_widget.cpp:19:1: warning: when initialized here [-Wreorder] dropdown_widget::dropdown_widget(const dropdown_list& list, int width, int height, dropdown_type type) ^ In file included from src/dropdown_widget.cpp:7:0: src/dropdown_widget.hpp:55:6: warning: 'gui::dropdown_widget::current_selection_' will be initialized after [-Wreorder] int current_selection_; ^ src/dropdown_widget.hpp:53:6: warning: 'int gui::dropdown_widget::dropdown_height_' [-Wreorder] int dropdown_height_; ^ src/dropdown_widget.cpp:19:1: warning: when initialized here [-Wreorder] dropdown_widget::dropdown_widget(const dropdown_list& list, int width, int height, dropdown_type type) ^ In file included from src/dropdown_widget.cpp:7:0: src/dropdown_widget.hpp: In constructor 'gui::dropdown_widget::dropdown_widget(const variant&, game_logic::formula_callable*)': src/dropdown_widget.hpp:55:6: warning: 'gui::dropdown_widget::current_selection_' will be initialized after [-Wreorder] int current_selection_; ^ src/dropdown_widget.hpp:53:6: warning: 'int gui::dropdown_widget::dropdown_height_' [-Wreorder] int dropdown_height_; ^ src/dropdown_widget.cpp:37:1: warning: when initialized here [-Wreorder] dropdown_widget::dropdown_widget(const variant& v, game_logic::formula_callable* e) ^ src/dropdown_widget.cpp: In member function 'bool gui::dropdown_widget::handle_mousemotion(const SDL_MouseMotionEvent&, bool)': src/dropdown_widget.cpp:264:6: warning: unused variable 'button_state' [-Wunused-variable] int button_state = SDL_GetMouseState(&p.x, &p.y); ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/dropdown_widget.cpp > dropdown_widget.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/editor_dialogs.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/dialog.hpp:17, from src/editor_dialogs.cpp:4: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/dialog.hpp:17, from src/editor_dialogs.cpp:4: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/dialog.hpp:17:0, from src/editor_dialogs.cpp:4: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/editor_dialogs.cpp: In function 'void {anonymous}::do_select_level(gui::dialog*, const std::vector >&, int, std::__cxx11::string*)': src/editor_dialogs.cpp:15:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index >= 0 && index < levels.size()) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/editor_dialogs.cpp > editor_dialogs.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/editor_formula_functions.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/custom_object_type.hpp:11, from src/custom_object.hpp:13, from src/editor_formula_functions.cpp:4: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/editor_formula_functions.cpp:4: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/editor_formula_functions.cpp:4: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/editor_formula_functions.cpp:4: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/debug_console.hpp:9, from src/editor_formula_functions.cpp:5: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/debug_console.hpp:9, from src/editor_formula_functions.cpp:5: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/debug_console.hpp:9, from src/editor_formula_functions.cpp:5: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ In file included from src/debug_console.hpp:10:0, from src/editor_formula_functions.cpp:5: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ src/editor_formula_functions.cpp: In member function 'virtual variant editor_script::{anonymous}::debug_function::execute(const game_logic::formula_callable&) const': src/editor_formula_functions.cpp:143:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != args().size(); ++n) { ^ src/editor_formula_functions.cpp: In function 'void editor_script::{anonymous}::execute_command(variant, editor&)': src/editor_formula_functions.cpp:183:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != cmd.num_elements(); ++n) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/editor_formula_functions.cpp > editor_formula_functions.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/editor_layers_dialog.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/dialog.hpp:17, from src/editor_layers_dialog.hpp:7, from src/editor_layers_dialog.cpp:4: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/dialog.hpp:17, from src/editor_layers_dialog.hpp:7, from src/editor_layers_dialog.cpp:4: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/dialog.hpp:17:0, from src/editor_layers_dialog.hpp:7, from src/editor_layers_dialog.cpp:4: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/editor.hpp:13, from src/editor_layers_dialog.hpp:8, from src/editor_layers_dialog.cpp:4: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/editor.hpp:13, from src/editor_layers_dialog.hpp:8, from src/editor_layers_dialog.cpp:4: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/editor.hpp:13, from src/editor_layers_dialog.hpp:8, from src/editor_layers_dialog.cpp:4: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/editor.hpp:13, from src/editor_layers_dialog.hpp:8, from src/editor_layers_dialog.cpp:4: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/editor_layers_dialog.cpp: In member function 'void editor_dialogs::editor_layers_dialog::process()': src/editor_layers_dialog.cpp:74:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index < 0 || index >= editor_.all_tilesets().size()) { ^ src/editor_layers_dialog.cpp: In member function 'void editor_dialogs::editor_layers_dialog::row_selected(int)': src/editor_layers_dialog.cpp:107:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(nrow == rows_.size()) { ^ src/editor_layers_dialog.cpp:126:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(nrow < 0 || nrow >= rows_.size()) { ^ src/editor_layers_dialog.cpp: In member function 'void editor_dialogs::editor_layers_dialog::row_mouseover(int)': src/editor_layers_dialog.cpp:141:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(nrow < 0 || nrow >= rows_.size()) { ^ src/editor_layers_dialog.cpp: In member function 'void editor_dialogs::editor_layers_dialog::classification_selected(int)': src/editor_layers_dialog.cpp:164:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index < 0 || index >= all_classifications_.size()) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/editor_layers_dialog.cpp > editor_layers_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/editor_stats_dialog.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/button.hpp:19, from src/editor_stats_dialog.cpp:10: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/button.hpp:19, from src/editor_stats_dialog.cpp:10: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/button.hpp:19:0, from src/editor_stats_dialog.cpp:10: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/editor.hpp:13, from src/editor_stats_dialog.cpp:11: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/editor.hpp:13, from src/editor_stats_dialog.cpp:11: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/editor.hpp:13, from src/editor_stats_dialog.cpp:11: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/editor.hpp:13, from src/editor_stats_dialog.cpp:11: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/editor_stats_dialog.cpp > editor_stats_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/editor_variable_info.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/editor_variable_info.cpp:6: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/editor_variable_info.cpp > editor_variable_info.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/external_text_editor.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/custom_object_type.hpp:11, from src/external_text_editor.cpp:2: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ src/external_text_editor.cpp: In member function 'void {anonymous}::vi_editor::refresh_editor_list()': src/external_text_editor.cpp:51:13: warning: unused variable 'begin' [-Wunused-variable] const int begin = SDL_GetTicks(); ^ src/external_text_editor.cpp: In member function 'virtual void {anonymous}::vi_editor::load_file(const string&)': src/external_text_editor.cpp:211:14: warning: unused variable 'result' [-Wunused-variable] const int result = system(command.c_str()); ^ src/external_text_editor.cpp:225:13: warning: unused variable 'result' [-Wunused-variable] const int result = system(command.c_str()); ^ src/external_text_editor.cpp: In member function 'void external_text_editor::process()': src/external_text_editor.cpp:309:13: warning: unused variable 'begin' [-Wunused-variable] const int begin = SDL_GetTicks(); ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/external_text_editor.cpp > external_text_editor.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/clipboard.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/clipboard.cpp > clipboard.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/collision_utils.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/level.hpp:20, from src/collision_utils.cpp:5: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/collision_utils.cpp:5: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/collision_utils.cpp:5: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/collision_utils.cpp:5: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/collision_utils.cpp:5: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/collision_utils.cpp:5: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/collision_utils.cpp:5: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/collision_utils.cpp: In function 'bool point_standable(const level&, const entity&, int, int, collision_info*, ALLOW_PLATFORM)': src/collision_utils.cpp:47:43: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(allow_platform == SOLID_AND_PLATFORMS && lvl.standable(x, y, info ? &info->surf_info : NULL) || ^ src/collision_utils.cpp:95:13: warning: unused variable 'xpos' [-Wunused-variable] const int xpos = obj->face_right() ? x - obj->x() : obj->x() + f.width() - x - 1; ^ src/collision_utils.cpp: In function 'void debug_check_entity_solidity(const level&, const entity&)': src/collision_utils.cpp:142:15: warning: unused variable 'area' [-Wunused-variable] const rect& area = s->area(); ^ src/collision_utils.cpp: In function 'int entity_user_collision(const entity&, const entity&, collision_pair*, int)': src/collision_utils.cpp:429:76: warning: suggest parentheses around '&&' within '||' [-Wparentheses] fa.collision_areas_inside_frame() && fb.collision_areas_inside_frame() && ^ src/collision_utils.cpp: In function 'void detect_user_collisions(level&)': src/collision_utils.cpp:602:67: warning: suggest parentheses around '&&' within '||' [-Wparentheses] (a->weak_collide_dimensions()&b->collide_dimensions()) == 0 && ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/collision_utils.cpp > collision_utils.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/color_utils.cpp src/color_utils.cpp: In constructor 'graphics::color_transform::color_transform(const string&)': src/color_utils.cpp:159:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != components.size(); ++n) { ^ src/color_utils.cpp: In constructor 'graphics::color_transform::color_transform(const variant&)': src/color_utils.cpp:169:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(n < v.num_elements()) { ^ src/color_utils.cpp: At global scope: src/color_utils.cpp:261:31: warning: 'graphics::TEST_VAR_color' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/color_utils.cpp > color_utils.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/controls.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/button.hpp:19, from src/level_runner.hpp:9, from src/controls.cpp:33: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/button.hpp:19, from src/level_runner.hpp:9, from src/controls.cpp:33: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/button.hpp:19:0, from src/level_runner.hpp:9, from src/controls.cpp:33: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/debug_console.hpp:9, from src/level_runner.hpp:10, from src/controls.cpp:33: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/debug_console.hpp:9, from src/level_runner.hpp:10, from src/controls.cpp:33: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/debug_console.hpp:9, from src/level_runner.hpp:10, from src/controls.cpp:33: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/debug_console.hpp:9, from src/level_runner.hpp:10, from src/controls.cpp:33: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ In file included from src/debug_console.hpp:10:0, from src/level_runner.hpp:10, from src/controls.cpp:33: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ src/controls.cpp: In function 'void controls::read_until(int)': src/controls.cpp:199:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(controls[local_player].size() <= ncycle) { ^ src/controls.cpp:203:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(controls[local_player].size() > ncycle+1) { ^ src/controls.cpp: In function 'void controls::get_control_status(int, int, bool*)': src/controls.cpp:320:62: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(cycle > highest_confirmed[player] && SDL_GetTicks() < end_time) { ^ src/controls.cpp:311:13: warning: unused variable 'breathing_room' [-Wunused-variable] const int breathing_room = highest_confirmed[player] - cycle; ^ src/controls.cpp: In function 'void controls::read_control_packet(const char*, size_t)': src/controls.cpp:423:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cycle < controls[slot].size()) { ^ src/controls.cpp:435:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(controls[slot].size() <= cycle) { ^ src/controls.cpp:446:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = current_cycle + 1; n < controls[slot].size(); ++n) { ^ src/controls.cpp: In function 'void controls::write_control_packet(std::vector&)': src/controls.cpp:489:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(ncycles_to_write > controls[local_player].size()) { ^ src/controls.cpp: In function 'void controls::debug_dump_controls()': src/controls.cpp:549:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int m = 0; m < controls[n].size() && m < highest_confirmed[n]; ++m) { ^ src/controls.cpp:558:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int m = 0; m < controls[n].size() && m < highest_confirmed[n]; ++m) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/controls.cpp > controls.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/controls_dialog.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/button.hpp:19, from src/controls_dialog.cpp:3: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/button.hpp:19, from src/controls_dialog.cpp:3: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/button.hpp:19:0, from src/controls_dialog.cpp:3: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/controls_dialog.cpp:7:0: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/controls_dialog.cpp:10: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/controls_dialog.cpp:10: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/controls_dialog.cpp:10: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/controls_dialog.cpp > controls_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/custom_object.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/custom_object_type.hpp:11, from src/custom_object.hpp:13, from src/custom_object.cpp:15: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/custom_object.cpp:15: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/custom_object.cpp:15: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/custom_object.cpp:15: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/debug_console.hpp:9, from src/custom_object.cpp:18: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/debug_console.hpp:9, from src/custom_object.cpp:18: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/debug_console.hpp:9, from src/custom_object.cpp:18: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ In file included from src/debug_console.hpp:10:0, from src/custom_object.cpp:18: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ In file included from src/custom_object.cpp:15:0: src/custom_object.hpp: In constructor 'custom_object::custom_object(variant)': src/custom_object.hpp:382:7: warning: 'custom_object::always_active_' will be initialized after [-Wreorder] bool always_active_; ^ In file included from src/custom_object.cpp:15:0: src/custom_object.hpp:356:6: warning: 'int custom_object::activation_border_' [-Wreorder] int activation_border_; ^ src/custom_object.cpp:79:1: warning: when initialized here [-Wreorder] custom_object::custom_object(variant node) ^ In file included from src/custom_object.cpp:15:0: src/custom_object.hpp:427:6: warning: 'custom_object::currently_handling_die_event_' will be initialized after [-Wreorder] int currently_handling_die_event_; ^ In file included from src/custom_object.cpp:15:0: src/custom_object.hpp:321:7: warning: 'bool custom_object::use_absolute_screen_coordinates_' [-Wreorder] bool use_absolute_screen_coordinates_; ^ src/custom_object.cpp:79:1: warning: when initialized here [-Wreorder] custom_object::custom_object(variant node) ^ In file included from src/custom_object.cpp:15:0: src/custom_object.hpp: In constructor 'custom_object::custom_object(const string&, int, int, bool)': src/custom_object.hpp:382:7: warning: 'custom_object::always_active_' will be initialized after [-Wreorder] bool always_active_; ^ In file included from src/custom_object.cpp:15:0: src/custom_object.hpp:356:6: warning: 'int custom_object::activation_border_' [-Wreorder] int activation_border_; ^ src/custom_object.cpp:326:1: warning: when initialized here [-Wreorder] custom_object::custom_object(const std::string& type, int x, int y, bool face_right) ^ In file included from src/custom_object.cpp:15:0: src/custom_object.hpp:427:6: warning: 'custom_object::currently_handling_die_event_' will be initialized after [-Wreorder] int currently_handling_die_event_; ^ In file included from src/custom_object.cpp:15:0: src/custom_object.hpp:321:7: warning: 'bool custom_object::use_absolute_screen_coordinates_' [-Wreorder] bool use_absolute_screen_coordinates_; ^ src/custom_object.cpp:326:1: warning: when initialized here [-Wreorder] custom_object::custom_object(const std::string& type, int x, int y, bool face_right) ^ In file included from src/custom_object.cpp:15:0: src/custom_object.hpp: In copy constructor 'custom_object::custom_object(const custom_object&)': src/custom_object.hpp:312:6: warning: 'custom_object::zsub_order_' will be initialized after [-Wreorder] int zsub_order_; ^ src/custom_object.hpp:309:42: warning: 'boost::scoped_ptr > custom_object::parallax_scale_millis_' [-Wreorder] boost::scoped_ptr > parallax_scale_millis_; ^ src/custom_object.cpp:390:1: warning: when initialized here [-Wreorder] custom_object::custom_object(const custom_object& o) : ^ In file included from src/custom_object.cpp:15:0: src/custom_object.hpp:382:7: warning: 'custom_object::always_active_' will be initialized after [-Wreorder] bool always_active_; ^ In file included from src/custom_object.cpp:15:0: src/custom_object.hpp:356:6: warning: 'int custom_object::activation_border_' [-Wreorder] int activation_border_; ^ src/custom_object.cpp:390:1: warning: when initialized here [-Wreorder] custom_object::custom_object(const custom_object& o) : ^ In file included from src/custom_object.cpp:15:0: src/custom_object.hpp:427:6: warning: 'custom_object::currently_handling_die_event_' will be initialized after [-Wreorder] int currently_handling_die_event_; ^ In file included from src/custom_object.cpp:15:0: src/custom_object.hpp:321:7: warning: 'bool custom_object::use_absolute_screen_coordinates_' [-Wreorder] bool use_absolute_screen_coordinates_; ^ src/custom_object.cpp:390:1: warning: when initialized here [-Wreorder] custom_object::custom_object(const custom_object& o) : ^ src/custom_object.cpp: In member function 'virtual variant custom_object::write() const': src/custom_object.cpp:706:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != event_handlers_.size(); ++n) { ^ src/custom_object.cpp: In member function 'virtual void custom_object::draw(int, int) const': src/custom_object.cpp:968:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != left.size(); ++n) { ^ src/custom_object.cpp:976:89: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(platform_area_ && (preferences::show_debug_hitboxes() || !platform_offsets_.empty() && level::current().in_editor())) { ^ src/custom_object.cpp: In member function 'virtual void custom_object::process(level&)': src/custom_object.cpp:1190:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(next_fraction && pos+1 != position_schedule_->x_pos.size()) { ^ src/custom_object.cpp:1197:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(next_fraction && pos+1 != position_schedule_->y_pos.size()) { ^ src/custom_object.cpp:1275:19: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(!standing_on_ && !started_standing || accel_y_ < 0) { ^ src/custom_object.cpp:1356:7: warning: unused variable 'damage' [-Wunused-variable] int damage = 0; ^ src/custom_object.cpp:1358:13: warning: unused variable 'original_centi_y' [-Wunused-variable] const int original_centi_y = centi_y(); ^ src/custom_object.cpp:1531:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(left_foot >= area.x() && left_foot < area.x() + area.w() || ^ src/custom_object.cpp:1649:49: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(!is_standing(lvl) || detect_collisions && entity_collides(lvl, *this, MOVE_DOWN)) { ^ src/custom_object.cpp:1613:15: warning: unused variable 'begin_y' [-Wunused-variable] const int begin_y = feet_y(); ^ src/custom_object.cpp: In function 'variant {anonymous}::call_stack(const custom_object&)': src/custom_object.cpp:2010:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != event_call_stack.size(); ++n) { ^ src/custom_object.cpp: In static member function 'static void custom_object::run_garbage_collection()': src/custom_object.cpp:2064:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(starting_safe == safe.size()) { ^ src/custom_object.cpp: In member function 'virtual void custom_object::set_value(const string&, const variant&)': src/custom_object.cpp:2690:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value.num_elements(); ++n) { ^ src/custom_object.cpp:2749:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value.num_elements(); ++n) { ^ src/custom_object.cpp:2767:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value.num_elements(); ++n) { ^ src/custom_object.cpp:2778:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value.num_elements(); ++n) { ^ src/custom_object.cpp: In member function 'virtual void custom_object::set_value_by_slot(int, const variant&)': src/custom_object.cpp:3227:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value.num_elements(); ++n) { ^ src/custom_object.cpp:3316:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value.num_elements(); ++n) { ^ src/custom_object.cpp:3335:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value.num_elements(); ++n) { ^ src/custom_object.cpp:3349:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value.num_elements(); ++n) { ^ src/custom_object.cpp:3374:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value.num_elements(); ++n) { ^ src/custom_object.cpp:3386:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value.num_elements(); ++n) { ^ src/custom_object.cpp:3430:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value.num_elements(); ++n) { ^ src/custom_object.cpp:3442:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value.num_elements(); ++n) { ^ src/custom_object.cpp:3454:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value.num_elements(); ++n) { ^ src/custom_object.cpp:3501:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value.num_elements(); ++n) { ^ src/custom_object.cpp:3523:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value.num_elements(); ++n) { ^ src/custom_object.cpp:3527:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int index = 0; index != value[n].num_elements(); index += 2) { ^ src/custom_object.cpp: In member function 'bool custom_object::handle_event_internal(int, const game_logic::formula_callable*, bool)': src/custom_object.cpp:3871:74: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(event != OBJECT_EVENT_ANY && (size_t(event) < event_handlers_.size() && event_handlers_[OBJECT_EVENT_ANY] || type_->get_event_handler(OBJECT_EVENT_ANY))) { ^ src/custom_object.cpp: In function 'bool {anonymous}::map_variant_entities(variant&, const std::map, boost::intrusive_ptr >&)': src/custom_object.cpp:4106:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != v.num_elements(); ++n) { ^ src/custom_object.cpp: In member function 'void custom_object::extract_gc_object_references(variant&, std::vector&)': src/custom_object.cpp:4225:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != var.num_elements(); ++n) { ^ src/custom_object.cpp: At global scope: src/custom_object.cpp:4603:74: warning: 'BENCHMARK_VAR_custom_object_spike' defined but not used [-Wunused-variable] src/custom_object.cpp:4628:148: warning: 'BENCHMARK_ARG_VAR_name_easy_lookup' defined but not used [-Wunused-variable] src/custom_object.cpp:4629:151: warning: 'BENCHMARK_ARG_VAR_name_hard_lookup' defined but not used [-Wunused-variable] src/custom_object.cpp:4647:171: warning: 'BENCHMARK_ARG_VAR_name_ant_non_exist' defined but not used [-Wunused-variable] src/custom_object.cpp:4649:186: warning: 'BENCHMARK_ARG_VAR_custom_object_handle_event' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/custom_object.cpp > custom_object.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/custom_object_callable.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/level.hpp:20, from src/custom_object_callable.cpp:3: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/custom_object_callable.cpp:3: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/custom_object_callable.cpp:3: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/custom_object_callable.cpp:3: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/custom_object_callable.cpp:3: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/custom_object_callable.cpp:3: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/custom_object_callable.cpp:3: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/custom_object_callable.cpp: In constructor 'custom_object_callable::custom_object_callable(bool)': src/custom_object_callable.cpp:71:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != global_entries().size(); ++n) { ^ src/custom_object_callable.cpp: In member function 'virtual game_logic::formula_callable_definition::entry* custom_object_callable::get_entry(int)': src/custom_object_callable.cpp:104:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(slot < 0 || slot >= entries_.size()) { ^ src/custom_object_callable.cpp: In member function 'virtual const game_logic::formula_callable_definition::entry* custom_object_callable::get_entry(int) const': src/custom_object_callable.cpp:113:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(slot < 0 || slot >= entries_.size()) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/custom_object_callable.cpp > custom_object_callable.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/custom_object_dialog.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/label.hpp:22, from src/animation_preview_widget.hpp:9, from src/animation_creator.hpp:11, from src/custom_object_dialog.cpp:13: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/label.hpp:22, from src/animation_preview_widget.hpp:9, from src/animation_creator.hpp:11, from src/custom_object_dialog.cpp:13: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/label.hpp:22:0, from src/animation_preview_widget.hpp:9, from src/animation_creator.hpp:11, from src/custom_object_dialog.cpp:13: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/dropdown_widget.hpp:13:0, from src/animation_creator.hpp:15, from src/custom_object_dialog.cpp:13: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ In file included from src/custom_object.hpp:15:0, from src/custom_object_dialog.hpp:6, from src/custom_object_dialog.cpp:18: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/editor.hpp:13, from src/custom_object_dialog.hpp:9, from src/custom_object_dialog.cpp:18: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/editor.hpp:13, from src/custom_object_dialog.hpp:9, from src/custom_object_dialog.cpp:18: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/editor.hpp:13, from src/custom_object_dialog.hpp:9, from src/custom_object_dialog.cpp:18: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/custom_object_dialog.cpp: In constructor 'gui::item_edit_dialog::item_edit_dialog(int, int, int, int, const string&, variant)': src/custom_object_dialog.cpp:67:10: warning: 'gui::item_edit_dialog::items_' will be initialized after [-Wreorder] variant items_; ^ src/custom_object_dialog.cpp:66:14: warning: 'std::__cxx11::string gui::item_edit_dialog::display_name_' [-Wreorder] std::string display_name_; ^ src/custom_object_dialog.cpp:41:2: warning: when initialized here [-Wreorder] item_edit_dialog(int x, int y, int w, int h, const std::string&name, variant items) ^ In file included from src/custom_object_dialog.cpp:18:0: src/custom_object_dialog.hpp: In constructor 'editor_dialogs::custom_object_dialog::custom_object_dialog(editor&, int, int, int, int)': src/custom_object_dialog.hpp:57:7: warning: 'editor_dialogs::custom_object_dialog::dragging_slider_' will be initialized after [-Wreorder] bool dragging_slider_; ^ src/custom_object_dialog.hpp:47:6: warning: 'int editor_dialogs::custom_object_dialog::selected_template_' [-Wreorder] int selected_template_; ^ src/custom_object_dialog.cpp:168:1: warning: when initialized here [-Wreorder] custom_object_dialog::custom_object_dialog(editor& e, int x, int y, int w, int h) ^ src/custom_object_dialog.cpp: In member function 'void editor_dialogs::custom_object_dialog::init()': src/custom_object_dialog.cpp:270:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(err_text.length() > max_chars && max_chars > 3) { ^ src/custom_object_dialog.cpp: At global scope: src/custom_object_dialog.cpp:137:6: warning: 'void {anonymous}::reset_dialog_paths()' defined but not used [-Wunused-function] void reset_dialog_paths() ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/custom_object_dialog.cpp > custom_object_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/custom_object_functions.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/custom_object_functions.hpp:6, from src/custom_object_functions.cpp:15: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/custom_object_functions.cpp:16: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/custom_object_functions.cpp:16: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/custom_object_functions.cpp:16: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/debug_console.hpp:9, from src/custom_object_functions.cpp:17: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/debug_console.hpp:9, from src/custom_object_functions.cpp:17: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/debug_console.hpp:9, from src/custom_object_functions.cpp:17: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ In file included from src/debug_console.hpp:10:0, from src/custom_object_functions.cpp:17: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ src/custom_object_functions.cpp: In member function 'virtual variant {anonymous}::screen_flash_function::execute(const game_logic::formula_callable&) const': src/custom_object_functions.cpp:579:92: warning: suggest parentheses around '&&' within '||' [-Wparentheses] src/custom_object_functions.cpp: In member function 'virtual variant {anonymous}::object_function::execute(const game_logic::formula_callable&) const': src/custom_object_functions.cpp:778:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != keys.num_elements(); ++n) { ^ src/custom_object_functions.cpp: In member function 'virtual variant {anonymous}::object_playable_function::execute(const game_logic::formula_callable&) const': src/custom_object_functions.cpp:810:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != keys.num_elements(); ++n) { ^ src/custom_object_functions.cpp: In member function 'virtual variant {anonymous}::transient_speech_dialog_function::execute(const game_logic::formula_callable&) const': src/custom_object_functions.cpp:1112:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != args().size(); ++n) { ^ src/custom_object_functions.cpp:1121:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int m = 0; m != v.num_elements(); ++m) { ^ src/custom_object_functions.cpp: In member function 'void {anonymous}::speech_dialog_command::execute_commands(level&, custom_object&, const std::vector&) const': src/custom_object_functions.cpp:1260:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != var.num_elements(); ++n) { ^ src/custom_object_functions.cpp:1274:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != var.num_elements(); ++n) { ^ src/custom_object_functions.cpp:1370:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index >= 0 && index < option_commands.size()) { ^ src/custom_object_functions.cpp: In member function 'virtual variant {anonymous}::speech_dialog_function::execute(const game_logic::formula_callable&) const': src/custom_object_functions.cpp:1403:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != args().size(); ++n) { ^ src/custom_object_functions.cpp: In member function 'virtual variant {anonymous}::paused_speech_dialog_function::execute(const game_logic::formula_callable&) const': src/custom_object_functions.cpp:1412:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != args().size(); ++n) { ^ src/custom_object_functions.cpp: In constructor '{anonymous}::teleport_command::teleport_command(const string&, const string&, const string&, const entity_ptr&, bool)': src/custom_object_functions.cpp:1672:13: warning: '{anonymous}::teleport_command::new_playable_' will be initialized after [-Wreorder] entity_ptr new_playable_; ^ src/custom_object_functions.cpp:1670:7: warning: 'bool {anonymous}::teleport_command::no_move_to_standing_' [-Wreorder] bool no_move_to_standing_; ^ src/custom_object_functions.cpp:1654:2: warning: when initialized here [-Wreorder] teleport_command(const std::string& level, const std::string& label, const std::string& transition, const entity_ptr& new_playable, const bool no_move_to_standing) ^ src/custom_object_functions.cpp: In member function 'virtual variant {anonymous}::add_water_function::execute(const game_logic::formula_callable&) const': src/custom_object_functions.cpp:1761:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n < 4 && n < v.num_elements(); ++n) { ^ src/custom_object_functions.cpp: In member function 'virtual variant {anonymous}::textv_function::execute(const game_logic::formula_callable&) const': src/custom_object_functions.cpp:1997:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = arg_start; i < args().size(); i++) { ^ src/custom_object_functions.cpp: In member function 'virtual variant {anonymous}::set_widgets_function::execute(const game_logic::formula_callable&) const': src/custom_object_functions.cpp:2065:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = arg_start; i < args().size(); i++) { ^ src/custom_object_functions.cpp:2068:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != items.num_elements(); ++n) { ^ src/custom_object_functions.cpp: In member function 'virtual variant {anonymous}::rotate_rect_function::execute(const game_logic::formula_callable&) const': src/custom_object_functions.cpp:2162:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != v.num_elements(); ++n) { ^ src/custom_object_functions.cpp:2174:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != v.num_elements(); ++n) { ^ src/custom_object_functions.cpp: At global scope: src/custom_object_functions.cpp:64:11: warning: '{anonymous}::set_language_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(set_language, 1, 1, "set_language(str): set the language using a new locale code") ^ src/custom_object_functions.cpp:70:16: warning: '{anonymous}::set_language_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(set_language) ^ src/custom_object_functions.cpp:72:11: warning: '{anonymous}::time_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(time, 0, 0, "time() -> timestamp: returns the current real time") ^ src/custom_object_functions.cpp:77:16: warning: '{anonymous}::time_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(time) ^ src/custom_object_functions.cpp:79:11: warning: '{anonymous}::translate_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(translate, 1, 1, "translate(str): returns the translated version of the given string") ^ src/custom_object_functions.cpp:81:16: warning: '{anonymous}::translate_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(translate) ^ src/custom_object_functions.cpp:83:11: warning: '{anonymous}::performance_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(performance, 0, 0, "performance(): returns an object with current performance stats") ^ src/custom_object_functions.cpp:86:16: warning: '{anonymous}::performance_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(performance) ^ src/custom_object_functions.cpp:88:11: warning: '{anonymous}::get_clipboard_text_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(get_clipboard_text, 0, 0, "get_clipboard_text(): returns the text currentl in the windowing clipboard") ^ src/custom_object_functions.cpp:91:16: warning: '{anonymous}::get_clipboard_text_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(get_clipboard_text) ^ src/custom_object_functions.cpp:105:11: warning: '{anonymous}::set_clipboard_text_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(set_clipboard_text, 1, 1, "set_clipboard_text(str): sets the clipboard text to the given string") ^ src/custom_object_functions.cpp:107:16: warning: '{anonymous}::set_clipboard_text_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(set_clipboard_text) ^ src/custom_object_functions.cpp:110:11: warning: '{anonymous}::tbs_client_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(tbs_client, 2, 3, "tbs_client(host, port, session=-1): creates a client object to the tbs server") ^ src/custom_object_functions.cpp:116:16: warning: '{anonymous}::tbs_client_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(tbs_client) ^ src/custom_object_functions.cpp:139:11: warning: '{anonymous}::tbs_send_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(tbs_send, 2, 2, "tbs_send(tbs_client, msg): sends a message through the given tbs_client connection") ^ src/custom_object_functions.cpp:144:16: warning: '{anonymous}::tbs_send_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(tbs_send) ^ src/custom_object_functions.cpp:159:11: warning: '{anonymous}::tbs_process_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(tbs_process, 1, 1, "tbs_process(tbs_client): processes events for the tbs client") ^ src/custom_object_functions.cpp:162:16: warning: '{anonymous}::tbs_process_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(tbs_process) ^ src/custom_object_functions.cpp:177:11: warning: '{anonymous}::report_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(report, 1, 1, "report(): Write a key and a value into [custom] in the stats.") ^ src/custom_object_functions.cpp:179:16: warning: '{anonymous}::report_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(report) ^ src/custom_object_functions.cpp:261:11: warning: '{anonymous}::set_save_slot_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(set_save_slot, 0, 1, "set_save_slot((optional) int slot): Allows the user to select the save slot, if no slot is specified a dialog is displayed.") ^ src/custom_object_functions.cpp:265:16: warning: '{anonymous}::set_save_slot_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(set_save_slot) ^ src/custom_object_functions.cpp:287:11: warning: '{anonymous}::checkpoint_game_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(checkpoint_game, 0, 0, "checkpoint_game(): saves a checkpoint of the game") ^ src/custom_object_functions.cpp:289:16: warning: '{anonymous}::checkpoint_game_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(checkpoint_game) ^ src/custom_object_functions.cpp:291:11: warning: '{anonymous}::get_save_document_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(get_save_document, 1, 1, "get_save_document(int slot): gets the FFL document for the save in the given slot") ^ src/custom_object_functions.cpp:305:16: warning: '{anonymous}::get_save_document_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(get_save_document) ^ src/custom_object_functions.cpp:307:11: warning: '{anonymous}::save_game_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(save_game, 0, 0, "save_game(): saves the current game state") ^ src/custom_object_functions.cpp:309:16: warning: '{anonymous}::save_game_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(save_game) ^ src/custom_object_functions.cpp:381:11: warning: '{anonymous}::load_game_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(load_game, 0, 2, "load_game(transition, slot): loads the saved game. If transition (a string) is given, it will use that type of transition.") ^ src/custom_object_functions.cpp:392:16: warning: '{anonymous}::load_game_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(load_game) ^ src/custom_object_functions.cpp:394:11: warning: '{anonymous}::can_load_game_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(can_load_game, 0, 0, "can_load_game(): returns true if there is a saved game available to load") ^ src/custom_object_functions.cpp:396:16: warning: '{anonymous}::can_load_game_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(can_load_game) ^ src/custom_object_functions.cpp:398:11: warning: '{anonymous}::available_save_slots_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(available_save_slots, 0, 0, "available_save_slots(): returns a list of numeric indexes of available save slots") ^ src/custom_object_functions.cpp:414:16: warning: '{anonymous}::available_save_slots_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(available_save_slots) ^ src/custom_object_functions.cpp:424:11: warning: '{anonymous}::move_to_standing_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(move_to_standing, 0, 0, "move_to_standing(): tries to move the object downwards if it's in the air, or upwards if it's in solid space, until it's standing on solid ground."); ^ src/custom_object_functions.cpp:426:16: warning: '{anonymous}::move_to_standing_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(move_to_standing) ^ src/custom_object_functions.cpp:446:11: warning: '{anonymous}::music_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(music, 1, 1, "music(string id): plays the music file given by 'id' in a loop") ^ src/custom_object_functions.cpp:450:16: warning: '{anonymous}::music_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(music) ^ src/custom_object_functions.cpp:452:11: warning: '{anonymous}::music_onetime_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(music_onetime, 1, 1, "music_onetime(string id): plays the music file given by 'id' once") ^ src/custom_object_functions.cpp:456:16: warning: '{anonymous}::music_onetime_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(music_onetime) ^ src/custom_object_functions.cpp:489:11: warning: '{anonymous}::sound_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(sound, 1, 2, "sound(string id, decimal volume): plays the sound file given by 'id'") ^ src/custom_object_functions.cpp:494:16: warning: '{anonymous}::sound_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(sound) ^ src/custom_object_functions.cpp:496:11: warning: '{anonymous}::sound_loop_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(sound_loop, 1, 2, "sound_loop(string id, decimal volume): plays the sound file given by 'id' in a loop") ^ src/custom_object_functions.cpp:501:16: warning: '{anonymous}::sound_loop_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(sound_loop) ^ src/custom_object_functions.cpp:518:11: warning: '{anonymous}::sound_volume_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(sound_volume, 1, 1, "sound_volume(int volume): sets the volume of sound effects") ^ src/custom_object_functions.cpp:521:16: warning: '{anonymous}::sound_volume_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(sound_volume) ^ src/custom_object_functions.cpp:536:11: warning: '{anonymous}::stop_sound_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(stop_sound, 1, 1, "stop_sound(string id): stops the sound that the current object is playing with the given id") ^ src/custom_object_functions.cpp:539:16: warning: '{anonymous}::stop_sound_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(stop_sound) ^ src/custom_object_functions.cpp:554:11: warning: '{anonymous}::preload_sound_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(preload_sound, 1, 1, "preload_sound(string id): preload the given sound so it'll be in the sound effects cache") ^ src/custom_object_functions.cpp:557:16: warning: '{anonymous}::preload_sound_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(preload_sound) ^ src/custom_object_functions.cpp:575:11: warning: '{anonymous}::screen_flash_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(screen_flash, 2, 3, "screen_flash(list int[4] color, (optional) list int[4] delta, int duration): flashes the screen the given color, and keeps the flash going for duration cycles. If delta is given, the color of the flash will be changed every cycle until the duration expires.") ^ src/custom_object_functions.cpp:595:16: warning: '{anonymous}::screen_flash_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(screen_flash) ^ src/custom_object_functions.cpp:612:11: warning: '{anonymous}::title_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(title, 1, 2, "title(string text, int duration=50): shows level title text on the screen for duration cycles") ^ src/custom_object_functions.cpp:616:16: warning: '{anonymous}::title_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(title) ^ src/custom_object_functions.cpp:636:11: warning: '{anonymous}::shake_screen_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(shake_screen, 4, 4, "shake_screen(int x_offset, int y_offset, int x_velocity, int y_velocity): makes the screen camera shake") ^ src/custom_object_functions.cpp:642:16: warning: '{anonymous}::shake_screen_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(shake_screen) ^ src/custom_object_functions.cpp:644:11: warning: '{anonymous}::radial_current_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(radial_current, 2, 2, "radial_current(int intensity, int radius) -> current object: creates a current generator with the given intensity and radius") ^ src/custom_object_functions.cpp:646:16: warning: '{anonymous}::radial_current_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(radial_current) ^ src/custom_object_functions.cpp:648:11: warning: '{anonymous}::distortion_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(distortion, 3, 3, "distortion(int, int, int): (currently unsupported") ^ src/custom_object_functions.cpp:653:16: warning: '{anonymous}::distortion_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(distortion) ^ src/custom_object_functions.cpp:668:11: warning: '{anonymous}::execute_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(execute, 2, 2, "execute(object context, command cmd): this function will execute the command or list of commands given by cmd on the object given by context. For instance, animation('foo') will set the current object to animation 'foo'. execute(obj, animation('foo')) can be used to set the object given by obj to the animation 'foo'.") ^ src/custom_object_functions.cpp:672:16: warning: '{anonymous}::execute_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(execute) ^ src/custom_object_functions.cpp:711:11: warning: '{anonymous}::spawn_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(spawn, 4, 5, "spawn(string type_id, int midpoint_x, int midpoint_y, int facing, (optional) list of commands cmd): will create a new object of type given by type_id with the given midpoint and facing. Immediately after creation the object will have any commands given by cmd executed on it. The child object will have the spawned event sent to it, and the parent object will have the child_spawned event sent to it.") ^ src/custom_object_functions.cpp:730:16: warning: '{anonymous}::spawn_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(spawn) ^ src/custom_object_functions.cpp:732:11: warning: '{anonymous}::spawn_player_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(spawn_player, 4, 5, "spawn_player(string type_id, int midpoint_x, int midpoint_y, int facing, (optional) list of commands cmd): identical to spawn except that the new object is playable.") ^ src/custom_object_functions.cpp:753:16: warning: '{anonymous}::spawn_player_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(spawn_player) ^ src/custom_object_functions.cpp:755:11: warning: '{anonymous}::object_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(object, 1, 5, "object(string type_id, int midpoint_x, int midpoint_y, int facing, (optional) map properties) -> object: constructs and returns a new object. Note that the difference between this and spawn is that spawn returns a command to actually place the object in the level. object only creates the object and returns it. It may be stored for later use.") ^ src/custom_object_functions.cpp:785:16: warning: '{anonymous}::object_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(object) ^ src/custom_object_functions.cpp:787:11: warning: '{anonymous}::object_playable_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(object_playable, 1, 5, "object_playable(string type_id, int midpoint_x, int midpoint_y, int facing, (optional) map properties) -> object: constructs and returns a new object. Note that the difference between this and spawn is that spawn returns a command to actually place the object in the level. object_playable only creates the playble object and returns it. It may be stored for later use.") ^ src/custom_object_functions.cpp:817:16: warning: '{anonymous}::object_playable_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(object_playable) ^ src/custom_object_functions.cpp:833:11: warning: '{anonymous}::animation_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(animation, 1, 1, "animation(string id): changes the current object's animation to the given animation. time_in_animation is reset to 0.") ^ src/custom_object_functions.cpp:835:16: warning: '{anonymous}::animation_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(animation) ^ src/custom_object_functions.cpp:845:11: warning: '{anonymous}::die_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(die, 0, 0, "die(): causes the current object to die. The object will receive the on_die signal and may even use it to resurrect itself. Use remove_object() to remove an object from play without it receiving on_die.") ^ src/custom_object_functions.cpp:847:16: warning: '{anonymous}::die_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(die) ^ src/custom_object_functions.cpp:861:11: warning: '{anonymous}::facing_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(facing, 1, 1, "facing(int new_facing): changes the current object's facing according to the value of new_facing (1 for right, otherwise left).") ^ src/custom_object_functions.cpp:863:16: warning: '{anonymous}::facing_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(facing) ^ src/custom_object_functions.cpp:879:11: warning: '{anonymous}::set_var_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(set_var, 2, 2, "set_var(string varname, variant value): sets the variable named varname within the current object. Note that you should generally use set(vars.blah, x) rather than set_var('blah', x). The only exception is if you want to create the command and save it for later execution on an object you don't yet have access to -- most useful with the spawn() function.") ^ src/custom_object_functions.cpp:883:16: warning: '{anonymous}::set_var_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(set_var) ^ src/custom_object_functions.cpp:898:11: warning: '{anonymous}::debug_chart_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(debug_chart, 2, 2, "debug_chart(string id, decimal value): plots a sample in a graph") ^ src/custom_object_functions.cpp:900:16: warning: '{anonymous}::debug_chart_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(debug_chart) ^ src/custom_object_functions.cpp:913:11: warning: '{anonymous}::solid_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(solid, 3, 6, "solid(level, int x, int y, (optional)int w=1, (optional) int h=1, (optional) int debug=0) -> boolean: returns true iff the level contains solid space within the given (x,y,w,h) rectangle. If 'debug' is set, then the tested area will be displayed on-screen.") ^ src/custom_object_functions.cpp:929:16: warning: '{anonymous}::solid_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(solid) ^ src/custom_object_functions.cpp:931:11: warning: '{anonymous}::debug_rect_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(debug_rect, 2, 4, "debug_rect(int x, int y, (optional)int w=1, (optional) int h=1) -> Draws, for one frame, a rectangle on the level") ^ src/custom_object_functions.cpp:940:16: warning: '{anonymous}::debug_rect_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(debug_rect) ^ src/custom_object_functions.cpp:942:11: warning: '{anonymous}::plot_x_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(plot_x, 1, 1, "plot_x(int x): plots a vertical debug line at the given position") ^ src/custom_object_functions.cpp:945:16: warning: '{anonymous}::plot_x_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(plot_x) ^ src/custom_object_functions.cpp:947:11: warning: '{anonymous}::plot_y_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(plot_y, 1, 1, "plot_y(int x): plots a horizontal debug line at the given position") ^ src/custom_object_functions.cpp:950:16: warning: '{anonymous}::plot_y_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(plot_y) ^ src/custom_object_functions.cpp:952:11: warning: '{anonymous}::standable_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(standable, 3, 5, "standable(level, int x, int y, (optional)int w=1, (optional) int h=1) -> boolean: returns true iff the level contains standable space within the given (x,y,w,h) rectangle") ^ src/custom_object_functions.cpp:963:16: warning: '{anonymous}::standable_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(standable) ^ src/custom_object_functions.cpp:977:11: warning: '{anonymous}::set_solid_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(set_solid, 4, 5, "set_solid(x1, y1, x2, y2, boolean is_solid=false): modifies the solidity of the level such that the rectangle given by (x1, y1, x2, y2) will have its solidity set to the value of is_solid") ^ src/custom_object_functions.cpp:986:16: warning: '{anonymous}::set_solid_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(set_solid) ^ src/custom_object_functions.cpp:988:11: warning: '{anonymous}::group_size_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(group_size, 2, 2, "group_size(level, int group_id) -> int: gives the number of objects in the object group given by group_id") ^ src/custom_object_functions.cpp:991:16: warning: '{anonymous}::group_size_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(group_size) ^ src/custom_object_functions.cpp:1014:11: warning: '{anonymous}::set_group_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(set_group, 0, 1, "set_group((optional)int group_id): sets the current object to have the given group id, or to be in no group if group_id is not given") ^ src/custom_object_functions.cpp:1021:16: warning: '{anonymous}::set_group_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(set_group) ^ src/custom_object_functions.cpp:1043:11: warning: '{anonymous}::tiles_at_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(tiles_at, 2, 2, "tiles_at(x, y): gives a list of the tiles at the given x, y position") ^ src/custom_object_functions.cpp:1055:16: warning: '{anonymous}::tiles_at_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(tiles_at) ^ src/custom_object_functions.cpp:1057:11: warning: '{anonymous}::scroll_to_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(scroll_to, 1, 1, "scroll_to(object target): scrolls the screen to the target object") ^ src/custom_object_functions.cpp:1059:16: warning: '{anonymous}::scroll_to_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(scroll_to) ^ src/custom_object_functions.cpp:1106:11: warning: '{anonymous}::transient_speech_dialog_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(transient_speech_dialog, 1, -1, "transient_speech_dialog(...): schedules a sequence of speech dialogs to be shown. Arguments may include a list of strings, which contain text. An integer which sets the duration of the dialog. An object which sets the speaker.") ^ src/custom_object_functions.cpp:1135:16: warning: '{anonymous}::transient_speech_dialog_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(transient_speech_dialog) ^ src/custom_object_functions.cpp:1190:11: warning: '{anonymous}::begin_skip_dialog_sequence_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(begin_skip_dialog_sequence, 0, 0, "begin_skip_dialog_sequence(): command that will cause everything up until the next time end_skip_dialog_sequence() is called to be considered a single storyline sequence. If the player selects to skip the sequence between now and then everything up until the call to end_skip_dialog_sequence() will be skipped.") ^ src/custom_object_functions.cpp:1192:16: warning: '{anonymous}::begin_skip_dialog_sequence_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(begin_skip_dialog_sequence) ^ src/custom_object_functions.cpp:1194:11: warning: '{anonymous}::end_skip_dialog_sequence_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(end_skip_dialog_sequence, 0, 0, "end_skip_dialog_sequence(): ends the sequence begun with begin_skip_dialog_sequence().") ^ src/custom_object_functions.cpp:1197:16: warning: '{anonymous}::end_skip_dialog_sequence_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(end_skip_dialog_sequence) ^ src/custom_object_functions.cpp:1401:11: warning: '{anonymous}::speech_dialog_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(speech_dialog, 1, -1, "speech_dialog(...): schedules a sequence of speech dialogs to be shown modally. Arguments may include a list of strings, which contain text. An integer which sets the duration of the dialog. An object which sets the speaker. A string by itself indicates an option that should be shown for the player to select from. A string should be followed by a list of commands that will be executed should the player choose that option.") ^ src/custom_object_functions.cpp:1408:16: warning: '{anonymous}::speech_dialog_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(speech_dialog) ^ src/custom_object_functions.cpp:1410:11: warning: '{anonymous}::paused_speech_dialog_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(paused_speech_dialog, 1, -1, "paused_speech_dialog(...): like speech_dialog(), except the game is paused while the dialog is displayed.") ^ src/custom_object_functions.cpp:1417:16: warning: '{anonymous}::paused_speech_dialog_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(paused_speech_dialog) ^ src/custom_object_functions.cpp:1427:11: warning: '{anonymous}::end_game_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(end_game, 0, 0, "end_game(): exits the game") ^ src/custom_object_functions.cpp:1429:16: warning: '{anonymous}::end_game_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(end_game) ^ src/custom_object_functions.cpp:1451:11: warning: '{anonymous}::achievement_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(achievement, 1, 1, "achievement(id): unlocks the achievement with the given id") ^ src/custom_object_functions.cpp:1453:16: warning: '{anonymous}::achievement_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(achievement) ^ src/custom_object_functions.cpp:1478:11: warning: '{anonymous}::fire_event_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(fire_event, 1, 3, "fire_event((optional) object target, string id, (optional)callable arg): fires the event with the given id. Targets the current object by default, or target if given. Sends arg as the event argument if given") ^ src/custom_object_functions.cpp:1511:16: warning: '{anonymous}::fire_event_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(fire_event) ^ src/custom_object_functions.cpp:1513:11: warning: '{anonymous}::proto_event_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(proto_event, 2, 3, "proto_event(prototype, event_name, (optional) arg): for the given prototype, fire the named event. e.g. proto_event('playable', 'process')") ^ src/custom_object_functions.cpp:1524:16: warning: '{anonymous}::proto_event_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(proto_event) ^ src/custom_object_functions.cpp:1526:11: warning: '{anonymous}::get_object_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(get_object, 2, 2, "get_object(level, string label) -> object: returns the object that is present in the given level that has the given label") ^ src/custom_object_functions.cpp:1534:16: warning: '{anonymous}::get_object_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(get_object) ^ src/custom_object_functions.cpp:1573:11: warning: '{anonymous}::resolve_solid_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(resolve_solid, 1, 4, "resolve_solid(object, int xdir, int ydir, int max_cycles=100): will attempt to move the given object in the direction indicated by xdir/ydir until the object no longer has a solid overlap. Gives up after max_cycles. If called with no arguments other than the object, will try desperately to place the object in the level.") ^ src/custom_object_functions.cpp:1590:16: warning: '{anonymous}::resolve_solid_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(resolve_solid) ^ src/custom_object_functions.cpp:1619:11: warning: '{anonymous}::add_object_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(add_object, 1, 1, "add_object(object): inserts the given object into the level. The object should not currently be persent in the level. The position of the object is tweaked to make sure there are no solid overlaps, however if it is not possible to reasonably place the object without a solid overlap, then the object will not be placed and the object and caller will both receive the event add_object_fail.") ^ src/custom_object_functions.cpp:1628:16: warning: '{anonymous}::add_object_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(add_object) ^ src/custom_object_functions.cpp:1641:11: warning: '{anonymous}::remove_object_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(remove_object, 1, 1, "remove_object(object): removes the given object from the level. If there are no references to the object stored, then the object will immediately be destroyed. However it is possible to keep a reference to the object and even insert it back into the level later using add_object()") ^ src/custom_object_functions.cpp:1649:16: warning: '{anonymous}::remove_object_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(remove_object) ^ src/custom_object_functions.cpp:1675:11: warning: '{anonymous}::teleport_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(teleport, 1, 5, "teleport(string dest_level, (optional)string dest_label, (optional)string transition, (optional)playable): teleports the player to a new level. The level is given by dest_level, with null() for the current level. If dest_label is given then the player will be teleported to the object in the destination level with that label. If transition is given, it names a type of transition (such as 'flip' or 'fade') which indicates the kind of visual effect to use for the transition. If a playable is specified it is placed in the level instead of the current one. If no_move_to_standing is set to true, rather than auto-positioning the player on the ground under/above the target, the player will appear at precisely the position of the destination object - e.g. this is useful if they need to fall out of a pipe or hole coming out of the ceiling.") ^ src/custom_object_functions.cpp:1717:16: warning: '{anonymous}::teleport_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(teleport) ^ src/custom_object_functions.cpp:1732:11: warning: '{anonymous}::schedule_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(schedule, 2, 2, "schedule(int cycles_in_future, list of commands): schedules the given list of commands to be run on the current object the given number of cycles in the future. Note that the object must be valid (not destroyed) and still present in the level for the commands to be run.") ^ src/custom_object_functions.cpp:1736:16: warning: '{anonymous}::schedule_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(schedule) ^ src/custom_object_functions.cpp:1751:11: warning: '{anonymous}::add_water_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(add_water, 4, 5, "add_water(int x1, int y1, int x2, int y2, (optional)[r,g,b,a]=[70,0,0,50]): adds water of the given color in the given rectangle.") ^ src/custom_object_functions.cpp:1772:16: warning: '{anonymous}::add_water_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(add_water) ^ src/custom_object_functions.cpp:1786:11: warning: '{anonymous}::remove_water_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(remove_water, 4, 4, "remove_water(int x1, int y1, int x2, int y2): removes water that has the given rectangular area.") ^ src/custom_object_functions.cpp:1793:16: warning: '{anonymous}::remove_water_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(remove_water) ^ src/custom_object_functions.cpp:1815:11: warning: '{anonymous}::add_wave_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(add_wave, 7, 7, "add_wave(int x, int y, int xvelocity, int height, int length, int delta_height, int delta_length): will add a wave with the given characteristics at the surface of the water above the (x,y) point. (x,y) must be within a body of water. Waves are a visual effect only and may not display at all on slower devices.") ^ src/custom_object_functions.cpp:1824:16: warning: '{anonymous}::add_wave_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(add_wave) ^ src/custom_object_functions.cpp:1826:11: warning: '{anonymous}::rect_current_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(rect_current, 7, 7, "rect_current(int x, int y, int w, int h, int xvelocity, int yvelocity, int strength) -> current generator object: creates a current generator object that has a current with the given parameters. Set the return value of this function to an object's rect_current to attach it to an object and thus place it in the level.") ^ src/custom_object_functions.cpp:1835:16: warning: '{anonymous}::rect_current_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(rect_current) ^ src/custom_object_functions.cpp:1849:11: warning: '{anonymous}::begin_script_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(begin_script, 1, 1, "begin_script(string id): begins the script with the given ID.") ^ src/custom_object_functions.cpp:1851:16: warning: '{anonymous}::begin_script_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(begin_script) ^ src/custom_object_functions.cpp:1860:11: warning: '{anonymous}::end_script_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(end_script, 0, 0, "end_script(): ends the most recent script to have begun.") ^ src/custom_object_functions.cpp:1862:16: warning: '{anonymous}::end_script_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(end_script) ^ src/custom_object_functions.cpp:1864:11: warning: '{anonymous}::circle_light_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(circle_light, 2, 2, "circle_light(object, radius): creates a circle of light with the given radius") ^ src/custom_object_functions.cpp:1868:16: warning: '{anonymous}::circle_light_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(circle_light) ^ src/custom_object_functions.cpp:1883:11: warning: '{anonymous}::add_particles_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(add_particles, 1, 2, "add_particles(string id): adds the particle system with the given id to the object") ^ src/custom_object_functions.cpp:1887:16: warning: '{anonymous}::add_particles_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(add_particles) ^ src/custom_object_functions.cpp:1889:11: warning: '{anonymous}::collides_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(collides, 4, 4, "collides(object a, string area_a, object b, string area_b) -> boolean: returns true iff area_a within object a collides with area_b within object b.") ^ src/custom_object_functions.cpp:1895:16: warning: '{anonymous}::collides_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(collides) ^ src/custom_object_functions.cpp:1897:11: warning: '{anonymous}::collides_with_level_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(collides_with_level, 1, 1, "collides_with_level(object) -> boolean: returns true iff the given object collides with the level.") ^ src/custom_object_functions.cpp:1901:16: warning: '{anonymous}::collides_with_level_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(collides_with_level) ^ src/custom_object_functions.cpp:1921:11: warning: '{anonymous}::blur_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(blur, 0, 3, "blur(int alpha=0, int fade=10, int granularity=1): creates a motion blur for the current object.") ^ src/custom_object_functions.cpp:1926:16: warning: '{anonymous}::blur_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(blur) ^ src/custom_object_functions.cpp:1943:11: warning: '{anonymous}::text_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(text, 1, 4, "text(string text, (optional)string font='default', (optional)int size=2, (optional)bool centered=false): adds text for the current object") ^ src/custom_object_functions.cpp:1966:16: warning: '{anonymous}::text_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(text) ^ src/custom_object_functions.cpp:1993:11: warning: '{anonymous}::textv_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(textv, 1, -1, "textv(object, text_map, ...): Adds text objects to the object. object format: {text:, align: \"left|right|center\", size:, rect:[x,y,w,h]}") ^ src/custom_object_functions.cpp:2004:16: warning: '{anonymous}::textv_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(textv) ^ src/custom_object_functions.cpp:2023:11: warning: '{anonymous}::clear_textv_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(clear_textv, 0, 1, "clear_textv(object): Clears all the custom text from the object") ^ src/custom_object_functions.cpp:2026:16: warning: '{anonymous}::clear_textv_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(clear_textv) ^ src/custom_object_functions.cpp:2028:11: warning: '{anonymous}::swallow_event_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(swallow_event, 0, 0, "swallow_event(): when used in an instance-specific event handler, this causes the event to be swallowed and not passed to the object's main event handler.") ^ src/custom_object_functions.cpp:2030:16: warning: '{anonymous}::swallow_event_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(swallow_event) ^ src/custom_object_functions.cpp:2032:11: warning: '{anonymous}::swallow_mouse_event_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(swallow_mouse_event, 0, 0, "swallow_mouse_event(): when used in an instance-specific event handler, this causes the mouse event to be swallowed and not passed to the next object in the z-order stack.") ^ src/custom_object_functions.cpp:2034:16: warning: '{anonymous}::swallow_mouse_event_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(swallow_mouse_event) ^ src/custom_object_functions.cpp:2061:11: warning: '{anonymous}::set_widgets_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(set_widgets, 1, -1, "set_widgets((optional) obj, widget, ...): Adds a group of widgets to the current object, or the specified object") ^ src/custom_object_functions.cpp:2077:16: warning: '{anonymous}::set_widgets_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(set_widgets) ^ src/custom_object_functions.cpp:2092:11: warning: '{anonymous}::clear_widgets_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(clear_widgets, 1, 1, "clear_widgets(obj): Clears all widgets from the object.") ^ src/custom_object_functions.cpp:2095:16: warning: '{anonymous}::clear_widgets_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(clear_widgets) ^ src/custom_object_functions.cpp:2097:11: warning: '{anonymous}::get_widget_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(get_widget, 2, 2, "get_widget(object obj, string id): returns the widget with the matching id for given object") ^ src/custom_object_functions.cpp:2101:16: warning: '{anonymous}::get_widget_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(get_widget) ^ src/custom_object_functions.cpp:2116:11: warning: '{anonymous}::add_level_module_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(add_level_module, 3, 3, "add_level_module(string lvl, int xoffset, int yoffset): adds the level module with the given level id at the given offset") ^ src/custom_object_functions.cpp:2118:16: warning: '{anonymous}::add_level_module_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(add_level_module) ^ src/custom_object_functions.cpp:2131:11: warning: '{anonymous}::remove_level_module_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(remove_level_module, 1, 1, "remove_level_module(string lvl): removes the given level module") ^ src/custom_object_functions.cpp:2133:16: warning: '{anonymous}::remove_level_module_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(remove_level_module) ^ src/custom_object_functions.cpp:2147:11: warning: '{anonymous}::cosmic_shift_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(cosmic_shift, 2, 2, "cosmic_shift(int xoffset, int yoffet): adjust position of all objects and tiles in the level by the given offset") ^ src/custom_object_functions.cpp:2149:16: warning: '{anonymous}::cosmic_shift_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(cosmic_shift) ^ src/custom_object_functions.cpp:2151:11: warning: '{anonymous}::rotate_rect_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(rotate_rect, 4, 4, "rotate_rect(int center_x, int center_y, int rotation, int[8] rect) -> int[8]: rotates rect and returns the result") ^ src/custom_object_functions.cpp:2180:16: warning: '{anonymous}::rotate_rect_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(rotate_rect) ^ src/custom_object_functions.cpp:2218:11: warning: '{anonymous}::module_client_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(module_client, 0, 0, "module_client(): creates a module client object. The object will immediately start retrieving basic module info from the server. module_pump() should be called on it every frame. Has the following fields:\n is_complete: true iff the current operation is complete and a new operation can be started. When the module_client is first created it automatically starts an operation to get the summary of modules.\n downloaded_modules: a list of downloaded modules that are currently installed.\n module_info: info about the modules available on the server.\n error: contains an error string if the operation resulted in an error, null otherwise.\n kbytes_transferred: number of kbytes transferred in the current operation\n kbytes_total: total number of kbytes to transfer to complete the operation.") ^ src/custom_object_functions.cpp:2220:16: warning: '{anonymous}::module_client_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(module_client) ^ src/custom_object_functions.cpp:2222:11: warning: '{anonymous}::module_pump_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(module_pump, 1, 1, "module_pump(module_client): pumps module client events. Should be called every cycle.") ^ src/custom_object_functions.cpp:2226:16: warning: '{anonymous}::module_pump_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(module_pump) ^ src/custom_object_functions.cpp:2228:11: warning: '{anonymous}::module_install_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(module_install, 2, 2, "module_install(module_client, string module_id): begins downloading the given module and installing it. This should only be called when module_client.is_complete = true (i.e. there is no operation currently underway)") ^ src/custom_object_functions.cpp:2233:16: warning: '{anonymous}::module_install_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(module_install) ^ src/custom_object_functions.cpp:2235:11: warning: '{anonymous}::module_uninstall_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(module_uninstall, 1, 1, "module_uninstall(string module_id): uninstalls the given module") ^ src/custom_object_functions.cpp:2239:16: warning: '{anonymous}::module_uninstall_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(module_uninstall) ^ src/custom_object_functions.cpp:2255:11: warning: '{anonymous}::module_rate_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(module_rate, 3, 4, "module_rate(module_client, string module_id, int num_stars (1-5), (optional) string review): begins a request to rate the given module with the given number of stars, optionally with a review.") ^ src/custom_object_functions.cpp:2268:16: warning: '{anonymous}::module_rate_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(module_rate) ^ src/custom_object_functions.cpp:2296:11: warning: '{anonymous}::module_launch_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(module_launch, 1, 1, "module_launch(string module_id): launch the game using the given module.") ^ src/custom_object_functions.cpp:2299:16: warning: '{anonymous}::module_launch_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(module_launch) ^ src/custom_object_functions.cpp:2301:11: warning: '{anonymous}::eval_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(eval, 1, 1, "eval(str): evaluate the given string as FFL") ^ src/custom_object_functions.cpp:2316:16: warning: '{anonymous}::eval_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(eval) ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/custom_object_functions.cpp > custom_object_functions.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/custom_object_type.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/custom_object_type.hpp:11, from src/custom_object.hpp:13, from src/custom_object_type.cpp:8: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/custom_object_type.cpp:8: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/custom_object_type.cpp:8: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/custom_object_type.cpp:8: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/custom_object_type.cpp:15: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/custom_object_type.cpp:15: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/custom_object_type.cpp:15: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/custom_object_type.cpp: In static member function 'static void custom_object_type::set_file_contents(const string&, const string&)': src/custom_object_type.cpp:577:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(path && *path == file_path || std::count(proto_paths.begin(), proto_paths.end(), file_path)) { ^ src/custom_object_type.cpp: In member function 'void custom_object_type::init_event_handlers(variant, custom_object_type::event_handler_map&, game_logic::function_symbol_table*, const event_handler_map*) const': src/custom_object_type.cpp:649:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(handlers.size() <= event_id) { ^ src/custom_object_type.cpp:653:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(base_handlers && base_handlers->size() > event_id && (*base_handlers)[event_id] && (*base_handlers)[event_id]->str() == value.second.as_string()) { ^ In file included from src/custom_object.hpp:13:0, from src/custom_object_type.cpp:8: src/custom_object_type.hpp: In constructor 'custom_object_type::custom_object_type(variant, const custom_object_type*, const custom_object_type*)': src/custom_object_type.hpp:321:19: warning: 'custom_object_type::platform_offsets_' will be initialized after [-Wreorder] std::vector platform_offsets_; ^ src/custom_object_type.hpp:287:6: warning: 'int custom_object_type::slot_properties_base_' [-Wreorder] int slot_properties_base_; ^ src/custom_object_type.cpp:664:1: warning: when initialized here [-Wreorder] custom_object_type::custom_object_type(variant node, const custom_object_type* base_type, const custom_object_type* old_type) ^ In file included from src/custom_object.hpp:13:0, from src/custom_object_type.cpp:8: src/custom_object_type.hpp:287:6: warning: 'custom_object_type::slot_properties_base_' will be initialized after [-Wreorder] int slot_properties_base_; ^ src/custom_object_type.hpp:277:7: warning: 'bool custom_object_type::use_absolute_screen_coordinates_' [-Wreorder] bool use_absolute_screen_coordinates_; ^ src/custom_object_type.cpp:664:1: warning: when initialized here [-Wreorder] custom_object_type::custom_object_type(variant node, const custom_object_type* base_type, const custom_object_type* old_type) ^ src/custom_object_type.cpp:960:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != fn.num_elements(); ++n) { ^ src/custom_object_type.cpp: In member function 'game_logic::const_formula_ptr custom_object_type::get_event_handler(int) const': src/custom_object_type.cpp:994:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(event >= event_handlers_.size()) { ^ src/custom_object_type.cpp: At global scope: src/custom_object_type.cpp:1081:78: warning: 'BENCHMARK_VAR_custom_object_type_load' defined but not used [-Wunused-variable] src/custom_object_type.cpp:1100:87: warning: 'BENCHMARK_VAR_custom_object_type_frogatto_load' defined but not used [-Wunused-variable] src/custom_object_type.cpp:1109:82: warning: 'UTILITY_VAR_object_definition' defined but not used [-Wunused-variable] src/custom_object_type.cpp:1124:81: warning: 'UTILITY_VAR_test_all_objects' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/custom_object_type.cpp > custom_object_type.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/debug_console.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/custom_object_type.hpp:11, from src/custom_object.hpp:13, from src/debug_console.cpp:10: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/debug_console.cpp:10: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/debug_console.cpp:10: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/debug_console.cpp:10: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/editor.hpp:13, from src/debug_console.cpp:14: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/editor.hpp:13, from src/debug_console.cpp:14: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/editor.hpp:13, from src/debug_console.cpp:14: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ In file included from src/debug_console.hpp:10:0, from src/debug_console.cpp:19: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ src/debug_console.cpp: In function 'void debug_console::draw_graph()': src/debug_console.cpp:159:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(index < p.second.samples.size()) { ^ src/debug_console.cpp: In member function 'void debug_console::console_dialog::on_move_cursor()': src/debug_console.cpp:299:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(text_editor_->cursor_row() < text_editor_->get_data().size()-1) { ^ src/debug_console.cpp:303:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(text_editor_->cursor_col() < Prompt.size() && text_editor_->get_data().back().size() >= Prompt.size()) { ^ src/debug_console.cpp: In member function 'virtual bool debug_console::console_dialog::handle_event(const SDL_Event&, bool)': src/debug_console.cpp:396:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] } else if(history_pos_ > history_.size()) { ^ src/debug_console.cpp: In member function 'void debug_console::console_dialog::load_history()': src/debug_console.cpp:413:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(history_pos_ < history_.size()) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/debug_console.cpp > debug_console.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/dialog.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/dialog.hpp:17, from src/dialog.cpp:18: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/dialog.hpp:17, from src/dialog.cpp:18: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/dialog.hpp:17:0, from src/dialog.cpp:18: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/dialog.cpp:26:0: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/dialog.cpp:27: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/dialog.cpp:27: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/dialog.cpp:27: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/dialog.cpp > dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/draw_number.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/draw_number.cpp > draw_number.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/draw_scene.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/dialog.hpp:17, from src/debug_console.hpp:7, from src/draw_scene.cpp:12: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/dialog.hpp:17, from src/debug_console.hpp:7, from src/draw_scene.cpp:12: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/dialog.hpp:17:0, from src/debug_console.hpp:7, from src/draw_scene.cpp:12: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/debug_console.hpp:9, from src/draw_scene.cpp:12: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/debug_console.hpp:9, from src/draw_scene.cpp:12: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/debug_console.hpp:9, from src/draw_scene.cpp:12: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/debug_console.hpp:9, from src/draw_scene.cpp:12: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ In file included from src/debug_console.hpp:10:0, from src/draw_scene.cpp:12: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ src/draw_scene.cpp: In function 'bool update_camera_position(const level&, screen_position&, const entity*, bool)': src/draw_scene.cpp:202:83: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(v.size() == 1 || right - left < screen_width/lvl.zoom_level() - BorderSize && bottom - top < screen_height/lvl.zoom_level() - BorderSize) { ^ src/draw_scene.cpp: In function 'void render_scene(const level&, screen_position&, const entity*, bool)': src/draw_scene.cpp:334:22: warning: unused variable 'fb' [-Wunused-variable] const SDL_Surface* fb = SDL_GetVideoSurface(); ^ src/draw_scene.cpp:472:22: warning: unused variable 'fb' [-Wunused-variable] const SDL_Surface* fb = SDL_GetVideoSurface(); ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/draw_scene.cpp > draw_scene.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/draw_tile.cpp In file included from src/draw_tile.cpp:3:0: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/draw_tile.cpp > draw_tile.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/editor.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/border_widget.hpp:6, from src/editor.cpp:12: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/border_widget.hpp:6, from src/editor.cpp:12: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/border_widget.hpp:6:0, from src/editor.cpp:12: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/character_editor_dialog.hpp:9:0, from src/editor.cpp:14: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ In file included from src/custom_object.hpp:15:0, from src/custom_object_dialog.hpp:6, from src/editor.cpp:18: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/editor.hpp:13, from src/custom_object_dialog.hpp:9, from src/editor.cpp:18: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/editor.hpp:13, from src/custom_object_dialog.hpp:9, from src/editor.cpp:18: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/editor.hpp:13, from src/custom_object_dialog.hpp:9, from src/editor.cpp:18: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/editor.cpp: In member function 'void editor_menu_dialog::execute_menu_item(const std::vector&, int)': src/editor.cpp:101:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(n >= 0 && n < items.size()) { ^ src/editor.cpp: In member function 'void editor_mode_dialog::refresh_selection()': src/editor.cpp:451:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != tool_borders_.size(); ++n) { ^ In file included from src/custom_object_dialog.hpp:9:0, from src/editor.cpp:18: src/editor.hpp: In constructor 'editor::editor(const char*)': src/editor.hpp:294:6: warning: 'editor::cur_object_' will be initialized after [-Wreorder] int cur_object_; ^ src/editor.hpp:292:6: warning: 'int editor::cur_hex_tileset_' [-Wreorder] int cur_hex_tileset_; ^ src/editor.cpp:751:1: warning: when initialized here [-Wreorder] editor::editor(const char* level_cfg) ^ In file included from src/custom_object_dialog.hpp:9:0, from src/editor.cpp:18: src/editor.hpp:343:20: warning: 'editor::prev_mousey_' will be initialized after [-Wreorder] int prev_mousex_, prev_mousey_; ^ src/editor.hpp:275:6: warning: 'int editor::xres_' [-Wreorder] int xres_, yres_; ^ src/editor.cpp:751:1: warning: when initialized here [-Wreorder] editor::editor(const char* level_cfg) ^ src/editor.cpp: In member function 'void editor::process_ghost_objects()': src/editor.cpp:876:15: warning: unused variable 'num_chars_before' [-Wunused-variable] const size_t num_chars_before = lvl_->get_chars().size(); ^ src/editor.cpp: In member function 'void editor::edit_level()': src/editor.cpp:1010:6: warning: unused variable 'selected_tile' [-Wunused-variable] int selected_tile = 0; ^ src/editor.cpp: In member function 'bool editor::handle_event(const SDL_Event&, bool)': src/editor.cpp:1033:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] const bool dialog_started_with_focus = code_dialog_ && code_dialog_->has_focus() || current_dialog_ && current_dialog_->has_focus(); ^ src/editor.cpp: In member function 'void editor::process()': src/editor.cpp:1202:69: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(g_variable_editing_index >= 0 && g_variable_editing_index < items.size(), "Variable editing points invalid: " << g_variable_editing_index << " / " << items.size()); ^ src/editor.cpp:1158:15: warning: unused variable 'keystate' [-Wunused-variable] const Uint8* keystate = SDL_GetKeyState(NULL); ^ src/editor.cpp:1177:12: warning: unused variable 'selectx' [-Wunused-variable] const int selectx = round_tile_size(xpos_ + mousex*zoom_); ^ src/editor.cpp:1178:12: warning: unused variable 'selecty' [-Wunused-variable] const int selecty = round_tile_size(ypos_ + mousey*zoom_); ^ src/editor.cpp: In member function 'void editor::handle_mouse_button_down(const SDL_MouseButtonEvent&)': src/editor.cpp:1875:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != next.num_elements(); ++n) { ^ src/editor.cpp:1900:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != all_characters().size(); ++n) { ^ src/editor.cpp:1923:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != all_tilesets().size(); ++n) { ^ src/editor.cpp:1975:68: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(g_variable_editing_index >= 0 && g_variable_editing_index < points.size(), "INVALID VALUE WHEN EDITING POINTS: " << g_variable_editing_index << " / " << points.size()); ^ src/editor.cpp: In member function 'void editor::handle_mouse_button_up(const SDL_MouseButtonEvent&)': src/editor.cpp:2122:13: warning: unused variable 'ctrl_pressed' [-Wunused-variable] const bool ctrl_pressed = (SDL_GetModState()&(KMOD_LCTRL|KMOD_RCTRL)) != 0; ^ src/editor.cpp:2123:13: warning: unused variable 'shift_pressed' [-Wunused-variable] const bool shift_pressed = (SDL_GetModState()&(KMOD_LSHIFT|KMOD_RSHIFT)) != 0; ^ src/editor.cpp:2125:21: warning: unused variable 'buttons' [-Wunused-variable] const unsigned int buttons = get_mouse_state(mousex, mousey); ^ src/editor.cpp: In member function 'void editor::set_tileset(int)': src/editor.cpp:2692:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] } else if(cur_tileset_ >= tilesets.size()) { ^ src/editor.cpp: In member function 'void editor::set_hex_tileset(int)': src/editor.cpp:2708:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] } else if(cur_hex_tileset_ >= hex::hex_object::get_hex_tiles().size()) { ^ src/editor.cpp: In member function 'void editor::draw_gui() const': src/editor.cpp:3340:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != next.num_elements(); ++n) { ^ src/editor.cpp: In member function 'void editor::end_command_group()': src/editor.cpp:3487:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index >= undo_.size()) { ^ src/editor.cpp:3493:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = index; n != undo_.size(); ++n) { ^ src/editor.cpp: In member function 'void editor::create_new_object()': src/editor.cpp:3610:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != all_characters().size(); ++n) { ^ src/editor.cpp: In member function 'void editor::set_code_file()': src/editor.cpp:3769:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cur_tileset_ >= 0 && cur_tileset_ < tilesets.size()) { ^ src/editor.cpp: At global scope: src/editor.cpp:359:13: warning: '{anonymous}::ModeStrings' defined but not used [-Wunused-variable] const char* ModeStrings[] = {"Tiles", "Objects", "Properties",}; ^ src/editor.cpp:630:5: warning: '{anonymous}::selected_property' defined but not used [-Wunused-variable] int selected_property = 0; ^ src/editor.cpp:3584:6: warning: 'void {anonymous}::do_draw_scene()' defined but not used [-Wunused-function] void do_draw_scene() { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/editor.cpp > editor.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/editor_level_properties_dialog.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/button.hpp:19, from src/editor_level_properties_dialog.cpp:10: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/button.hpp:19, from src/editor_level_properties_dialog.cpp:10: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/button.hpp:19:0, from src/editor_level_properties_dialog.cpp:10: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/editor.hpp:13, from src/editor_level_properties_dialog.cpp:12: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/editor.hpp:13, from src/editor_level_properties_dialog.cpp:12: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/editor.hpp:13, from src/editor_level_properties_dialog.cpp:12: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/editor.hpp:13, from src/editor_level_properties_dialog.cpp:12: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ In file included from src/editor_level_properties_dialog.hpp:10:0, from src/editor_level_properties_dialog.cpp:14: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ src/editor_level_properties_dialog.cpp: In member function 'void editor_dialogs::editor_level_properties_dialog::execute_change_background(const std::vector >&, int)': src/editor_level_properties_dialog.cpp:179:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index < 0 || index >= choices.size()) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/editor_level_properties_dialog.cpp > editor_level_properties_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/editor_module_properties_dialog.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/button.hpp:19, from src/editor_module_properties_dialog.cpp:10: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/button.hpp:19, from src/editor_module_properties_dialog.cpp:10: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/button.hpp:19:0, from src/editor_module_properties_dialog.cpp:10: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/editor.hpp:13, from src/editor_module_properties_dialog.cpp:12: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/editor.hpp:13, from src/editor_module_properties_dialog.cpp:12: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/editor.hpp:13, from src/editor_module_properties_dialog.cpp:12: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/editor.hpp:13, from src/editor_module_properties_dialog.cpp:12: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ In file included from src/editor_module_properties_dialog.hpp:11:0, from src/editor_module_properties_dialog.cpp:14: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ In file included from src/editor_module_properties_dialog.cpp:14:0: src/editor_module_properties_dialog.hpp: In constructor 'editor_dialogs::editor_module_properties_dialog::editor_module_properties_dialog(editor&)': src/editor_module_properties_dialog.hpp:36:10: warning: 'editor_dialogs::editor_module_properties_dialog::editor_' will be initialized after [-Wreorder] editor& editor_; ^ src/editor_module_properties_dialog.hpp:35:7: warning: 'bool editor_dialogs::editor_module_properties_dialog::new_mod_' [-Wreorder] bool new_mod_; ^ src/editor_module_properties_dialog.cpp:51:1: warning: when initialized here [-Wreorder] editor_module_properties_dialog::editor_module_properties_dialog(editor& e) ^ In file included from src/editor_module_properties_dialog.cpp:14:0: src/editor_module_properties_dialog.hpp: In constructor 'editor_dialogs::editor_module_properties_dialog::editor_module_properties_dialog(editor&, const string&)': src/editor_module_properties_dialog.hpp:36:10: warning: 'editor_dialogs::editor_module_properties_dialog::editor_' will be initialized after [-Wreorder] editor& editor_; ^ src/editor_module_properties_dialog.hpp:35:7: warning: 'bool editor_dialogs::editor_module_properties_dialog::new_mod_' [-Wreorder] bool new_mod_; ^ src/editor_module_properties_dialog.cpp:58:1: warning: when initialized here [-Wreorder] editor_module_properties_dialog::editor_module_properties_dialog(editor& e, const std::string& modname) ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/editor_module_properties_dialog.cpp > editor_module_properties_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/entity.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/custom_object_type.hpp:11, from src/custom_object.hpp:13, from src/entity.cpp:4: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/entity.cpp:4: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/entity.cpp:4: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/entity.cpp:4: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/entity.cpp:7: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/entity.cpp:7: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/entity.cpp:7: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ In file included from src/custom_object.hpp:16:0, from src/entity.cpp:4: src/entity.hpp: In constructor 'entity::entity(variant)': src/entity.hpp:352:6: warning: 'entity::platform_motion_x_' will be initialized after [-Wreorder] int platform_motion_x_; ^ src/entity.hpp:328:7: warning: 'bool entity::mouse_over_entity_' [-Wreorder] bool mouse_over_entity_; ^ src/entity.cpp:14:1: warning: when initialized here [-Wreorder] entity::entity(variant node) ^ In file included from src/custom_object.hpp:16:0, from src/entity.cpp:4: src/entity.hpp:330:7: warning: 'entity::being_dragged_' will be initialized after [-Wreorder] bool being_dragged_; ^ src/entity.hpp:329:8: warning: 'Uint8 entity::mouse_button_state_' [-Wreorder] Uint8 mouse_button_state_; ^ src/entity.cpp:14:1: warning: when initialized here [-Wreorder] entity::entity(variant node) ^ In file included from src/custom_object.hpp:16:0, from src/entity.cpp:4: src/entity.hpp: In constructor 'entity::entity(int, int, bool)': src/entity.hpp:352:6: warning: 'entity::platform_motion_x_' will be initialized after [-Wreorder] int platform_motion_x_; ^ src/entity.hpp:328:7: warning: 'bool entity::mouse_over_entity_' [-Wreorder] bool mouse_over_entity_; ^ src/entity.cpp:33:1: warning: when initialized here [-Wreorder] entity::entity(int x, int y, bool face_right) ^ In file included from src/custom_object.hpp:16:0, from src/entity.cpp:4: src/entity.hpp:330:7: warning: 'entity::being_dragged_' will be initialized after [-Wreorder] bool being_dragged_; ^ src/entity.hpp:329:8: warning: 'Uint8 entity::mouse_button_state_' [-Wreorder] Uint8 mouse_button_state_; ^ src/entity.cpp:33:1: warning: when initialized here [-Wreorder] entity::entity(int x, int y, bool face_right) ^ src/entity.cpp: In function 'bool zorder_compare(const entity_ptr&, const entity_ptr&)': src/entity.cpp:373:31: warning: suggest parentheses around '&&' within '||' [-Wparentheses] a->zorder() == b->zorder() && a->zsub_order() < b->zsub_order() || ^ src/entity.cpp:374:69: warning: suggest parentheses around '&&' within '||' [-Wparentheses] a->zorder() == b->zorder() && a->zsub_order() == b->zsub_order() && a->midpoint().y < b->midpoint().y || ^ src/entity.cpp:375:107: warning: suggest parentheses around '&&' within '||' [-Wparentheses] a->zorder() == b->zorder() && a->zsub_order() == b->zsub_order() && a->midpoint().y == b->midpoint().y && a.get() < b.get(); ^ src/entity.cpp:378:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses] a->zorder() == b->zorder() && a->zsub_order() < b->zsub_order() || ^ src/entity.cpp:379:68: warning: suggest parentheses around '&&' within '||' [-Wparentheses] a->zorder() == b->zorder() && a->zsub_order() == b->zsub_order() && a->midpoint().y > b->midpoint().y || ^ src/entity.cpp:380:106: warning: suggest parentheses around '&&' within '||' [-Wparentheses] a->zorder() == b->zorder() && a->zsub_order() == b->zsub_order() && a->midpoint().y == b->midpoint().y && a.get() > b.get(); ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/entity.cpp > entity.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/file_chooser_dialog.cpp src/file_chooser_dialog.cpp:41:2: warning: multi-line comment [-Wcomment] // on windows a path is absolute if it starts with \\, x:\, \ ^ In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/button.hpp:19, from src/file_chooser_dialog.cpp:15: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/button.hpp:19, from src/file_chooser_dialog.cpp:15: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/button.hpp:19:0, from src/file_chooser_dialog.cpp:15: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/file_chooser_dialog.cpp:18:0: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/dropdown_widget.hpp:13:0, from src/file_chooser_dialog.cpp:19: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ In file included from src/file_chooser_dialog.cpp:20:0: src/file_chooser_dialog.hpp: In constructor 'gui::file_chooser_dialog::file_chooser_dialog(int, int, int, int, const filter_list&, bool, const string&)': src/file_chooser_dialog.hpp:51:7: warning: 'gui::file_chooser_dialog::file_open_dialog_' will be initialized after [-Wreorder] bool file_open_dialog_; ^ src/file_chooser_dialog.hpp:50:6: warning: 'int gui::file_chooser_dialog::filter_selection_' [-Wreorder] int filter_selection_; ^ src/file_chooser_dialog.cpp:84:1: warning: when initialized here [-Wreorder] file_chooser_dialog::file_chooser_dialog(int x, int y, int w, int h, const filter_list& filters, bool dir_only, const std::string& default_path) ^ src/file_chooser_dialog.cpp: At global scope: src/file_chooser_dialog.cpp:411:53: warning: 'TEST_VAR_compute_relative_paths_test' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/file_chooser_dialog.cpp > file_chooser_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/filesystem.cpp src/filesystem.cpp: In function 'void sys::{anonymous}::file_mod_worker_thread_fn()': src/filesystem.cpp:875:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != new_files.size(); ++n) { ^ src/filesystem.cpp: At global scope: src/filesystem.cpp:993:45: warning: 'TEST_VAR_absolute_path_test1' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/filesystem.cpp > filesystem.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/font.cpp src/font.cpp: In member function 'bool font::{anonymous}::CacheKey::operator<(const font::{anonymous}::CacheKey&) const': src/font.cpp:54:42: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return text < k.text || text == k.text && color < k.color || ^ src/font.cpp:55:45: warning: suggest parentheses around '&&' within '||' [-Wparentheses] text == k.text && color == k.color && font_size < k.font_size; ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/font.cpp > font.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/formula.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/formula.cpp:27: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/formula_callable_utils.hpp:9:0, from src/formula_function.hpp:26, from src/formula.hpp:22, from src/formula.cpp:27: src/formula_callable.hpp: In constructor 'game_logic::map_formula_callable::map_formula_callable(const std::map, variant>&)': src/formula_callable.hpp:205:26: warning: 'game_logic::map_formula_callable::fallback_' will be initialized after [-Wreorder] const formula_callable* fallback_; ^ src/formula_callable.hpp:204:32: warning: 'std::map, variant> game_logic::map_formula_callable::values_' [-Wreorder] std::map values_; ^ src/formula.cpp:112:2: warning: when initialized here [-Wreorder] map_formula_callable::map_formula_callable( ^ src/formula.cpp: In member function 'virtual variant game_logic::{anonymous}::list_comprehension_expression::execute(const game_logic::formula_callable&) const': src/formula.cpp:247:21: warning: unused variable 'arg' [-Wunused-variable] foreach(const std::string& arg, generator_names_) { ^ src/formula.cpp:254:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != indexes.size(); ++n) { ^ src/formula.cpp: In static member function 'static bool game_logic::{anonymous}::list_comprehension_expression::increment_vec(std::vector&, const std::vector&)': src/formula.cpp:280:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(index != v.size()) { ^ src/formula.cpp: In member function 'virtual variant game_logic::{anonymous}::slice_square_bracket_expression::execute(const game_logic::formula_callable&) const': src/formula.cpp:634:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(begin_index > left.num_elements()) { ^ src/formula.cpp:638:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(end_index > left.num_elements()) { ^ src/formula.cpp: In member function 'virtual variant game_logic::{anonymous}::operator_expression::execute(const game_logic::formula_callable&) const': src/formula.cpp:793:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != right.num_elements(); ++n) { ^ src/formula.cpp: In member function 'virtual variant game_logic::{anonymous}::where_variables::get_value_by_slot(int) const': src/formula.cpp:885:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(slot < results_cache_.size() && results_cache_[slot].is_null() == false) { ^ src/formula.cpp:889:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(results_cache_.size() <= slot) { ^ src/formula.cpp: In function 'void game_logic::{anonymous}::parse_where_clauses(const variant&, const formula_tokenizer::token*, const formula_tokenizer::token*, game_logic::{anonymous}::expr_table_ptr, game_logic::function_symbol_table*, const game_logic::formula_callable_definition*)': src/formula.cpp:1222:15: warning: unused variable 'original_i1_cached' [-Wunused-variable] const token *original_i1_cached = i1; ^ src/formula.cpp: In function 'game_logic::expression_ptr game_logic::{anonymous}::parse_function_def(const variant&, const formula_tokenizer::token*&, const formula_tokenizer::token*, game_logic::function_symbol_table*, const game_logic::formula_callable_definition*)': src/formula.cpp:1427:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != types.size(); ++n) { ^ src/formula.cpp: In function 'game_logic::expression_ptr game_logic::{anonymous}::parse_expression_internal(const variant&, const formula_tokenizer::token*, const formula_tokenizer::token*, game_logic::function_symbol_table*, const game_logic::formula_callable_definition*, bool*)': src/formula.cpp:1788:13: warning: unused variable 'is_dot' [-Wunused-variable] const bool is_dot = op_name == "."; ^ src/formula.cpp: In static member function 'static game_logic::formula_ptr game_logic::formula::create_optional_formula(const variant&, game_logic::function_symbol_table*, const game_logic::formula_callable_definition*)': src/formula.cpp:1804:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(val.is_null() || val.is_string() && val.as_string().empty()) { ^ src/formula.cpp: In member function 'void game_logic::formula::check_brackets_match(const std::vector&) const': src/formula.cpp:1933:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != tokens.size(); ++n) { ^ src/formula.cpp:1998:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(erase_size <= error_line.size(), "ERROR WHILE PARSING ERROR MESSAGE"); ^ src/formula.cpp: At global scope: src/formula.cpp:2124:47: warning: 'game_logic::TEST_VAR_recursive_call_lambda' defined but not used [-Wunused-variable] src/formula.cpp:2128:39: warning: 'game_logic::TEST_VAR_formula_slice' defined but not used [-Wunused-variable] src/formula.cpp:2135:36: warning: 'game_logic::TEST_VAR_formula_in' defined but not used [-Wunused-variable] src/formula.cpp:2140:36: warning: 'game_logic::TEST_VAR_formula_fn' defined but not used [-Wunused-variable] src/formula.cpp:2145:37: warning: 'game_logic::TEST_VAR_array_index' defined but not used [-Wunused-variable] src/formula.cpp:2151:40: warning: 'game_logic::TEST_VAR_dot_precedence' defined but not used [-Wunused-variable] src/formula.cpp:2168:39: warning: 'game_logic::TEST_VAR_short_circuit' defined but not used [-Wunused-variable] src/formula.cpp:2176:41: warning: 'game_logic::TEST_VAR_formula_decimal' defined but not used [-Wunused-variable] src/formula.cpp:2185:40: warning: 'game_logic::TEST_VAR_formula_quotes' defined but not used [-Wunused-variable] src/formula.cpp:2189:43: warning: 'game_logic::TEST_VAR_map_to_maps_FAILS' defined but not used [-Wunused-variable] src/formula.cpp:2193:48: warning: 'game_logic::TEST_VAR_formula_test_recursion' defined but not used [-Wunused-variable] src/formula.cpp:2204:51: warning: 'game_logic::TEST_VAR_formula_test_recurse_sort' defined but not used [-Wunused-variable] src/formula.cpp:2215:43: warning: 'game_logic::TEST_VAR_formula_where_map' defined but not used [-Wunused-variable] src/formula.cpp:2219:55: warning: 'game_logic::TEST_VAR_formula_function_default_args' defined but not used [-Wunused-variable] src/formula.cpp:2224:52: warning: 'game_logic::TEST_VAR_formula_list_comprehension' defined but not used [-Wunused-variable] src/formula.cpp:2234:87: warning: 'game_logic::BENCHMARK_VAR_formula_list_comprehension_bench' defined but not used [-Wunused-variable] src/formula.cpp:2243:72: warning: 'game_logic::BENCHMARK_VAR_formula_map_bench' defined but not used [-Wunused-variable] src/formula.cpp:2252:75: warning: 'game_logic::BENCHMARK_VAR_formula_recurse_sort' defined but not used [-Wunused-variable] src/formula.cpp:2276:72: warning: 'game_logic::BENCHMARK_VAR_formula_recursion' defined but not used [-Wunused-variable] src/formula.cpp:2296:65: warning: 'game_logic::BENCHMARK_VAR_formula_if' defined but not used [-Wunused-variable] src/formula.cpp:2305:66: warning: 'game_logic::BENCHMARK_VAR_formula_add' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/formula.cpp > formula.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/formula_callable_definition.cpp src/formula_callable_definition.cpp: In member function 'virtual game_logic::formula_callable_definition::entry* game_logic::{anonymous}::simple_definition::get_entry(int)': src/formula_callable_definition.cpp:46:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(slot < 0 || slot >= entries_.size()) { ^ src/formula_callable_definition.cpp: In member function 'virtual const game_logic::formula_callable_definition::entry* game_logic::{anonymous}::simple_definition::get_entry(int) const': src/formula_callable_definition.cpp:60:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(slot < 0 || slot >= entries_.size()) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/formula_callable_definition.cpp > formula_callable_definition.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/formula_constants.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/button.hpp:19, from src/key_button.hpp:6, from src/formula_constants.cpp:9: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/button.hpp:19, from src/key_button.hpp:6, from src/formula_constants.cpp:9: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/button.hpp:19:0, from src/key_button.hpp:6, from src/formula_constants.cpp:9: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/formula_constants.cpp > formula_constants.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/formula_function.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/dialog.hpp:17, from src/formula_function.cpp:23: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/dialog.hpp:17, from src/formula_function.cpp:23: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/dialog.hpp:17:0, from src/formula_function.cpp:23: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/debug_console.hpp:9, from src/formula_function.cpp:24: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/debug_console.hpp:9, from src/formula_function.cpp:24: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/debug_console.hpp:9, from src/formula_function.cpp:24: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/debug_console.hpp:9, from src/formula_function.cpp:24: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ In file included from src/debug_console.hpp:10:0, from src/formula_function.cpp:24: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ src/formula_function.cpp: In function 'std::__cxx11::string game_logic::pinpoint_location(variant, std::__cxx11::basic_string::const_iterator, std::__cxx11::basic_string::const_iterator)': src/formula_function.cpp:139:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(end > begin && pos + (end - begin) < line.size()) { ^ src/formula_function.cpp: In member function 'void game_logic::{anonymous}::ffl_cache::store(const variant&, const variant&) const': src/formula_function.cpp:183:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cache_.size() == max_entries_) { ^ src/formula_function.cpp: In member function 'virtual variant game_logic::{anonymous}::if_function::execute(const game_logic::formula_callable&) const': src/formula_function.cpp:250:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(i >= args().size()) { ^ src/formula_function.cpp: In member function 'virtual variant game_logic::{anonymous}::fold_function::execute(const game_logic::formula_callable&) const': src/formula_function.cpp:618:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 1; n < list.num_elements(); ++n) { ^ src/formula_function.cpp: In member function 'virtual variant game_logic::{anonymous}::zip_function::execute(const game_logic::formula_callable&) const': src/formula_function.cpp:683:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != keys.num_elements(); n++) { ^ src/formula_function.cpp: In member function 'virtual variant game_logic::{anonymous}::transform_function::execute(const game_logic::formula_callable&) const': src/formula_function.cpp:1152:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(size_t n = 0; n != nitems; ++n) { ^ src/formula_function.cpp: In member function 'virtual variant game_logic::{anonymous}::dialog_function::execute(const game_logic::formula_callable&) const': src/formula_function.cpp:1392:7: warning: unused variable 'modal' [-Wunused-variable] bool modal = args().size() == 3 && args()[2]->evaluate(variables).as_bool(); ^ src/formula_function.cpp: In member function 'virtual variant game_logic::{anonymous}::index_function::execute(const game_logic::formula_callable&) const': src/formula_function.cpp:1420:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n < li.num_elements(); n++) { ^ src/formula_function.cpp: In member function 'virtual variant game_logic::{anonymous}::debug_function::execute(const game_logic::formula_callable&) const': src/formula_function.cpp:1948:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != args().size(); ++n) { ^ src/formula_function.cpp: In member function 'boost::intrusive_ptr game_logic::formula_function_expression::calculate_args_callable(const game_logic::formula_callable&) const': src/formula_function.cpp:2069:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != arg_names_.size(); ++n) { ^ src/formula_function.cpp: In member function 'game_logic::formula_function_expression_ptr game_logic::formula_function::generate_function_expression(const std::vector >&) const': src/formula_function.cpp:2139:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(index >= 0 && index < default_args_.size(), "INVALID INDEX INTO DEFAULT ARGS: " << index << " / " << default_args_.size()); ^ src/formula_function.cpp: In member function 'virtual void game_logic::function_expression::set_debug_info(const variant&, std::__cxx11::basic_string::const_iterator, std::__cxx11::basic_string::const_iterator)': src/formula_function.cpp:2320:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(min_args_ >= 0 && args_.size() < static_cast(min_args_) || ^ src/formula_function.cpp: In member function 'virtual variant game_logic::hex_location_function::execute(const game_logic::formula_callable&) const': src/formula_function.cpp:2424:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < d.num_elements(); i++) { ^ In file included from src/formula_function.cpp:39:0: src/pathfinding.hpp: In instantiation of 'pathfinding::graph_node::graph_node(const N&) [with N = variant; T = decimal]': src/pathfinding.hpp:129:109: required from here src/pathfinding.hpp:83:4: warning: 'pathfinding::graph_node::src_' will be initialized after [-Wreorder] N src_; ^ src/pathfinding.hpp:82:4: warning: 'decimal pathfinding::graph_node::f_' [-Wreorder] T f_, g_, h_; ^ src/pathfinding.hpp:42:2: warning: when initialized here [-Wreorder] graph_node(const N& src) ^ src/formula_function.cpp: At global scope: src/formula_function.cpp:2468:42: warning: 'TEST_VAR_modulo_operation' defined but not used [-Wunused-variable] src/formula_function.cpp:2475:42: warning: 'TEST_VAR_flatten_function' defined but not used [-Wunused-variable] src/formula_function.cpp:2482:39: warning: 'TEST_VAR_sqrt_function' defined but not used [-Wunused-variable] src/formula_function.cpp:2490:38: warning: 'TEST_VAR_map_function' defined but not used [-Wunused-variable] src/formula_function.cpp:2494:46: warning: 'TEST_VAR_where_scope_function' defined but not used [-Wunused-variable] src/formula_function.cpp:2499:67: warning: 'BENCHMARK_VAR_map_function' defined but not used [-Wunused-variable] src/formula_function.cpp:2345:11: warning: 'game_logic::hex_get_tile_at_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(hex_get_tile_at, 3, 3, "hex_get_tile_at(hexmap, x, y) -> hex_tile object: Finds the hex tile at the given level co-ordinates") ^ src/formula_function.cpp:2354:16: warning: 'game_logic::hex_get_tile_at_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(hex_get_tile_at) ^ src/formula_function.cpp:2356:11: warning: 'game_logic::pixel_to_tile_coords_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(pixel_to_tile_coords, 1, 2, "pixel_to_tile_coords(args) -> [x,y]: Gets the tile at the pixel position given in the arguments. The position" ^ src/formula_function.cpp:2373:16: warning: 'game_logic::pixel_to_tile_coords_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(pixel_to_tile_coords) ^ src/formula_function.cpp:2375:11: warning: 'game_logic::tile_to_pixel_coords_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(tile_to_pixel_coords, 2, 3, "tile_to_pixel_coords(x, y, (opt)string) -> [x,y]: Gets the center pixel co-ordinates of a given tile co-ordinate." ^ src/formula_function.cpp:2406:16: warning: 'game_logic::tile_to_pixel_coords_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(tile_to_pixel_coords) ^ src/formula_function.cpp:2408:11: warning: 'game_logic::hex_pixel_coords_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(hex_pixel_coords, 2, 2, "hex_pixel_coords(x,y) -> [x,y]: Converts a pair of pixel co-ordinates to the corresponding tile co-ordinate.") ^ src/formula_function.cpp:2416:16: warning: 'game_logic::hex_pixel_coords_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(hex_pixel_coords) ^ src/formula_function.cpp:2418:11: warning: 'game_logic::hex_location_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(hex_location, 3, 3, "hex_location(x,y,string dir) -> [x,y]: calculates the co-ordinates of the tile in the given direction.") ^ src/formula_function.cpp:2435:16: warning: 'game_logic::hex_location_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(hex_location) ^ src/formula_function.cpp:2437:11: warning: 'game_logic::hex_get_tile_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(hex_get_tile, 1, 1, "hex_get_tile(string) -> hex_tile object: Returns a hex tile object with the given name.") ^ src/formula_function.cpp:2440:16: warning: 'game_logic::hex_get_tile_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(hex_get_tile) ^ src/formula_function.cpp:2442:11: warning: 'game_logic::hex_get_random_tile_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(hex_get_random_tile, 1, 2, "hex_get_random_tile(regex, (opt)count) -> hex_tile object(s): Generates either a single random tile or an array of count random tiles, picked from the given regular expression") ^ src/formula_function.cpp:2464:16: warning: 'game_logic::hex_get_random_tile_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(hex_get_random_tile) ^ src/formula_function.cpp:198:11: warning: 'game_logic::{anonymous}::create_cache_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(create_cache, 0, 1, "create_cache(max_entries=4096): makes an FFL cache object") ^ src/formula_function.cpp:205:16: warning: 'game_logic::{anonymous}::create_cache_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(create_cache) ^ src/formula_function.cpp:207:11: warning: 'game_logic::{anonymous}::query_cache_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(query_cache, 3, 3, "query_cache(ffl_cache, key, expr): ") ^ src/formula_function.cpp:222:16: warning: 'game_logic::{anonymous}::query_cache_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(query_cache) ^ src/formula_function.cpp:257:11: warning: 'game_logic::{anonymous}::bind_closure_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(bind_closure, 2, 2, "bind_closure(fn, obj): binds the given lambda fn to the given object closure") ^ src/formula_function.cpp:261:16: warning: 'game_logic::{anonymous}::bind_closure_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(bind_closure) ^ src/formula_function.cpp:263:11: warning: 'game_logic::{anonymous}::delay_until_end_of_loading_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(delay_until_end_of_loading, 1, 1, "delay_until_end_of_loading(string): delays evaluation of the enclosed until loading is finished") ^ src/formula_function.cpp:274:16: warning: 'game_logic::{anonymous}::delay_until_end_of_loading_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(delay_until_end_of_loading) ^ src/formula_function.cpp:276:11: warning: 'game_logic::{anonymous}::eval_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(eval, 1, 1, "eval(str): evaluate the given string as FFL") ^ src/formula_function.cpp:291:16: warning: 'game_logic::{anonymous}::eval_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(eval) ^ src/formula_function.cpp:293:11: warning: 'game_logic::{anonymous}::switch_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(switch, 3, -1, "switch(value, case1, result1, case2, result2 ... casen, resultn, default) -> value: returns resultn where value = casen, or default otherwise.") ^ src/formula_function.cpp:307:16: warning: 'game_logic::{anonymous}::switch_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(switch) ^ src/formula_function.cpp:309:11: warning: 'game_logic::{anonymous}::query_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(query, 2, 2, "query(object, str): evaluates object.str") ^ src/formula_function.cpp:313:16: warning: 'game_logic::{anonymous}::query_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(query) ^ src/formula_function.cpp:316:11: warning: 'game_logic::{anonymous}::abs_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(abs, 1, 1, "abs(value) -> value: evaluates the absolute value of the value given") ^ src/formula_function.cpp:325:16: warning: 'game_logic::{anonymous}::abs_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(abs) ^ src/formula_function.cpp:327:11: warning: 'game_logic::{anonymous}::sign_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(sign, 1, 1, "sign(value) -> value: evaluates to 1 if positive, -1 if negative, and 0 if 0") ^ src/formula_function.cpp:336:16: warning: 'game_logic::{anonymous}::sign_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(sign) ^ src/formula_function.cpp:338:11: warning: 'game_logic::{anonymous}::median_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(median, 1, -1, "median(args...) -> value: evaluates to the median of the given arguments. If given a single argument list, will evaluate to the median of the member items.") ^ src/formula_function.cpp:385:16: warning: 'game_logic::{anonymous}::median_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(median) ^ src/formula_function.cpp:387:11: warning: 'game_logic::{anonymous}::min_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(min, 1, -1, "min(args...) -> value: evaluates to the minimum of the given arguments. If given a single argument list, will evaluate to the minimum of the member items.") ^ src/formula_function.cpp:409:16: warning: 'game_logic::{anonymous}::min_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(min) ^ src/formula_function.cpp:411:11: warning: 'game_logic::{anonymous}::max_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(max, 1, -1, "max(args...) -> value: evaluates to the maximum of the given arguments. If given a single argument list, will evaluate to the maximum of the member items.") ^ src/formula_function.cpp:433:16: warning: 'game_logic::{anonymous}::max_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(max) ^ src/formula_function.cpp:435:42: warning: 'game_logic::{anonymous}::TEST_VAR_min_max_decimal' defined but not used [-Wunused-variable] src/formula_function.cpp:439:11: warning: 'game_logic::{anonymous}::keys_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(keys, 1, 1, "keys(map) -> list: gives the keys for a map") ^ src/formula_function.cpp:452:16: warning: 'game_logic::{anonymous}::keys_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(keys) ^ src/formula_function.cpp:454:11: warning: 'game_logic::{anonymous}::values_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(values, 1, 1, "values(map) -> list: gives the values for a map") ^ src/formula_function.cpp:457:16: warning: 'game_logic::{anonymous}::values_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(values) ^ src/formula_function.cpp:459:11: warning: 'game_logic::{anonymous}::wave_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(wave, 1, 1, "wave(int) -> int: a wave with a period of 1000 and height of 1000") ^ src/formula_function.cpp:463:16: warning: 'game_logic::{anonymous}::wave_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(wave) ^ src/formula_function.cpp:465:11: warning: 'game_logic::{anonymous}::decimal_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(decimal, 1, 1, "decimal(value) -> decimal: converts the value to a decimal") ^ src/formula_function.cpp:467:16: warning: 'game_logic::{anonymous}::decimal_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(decimal) ^ src/formula_function.cpp:469:11: warning: 'game_logic::{anonymous}::integer_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(integer, 1, 1, "integer(value) -> int: converts the value to an integer") ^ src/formula_function.cpp:471:16: warning: 'game_logic::{anonymous}::integer_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(integer) ^ src/formula_function.cpp:473:11: warning: 'game_logic::{anonymous}::sin_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(sin, 1, 1, "sin(x): Standard sine function.") ^ src/formula_function.cpp:476:16: warning: 'game_logic::{anonymous}::sin_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(sin) ^ src/formula_function.cpp:478:11: warning: 'game_logic::{anonymous}::cos_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(cos, 1, 1, "cos(x): Standard cosine function.") ^ src/formula_function.cpp:481:16: warning: 'game_logic::{anonymous}::cos_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(cos) ^ src/formula_function.cpp:483:11: warning: 'game_logic::{anonymous}::tan_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(tan, 1, 1, "tan(x): Standard tangent function.") ^ src/formula_function.cpp:486:16: warning: 'game_logic::{anonymous}::tan_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(tan) ^ src/formula_function.cpp:488:11: warning: 'game_logic::{anonymous}::asin_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(asin, 1, 1, "asin(x): Standard arc sine function.") ^ src/formula_function.cpp:491:16: warning: 'game_logic::{anonymous}::asin_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(asin) ^ src/formula_function.cpp:493:11: warning: 'game_logic::{anonymous}::acos_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(acos, 1, 1, "acos(x): Standard arc cosine function.") ^ src/formula_function.cpp:496:16: warning: 'game_logic::{anonymous}::acos_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(acos) ^ src/formula_function.cpp:498:11: warning: 'game_logic::{anonymous}::atan_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(atan, 1, 1, "atan(x): Standard arc tangent function.") ^ src/formula_function.cpp:501:16: warning: 'game_logic::{anonymous}::atan_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(atan) ^ src/formula_function.cpp:503:11: warning: 'game_logic::{anonymous}::sinh_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(sinh, 1, 1, "sinh(x): Standard hyperbolic sine function.") ^ src/formula_function.cpp:506:16: warning: 'game_logic::{anonymous}::sinh_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(sinh) ^ src/formula_function.cpp:508:11: warning: 'game_logic::{anonymous}::cosh_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(cosh, 1, 1, "cosh(x): Standard hyperbolic cosine function.") ^ src/formula_function.cpp:511:16: warning: 'game_logic::{anonymous}::cosh_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(cosh) ^ src/formula_function.cpp:513:11: warning: 'game_logic::{anonymous}::tanh_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(tanh, 1, 1, "tanh(x): Standard hyperbolic tangent function.") ^ src/formula_function.cpp:516:16: warning: 'game_logic::{anonymous}::tanh_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(tanh) ^ src/formula_function.cpp:518:11: warning: 'game_logic::{anonymous}::asinh_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(asinh, 1, 1, "asinh(x): Standard arc hyperbolic sine function.") ^ src/formula_function.cpp:521:16: warning: 'game_logic::{anonymous}::asinh_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(asinh) ^ src/formula_function.cpp:523:11: warning: 'game_logic::{anonymous}::acosh_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(acosh, 1, 1, "acosh(x): Standard arc hyperbolic cosine function.") ^ src/formula_function.cpp:526:16: warning: 'game_logic::{anonymous}::acosh_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(acosh) ^ src/formula_function.cpp:528:11: warning: 'game_logic::{anonymous}::atanh_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(atanh, 1, 1, "atanh(x): Standard arc hyperbolic tangent function.") ^ src/formula_function.cpp:531:16: warning: 'game_logic::{anonymous}::atanh_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(atanh) ^ src/formula_function.cpp:533:11: warning: 'game_logic::{anonymous}::sqrt_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(sqrt, 1, 1, "sqrt(x): Returns the square root of x.") ^ src/formula_function.cpp:536:16: warning: 'game_logic::{anonymous}::sqrt_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(sqrt) ^ src/formula_function.cpp:538:11: warning: 'game_logic::{anonymous}::angle_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(angle, 4, 4, "angle(x1, y1, x2, y2) -> int: Returns the angle, from 0°, made by the line described by the two points (x1, y1) and (x2, y2).") ^ src/formula_function.cpp:544:16: warning: 'game_logic::{anonymous}::angle_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(angle) ^ src/formula_function.cpp:546:11: warning: 'game_logic::{anonymous}::angle_delta_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(angle_delta, 2, 2, "angle_delta(a, b) -> int: Given two angles, returns the smallest rotation needed to make a equal to b.") ^ src/formula_function.cpp:558:16: warning: 'game_logic::{anonymous}::angle_delta_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(angle_delta) ^ src/formula_function.cpp:560:11: warning: 'game_logic::{anonymous}::orbit_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(orbit, 4, 4, "orbit(x, y, angle, dist) -> [x,y]: Returns the point as a list containing an x/y pair which is dist away from the point as defined by x and y passed in, at the angle passed in.") ^ src/formula_function.cpp:575:16: warning: 'game_logic::{anonymous}::orbit_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(orbit) ^ src/formula_function.cpp:577:11: warning: 'game_logic::{anonymous}::regex_replace_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(regex_replace, 3, 3, "regex_replace(string, string, string) -> string: Unknown.") ^ src/formula_function.cpp:582:16: warning: 'game_logic::{anonymous}::regex_replace_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(regex_replace) ^ src/formula_function.cpp:584:11: warning: 'game_logic::{anonymous}::regex_match_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(regex_match, 2, 2, "regex_match(string, re_string) -> string: returns null if not found, else returns the whole string or a list of sub-strings depending on whether blocks were demarcated.") ^ src/formula_function.cpp:599:16: warning: 'game_logic::{anonymous}::regex_match_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(regex_match) ^ src/formula_function.cpp:601:11: warning: 'game_logic::{anonymous}::fold_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(fold, 2, 3, "fold(list, expr, [default]) -> value") ^ src/formula_function.cpp:624:16: warning: 'game_logic::{anonymous}::fold_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(fold) ^ src/formula_function.cpp:626:11: warning: 'game_logic::{anonymous}::unzip_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(unzip, 1, 1, "unzip(list of lists) -> list of lists: Converts [[1,4],[2,5],[3,6]] -> [[1,2,3],[4,5,6]]") ^ src/formula_function.cpp:656:16: warning: 'game_logic::{anonymous}::unzip_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(unzip) ^ src/formula_function.cpp:658:11: warning: 'game_logic::{anonymous}::zip_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(zip, 3, 3, "zip(list1, list2, expr) -> list") ^ src/formula_function.cpp:695:16: warning: 'game_logic::{anonymous}::zip_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(zip) ^ src/formula_function.cpp:697:11: warning: 'game_logic::{anonymous}::float_array_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(float_array, 1, 2, "float_array(list, (opt) num_elements) -> callable: Converts a list of floating point values into an efficiently accessible object.") ^ src/formula_function.cpp:706:16: warning: 'game_logic::{anonymous}::float_array_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(float_array) ^ src/formula_function.cpp:708:11: warning: 'game_logic::{anonymous}::short_array_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(short_array, 1, 2, "short_array(list) -> callable: Converts a list of integer values into an efficiently accessible object.") ^ src/formula_function.cpp:717:16: warning: 'game_logic::{anonymous}::short_array_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(short_array) ^ src/formula_function.cpp:737:11: warning: 'game_logic::{anonymous}::directed_graph_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(directed_graph, 2, 2, "directed_graph(list_of_vertexes, adjacent_expression) -> a directed graph") ^ src/formula_function.cpp:751:16: warning: 'game_logic::{anonymous}::directed_graph_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(directed_graph) ^ src/formula_function.cpp:753:11: warning: 'game_logic::{anonymous}::weighted_graph_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(weighted_graph, 2, 2, "weighted_graph(directed_graph, weight_expression) -> a weighted directed graph") ^ src/formula_function.cpp:771:16: warning: 'game_logic::{anonymous}::weighted_graph_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(weighted_graph) ^ src/formula_function.cpp:773:11: warning: 'game_logic::{anonymous}::a_star_search_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(a_star_search, 4, 4, "a_star_search(weighted_directed_graph, src_node, dst_node, heuristic) -> A list of nodes which represents the 'best' path from src_node to dst_node.") ^ src/formula_function.cpp:782:16: warning: 'game_logic::{anonymous}::a_star_search_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(a_star_search) ^ src/formula_function.cpp:784:11: warning: 'game_logic::{anonymous}::path_cost_search_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(path_cost_search, 3, 3, "cost_search(weighted_directed_graph, src_node, max_cost) -> A list of all possible points reachable from src_node within max_cost.") ^ src/formula_function.cpp:791:16: warning: 'game_logic::{anonymous}::path_cost_search_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(path_cost_search) ^ src/formula_function.cpp:793:11: warning: 'game_logic::{anonymous}::create_graph_from_level_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(create_graph_from_level, 1, 3, "create_graph_from_level(level, (optional) tile_size_x, (optional) tile_size_y) -> directed graph : Creates a directed graph based on the current level.") ^ src/formula_function.cpp:833:16: warning: 'game_logic::{anonymous}::create_graph_from_level_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(create_graph_from_level) ^ src/formula_function.cpp:835:11: warning: 'game_logic::{anonymous}::plot_path_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(plot_path, 6, 9, "plot_path(level, from_x, from_y, to_x, to_y, heuristic, (optional) weight_expr, (optional) tile_size_x, (optional) tile_size_y) -> list : Returns a list of points to get from (from_x, from_y) to (to_x, to_y)") ^ src/formula_function.cpp:856:16: warning: 'game_logic::{anonymous}::plot_path_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(plot_path) ^ src/formula_function.cpp:892:11: warning: 'game_logic::{anonymous}::sort_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(sort, 1, 2, "sort(list, criteria): Returns a nicely-ordered list. If you give it an optional formula such as 'a>b' it will sort it according to that. This example favours larger numbers first instead of the default of smaller numbers first.") ^ src/formula_function.cpp:907:16: warning: 'game_logic::{anonymous}::sort_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(sort) ^ src/formula_function.cpp:909:11: warning: 'game_logic::{anonymous}::shuffle_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(shuffle, 1, 1, "shuffle(list) - Returns a shuffled version of the list. Like shuffling cards.") ^ src/formula_function.cpp:934:16: warning: 'game_logic::{anonymous}::shuffle_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(shuffle) ^ src/formula_function.cpp:951:11: warning: 'game_logic::{anonymous}::flatten_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(flatten, 1, 1, "flatten(list): Returns a list with a depth of 1 containing the elements of any list passed in.") ^ src/formula_function.cpp:956:16: warning: 'game_logic::{anonymous}::flatten_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(flatten) ^ src/formula_function.cpp:1055:11: warning: 'game_logic::{anonymous}::mapping_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(mapping, -1, -1, "mapping(x): Turns the args passed in into a map. The first arg is a key, the second a value, the third a key, the fourth a value and so on and so forth.") ^ src/formula_function.cpp:1063:16: warning: 'game_logic::{anonymous}::mapping_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(mapping) ^ src/formula_function.cpp:1142:11: warning: 'game_logic::{anonymous}::transform_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(transform, 2, 2, "transform(list,ffl): calls the ffl for each item on the given list, returning a list of the results. Inside the transform v is the value of the list item and i is the index. e.g. transform([1,2,3], v+2) = [3,4,5] and transform([1,2,3], i) = [0,1,2]") ^ src/formula_function.cpp:1159:16: warning: 'game_logic::{anonymous}::transform_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(transform) ^ src/formula_function.cpp:1197:11: warning: 'game_logic::{anonymous}::choose_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(choose, 1, 2, "choose(list, (optional)scoring_expr) -> value: choose an item from the list according to which scores the highest according to the scoring expression, or at random by default.") ^ src/formula_function.cpp:1228:16: warning: 'game_logic::{anonymous}::choose_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(choose) ^ src/formula_function.cpp:1297:11: warning: 'game_logic::{anonymous}::sum_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(sum, 1, 2, "sum(list[, counter]): Adds all elements of the list together. If counter is supplied, all elements of the list are added to the counter instead of to 0.") ^ src/formula_function.cpp:1308:16: warning: 'game_logic::{anonymous}::sum_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(sum) ^ src/formula_function.cpp:1310:11: warning: 'game_logic::{anonymous}::range_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(range, 1, 3, "range([start, ]finish[, step]): Returns a list containing all numbers smaller than the finish value and and larger than or equal to the start value. The start value defaults to 0.") ^ src/formula_function.cpp:1339:16: warning: 'game_logic::{anonymous}::range_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(range) ^ src/formula_function.cpp:1341:11: warning: 'game_logic::{anonymous}::reverse_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(reverse, 1, 1, "reverse(list): reverses the given list") ^ src/formula_function.cpp:1345:16: warning: 'game_logic::{anonymous}::reverse_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(reverse) ^ src/formula_function.cpp:1347:11: warning: 'game_logic::{anonymous}::head_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(head, 1, 1, "head(list): gives the first element of a list, or null for an empty list") ^ src/formula_function.cpp:1354:16: warning: 'game_logic::{anonymous}::head_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(head) ^ src/formula_function.cpp:1356:11: warning: 'game_logic::{anonymous}::back_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(back, 1, 1, "back(list): gives the last element of a list, or null for an empty list") ^ src/formula_function.cpp:1363:16: warning: 'game_logic::{anonymous}::back_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(back) ^ src/formula_function.cpp:1365:11: warning: 'game_logic::{anonymous}::get_all_files_under_dir_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(get_all_files_under_dir, 1, 1, "get_all_files_under_dir(path): Returns a list of all the files in and under the given directory") ^ src/formula_function.cpp:1374:16: warning: 'game_logic::{anonymous}::get_all_files_under_dir_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(get_all_files_under_dir) ^ src/formula_function.cpp:1376:11: warning: 'game_logic::{anonymous}::get_files_in_dir_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(get_files_in_dir, 1, 1, "get_files_in_dir(path): Returns a list of the files in the given directory") ^ src/formula_function.cpp:1389:16: warning: 'game_logic::{anonymous}::get_files_in_dir_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(get_files_in_dir) ^ src/formula_function.cpp:1391:11: warning: 'game_logic::{anonymous}::dialog_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(dialog, 2, 2, "dialog(obj, template): Creates a dialog given an object to operate on and a template for the dialog.") ^ src/formula_function.cpp:1407:16: warning: 'game_logic::{anonymous}::dialog_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(dialog) ^ src/formula_function.cpp:1409:11: warning: 'game_logic::{anonymous}::show_modal_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(show_modal, 1, 1, "show_modal(dialog): Displays a modal dialog on the screen.") ^ src/formula_function.cpp:1415:16: warning: 'game_logic::{anonymous}::show_modal_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(show_modal) ^ src/formula_function.cpp:1417:11: warning: 'game_logic::{anonymous}::index_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(index, 2, 2, "index(list, value) -> index of value in list: Returns the index of the value in the list or -1 if value wasn't found in the list.") ^ src/formula_function.cpp:1426:16: warning: 'game_logic::{anonymous}::index_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(index) ^ src/formula_function.cpp:1438:11: warning: 'game_logic::{anonymous}::benchmark_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(benchmark, 1, 1, "benchmark(expr): Executes expr in a benchmark harness and returns a string describing its benchmark performance") ^ src/formula_function.cpp:1440:16: warning: 'game_logic::{anonymous}::benchmark_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(benchmark) ^ src/formula_function.cpp:1442:11: warning: 'game_logic::{anonymous}::compress_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(compress, 1, 2, "compress(string, (optional) compression_level): Compress the given string object") ^ src/formula_function.cpp:1449:16: warning: 'game_logic::{anonymous}::compress_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(compress) ^ src/formula_function.cpp:1451:11: warning: 'game_logic::{anonymous}::decompress_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(decompress, 1, 1, "decompress(expr): Tries to decompress the given object, returns the data if successful.") ^ src/formula_function.cpp:1455:16: warning: 'game_logic::{anonymous}::decompress_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(decompress) ^ src/formula_function.cpp:1942:11: warning: 'game_logic::{anonymous}::debug_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(debug, 1, -1, "debug(...): outputs arguments to the console") ^ src/formula_function.cpp:1959:16: warning: 'game_logic::{anonymous}::debug_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(debug) ^ src/formula_function.cpp:1981:11: warning: 'game_logic::{anonymous}::debug_fn_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(debug_fn, 2, 2, "debug_fn(msg, expr): evaluates and returns expr. Will print 'msg' to stderr if it's printable, or execute it if it's an executable command.") ^ src/formula_function.cpp:1988:16: warning: 'game_logic::{anonymous}::debug_fn_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(debug_fn) ^ src/formula_function.cpp:1996:11: warning: 'game_logic::{anonymous}::get_document_dummy_help_var' defined but not used [-Wunused-variable] FUNCTION_DEF(get_document, 1, 1, "get_document(string filename): return reference to the given JSON document") ^ src/formula_function.cpp:2015:16: warning: 'game_logic::{anonymous}::get_document_dummy_var' defined but not used [-Wunused-variable] END_FUNCTION_DEF(get_document) ^ src/formula_function.cpp:2327:6: warning: 'bool game_logic::{anonymous}::point_in_triangle(point, point*)' defined but not used [-Wunused-function] bool point_in_triangle(point p, point t[3]) ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/formula_function.cpp > formula_function.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/formula_function_registry.cpp In file included from src/formula_function.hpp:26:0, from src/formula_function_registry.hpp:4, from src/formula_function_registry.cpp:2: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ src/formula_function_registry.cpp: At global scope: src/formula_function_registry.cpp:41:87: warning: 'UTILITY_VAR_document_ffl_functions' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/formula_function_registry.cpp > formula_function_registry.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/formula_profiler.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/custom_object_type.hpp:11, from src/formula_profiler.cpp:20: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ src/formula_profiler.cpp: In destructor 'formula_profiler::instrument::~instrument()': src/formula_profiler.cpp:55:13: warning: unused variable 'time_us' [-Wunused-variable] const int time_us = (end_tv.tv_sec - tv_.tv_sec)*1000000 + (end_tv.tv_usec - tv_.tv_usec); ^ src/formula_profiler.cpp: In function 'void formula_profiler::{anonymous}::sigprof_handler(int)': src/formula_profiler.cpp:124:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(handler_disabled || main_thread != SDL_GetThreadID(NULL)) { ^ src/formula_profiler.cpp: In function 'void formula_profiler::end_profiling()': src/formula_profiler.cpp:228:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != sorted_samples.size(); ++n) { ^ src/formula_profiler.cpp:270:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != sorted_samples.size(); ++n) { ^ src/formula_profiler.cpp:275:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != cum_sorted_samples.size(); ++n) { ^ src/formula_profiler.cpp: In member function 'bool formula_profiler::custom_object_event_frame::operator<(const formula_profiler::custom_object_event_frame&) const': src/formula_profiler.cpp:308:41: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return type < f.type || type == f.type && event_id < f.event_id || ^ src/formula_profiler.cpp:309:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses] type == f.type && event_id == f.event_id && executing_commands < f.executing_commands; ^ src/formula_profiler.cpp: In function 'std::__cxx11::string formula_profiler::get_profile_summary()': src/formula_profiler.cpp:346:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != samples.size(); ++n) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/formula_profiler.cpp > formula_profiler.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/formula_tokenizer.cpp src/formula_tokenizer.cpp: In function 'formula_tokenizer::token formula_tokenizer::get_token(formula_tokenizer::iterator&, formula_tokenizer::iterator)': src/formula_tokenizer.cpp:99:33: warning: array subscript has type 'char' [-Wchar-subscripts] t.type = single_char_tokens[*i1]; ^ src/formula_tokenizer.cpp:251:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(str.size() == (t.end - t.begin) && std::equal(str.begin(), str.end(), t.begin)) { ^ src/formula_tokenizer.cpp:259:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(str.size() == (t.end - t.begin) && std::equal(str.begin(), str.end(), t.begin)) { ^ src/formula_tokenizer.cpp: At global scope: src/formula_tokenizer.cpp:349:40: warning: 'TEST_VAR_tokenizer_test' defined but not used [-Wunused-variable] src/formula_tokenizer.cpp:375:70: warning: 'BENCHMARK_VAR_tokenizer_bench' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/formula_tokenizer.cpp > formula_tokenizer.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/formula_variable_storage.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/formula_variable_storage.cpp > formula_variable_storage.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/frame.cpp In file included from src/frame.cpp:8:0: src/frame.hpp: In constructor 'frame::frame(variant)': src/frame.hpp:139:7: warning: 'frame::platform_rect_' will be initialized after [-Wreorder] rect platform_rect_; ^ src/frame.hpp:135:7: warning: 'rect frame::img_rect_' [-Wreorder] rect img_rect_; ^ src/frame.cpp:29:1: warning: when initialized here [-Wreorder] frame::frame(variant node) ^ In file included from src/frame.cpp:8:0: src/frame.hpp:168:7: warning: 'frame::no_remove_alpha_borders_' will be initialized after [-Wreorder] bool no_remove_alpha_borders_; ^ src/frame.hpp:162:7: warning: 'bool frame::collision_areas_inside_frame_' [-Wreorder] bool collision_areas_inside_frame_; ^ src/frame.cpp:29:1: warning: when initialized here [-Wreorder] frame::frame(variant node) ^ src/frame.cpp:183:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_EQ(frames_.size(), nframes_); ^ src/frame.cpp: In member function 'void frame::set_palettes(unsigned int)': src/frame.cpp:244:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(current_palette_ >= 0 && (1 << current_palette_) == palettes) { ^ src/frame.cpp: In member function 'void frame::build_alpha_from_frame_info()': src/frame.cpp:306:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LT(area.x(), texture_.width()); ^ src/frame.cpp:307:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LE(area.x() + area.w(), texture_.width()); ^ src/frame.cpp:308:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LT(area.y() + y, texture_.height()); ^ src/frame.cpp: In member function 'void frame::build_alpha()': src/frame.cpp:333:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(xbase < 0 || ybase < 0 || xbase + img_rect_.w() > texture_.width() || ^ src/frame.cpp:334:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ybase + img_rect_.h() > texture_.height()) { ^ src/frame.cpp: In member function 'void frame::get_rect_in_frame_number(int, GLfloat*, const frame::frame_info*&) const': src/frame.cpp:699:12: warning: unused variable 'current_col' [-Wunused-variable] const int current_col = (nframes_per_row_ > 0) ? (nframe % nframes_per_row_) : nframe ; ^ src/frame.cpp:700:12: warning: unused variable 'current_row' [-Wunused-variable] const int current_row = (nframes_per_row_ > 0) ? (nframe/nframes_per_row_) : 0 ; ^ src/frame.cpp: In member function 'point frame::pivot(const string&, int) const': src/frame.cpp:793:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(time_in_frame >= s.points.size()) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/frame.cpp > frame.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/framed_gui_element.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/framed_gui_element.cpp > framed_gui_element.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/game_registry.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/game_registry.cpp > game_registry.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/geometry.cpp src/geometry.cpp: In function 'bool operator<(const point&, const point&)': src/geometry.cpp:60:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.x < b.x || a.x == b.x && a.y < b.y; ^ src/geometry.cpp: At global scope: src/geometry.cpp:309:30: warning: 'TEST_VAR_rect' defined but not used [-Wunused-variable] src/geometry.cpp:322:41: warning: 'TEST_VAR_rect_difference' defined but not used [-Wunused-variable] src/geometry.cpp:343:40: warning: 'TEST_VAR_rect_intersect' defined but not used [-Wunused-variable] src/geometry.cpp:353:73: warning: 'BENCHMARK_VAR_benchmark_rect_str' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/geometry.cpp > geometry.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/gles2.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/level.hpp:20, from src/gles2.cpp:6: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/gles2.cpp:6: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/gles2.cpp:6: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/gles2.cpp:6: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/gles2.cpp:6: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/gles2.cpp:6: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/gles2.cpp:6: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/gles2.cpp: At global scope: src/gles2.cpp:23:9: warning: '{anonymous}::shade_model' defined but not used [-Wunused-variable] GLenum shade_model = GL_FLAT; ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/gles2.cpp > gles2.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/globals.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/globals.cpp > globals.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/graphical_font.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/graphical_font.cpp > graphical_font.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/graphical_font_label.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/graphical_font_label.hpp:5, from src/graphical_font_label.cpp:2: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/graphical_font_label.hpp:5, from src/graphical_font_label.cpp:2: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/graphical_font_label.hpp:5:0, from src/graphical_font_label.cpp:2: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/graphical_font_label.cpp > graphical_font_label.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/grid_widget.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/scrollbar_widget.hpp:7, from src/scrollable_widget.hpp:6, from src/grid_widget.hpp:21, from src/grid_widget.cpp:17: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/scrollbar_widget.hpp:7, from src/scrollable_widget.hpp:6, from src/grid_widget.hpp:21, from src/grid_widget.cpp:17: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/scrollbar_widget.hpp:7:0, from src/scrollable_widget.hpp:6, from src/grid_widget.hpp:21, from src/grid_widget.cpp:17: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/grid_widget.cpp:17:0: src/grid_widget.hpp: In constructor 'gui::grid::grid(int)': src/grid_widget.hpp:107:6: warning: 'gui::grid::max_height_' will be initialized after [-Wreorder] int max_height_; ^ src/grid_widget.hpp:94:7: warning: 'bool gui::grid::allow_highlight_' [-Wreorder] bool allow_highlight_; ^ src/grid_widget.cpp:23:1: warning: when initialized here [-Wreorder] grid::grid(int ncols) ^ In file included from src/grid_widget.cpp:17:0: src/grid_widget.hpp:98:6: warning: 'gui::grid::set_h_' will be initialized after [-Wreorder] int set_h_; ^ src/grid_widget.hpp:97:6: warning: 'int gui::grid::set_w_' [-Wreorder] int set_w_; ^ src/grid_widget.cpp:23:1: warning: when initialized here [-Wreorder] grid::grid(int ncols) ^ In file included from src/grid_widget.cpp:17:0: src/grid_widget.hpp: In constructor 'gui::grid::grid(const variant&, game_logic::formula_callable*)': src/grid_widget.hpp:107:6: warning: 'gui::grid::max_height_' will be initialized after [-Wreorder] int max_height_; ^ src/grid_widget.hpp:94:7: warning: 'bool gui::grid::allow_highlight_' [-Wreorder] bool allow_highlight_; ^ src/grid_widget.cpp:34:1: warning: when initialized here [-Wreorder] grid::grid(const variant& v, game_logic::formula_callable* e) ^ In file included from src/grid_widget.cpp:17:0: src/grid_widget.hpp:98:6: warning: 'gui::grid::set_h_' will be initialized after [-Wreorder] int set_h_; ^ src/grid_widget.hpp:97:6: warning: 'int gui::grid::set_w_' [-Wreorder] int set_w_; ^ src/grid_widget.cpp:34:1: warning: when initialized here [-Wreorder] grid::grid(const variant& v, game_logic::formula_callable* e) ^ src/grid_widget.cpp: In member function 'void gui::grid::add_row(const std::vector >&)': src/grid_widget.cpp:165:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert(widgets.size() == ncols_); ^ src/grid_widget.cpp: In member function 'gui::grid& gui::grid::add_col(const widget_ptr&)': src/grid_widget.cpp:186:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(new_row_.size() == ncols_) { ^ src/grid_widget.cpp: In member function 'virtual bool gui::grid::handle_event(const SDL_Event&, bool)': src/grid_widget.cpp:407:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(row_index >= 0 && row_index < row_callbacks_.size() && ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/grid_widget.cpp > grid_widget.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/group_property_editor_dialog.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/button.hpp:19, from src/group_property_editor_dialog.cpp:6: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/button.hpp:19, from src/group_property_editor_dialog.cpp:6: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/button.hpp:19:0, from src/group_property_editor_dialog.cpp:6: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/editor.hpp:13, from src/group_property_editor_dialog.hpp:9, from src/group_property_editor_dialog.cpp:10: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/editor.hpp:13, from src/group_property_editor_dialog.hpp:9, from src/group_property_editor_dialog.cpp:10: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/editor.hpp:13, from src/group_property_editor_dialog.hpp:9, from src/group_property_editor_dialog.cpp:10: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/editor.hpp:13, from src/group_property_editor_dialog.hpp:9, from src/group_property_editor_dialog.cpp:10: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/group_property_editor_dialog.cpp > group_property_editor_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/gui_formula_functions.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/custom_object_type.hpp:11, from src/custom_object.hpp:13, from src/gui_formula_functions.cpp:9: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.cpp:9: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/gui_formula_functions.cpp:9: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/gui_formula_functions.cpp:9: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/gui_formula_functions.cpp:22: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/gui_formula_functions.cpp:22: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/gui_formula_functions.cpp:22: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/gui_formula_functions.cpp: In member function 'virtual variant {anonymous}::draw_animation_area_function::execute(const game_logic::formula_callable&) const': src/gui_formula_functions.cpp:161:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != args().size() - 3; ++n) { ^ src/gui_formula_functions.cpp: In member function 'virtual const game_logic::formula_callable_definition::entry* {anonymous}::gui_algorithm_definition::get_entry(int) const': src/gui_formula_functions.cpp:383:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(slot < 0 || slot >= entries_.size()) { ^ src/gui_formula_functions.cpp: In member function 'virtual game_logic::formula_callable_definition::entry* {anonymous}::gui_algorithm_definition::get_entry(int)': src/gui_formula_functions.cpp:391:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(slot < 0 || slot >= entries_.size()) { ^ In file included from src/gui_formula_functions.cpp:19:0: src/gui_formula_functions.hpp: In constructor 'gui_algorithm::gui_algorithm(variant)': src/gui_formula_functions.hpp:55:7: warning: 'gui_algorithm::loaded_' will be initialized after [-Wreorder] bool loaded_; ^ src/gui_formula_functions.hpp:53:41: warning: 'game_logic::formula_ptr gui_algorithm::process_formula_' [-Wreorder] game_logic::formula_ptr draw_formula_, process_formula_, load_formula_; ^ src/gui_formula_functions.cpp:408:1: warning: when initialized here [-Wreorder] gui_algorithm::gui_algorithm(variant node) ^ src/gui_formula_functions.cpp: At global scope: src/gui_formula_functions.cpp:675:74: warning: 'BENCHMARK_VAR_gui_algorithm_bench' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/gui_formula_functions.cpp > gui_formula_functions.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/gui_section.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/gui_section.cpp > gui_section.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/hex_map.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/hex_map.cpp:7: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/hex_map.cpp:8:0: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/hex_map.cpp:12: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/hex_map.cpp:12: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/hex_map.cpp:12: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:26:0, from src/hex_map.cpp:12: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/hex_map.cpp:12: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ In file included from src/hex_map.cpp:8:0: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map(variant)': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:66:6: warning: 'int hex::hex_map::x_' [-Wreorder] int x_; ^ src/hex_map.cpp:20:1: warning: when initialized here [-Wreorder] hex_map::hex_map(variant node) ^ In file included from src/hex_map.cpp:8:0: src/hex_map.hpp:67:6: warning: 'hex::hex_map::y_' will be initialized after [-Wreorder] int y_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.cpp:20:1: warning: when initialized here [-Wreorder] hex_map::hex_map(variant node) ^ src/hex_map.cpp: In member function 'hex::hex_object_ptr hex::hex_map::get_hex_tile(hex::direction, int, int) const': src/hex_map.cpp:125:6: warning: unused variable 'oy' [-Wunused-variable] int oy = y; ^ src/hex_map.cpp: In member function 'bool hex::hex_map::set_tile(int, int, const string&)': src/hex_map.cpp:271:7: warning: unused variable 'needed_rows' [-Wunused-variable] int needed_rows = y() - p.y; ^ src/hex_map.cpp: In static member function 'static point hex::hex_map::loc_in_dir(int, int, hex::direction)': src/hex_map.cpp:316:6: warning: unused variable 'oy' [-Wunused-variable] int oy = y; ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/hex_map.cpp > hex_map.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/hex_object.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/hex_object.cpp:6: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/hex_object.cpp:8:0: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ src/hex_object.cpp: In constructor 'hex::{anonymous}::hex_engine::hex_engine(const variant&)': src/hex_object.cpp:139:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != functions_var.num_elements(); ++n) { ^ In file included from src/hex_map.hpp:14:0, from src/hex_object.cpp:8: src/hex_object.hpp: In constructor 'hex::hex_object::hex_object(const string&, int, int, const hex::hex_map*)': src/hex_object.hpp:64:17: warning: 'hex::hex_object::owner_map_' will be initialized after [-Wreorder] const hex_map* owner_map_; ^ src/hex_object.hpp:55:6: warning: 'int hex::hex_object::x_' [-Wreorder] int x_; ^ src/hex_object.cpp:193:1: warning: when initialized here [-Wreorder] hex_object::hex_object(const std::string& type, int x, int y, const hex_map* owner) ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/hex_object.cpp > hex_object.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/hex_tile.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/hex_object.hpp:9, from src/hex_tile.cpp:5: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/hex_object.hpp:15:0, from src/hex_tile.cpp:5: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/hex_object.hpp:16:0, from src/hex_tile.cpp:5: src/hex_tile.hpp: In constructor 'hex::basic_hex_tile::basic_hex_tile(variant, hex::hex_tile*)': src/hex_tile.hpp:54:7: warning: 'hex::basic_hex_tile::chance_' will be initialized after [-Wreorder] int chance_; ^ src/hex_tile.hpp:42:13: warning: 'hex::hex_tile* hex::basic_hex_tile::owner_' [-Wreorder] hex_tile* owner_; ^ src/hex_tile.cpp:12:1: warning: when initialized here [-Wreorder] basic_hex_tile::basic_hex_tile(const variant node, hex_tile* owner) ^ In file included from src/hex_object.hpp:16:0, from src/hex_tile.cpp:5: src/hex_tile.hpp:56:7: warning: 'hex::basic_hex_tile::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_tile.hpp:47:7: warning: 'int hex::basic_hex_tile::offset_x_' [-Wreorder] int offset_x_; ^ src/hex_tile.cpp:12:1: warning: when initialized here [-Wreorder] basic_hex_tile::basic_hex_tile(const variant node, hex_tile* owner) ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/hex_tile.cpp > hex_tile.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/hex_tileset_editor_dialog.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/border_widget.hpp:6, from src/hex_tileset_editor_dialog.cpp:7: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/border_widget.hpp:6, from src/hex_tileset_editor_dialog.cpp:7: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/border_widget.hpp:6:0, from src/hex_tileset_editor_dialog.cpp:7: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/editor.hpp:13, from src/hex_tileset_editor_dialog.cpp:9: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/editor.hpp:13, from src/hex_tileset_editor_dialog.cpp:9: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/editor.hpp:13, from src/hex_tileset_editor_dialog.cpp:9: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/editor.hpp:13, from src/hex_tileset_editor_dialog.cpp:9: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/hex_tileset_editor_dialog.cpp: In member function 'void editor_dialogs::hex_tileset_editor_dialog::init()': src/hex_tileset_editor_dialog.cpp:70:17: warning: unused variable 'first_index' [-Wunused-variable] int index = 0, first_index = -1; ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/hex_tileset_editor_dialog.cpp > hex_tileset_editor_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/http_client.cpp In file included from src/http_client.cpp:5:0: src/http_client.hpp: In constructor 'http_client::http_client(const string&, const string&, int, boost::asio::io_service*)': src/http_client.hpp:64:14: warning: 'http_client::host_' will be initialized after [-Wreorder] std::string host_; ^ src/http_client.hpp:62:23: warning: 'boost::asio::ip::basic_resolver::query http_client::resolver_query_' [-Wreorder] tcp::resolver::query resolver_query_; ^ src/http_client.cpp:7:1: warning: when initialized here [-Wreorder] http_client::http_client(const std::string& host, const std::string& port, int session, boost::asio::io_service* service) ^ src/http_client.cpp: In member function 'void http_client::handle_send(http_client::connection_ptr, const boost::system::error_code&, size_t)': src/http_client.cpp:136:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(conn->nbytes_sent < conn->request.size()) { ^ src/http_client.cpp: In member function 'void http_client::handle_receive(http_client::connection_ptr, const boost::system::error_code&, size_t)': src/http_client.cpp:196:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(conn->expected_len != -1 && conn->response.size() >= conn->expected_len) { ^ src/http_client.cpp:197:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(conn->expected_len == conn->response.size(), "UNEXPECTED RESPONSE SIZE " << conn->expected_len << " VS " << conn->response << " " << conn->response.size()); ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/http_client.cpp > http_client.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/http_server.cpp src/http_server.cpp:103:9: warning: 'http::{anonymous}::Request http::{anonymous}::parse_request(const string&)' defined but not used [-Wunused-function] Request parse_request(const std::string& str) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/http_server.cpp > http_server.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/i18n.cpp src/i18n.cpp: In function 'void i18n::load_translations()': src/i18n.cpp:110:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < header->number; ++i) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/i18n.cpp > i18n.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/image_widget.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/image_widget.hpp:22, from src/image_widget.cpp:13: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/image_widget.hpp:22, from src/image_widget.cpp:13: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/image_widget.hpp:22:0, from src/image_widget.cpp:13: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/image_widget.cpp > image_widget.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/input.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/button.hpp:19, from src/level_runner.hpp:9, from src/input.cpp:8: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/button.hpp:19, from src/level_runner.hpp:9, from src/input.cpp:8: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/button.hpp:19:0, from src/level_runner.hpp:9, from src/input.cpp:8: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/debug_console.hpp:9, from src/level_runner.hpp:10, from src/input.cpp:8: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/debug_console.hpp:9, from src/level_runner.hpp:10, from src/input.cpp:8: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/debug_console.hpp:9, from src/level_runner.hpp:10, from src/input.cpp:8: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/debug_console.hpp:9, from src/level_runner.hpp:10, from src/input.cpp:8: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ In file included from src/debug_console.hpp:10:0, from src/level_runner.hpp:10, from src/input.cpp:8: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ src/input.cpp: In member function 'virtual void input::key_down_listener::bind_key(int, const SDL_keysym&, bool)': src/input.cpp:426:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(logical_key >= state_.size()) { ^ src/input.cpp: In member function 'virtual bool input::key_down_listener::unbind_key(const SDL_keysym&)': src/input.cpp:434:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(key >= 0 && key < state_.size()) { ^ src/input.cpp: In member function 'virtual bool input::key_down_listener::unbind_key(int)': src/input.cpp:441:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(logical_key < state_.size()) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/input.cpp > input.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/iphone_controls.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/iphone_controls.cpp > iphone_controls.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/joystick.cpp src/joystick.cpp: In function 'bool joystick::button(int)': src/joystick.cpp:178:9: warning: unused variable 'cnt' [-Wunused-variable] int cnt = 0; ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/joystick.cpp > joystick.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/json_parser.cpp src/json_parser.cpp: In member function 'void json::{anonymous}::JsonObject::add(variant, variant)': src/json_parser.cpp:154:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != v.num_elements(); ++n) { ^ src/json_parser.cpp: In function 'variant json::{anonymous}::parse_internal(const string&, const string&, json::JSON_PARSE_OPTIONS, std::map, boost::shared_ptr >*, const game_logic::formula_callable*)': src/json_parser.cpp:209:21: warning: unused variable 'filename' [-Wunused-variable] const std::string* filename = &*filename_itor; ^ src/json_parser.cpp: In function 'void json::TEST_json_flatten()': src/json_parser.cpp:538:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != v.num_elements(); ++n) { ^ src/json_parser.cpp: At global scope: src/json_parser.cpp:516:35: warning: 'json::TEST_VAR_json_base' defined but not used [-Wunused-variable] src/json_parser.cpp:533:38: warning: 'json::TEST_VAR_json_flatten' defined but not used [-Wunused-variable] src/json_parser.cpp:543:37: warning: 'json::TEST_VAR_json_derive' defined but not used [-Wunused-variable] src/json_parser.cpp:552:36: warning: 'json::TEST_VAR_json_macro' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/json_parser.cpp > json_parser.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/json_tokenizer.cpp src/json_tokenizer.cpp: In function 'json::Token json::get_token(const char*&, const char*)': src/json_tokenizer.cpp:13:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] while(i1 != i2 && util::c_isspace(*i1) || *i1 == '#' || *i1 == '/' && i1+1 != i2 && (*(i1 + 1) == '/' || *(i1 + 1) == '*')) { ^ src/json_tokenizer.cpp:13:83: warning: suggest parentheses around '&&' within '||' [-Wparentheses] while(i1 != i2 && util::c_isspace(*i1) || *i1 == '#' || *i1 == '/' && i1+1 != i2 && (*(i1 + 1) == '/' || *(i1 + 1) == '*')) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/json_tokenizer.cpp > json_tokenizer.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/key.cpp src/key.cpp: In member function 'void CKey::Read(const string&)': src/key.cpp:74:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(num_keys > sizeof(custom_key_list)) { ^ src/key.cpp:81:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != keys.size(); ++n) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/key.cpp > key.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/key_button.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/graphical_font_label.hpp:5, from src/key_button.cpp:2: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/graphical_font_label.hpp:5, from src/key_button.cpp:2: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/graphical_font_label.hpp:5:0, from src/key_button.cpp:2: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/key_button.cpp:4:0: src/key_button.hpp: In constructor 'gui::key_button::key_button(SDLKey, gui::BUTTON_RESOLUTION)': src/key_button.hpp:34:9: warning: 'gui::key_button::key_' will be initialized after [-Wreorder] SDLKey key_; ^ src/key_button.hpp:32:20: warning: 'gui::BUTTON_RESOLUTION gui::key_button::button_resolution_' [-Wreorder] BUTTON_RESOLUTION button_resolution_; ^ src/key_button.cpp:150:1: warning: when initialized here [-Wreorder] key_button::key_button(SDLKey key, BUTTON_RESOLUTION button_resolution) ^ In file included from src/key_button.cpp:4:0: src/key_button.hpp:37:108: warning: 'gui::key_button::current_button_image_set_' will be initialized after [-Wreorder] const_framed_gui_element_ptr normal_button_image_set_,depressed_button_image_set_,focus_button_image_set_,current_button_image_set_; ^ src/key_button.hpp:35:7: warning: 'bool gui::key_button::grab_keys_' [-Wreorder] bool grab_keys_; ^ src/key_button.cpp:150:1: warning: when initialized here [-Wreorder] key_button::key_button(SDLKey key, BUTTON_RESOLUTION button_resolution) ^ In file included from src/key_button.cpp:4:0: src/key_button.hpp: In constructor 'gui::key_button::key_button(const variant&, game_logic::formula_callable*)': src/key_button.hpp:37:108: warning: 'gui::key_button::current_button_image_set_' will be initialized after [-Wreorder] const_framed_gui_element_ptr normal_button_image_set_,depressed_button_image_set_,focus_button_image_set_,current_button_image_set_; ^ src/key_button.hpp:35:7: warning: 'bool gui::key_button::grab_keys_' [-Wreorder] bool grab_keys_; ^ src/key_button.cpp:163:1: warning: when initialized here [-Wreorder] key_button::key_button(const variant& v, game_logic::formula_callable* e) ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/key_button.cpp > key_button.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/label.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/label.hpp:22, from src/label.cpp:16: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/label.hpp:22, from src/label.cpp:16: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/label.hpp:22:0, from src/label.cpp:16: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/label.cpp:16:0: src/label.hpp: In constructor 'gui::label::label(const string&, int)': src/label.hpp:83:7: warning: 'gui::label::down_' will be initialized after [-Wreorder] bool down_; ^ src/label.hpp:75:7: warning: 'bool gui::label::fixed_width_' [-Wreorder] bool fixed_width_; ^ src/label.cpp:22:1: warning: when initialized here [-Wreorder] label::label(const std::string& text, int size) ^ In file included from src/label.cpp:16:0: src/label.hpp:75:7: warning: 'gui::label::fixed_width_' will be initialized after [-Wreorder] bool fixed_width_; ^ src/label.hpp:73:12: warning: 'SDL_Color gui::label::highlight_color_' [-Wreorder] SDL_Color highlight_color_; ^ src/label.cpp:22:1: warning: when initialized here [-Wreorder] label::label(const std::string& text, int size) ^ In file included from src/label.cpp:16:0: src/label.hpp: In constructor 'gui::label::label(const string&, const SDL_Color&, int)': src/label.hpp:83:7: warning: 'gui::label::down_' will be initialized after [-Wreorder] bool down_; ^ src/label.hpp:75:7: warning: 'bool gui::label::fixed_width_' [-Wreorder] bool fixed_width_; ^ src/label.cpp:32:1: warning: when initialized here [-Wreorder] label::label(const std::string& text, const SDL_Color& color, int size) ^ In file included from src/label.cpp:16:0: src/label.hpp:75:7: warning: 'gui::label::fixed_width_' will be initialized after [-Wreorder] bool fixed_width_; ^ src/label.hpp:73:12: warning: 'SDL_Color gui::label::highlight_color_' [-Wreorder] SDL_Color highlight_color_; ^ src/label.cpp:32:1: warning: when initialized here [-Wreorder] label::label(const std::string& text, const SDL_Color& color, int size) ^ In file included from src/label.cpp:16:0: src/label.hpp: In constructor 'gui::label::label(const variant&, game_logic::formula_callable*)': src/label.hpp:83:7: warning: 'gui::label::down_' will be initialized after [-Wreorder] bool down_; ^ src/label.hpp:73:12: warning: 'SDL_Color gui::label::highlight_color_' [-Wreorder] SDL_Color highlight_color_; ^ src/label.cpp:41:1: warning: when initialized here [-Wreorder] label::label(const variant& v, game_logic::formula_callable* e) ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/label.cpp > label.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/language_dialog.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/button.hpp:19, from src/language_dialog.cpp:4: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/button.hpp:19, from src/language_dialog.cpp:4: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/button.hpp:19:0, from src/language_dialog.cpp:4: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/language_dialog.cpp:7:0: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/language_dialog.cpp:10: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/language_dialog.cpp:10: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/language_dialog.cpp:10: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/language_dialog.cpp: In function 'void show_language_dialog()': src/language_dialog.cpp:85:6: warning: unused variable 'index' [-Wunused-variable] int index = 0; ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/language_dialog.cpp > language_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/level.cpp In file included from src/level.cpp:11:0: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/level.hpp:20, from src/editor.hpp:13, from src/level.cpp:13: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/editor.hpp:13, from src/level.cpp:13: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/editor.hpp:13, from src/level.cpp:13: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/editor.hpp:13, from src/level.cpp:13: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/editor.hpp:13, from src/level.cpp:13: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/editor.hpp:13, from src/level.cpp:13: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/level.cpp: In member function 'void level::set_as_current_level()': src/level.cpp:129:19: warning: unused variable 'starting_virtual_y_resolution' [-Wunused-variable] static const int starting_virtual_y_resolution = preferences::virtual_screen_height(); ^ src/level.cpp: In constructor 'level::level(const string&, variant)': src/level.cpp:327:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = begin_tile_index; i != tiles_.size(); ++i) { ^ src/level.cpp: In member function 'void level::load_character(variant)': src/level.cpp:529:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(players_.size() == multiplayer::slot()) { ^ src/level.cpp:540:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(group >= groups_.size()) { ^ src/level.cpp: In member function 'void level::finish_loading()': src/level.cpp:700:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != chars_.size(); ++n) { ^ src/level.cpp: In member function 'variant level::write() const': src/level.cpp:1145:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n <= tiles_.size(); ++n) { ^ src/level.cpp:1146:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(n != tiles_.size() && tiles_[n].draw_disabled && tiles_[n].object->has_solid() == false) { ^ src/level.cpp:1150:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(n == tiles_.size() || tiles_[n].zorder != last_zorder) { ^ src/level.cpp:1160:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(n == tiles_.size()) { ^ src/level.cpp:1169:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int m = n; m != tiles_.size() && tiles_[m].zorder == tiles_[n].zorder; ++m) { ^ src/level.cpp:1206:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(n != tiles_.size() && tiles_[n].x == xpos && tiles_[n].y == ypos && tiles_[n].zorder == zpos) { ^ src/level.cpp:1281:56: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = rows < prev_rows ? v.size()-1 : 0; n != v.size(); ++n) { ^ src/level.cpp: In member function 'void level::draw_layer(int, int, int, int, int) const': src/level.cpp:1612:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n < translucent_indexes.size(); n += 6) { ^ src/level.cpp:1526:20: warning: unused variable 't' [-Wunused-variable] const level_tile* t = &*tile_itor; ^ src/level.cpp:1527:20: warning: unused variable 'end_tiles' [-Wunused-variable] const level_tile* end_tiles = &*tiles_.begin() + tiles_.size(); ^ src/level.cpp: In member function 'void level::prepare_tiles_for_drawing()': src/level.cpp:1681:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != tiles_.size(); ++n) { ^ src/level.cpp:1708:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != tiles_.size(); ++n) { ^ src/level.cpp:1749:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(blit_info.indexes.size() <= ytile) { ^ src/level.cpp:1753:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(blit_info.indexes[ytile].size() <= xtile) { ^ src/level.cpp:1761:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 1; n < solid_color_rects_.size(); ++n) { ^ src/level.cpp: In member function 'void level::draw(int, int, int, int) const': src/level.cpp:1940:6: warning: unused variable 'last_zorder' [-Wunused-variable] int last_zorder = -1000000; ^ src/level.cpp:1852:12: warning: unused variable 'ticks' [-Wunused-variable] const int ticks = SDL_GetTicks(); ^ src/level.cpp: In member function 'void level::process()': src/level.cpp:2318:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index < preloads_.size()) { ^ src/level.cpp: In function 'bool {anonymous}::compare_entity_num_parents(const entity_ptr&, const entity_ptr&)': src/level.cpp:2358:45: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return deptha < depthb || deptha == depthb && standa < standb || ^ src/level.cpp:2359:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] deptha == depthb && standa == standb && a->is_human() < b->is_human(); ^ src/level.cpp: In member function 'void level::set_active_chars()': src/level.cpp:2377:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert(c->group() < groups_.size()); ^ src/level.cpp: In member function 'void level::do_processing()': src/level.cpp:2417:12: warning: unused variable 'ticks' [-Wunused-variable] const int ticks = SDL_GetTicks(); ^ src/level.cpp:2438:12: warning: unused variable 'ActivationDistance' [-Wunused-variable] const int ActivationDistance = 700; ^ src/level.cpp: In member function 'void level::erase_char(entity_ptr)': src/level.cpp:2482:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert(c->group() < groups_.size()); ^ src/level.cpp: In member function 'bool level::add_tile_rect_vector_internal(int, int, int, int, int, const std::vector >&)': src/level.cpp:2831:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index+1 < tiles.size()) { ^ src/level.cpp: In member function 'bool level::add_hex_tile_rect_vector_internal(int, int, int, int, int, const std::vector >&)': src/level.cpp:2867:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index+1 < tiles.size()) { ^ src/level.cpp: In member function 'void level::get_all_tiles_rect(int, int, int, int, std::map > >&) const': src/level.cpp:2914:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(std::count(cleared.begin(), cleared.end(), "") != cleared.size()) { ^ src/level.cpp: In member function 'void level::get_all_hex_tiles_rect(int, int, int, int, std::map > >&) const': src/level.cpp:2929:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(std::count(cleared.begin(), cleared.end(), "") != cleared.size()) { ^ src/level.cpp: In member function 'void level::clear_tile_rect(int, int, int, int)': src/level.cpp:2971:7: warning: variable 'changed' set but not used [-Wunused-but-set-variable] bool changed = false; ^ src/level.cpp: In member function 'void level::clear_hex_tile_rect(int, int, int, int)': src/level.cpp:2994:7: warning: variable 'changed' set but not used [-Wunused-but-set-variable] bool changed = false; ^ src/level.cpp: In member function 'std::vector level::get_solid_contiguous_region(int, int) const': src/level.cpp:3073:45: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(info == NULL || info->all_solid == false && info->bitmap.any() == false) { ^ src/level.cpp:3081:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(positions.size() != last_count) { ^ src/level.cpp:3098:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(info == NULL || info->all_solid == false && info->bitmap.any() == false) { ^ src/level.cpp: In member function 'void level::add_player(entity_ptr)': src/level.cpp:3323:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != chars_.size(); ++n) { ^ src/level.cpp:3334:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != chars_.size(); ++n) { ^ src/level.cpp: In member function 'void level::set_character_group(entity_ptr, int)': src/level.cpp:3443:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert(c->group() < groups_.size()); ^ src/level.cpp: In member function 'virtual void level::set_value(const string&, const variant&)': src/level.cpp:3755:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value.num_elements(); ++n) { ^ src/level.cpp:3769:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value.num_elements(); ++n) { ^ src/level.cpp: At global scope: src/level.cpp:4499:81: warning: 'UTILITY_VAR_correct_solidity' defined but not used [-Wunused-variable] src/level.cpp:4529:79: warning: 'UTILITY_VAR_compile_levels' defined but not used [-Wunused-variable] src/level.cpp:4567:66: warning: 'BENCHMARK_VAR_level_solid' defined but not used [-Wunused-variable] src/level.cpp:4576:64: warning: 'BENCHMARK_VAR_load_nene' defined but not used [-Wunused-variable] src/level.cpp:4583:70: warning: 'BENCHMARK_VAR_load_all_levels' defined but not used [-Wunused-variable] src/level.cpp:4594:79: warning: 'BENCHMARK_VAR_load_and_save_all_levels' defined but not used [-Wunused-variable] src/level.cpp:752:14: warning: '{anonymous}::level_building' defined but not used [-Wunused-variable] const level* level_building = NULL; ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/level.cpp > level.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/level_logic.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/level.hpp:20, from src/level_logic.cpp:4: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/level_logic.cpp:4: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/level_logic.cpp:4: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/level_logic.cpp:4: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/level_logic.cpp:4: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/level_logic.cpp:4: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/level_logic.cpp:4: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/level_logic.cpp > level_logic.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/level_object.cpp In file included from src/level_object.cpp:11:0: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.cpp: In function 'void create_compiled_tiles_image()': src/level_object.cpp:117:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(zorder_with_alpha_channel.count(i->first) != use_alpha_channel) { ^ src/level_object.cpp:124:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(; sheet != tiles_in_sheet.size(); ++sheet) { ^ src/level_object.cpp:132:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(sheet == tiles_in_sheet.size()) { ^ src/level_object.cpp:263:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != sheets.size(); ++n) { ^ In file included from src/level_object.cpp:11:0: src/level_object.hpp: In constructor 'level_object::level_object(variant, const char*)': src/level_object.hpp:146:6: warning: 'level_object::traction_' will be initialized after [-Wreorder] int traction_; ^ src/level_object.hpp:144:6: warning: 'int level_object::damage_' [-Wreorder] int damage_; ^ src/level_object.cpp:305:1: warning: when initialized here [-Wreorder] level_object::level_object(variant node, const char* id) ^ src/level_object.cpp:381:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != surf->w*surf->h && n != solid_.size(); ++n) { ^ src/level_object.cpp:500:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert(heights_index >= 0 && heights_index < heights.size()); ^ src/level_object.cpp:523:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert(index >= 0 && index < solid_.size()); ^ src/level_object.cpp: In static member function 'static void level_object::write_compiled()': src/level_object.cpp:651:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n <= level_object_index.size()/64; ++n) { ^ src/level_object.cpp:656:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int m = n*64; m < level_object_index.size() && m < (n+1)*64; ++m) { ^ src/level_object.cpp: In function 'void {anonymous}::load_compiled_tiles(int)': src/level_object.cpp:676:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(starting_index >= compiled_tiles.size()) { ^ src/level_object.cpp: In static member function 'static const_level_object_ptr level_object::get_compiled(const char*)': src/level_object.cpp:689:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index >= compiled_tiles.size() || !compiled_tiles[index]) { ^ src/level_object.cpp:693:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(index >= compiled_tiles.size() || compiled_tiles[index], "COULD NOT LOAD COMPILED TILE: " << std::string(buf, buf+3) << " -> " << index); ^ src/level_object.cpp: In member function 'level_object_ptr level_object::record_zorder(int) const': src/level_object.cpp:714:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != palettes.size(); ++n) { ^ src/level_object.cpp:724:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != palettes.size(); ++n) { ^ src/level_object.cpp: In member function 'bool level_object::is_solid(int, int) const': src/level_object.cpp:777:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert(index >= 0 && index < solid_.size()); ^ src/level_object.cpp: At global scope: src/level_object.cpp:906:45: warning: 'TEST_VAR_level_object_base64' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/level_object.cpp > level_object.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/level_runner.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/custom_object_type.hpp:11, from src/custom_object.hpp:13, from src/level_runner.cpp:13: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/level_runner.cpp:13: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/level_runner.cpp:13: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/level_runner.cpp:13: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/debug_console.hpp:9, from src/level_runner.cpp:15: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/debug_console.hpp:9, from src/level_runner.cpp:15: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/debug_console.hpp:9, from src/level_runner.cpp:15: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ In file included from src/debug_console.hpp:10:0, from src/level_runner.cpp:15: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ src/level_runner.cpp: In function 'void {anonymous}::iris_scene(const level&, screen_position&, float)': src/level_runner.cpp:241:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != x_angles.size(); ++n) { ^ src/level_runner.cpp: In function 'void {anonymous}::show_end_game()': src/level_runner.cpp:278:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n <= msg.size(); ++n) { ^ src/level_runner.cpp: In member function 'bool level_runner::play_cycle()': src/level_runner.cpp:763:13: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(editor_ && editor_->has_keyboard_focus() || ^ src/level_runner.cpp:1514:12: warning: unused variable 'raw_wait_time' [-Wunused-variable] const int raw_wait_time = desired_end_time - SDL_GetTicks(); ^ src/level_runner.cpp: In member function 'void level_runner::reverse_cycle()': src/level_runner.cpp:1571:13: warning: unused variable 'should_draw' [-Wunused-variable] const bool should_draw = update_camera_position(*lvl_, last_draw_position(), NULL, !is_skipping_game()); ^ src/level_runner.cpp: At global scope: src/level_runner.cpp:177:6: warning: 'bool {anonymous}::calculate_stencil_buffer_available()' defined but not used [-Wunused-function] bool calculate_stencil_buffer_available() { ^ src/level_runner.cpp:736:6: warning: 'void {anonymous}::load_level_thread(const string&, level**)' defined but not used [-Wunused-function] void load_level_thread(const std::string& lvl, level** res) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/level_runner.cpp > level_runner.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/level_solid_map.cpp src/level_solid_map.cpp: In member function 'tile_solid_info** level_solid_map::insert_raw(const tile_pos&)': src/level_solid_map.cpp:57:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(positive_rows_.size() <= pos.second) { ^ src/level_solid_map.cpp:64:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(negative_rows_.size() <= index) { ^ src/level_solid_map.cpp:72:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(r->positive_cells.size() <= pos.first) { ^ src/level_solid_map.cpp:79:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(r->negative_cells.size() <= index) { ^ src/level_solid_map.cpp: In member function 'const tile_solid_info* level_solid_map::find(const tile_pos&) const': src/level_solid_map.cpp:91:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(pos.second < positive_rows_.size()) { ^ src/level_solid_map.cpp:98:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index < negative_rows_.size()) { ^ src/level_solid_map.cpp:106:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(pos.first < r->positive_cells.size()) { ^ src/level_solid_map.cpp:113:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index < r->negative_cells.size()) { ^ src/level_solid_map.cpp: In member function 'void level_solid_map::merge(const level_solid_map&, int, int)': src/level_solid_map.cpp:156:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != map.negative_rows_.size(); ++n) { ^ src/level_solid_map.cpp:157:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int m = 0; m != map.negative_rows_[n].negative_cells.size(); ++m) { ^ src/level_solid_map.cpp:172:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int m = 0; m != map.negative_rows_[n].positive_cells.size(); ++m) { ^ src/level_solid_map.cpp:188:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != map.positive_rows_.size(); ++n) { ^ src/level_solid_map.cpp:189:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int m = 0; m != map.positive_rows_[n].negative_cells.size(); ++m) { ^ src/level_solid_map.cpp:204:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int m = 0; m != map.positive_rows_[n].positive_cells.size(); ++m) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/level_solid_map.cpp > level_solid_map.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/light.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/custom_object_type.hpp:11, from src/custom_object.hpp:13, from src/light.cpp:3: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/light.cpp:3: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/light.cpp:3: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/light.cpp:3: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/light.cpp: In member function 'virtual void circle_light::draw(const rect&, const unsigned char*) const': src/light.cpp:79:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != x_angles.size(); ++n) { ^ src/light.cpp:103:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != x_angles.size(); ++n) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/light.cpp > light.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/load_level_nothread.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/level.hpp:20, from src/load_level_nothread.cpp:6: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/load_level_nothread.cpp:6: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/load_level_nothread.cpp:6: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/load_level_nothread.cpp:6: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/load_level_nothread.cpp:6: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/load_level_nothread.cpp:6: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/load_level_nothread.cpp:6: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/load_level_nothread.cpp > load_level_nothread.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/main.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/custom_object_type.hpp:11, from src/custom_object.hpp:13, from src/main.cpp:20: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/main.cpp:20: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/main.cpp:20: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/main.cpp:20: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/editor.hpp:13, from src/main.cpp:25: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/editor.hpp:13, from src/main.cpp:25: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/editor.hpp:13, from src/main.cpp:25: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ In file included from src/debug_console.hpp:10:0, from src/level_runner.hpp:10, from src/main.cpp:43: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ src/main.cpp: In function 'int main(int, char**)': src/main.cpp:285:13: warning: unused variable 'argc' [-Wunused-variable] const int argc = argv.size(); ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/main.cpp > main.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/md5.cpp src/md5.cpp: In function 'void md5::MD5Final(uint8_t*, md5::MD5Context*)': src/md5.cpp:172:31: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] std::memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ ^ src/md5.cpp: At global scope: src/md5.cpp:278:35: warning: 'TEST_VAR_md5_test1' defined but not used [-Wunused-variable] src/md5.cpp:285:35: warning: 'TEST_VAR_md5_test2' defined but not used [-Wunused-variable] src/md5.cpp:290:35: warning: 'TEST_VAR_md5_test3' defined but not used [-Wunused-variable] src/md5.cpp:311:35: warning: 'TEST_VAR_md5_test4' defined but not used [-Wunused-variable] src/md5.cpp:324:35: warning: 'TEST_VAR_md5_test5' defined but not used [-Wunused-variable] src/md5.cpp:331:35: warning: 'TEST_VAR_md5_test6' defined but not used [-Wunused-variable] src/md5.cpp:336:35: warning: 'TEST_VAR_md5_test7' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/md5.cpp > md5.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/message_dialog.cpp src/message_dialog.cpp: In member function 'void message_dialog::draw() const': src/message_dialog.cpp:128:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n <= cur_row_ && n < lines_.size(); ++n) { ^ src/message_dialog.cpp:141:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cur_row_ >= lines_.size() && !options_.empty()) { ^ src/message_dialog.cpp:147:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(t.width() > width) { ^ src/message_dialog.cpp:157:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != options_.size(); ++n) { ^ src/message_dialog.cpp: In member function 'void message_dialog::process()': src/message_dialog.cpp:183:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(selected_option_ == options_.size()) { ^ src/message_dialog.cpp:196:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cur_row_ >= lines_.size()) { ^ src/message_dialog.cpp:205:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cur_row_ < lines_.size()) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/message_dialog.cpp > message_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/module.cpp src/module.cpp: In function 'std::__cxx11::string module::get_module_version()': src/module.cpp:57:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 1; n < v.size(); ++n) { ^ src/module.cpp: In function 'std::__cxx11::string module::make_module_id(const string&)': src/module.cpp:147:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(spos == std::string::npos) { ^ src/module.cpp:150:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(spos != std::string::npos) { ^ src/module.cpp: In function 'bool module::{anonymous}::is_valid_module_id(const string&)': src/module.cpp:351:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != id.size(); ++n) { ^ src/module.cpp: In function 'void module::UTILITY_publish_module(const std::vector >&)': src/module.cpp:482:123: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(std::count_if(module_id.begin(), module_id.end(), isalnum) + std::count(module_id.begin(), module_id.end(), '_') == module_id.size(), "ILLEGAL ARGUMENT: " << module_id); ^ src/module.cpp: In function 'bool module::{anonymous}::is_module_path_valid(const string&)': src/module.cpp:519:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 1; n < str.size(); ++n) { ^ src/module.cpp:526:108: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return str.empty() == false && isalnum(str[0]) && std::count_if(str.begin(), str.end(), valid_path_chars) == str.size(); ^ src/module.cpp: In member function 'void module::client::on_response(std::__cxx11::string)': src/module.cpp:648:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(begin >= 0 && end >= 0 && begin <= data.size() && end <= data.size(), "INVALID PATH INDEXES FOR " << path_str << ": " << begin << "," << end << " / " << data.size()); ^ src/module.cpp:648:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(begin >= 0 && end >= 0 && begin <= data.size() && end <= data.size(), "INVALID PATH INDEXES FOR " << path_str << ": " << begin << "," << end << " / " << data.size()); ^ src/module.cpp: In function 'void module::UTILITY_install_module(const std::vector >&)': src/module.cpp:784:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(begin >= 0 && end >= 0 && begin <= data.size() && end <= data.size(), "INVALID PATH INDEXES FOR " << path_str << ": " << begin << "," << end << " / " << data.size()); ^ src/module.cpp:784:63: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(begin >= 0 && end >= 0 && begin <= data.size() && end <= data.size(), "INVALID PATH INDEXES FOR " << path_str << ": " << begin << "," << end << " / " << data.size()); ^ src/module.cpp: In function 'void module::UTILITY_publish_module_stats(const std::vector >&)': src/module.cpp:811:123: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(std::count_if(module_id.begin(), module_id.end(), isalnum) + std::count(module_id.begin(), module_id.end(), '_') == module_id.size(), "ILLEGAL ARGUMENT: " << module_id); ^ src/module.cpp: At global scope: src/module.cpp:461:79: warning: 'module::UTILITY_VAR_publish_module' defined but not used [-Wunused-variable] src/module.cpp:719:79: warning: 'module::UTILITY_VAR_install_module' defined but not used [-Wunused-variable] src/module.cpp:791:85: warning: 'module::UTILITY_VAR_publish_module_stats' defined but not used [-Wunused-variable] src/module.cpp:844:77: warning: 'module::UTILITY_VAR_list_modules' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/module.cpp > module.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/module_web_server.cpp src/module_web_server.cpp: In member function 'virtual void module_web_server::handle_post(http::web_server::socket_ptr, variant, const environment&)': src/module_web_server.cpp:58:123: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(std::count_if(module_id.begin(), module_id.end(), isalnum) + std::count(module_id.begin(), module_id.end(), '_') == module_id.size(), "ILLEGAL MODULE ID"); ^ src/module_web_server.cpp: At global scope: src/module_web_server.cpp:199:78: warning: 'UTILITY_VAR_module_server' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/module_web_server.cpp > module_web_server.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/movement_script.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/custom_object_functions.hpp:6, from src/movement_script.cpp:1: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ src/movement_script.cpp: In member function 'active_movement_script_ptr movement_script::begin_execution(const game_logic::formula_callable&) const': src/movement_script.cpp:58:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != v.num_elements(); ++n) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/movement_script.cpp > movement_script.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/multi_tile_pattern.cpp In file included from src/multi_tile_pattern.hpp:12:0, from src/multi_tile_pattern.cpp:6: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/multi_tile_pattern.cpp: In function 'int {anonymous}::parse_pattern(const string&, std::vector<{anonymous}::raw_cell>&)': src/multi_tile_pattern.cpp:85:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(width == items.size(), "Inconsistent multi_tile_pattern size in pattern " << pattern); ^ src/multi_tile_pattern.cpp:99:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != arrows.size()-1; ++n) { ^ src/multi_tile_pattern.cpp:76:12: warning: unused variable 'height' [-Wunused-variable] const int height = lines.size(); ^ src/multi_tile_pattern.cpp: In constructor 'multi_tile_pattern::multi_tile_pattern(variant, const string&)': src/multi_tile_pattern.cpp:156:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != cells.size(); ++n) { ^ src/multi_tile_pattern.cpp:184:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LT(index, cells.size()); ^ src/multi_tile_pattern.cpp:220:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != cells.size(); ++n) { ^ src/multi_tile_pattern.cpp:275:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_EQ(tiles_.size(), width_*height_); ^ src/multi_tile_pattern.cpp:303:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != try_order_.size(); ++n) { ^ src/multi_tile_pattern.cpp:318:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 2; n != try_order_.size(); ++n) { ^ src/multi_tile_pattern.cpp: In member function 'const multi_tile_pattern& multi_tile_pattern::choose_random_alternative(int) const': src/multi_tile_pattern.cpp:359:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index == alternatives_.size()) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/multi_tile_pattern.cpp > multi_tile_pattern.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/multiplayer.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/level.hpp:20, from src/multiplayer.cpp:20: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/multiplayer.cpp:20: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/multiplayer.cpp:20: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/multiplayer.cpp:20: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/multiplayer.cpp:20: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/multiplayer.cpp:20: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/multiplayer.cpp:20: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/multiplayer.cpp: In function 'void multiplayer::setup_networked_game(const string&)': src/multiplayer.cpp:129:20: warning: unused variable 'receiver_endpoint' [-Wunused-variable] udp::endpoint& receiver_endpoint = *udp_endpoint; ^ src/multiplayer.cpp: In function 'void multiplayer::{anonymous}::send_confirm_packet(int, std::vector&, bool)': src/multiplayer.cpp:161:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(nplayer == player_slot || nplayer < 0 || nplayer >= udp_endpoint_peers.size()) { ^ src/multiplayer.cpp:155:27: warning: unused variable 'udp_msg' [-Wunused-variable] boost::array udp_msg; ^ src/multiplayer.cpp: In function 'void multiplayer::sync_start_time(const level&, boost::function)': src/multiplayer.cpp:282:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int m = 0; m != 1000 && confirmed_players.size() < nplayers || m < confirmation_point + 50; ++m) { ^ src/multiplayer.cpp:282:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses] for(int m = 0; m != 1000 && confirmed_players.size() < nplayers || m < confirmation_point + 50; ++m) { ^ src/multiplayer.cpp:296:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(udp_msg[5] >= 0 && udp_msg[5] < udp_endpoint_peers.size()) { ^ src/multiplayer.cpp:303:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(confirmed_players.size() >= nplayers && m < confirmation_point) { ^ src/multiplayer.cpp:340:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(confirmed_players.size() < nplayers) { ^ src/multiplayer.cpp:363:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(SDL_GetTicks() < game_start) { ^ src/multiplayer.cpp:488:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(SDL_GetTicks() >= start_time_avg) { ^ src/multiplayer.cpp: In function 'void multiplayer::send_and_receive()': src/multiplayer.cpp:512:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != udp_endpoint_peers.size(); ++n) { ^ src/multiplayer.cpp: In function 'void UTILITY_hole_punch_test(const std::vector >&)': src/multiplayer.cpp:587:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != peers.size(); ++n) { ^ src/multiplayer.cpp: At global scope: src/multiplayer.cpp:550:80: warning: 'UTILITY_VAR_hole_punch_test' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/multiplayer.cpp > multiplayer.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/object_events.cpp src/object_events.cpp: In function 'std::map, int> {anonymous}::create_object_event_ids()': src/object_events.cpp:60:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != object_event_names().size(); ++n) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/object_events.cpp > object_events.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/options_dialog.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/dialog.hpp:17, from src/options_dialog.cpp:18: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/dialog.hpp:17, from src/options_dialog.cpp:18: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/dialog.hpp:17:0, from src/options_dialog.cpp:18: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/options_dialog.cpp > options_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/particle_system.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/particle_system.cpp:10: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ src/particle_system.cpp: In constructor '{anonymous}::particle_animation::particle_animation(variant)': src/particle_system.cpp:45:13: warning: unused variable 'pad' [-Wunused-variable] const int pad = node["pad"].as_int(); ^ src/particle_system.cpp: In member function 'const {anonymous}::particle_animation::frame_area& {anonymous}::particle_animation::get_frame(int) const': src/particle_system.cpp:84:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] } else if(index >= frames_.size()) { ^ src/particle_system.cpp: In member function 'virtual bool {anonymous}::simple_particle_system::is_destroyed() const': src/particle_system.cpp:202:94: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool is_destroyed() const { return info_.system_time_to_live_ == 0 || info_.spawn_rate_ < 0 && particles_.empty(); } ^ src/particle_system.cpp: In constructor '{anonymous}::point_particle_info::point_particle_info(variant)': src/particle_system.cpp:679:15: warning: '{anonymous}::point_particle_info::accel_y' will be initialized after [-Wreorder] int accel_x, accel_y; ^ src/particle_system.cpp:678:30: warning: 'int {anonymous}::point_particle_info::velocity_x_rand' [-Wreorder] int velocity_x, velocity_y, velocity_x_rand, velocity_y_rand; ^ src/particle_system.cpp:610:11: warning: when initialized here [-Wreorder] explicit point_particle_info(variant node) ^ src/particle_system.cpp:685:7: warning: '{anonymous}::point_particle_info::dot_rounded' will be initialized after [-Wreorder] bool dot_rounded; ^ src/particle_system.cpp:680:6: warning: 'int {anonymous}::point_particle_info::time_to_live' [-Wreorder] int time_to_live, time_to_live_max; ^ src/particle_system.cpp:610:11: warning: when initialized here [-Wreorder] explicit point_particle_info(variant node) ^ src/particle_system.cpp:641:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != v.num_elements(); ++n) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/particle_system.cpp > particle_system.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/pathfinding.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/level.hpp:20, from src/pathfinding.cpp:4: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/pathfinding.cpp:4: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/pathfinding.cpp:4: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/pathfinding.cpp:4: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/pathfinding.cpp:4: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/pathfinding.cpp:4: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/pathfinding.cpp:4: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ In file included from src/pathfinding.cpp:5:0: src/pathfinding.hpp: In instantiation of 'pathfinding::graph_node::graph_node(const N&) [with N = variant; T = decimal]': src/pathfinding.hpp:129:109: required from here src/pathfinding.hpp:83:4: warning: 'pathfinding::graph_node::src_' will be initialized after [-Wreorder] N src_; ^ src/pathfinding.hpp:82:4: warning: 'decimal pathfinding::graph_node::f_' [-Wreorder] T f_, g_, h_; ^ src/pathfinding.hpp:42:2: warning: when initialized here [-Wreorder] graph_node(const N& src) ^ src/pathfinding.hpp: In instantiation of 'pathfinding::graph_node::graph_node(const N&) [with N = point; T = double]': src/pathfinding.cpp:267:134: required from here src/pathfinding.hpp:83:4: warning: 'pathfinding::graph_node::src_' will be initialized after [-Wreorder] N src_; ^ src/pathfinding.hpp:82:4: warning: 'double pathfinding::graph_node::f_' [-Wreorder] T f_, g_, h_; ^ src/pathfinding.hpp:42:2: warning: when initialized here [-Wreorder] graph_node(const N& src) ^ src/pathfinding.cpp: At global scope: src/pathfinding.cpp:411:49: warning: 'TEST_VAR_directed_graph_function' defined but not used [-Wunused-variable] src/pathfinding.cpp:417:49: warning: 'TEST_VAR_weighted_graph_function' defined but not used [-Wunused-variable] src/pathfinding.cpp:421:51: warning: 'TEST_VAR_cost_path_search_function' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/pathfinding.cpp > pathfinding.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/pause_game_dialog.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/button.hpp:19, from src/pause_game_dialog.cpp:3: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/button.hpp:19, from src/pause_game_dialog.cpp:3: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/button.hpp:19:0, from src/pause_game_dialog.cpp:3: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/pause_game_dialog.cpp:8:0: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/pause_game_dialog.cpp:11: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/pause_game_dialog.cpp:11: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/pause_game_dialog.cpp:11: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/pause_game_dialog.cpp > pause_game_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/playable_custom_object.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/level.hpp:20, from src/playable_custom_object.cpp:7: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/playable_custom_object.cpp:7: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/playable_custom_object.cpp:7: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/playable_custom_object.cpp:7: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/playable_custom_object.cpp:7: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/playable_custom_object.cpp:7: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/playable_custom_object.cpp:7: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/playable_custom_object.cpp: In member function 'virtual variant playable_custom_object::get_value(const string&) const': src/playable_custom_object.cpp:243:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n < sizeof(ctrl)/sizeof(*ctrl); ++n) { ^ src/playable_custom_object.cpp: In member function 'virtual void playable_custom_object::set_value(const string&, const variant&)': src/playable_custom_object.cpp:273:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value.num_elements(); ++n) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/playable_custom_object.cpp > playable_custom_object.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/player_info.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/player_info.cpp > player_info.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/preferences.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/preferences.cpp > preferences.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/preprocessor.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/preprocessor.cpp:7: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ src/preprocessor.cpp: In function 'std::__cxx11::string preprocess(const string&)': src/preprocessor.cpp:29:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(input.end() - i > IncludeString.size() && std::equal(IncludeString.begin(), IncludeString.end(), i)) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/preprocessor.cpp > preprocessor.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/preview_tileset_widget.cpp In file included from src/preview_tileset_widget.hpp:4:0, from src/preview_tileset_widget.cpp:4: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/preview_tileset_widget.hpp:5, from src/preview_tileset_widget.cpp:4: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/preview_tileset_widget.hpp:5, from src/preview_tileset_widget.cpp:4: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/preview_tileset_widget.hpp:5:0, from src/preview_tileset_widget.cpp:4: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/preview_tileset_widget.cpp:5:0: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/preview_tileset_widget.cpp > preview_tileset_widget.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/progress_bar.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/progress_bar.hpp:11, from src/progress_bar.cpp:3: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/progress_bar.hpp:11, from src/progress_bar.cpp:3: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/progress_bar.hpp:11:0, from src/progress_bar.cpp:3: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/progress_bar.cpp:3:0: src/progress_bar.hpp: In constructor 'gui::progress_bar::progress_bar(int, int, int, const string&)': src/progress_bar.hpp:40:6: warning: 'gui::progress_bar::progress_' will be initialized after [-Wreorder] int progress_; ^ src/progress_bar.hpp:38:6: warning: 'int gui::progress_bar::min_' [-Wreorder] int min_; ^ src/progress_bar.cpp:8:1: warning: when initialized here [-Wreorder] progress_bar::progress_bar(int progress, int minv, int maxv, const std::string& gui_set) ^ In file included from src/progress_bar.cpp:3:0: src/progress_bar.hpp:45:7: warning: 'gui::progress_bar::upscale_' will be initialized after [-Wreorder] bool upscale_; ^ src/progress_bar.hpp:35:18: warning: 'graphics::color gui::progress_bar::color_' [-Wreorder] graphics::color color_; ^ src/progress_bar.cpp:8:1: warning: when initialized here [-Wreorder] progress_bar::progress_bar(int progress, int minv, int maxv, const std::string& gui_set) ^ In file included from src/progress_bar.cpp:3:0: src/progress_bar.hpp: In constructor 'gui::progress_bar::progress_bar(const variant&, game_logic::formula_callable*)': src/progress_bar.hpp:41:7: warning: 'gui::progress_bar::completion_called_' will be initialized after [-Wreorder] bool completion_called_; ^ src/progress_bar.hpp:40:6: warning: 'int gui::progress_bar::progress_' [-Wreorder] int progress_; ^ src/progress_bar.cpp:17:1: warning: when initialized here [-Wreorder] progress_bar::progress_bar(const variant& v, game_logic::formula_callable* e) ^ In file included from src/progress_bar.cpp:3:0: src/progress_bar.hpp:40:6: warning: 'gui::progress_bar::progress_' will be initialized after [-Wreorder] int progress_; ^ src/progress_bar.hpp:38:6: warning: 'int gui::progress_bar::min_' [-Wreorder] int min_; ^ src/progress_bar.cpp:17:1: warning: when initialized here [-Wreorder] progress_bar::progress_bar(const variant& v, game_logic::formula_callable* e) ^ In file included from src/progress_bar.cpp:3:0: src/progress_bar.hpp:39:6: warning: 'gui::progress_bar::max_' will be initialized after [-Wreorder] int max_; ^ src/progress_bar.hpp:36:6: warning: 'int gui::progress_bar::hpad_' [-Wreorder] int hpad_; ^ src/progress_bar.cpp:17:1: warning: when initialized here [-Wreorder] progress_bar::progress_bar(const variant& v, game_logic::formula_callable* e) ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/progress_bar.cpp > progress_bar.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/property_editor_dialog.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/button.hpp:19, from src/property_editor_dialog.cpp:7: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/button.hpp:19, from src/property_editor_dialog.cpp:7: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/button.hpp:19:0, from src/property_editor_dialog.cpp:7: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/code_editor_widget.hpp:9:0, from src/property_editor_dialog.cpp:9: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/editor.hpp:13, from src/property_editor_dialog.hpp:9, from src/property_editor_dialog.cpp:21: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/editor.hpp:13, from src/property_editor_dialog.hpp:9, from src/property_editor_dialog.cpp:21: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/editor.hpp:13, from src/property_editor_dialog.hpp:9, from src/property_editor_dialog.cpp:21: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/editor.hpp:13, from src/property_editor_dialog.hpp:9, from src/property_editor_dialog.cpp:21: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/property_editor_dialog.cpp: In member function 'void editor_dialogs::property_editor_dialog::init()': src/property_editor_dialog.cpp:264:15: warning: unused variable 'npoints' [-Wunused-variable] const int npoints = current_value.is_list() ? current_value.num_elements() : 0; ^ src/property_editor_dialog.cpp: In member function 'void editor_dialogs::property_editor_dialog::set_enum_property(const string&, const std::vector >&, int)': src/property_editor_dialog.cpp:593:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index < 0 || index >= labels.size()) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/property_editor_dialog.cpp > property_editor_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/random.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/random.cpp > random.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/raster.cpp src/raster.cpp: In function 'void graphics::{anonymous}::detect_draw(const graphics::texture&, int, int, int, int, GLfloat, GLfloat, GLfloat, GLfloat)': src/raster.cpp:327:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(texture_x < tex.width(), texture_x << " < " << tex.width() << " " << r.x() << " " << r.x2() << " " << xpos << " x: " << x1 << " x2: " << x2 << " u: " << u << "\n"); ^ src/raster.cpp:328:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LT(texture_x, tex.width()); ^ src/raster.cpp:329:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LT(texture_y, tex.height()); ^ src/raster.cpp: At global scope: src/raster.cpp:252:9: warning: 'graphics::{anonymous}::draw_detection_buf_' defined but not used [-Wunused-variable] char* draw_detection_buf_; ^ src/raster.cpp:469:7: warning: 'graphics::{anonymous}::blit_texture_translate_x' defined but not used [-Wunused-variable] int blit_texture_translate_x = 0; ^ src/raster.cpp:470:7: warning: 'graphics::{anonymous}::blit_texture_translate_y' defined but not used [-Wunused-variable] int blit_texture_translate_y = 0; ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/raster.cpp > raster.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/raster_distortion.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/raster_distortion.cpp > raster_distortion.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/rectangle_rotator.cpp src/rectangle_rotator.cpp:107:68: warning: 'BENCHMARK_VAR_rect_rotation' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/rectangle_rotator.cpp > rectangle_rotator.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/scrollbar_widget.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/image_widget.hpp:22, from src/scrollbar_widget.cpp:3: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/image_widget.hpp:22, from src/scrollbar_widget.cpp:3: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/image_widget.hpp:22:0, from src/scrollbar_widget.cpp:3: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/scrollbar_widget.cpp > scrollbar_widget.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/scrollable_widget.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/scrollbar_widget.hpp:7, from src/scrollable_widget.hpp:6, from src/scrollable_widget.cpp:3: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/scrollbar_widget.hpp:7, from src/scrollable_widget.hpp:6, from src/scrollable_widget.cpp:3: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/scrollbar_widget.hpp:7:0, from src/scrollable_widget.hpp:6, from src/scrollable_widget.cpp:3: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/scrollable_widget.cpp > scrollable_widget.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/segment_editor_dialog.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/border_widget.hpp:6, from src/segment_editor_dialog.cpp:4: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/border_widget.hpp:6, from src/segment_editor_dialog.cpp:4: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/border_widget.hpp:6:0, from src/segment_editor_dialog.cpp:4: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/editor.hpp:13, from src/segment_editor_dialog.cpp:6: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/editor.hpp:13, from src/segment_editor_dialog.cpp:6: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/editor.hpp:13, from src/segment_editor_dialog.cpp:6: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/editor.hpp:13, from src/segment_editor_dialog.cpp:6: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/segment_editor_dialog.cpp > segment_editor_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/settings_dialog.cpp src/settings_dialog.cpp: In member function 'void settings_dialog::draw(bool) const': src/settings_dialog.cpp:18:6: warning: unused variable 'sh' [-Wunused-variable] int sh = graphics::screen_height(); ^ src/settings_dialog.cpp: In member function 'bool settings_dialog::handle_event(const SDL_Event&)': src/settings_dialog.cpp:31:6: warning: unused variable 'sh' [-Wunused-variable] int sh = graphics::screen_height(); ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/settings_dialog.cpp > settings_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/shaders.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/custom_object_type.hpp:11, from src/custom_object.hpp:13, from src/shaders.cpp:5: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/shaders.cpp:5: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/shaders.cpp:5: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/shaders.cpp:5: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/shaders.cpp:11: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/shaders.cpp:11: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/shaders.cpp:11: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/shaders.cpp: In member function 'void gles2::program::set_uniform_or_defer(const string&, const variant&)': src/shaders.cpp:308:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cur_prog != get()) { ^ In file included from src/shaders.cpp:13:0: src/shaders.hpp: In constructor 'gles2::shader_program::shader_program()': src/shaders.hpp:163:10: warning: 'gles2::shader_program::parent_' will be initialized after [-Wreorder] entity* parent_; ^ src/shaders.hpp:161:6: warning: 'int gles2::shader_program::zorder_' [-Wreorder] int zorder_; ^ src/shaders.cpp:945:1: warning: when initialized here [-Wreorder] shader_program::shader_program() ^ In file included from src/shaders.cpp:13:0: src/shaders.hpp: In constructor 'gles2::shader_program::shader_program(const variant&, entity*)': src/shaders.hpp:163:10: warning: 'gles2::shader_program::parent_' will be initialized after [-Wreorder] entity* parent_; ^ src/shaders.hpp:161:6: warning: 'int gles2::shader_program::zorder_' [-Wreorder] int zorder_; ^ src/shaders.cpp:950:1: warning: when initialized here [-Wreorder] shader_program::shader_program(const variant& node, entity* obj) ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/shaders.cpp > shaders.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/sys.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/sys.cpp > sys.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/slider.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/image_widget.hpp:22, from src/slider.hpp:18, from src/slider.cpp:15: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/image_widget.hpp:22, from src/slider.hpp:18, from src/slider.cpp:15: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/image_widget.hpp:22:0, from src/slider.hpp:18, from src/slider.cpp:15: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/slider.cpp: In member function 'virtual bool gui::slider::handle_event(const SDL_Event&, bool)': src/slider.cpp:140:7: warning: unused variable 'mouse_y' [-Wunused-variable] int mouse_y = e.y; ^ src/slider.cpp:165:8: warning: unused variable 'mouse_y' [-Wunused-variable] int mouse_y = e.y; ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/slider.cpp > slider.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/solid_map.cpp src/solid_map.cpp: In member function 'void solid_map::set_solid(int, int, bool)': src/solid_map.cpp:223:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_EQ(solid_.size(), area_.w()*area_.h()); ^ src/solid_map.cpp: In member function 'void solid_map::apply_offsets(const std::vector&)': src/solid_map.cpp:242:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LT(segment, offsets.size()-1); ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/solid_map.cpp > solid_map.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/sound.cpp src/sound.cpp: In function 'void sound::{anonymous}::on_sound_finished(int)': src/sound.cpp:99:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(channel >= 0 && channel < channels_to_sounds_playing.size()) { ^ src/sound.cpp: In function 'int sound::{anonymous}::play_internal(const string&, int, const void*, float)': src/sound.cpp:460:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(channels_to_sounds_playing.size() <= result) { ^ src/sound.cpp: In function 'void sound::stop_sound(const string&, const void*)': src/sound.cpp:511:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != channels_to_sounds_playing.size(); ++n) { ^ src/sound.cpp:523:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != queued_sounds.size(); ++n) { ^ src/sound.cpp: In function 'void sound::stop_looped_sounds(const void*)': src/sound.cpp:534:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != channels_to_sounds_playing.size(); ++n) { ^ src/sound.cpp:535:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if((object == NULL && channels_to_sounds_playing[n].object != NULL ^ src/sound.cpp:552:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != queued_sounds.size(); ++n) { ^ src/sound.cpp:553:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if((object == NULL && queued_sounds[n].object != NULL ^ src/sound.cpp: In function 'void sound::change_volume(const void*, int)': src/sound.cpp:589:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != channels_to_sounds_playing.size(); ++n) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/sound.cpp > sound.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/speech_dialog.cpp In file included from src/speech_dialog.cpp:9:0: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ src/speech_dialog.cpp: In member function 'void speech_dialog::move_down()': src/speech_dialog.cpp:89:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(option_selected_ == options_.size()) { ^ src/speech_dialog.cpp: In member function 'bool speech_dialog::key_press(const SDL_Event&)': src/speech_dialog.cpp:96:13: warning: unused variable 'last_mouse' [-Wunused-variable] static int last_mouse = 0; ^ src/speech_dialog.cpp: In member function 'void speech_dialog::draw() const': src/speech_dialog.cpp:297:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n < text_.size(); ++n) { ^ src/speech_dialog.cpp:311:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n < 2 && n < text_.size() && nchars > 0; ++n) { ^ src/speech_dialog.cpp:321:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int m = 0; m != markup.size(); ++m) { ^ src/speech_dialog.cpp:323:56: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] const int end_index = std::min(str.size(), m+1 == markup.size() ? str.size() : markup[m+1].begin); ^ src/speech_dialog.cpp: In member function 'void speech_dialog::set_text(const std::vector >&)': src/speech_dialog.cpp:414:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < text.size(); i++) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/speech_dialog.cpp > speech_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/stats.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/level.hpp:20, from src/stats.cpp:20: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/stats.cpp:20: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/stats.cpp:20: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/stats.cpp:20: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/stats.cpp:20: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/stats.cpp:20: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/stats.cpp:20: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/stats.cpp: In function 'void stats::{anonymous}::send_stats_thread()': src/stats.cpp:124:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != queue.size(); ++n) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/stats.cpp > stats.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/stats_server.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/stats_server.cpp:6: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ src/stats_server.cpp: In function '{anonymous}::table {anonymous}::read_table(const variant&)': src/stats_server.cpp:110:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != v.num_elements(); ++n) { ^ src/stats_server.cpp: In function '{anonymous}::type_data_map {anonymous}::read_type_data_map(variant)': src/stats_server.cpp:149:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != v.num_elements(); ++n) { ^ src/stats_server.cpp:156:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int m = 0; m != tables_v.num_elements(); ++m) { ^ src/stats_server.cpp: In function '{anonymous}::version_data {anonymous}::read_version_data(variant)': src/stats_server.cpp:177:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != keys.num_elements(); ++n) { ^ src/stats_server.cpp: In function 'void {anonymous}::read_data_table(variant)': src/stats_server.cpp:220:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != keys.num_elements(); ++n) { ^ src/stats_server.cpp: In function 'void init_tables_for_module(const string&, const variant&)': src/stats_server.cpp:241:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != doc.num_elements(); ++n) { ^ src/stats_server.cpp:246:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int m = 0; m != tables_v.num_elements(); ++m) { ^ src/stats_server.cpp: In function 'void process_stats(const variant&)': src/stats_server.cpp:325:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != levels.num_elements(); ++n) { ^ src/stats_server.cpp:336:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int m = 0; m != stats.num_elements(); ++m) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/stats_server.cpp > stats_server.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/stats_server_main.cpp src/stats_server_main.cpp:13:77: warning: 'UTILITY_VAR_stats_server' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/stats_server_main.cpp > stats_server_main.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/stats_web_server.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/stats_web_server.cpp > stats_web_server.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/string_utils.cpp src/string_utils.cpp: In function 'std::__cxx11::string util::join(const std::vector >&, char)': src/string_utils.cpp:184:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != v.size(); ++n) { ^ src/string_utils.cpp: In function 'std::vector util::split_into_vector_int(const string&)': src/string_utils.cpp:226:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != v.size(); ++n) { ^ src/string_utils.cpp: At global scope: src/string_utils.cpp:266:46: warning: 'TEST_VAR_test_split_into_ints' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/string_utils.cpp > string_utils.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/surface_cache.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/surface_cache.cpp > surface_cache.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/surface_formula.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/surface_formula.cpp:9: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ src/surface_formula.cpp: In function 'void {anonymous}::run_formula(graphics::surface, const string&)': src/surface_formula.cpp:104:12: warning: unused variable 'ticks' [-Wunused-variable] const int ticks = SDL_GetTicks(); ^ src/surface_formula.cpp:122:6: warning: unused variable 'skip' [-Wunused-variable] int skip = 0; ^ src/surface_formula.cpp: In function 'void BENCHMARK_pixel_table(int)': src/surface_formula.cpp:286:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != image.size(); ++n) { ^ src/surface_formula.cpp:300:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != image.size(); ++n) { ^ src/surface_formula.cpp: At global scope: src/surface_formula.cpp:261:70: warning: 'BENCHMARK_VAR_surface_formula' defined but not used [-Wunused-variable] src/surface_formula.cpp:275:66: warning: 'BENCHMARK_VAR_pixel_table' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/surface_formula.cpp > surface_formula.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/surface_palette.cpp src/surface_palette.cpp: In function 'const string& graphics::get_palette_name(int)': src/surface_palette.cpp:65:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(id < 0 || id >= palettes.size()) { ^ src/surface_palette.cpp: In function 'graphics::surface graphics::map_palette(graphics::surface, int)': src/surface_palette.cpp:75:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(palette < 0 || palette >= palettes.size() || palettes[palette].mapping.empty()) { ^ src/surface_palette.cpp: In function 'graphics::color graphics::map_palette(const graphics::color&, int)': src/surface_palette.cpp:109:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(palette < 0 || palette >= palettes.size() || palettes[palette].mapping.empty()) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/surface_palette.cpp > surface_palette.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/surface_scaling.cpp src/surface_scaling.cpp: In function 'uint32_t graphics::interpolate_pixels(uint32_t, uint32_t)': src/surface_scaling.cpp:26:12: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] if(!color==3){ ^ src/surface_scaling.cpp:26:12: warning: comparison of constant '3' with boolean expression is always false [-Wbool-compare] src/surface_scaling.cpp: In function 'uint32_t graphics::interpolate_pixels(uint32_t, uint32_t, uint32_t, uint32_t)': src/surface_scaling.cpp:52:12: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] if(!color==3){ ^ src/surface_scaling.cpp:52:12: warning: comparison of constant '3' with boolean expression is always false [-Wbool-compare] src/surface_scaling.cpp: In function 'graphics::surface graphics::scale_surface(graphics::surface)': src/surface_scaling.cpp:395:17: warning: unused variable 'upper_left' [-Wunused-variable] const int upper_left = (y*2)*result->w + x*2; ^ src/surface_scaling.cpp: In function 'void graphics::UTILITY_generate_scaling_code(const std::vector >&)': src/surface_scaling.cpp:624:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(n < pattern.input.size(), "SURFACE SCALING PATTERN HAS TOO MANY CHARACTERS: " << pattern_str); ^ src/surface_scaling.cpp:637:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(n < output.input.size(), "SURFACE SCALING INPUT HAS TOO MANY CHARACTERS: " << input_str); ^ src/surface_scaling.cpp:648:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(n < output.output.size(), "SURFACE SCALING OUTPUT HAS TOO MANY CHARACTERS: " << output_str); ^ src/surface_scaling.cpp:669:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != pattern.input.size(); ++n) { ^ src/surface_scaling.cpp:671:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int m = n+1; m != pattern.input.size(); ++m) { ^ src/surface_scaling.cpp:685:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != output.input.size(); ++n) { ^ src/surface_scaling.cpp:703:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != output.output.size(); ++n) { ^ src/surface_scaling.cpp: At global scope: src/surface_scaling.cpp:543:70: warning: 'graphics::BENCHMARK_VAR_surface_scaling' defined but not used [-Wunused-variable] src/surface_scaling.cpp:613:86: warning: 'graphics::UTILITY_VAR_generate_scaling_code' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/surface_scaling.cpp > surface_scaling.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/surface.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/surface.cpp > surface.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/tbs_ai_player.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/tbs_ai_player.cpp > tbs_ai_player.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/tbs_bot.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/tbs_bot.cpp:4: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/tbs_bot.cpp:5:0: src/tbs_bot.hpp: In constructor 'tbs::bot::bot(boost::asio::io_service&, const string&, const string&, variant)': src/tbs_bot.hpp:36:30: warning: 'tbs::bot::timer_' will be initialized after [-Wreorder] boost::asio::deadline_timer timer_; ^ src/tbs_bot.hpp:30:14: warning: 'std::__cxx11::string tbs::bot::host_' [-Wreorder] std::string host_, port_; ^ src/tbs_bot.cpp:11:1: warning: when initialized here [-Wreorder] bot::bot(boost::asio::io_service& service, const std::string& host, const std::string& port, variant v) ^ src/tbs_bot.cpp: In member function 'void tbs::bot::handle_response(const string&, game_logic::formula_callable_ptr)': src/tbs_bot.cpp:60:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != validate.num_elements(); ++n) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/tbs_bot.cpp > tbs_bot.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/tbs_client.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/tbs_client.cpp > tbs_client.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/tbs_functions.cpp In file included from src/formula_function.hpp:26:0, from src/formula_function_registry.hpp:4, from src/tbs_functions.cpp:1: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/tbs_functions.cpp > tbs_functions.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/tbs_game.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/tbs_game.cpp:7: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/tbs_game.cpp:11:0: src/tbs_game.hpp: In constructor 'tbs::game::game(const tbs::game_type&)': src/tbs_game.hpp:117:13: warning: 'tbs::game::state_' will be initialized after [-Wreorder] GAME_STATE state_; ^ src/tbs_game.hpp:105:6: warning: 'int tbs::game::state_id_' [-Wreorder] int state_id_; //upward counting integer keeping track of the game state. ^ src/tbs_game.cpp:123:1: warning: when initialized here [-Wreorder] game::game(const game_type& type) ^ In file included from src/tbs_game.cpp:11:0: src/tbs_game.hpp: In constructor 'tbs::game::game(const variant&)': src/tbs_game.hpp:117:13: warning: 'tbs::game::state_' will be initialized after [-Wreorder] GAME_STATE state_; ^ src/tbs_game.hpp:105:6: warning: 'int tbs::game::state_id_' [-Wreorder] int state_id_; //upward counting integer keeping track of the game state. ^ src/tbs_game.cpp:129:1: warning: when initialized here [-Wreorder] game::game(const variant& value) ^ src/tbs_game.cpp: In member function 'virtual void tbs::game::remove_player(const string&)': src/tbs_game.cpp:268:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != players_.size(); ++n) { ^ src/tbs_game.cpp:271:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int m = 0; m != ai_.size(); ++m) { ^ src/tbs_game.cpp: In member function 'std::vector > tbs::game::get_ai_players() const': src/tbs_game.cpp:287:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(a->player_id() >= 0 && a->player_id() < players_.size(), "BAD AI INDEX: " << a->player_id()); ^ src/tbs_game.cpp: In member function 'virtual void tbs::game::send_game_state(int)': src/tbs_game.cpp:318:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != players().size(); ++n) { ^ src/tbs_game.cpp:327:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] } else if(nplayer >= 0 && nplayer < players().size() && players()[nplayer].is_human) { ^ src/tbs_game.cpp: In member function 'void tbs::game::ai_play()': src/tbs_game.cpp:334:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != ai_.size(); ++n) { ^ src/tbs_game.cpp: In member function 'void tbs::game::execute_command(variant)': src/tbs_game.cpp:448:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != cmd.num_elements(); ++n) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/tbs_game.cpp > tbs_game.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/tbs_server.cpp src/tbs_server.cpp: In member function 'void tbs::server::adopt_ajax_socket(tbs::socket_ptr, int, const variant&)': src/tbs_server.cpp:49:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i != users.size(); ++i) { ^ src/tbs_server.cpp: In member function 'void tbs::server::handle_message_internal(tbs::socket_ptr, tbs::server::client_info&, const variant&)': src/tbs_server.cpp:168:14: warning: unused variable 'game_started' [-Wunused-variable] const bool game_started = cli_info.game->game_state->started(); ^ src/tbs_server.cpp:155:21: warning: unused variable 'user' [-Wunused-variable] const std::string& user = cli_info.user; ^ src/tbs_server.cpp: In member function 'void tbs::server::send_msg(tbs::socket_ptr, const string&)': src/tbs_server.cpp:218:21: warning: unused variable 'info' [-Wunused-variable] const socket_info& info = connections_[socket]; ^ src/tbs_server.cpp: In member function 'void tbs::server::quit_games(int)': src/tbs_server.cpp:405:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(games_size != games_.size()) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/tbs_server.cpp > tbs_server.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/tbs_web_server.cpp src/tbs_web_server.cpp:161:75: warning: 'UTILITY_VAR_tbs_server' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/tbs_web_server.cpp > tbs_web_server.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/texture.cpp src/texture.cpp: In function 'unsigned int graphics::{anonymous}::get_texture_id()': src/texture.cpp:104:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(graphics_thread_id != SDL_GetThreadID(NULL)) { ^ src/texture.cpp: In function 'void graphics::set_alpha_for_transparent_colors_in_rgba_surface(SDL_Surface*, int)': src/texture.cpp:312:61: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(pixel[0] == AlphaPixel[0] && pixel[1] == AlphaPixel[1] && pixel[2] == AlphaPixel[2] || ^ src/texture.cpp: In member function 'void graphics::texture::initialize(const key&, int)': src/texture.cpp:377:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(x < width_ && y < height_) { ^ src/texture.cpp:377:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(x < width_ && y < height_) { ^ src/texture.cpp: In member function 'unsigned int graphics::texture::get_id() const': src/texture.cpp:418:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(graphics_thread_id != SDL_GetThreadID(NULL)) { ^ src/texture.cpp: In static member function 'static void graphics::texture::build_textures_from_worker_threads()': src/texture.cpp:431:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ASSERT_LOG(graphics_thread_id == SDL_GetThreadID(NULL), "CALLED build_textures_from_worker_threads from thread other than the main one"); ^ src/texture.cpp: In static member function 'static void graphics::texture::trim_caches(unsigned int)': src/texture.cpp:443:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != keys.size(); ++n) { ^ src/texture.cpp: At global scope: src/texture.cpp:958:72: warning: 'BENCHMARK_VAR_texture_copy_ctor' defined but not used [-Wunused-variable] src/texture.cpp:49:20: warning: 'threading::mutex& graphics::{anonymous}::texture_registry_mutex()' defined but not used [-Wunused-function] threading::mutex& texture_registry_mutex() { ^ src/texture.cpp:184:14: warning: 'std::__cxx11::string graphics::{anonymous}::mipmap_type_to_string(GLenum)' defined but not used [-Wunused-function] std::string mipmap_type_to_string(GLenum type) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/texture.cpp > texture.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/texture_frame_buffer.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/texture_frame_buffer.cpp > texture_frame_buffer.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/text_editor_widget.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/scrollbar_widget.hpp:7, from src/scrollable_widget.hpp:6, from src/text_editor_widget.hpp:8, from src/text_editor_widget.cpp:16: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/scrollbar_widget.hpp:7, from src/scrollable_widget.hpp:6, from src/text_editor_widget.hpp:8, from src/text_editor_widget.cpp:16: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/scrollbar_widget.hpp:7:0, from src/scrollable_widget.hpp:6, from src/text_editor_widget.hpp:8, from src/text_editor_widget.cpp:16: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/text_editor_widget.cpp:16:0: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ src/text_editor_widget.cpp: In function 'const gui::{anonymous}::CharArea& gui::{anonymous}::get_char_area(int, char)': src/text_editor_widget.cpp:51:6: warning: unused variable 'nchars' [-Wunused-variable] int nchars = 0; ^ In file included from src/text_editor_widget.cpp:16:0: src/text_editor_widget.hpp: In constructor 'gui::text_editor_widget::text_editor_widget(int, int)': src/text_editor_widget.hpp:177:7: warning: 'gui::text_editor_widget::begin_enter_return_' will be initialized after [-Wreorder] bool begin_enter_return_; ^ src/text_editor_widget.hpp:147:6: warning: 'int gui::text_editor_widget::last_click_at_' [-Wreorder] int last_click_at_, consecutive_clicks_; ^ src/text_editor_widget.cpp:106:1: warning: when initialized here [-Wreorder] text_editor_widget::text_editor_widget(int width, int height) ^ In file included from src/text_editor_widget.cpp:16:0: src/text_editor_widget.hpp: In constructor 'gui::text_editor_widget::text_editor_widget(const variant&, game_logic::formula_callable*)': src/text_editor_widget.hpp:177:7: warning: 'gui::text_editor_widget::begin_enter_return_' will be initialized after [-Wreorder] bool begin_enter_return_; ^ src/text_editor_widget.hpp:147:6: warning: 'int gui::text_editor_widget::last_click_at_' [-Wreorder] int last_click_at_, consecutive_clicks_; ^ src/text_editor_widget.cpp:138:1: warning: when initialized here [-Wreorder] text_editor_widget::text_editor_widget(const variant& v, game_logic::formula_callable* e) ^ src/text_editor_widget.cpp: In member function 'void gui::text_editor_widget::set_text(const string&, bool)': src/text_editor_widget.cpp:250:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(select_.row >= text_.size()) { ^ src/text_editor_widget.cpp:254:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cursor_.row >= text_.size()) { ^ src/text_editor_widget.cpp: In member function 'virtual void gui::text_editor_widget::handle_draw() const': src/text_editor_widget.cpp:329:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = scroll_pos_; n < text_.size() && r < nrows_; ++n, ++r) { ^ src/text_editor_widget.cpp:337:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int m = 0; m < text_[n].size(); ++m, ++c) { ^ src/text_editor_widget.cpp:407:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(has_focus_ && cursor_.row == n && cursor_.col >= text_[n].size() && SDL_GetTicks()%500 < 350) { ^ src/text_editor_widget.cpp:323:6: warning: unused variable 'begin_build' [-Wunused-variable] int begin_build = SDL_GetTicks(); ^ src/text_editor_widget.cpp:413:12: warning: unused variable 'begin_draw' [-Wunused-variable] const int begin_draw = SDL_GetTicks(); ^ src/text_editor_widget.cpp: In member function 'void gui::text_editor_widget::set_cursor(int, int)': src/text_editor_widget.cpp:489:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(row >= text_.size()) { ^ src/text_editor_widget.cpp:493:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(col > text_[row].size()) { ^ src/text_editor_widget.cpp: In member function 'int gui::text_editor_widget::row_col_to_text_pos(int, int) const': src/text_editor_widget.cpp:504:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(col > text_[row].size()) { ^ src/text_editor_widget.cpp: In member function 'std::pair gui::text_editor_widget::text_pos_to_row_col(int) const': src/text_editor_widget.cpp:519:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(pos > text_[nrow].size()+1) { ^ src/text_editor_widget.cpp: In member function 'bool gui::text_editor_widget::handle_mouse_button_down(const SDL_MouseButtonEvent&)': src/text_editor_widget.cpp:554:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(text_.size() > 2 && cursor_.row < text_.size()-3) { ^ src/text_editor_widget.cpp:557:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if( scroll_pos_ > text_.size() ){ ^ src/text_editor_widget.cpp: In member function 'bool gui::text_editor_widget::handle_key_press(const SDL_KeyboardEvent&)': src/text_editor_widget.cpp:705:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cursor_.col < text_[select_.row].size()) { ^ src/text_editor_widget.cpp:738:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cursor_.col > text_[cursor_.row].size()) { ^ src/text_editor_widget.cpp:767:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cursor_.col > text_[cursor_.row].size()) { ^ src/text_editor_widget.cpp:768:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cursor_.row == text_.size()-1) { ^ src/text_editor_widget.cpp:770:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] } else if(cursor_.row < text_.size()-1) { ^ src/text_editor_widget.cpp:791:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cursor_.row < text_.size()-1) { ^ src/text_editor_widget.cpp:856:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cursor_.col > text_[cursor_.row].size()) { ^ src/text_editor_widget.cpp:873:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cursor_.col >= text_[cursor_.row].size()) { ^ src/text_editor_widget.cpp:874:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(text_.size() > cursor_.row+1) { ^ src/text_editor_widget.cpp:952:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cursor_.col > text_[cursor_.row].size()) { ^ src/text_editor_widget.cpp: In member function 'void gui::text_editor_widget::handle_copy(bool)': src/text_editor_widget.cpp:1004:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(begin.col > text_[begin.row].size()) { ^ src/text_editor_widget.cpp:1008:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(end.col > text_[end.row].size()) { ^ src/text_editor_widget.cpp: In member function 'void gui::text_editor_widget::delete_selection()': src/text_editor_widget.cpp:1038:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cursor_.col > text_[cursor_.row].size()) { ^ src/text_editor_widget.cpp:1042:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(select_.col > text_[select_.row].size()) { ^ src/text_editor_widget.cpp: In member function 'std::pair gui::text_editor_widget::mouse_position_to_row_col(int, int) const': src/text_editor_widget.cpp:1074:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = scroll_pos_; n < text_.size() && r < nrows_; ++n, ++r) { ^ src/text_editor_widget.cpp: In member function 'std::pair gui::text_editor_widget::char_position_on_screen(int, int) const': src/text_editor_widget.cpp:1129:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(row == n && col == m) { ^ src/text_editor_widget.cpp:1129:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(row == n && col == m) { ^ src/text_editor_widget.cpp:1139:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(row == n && m == text_[n].size()) { ^ src/text_editor_widget.cpp: In member function 'int gui::text_editor_widget::find_equivalent_col(int, int, int) const': src/text_editor_widget.cpp:1212:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(n < text_[new_row].size() && text_[new_row][n] == '\t') { ^ src/text_editor_widget.cpp: In member function 'void gui::text_editor_widget::refresh_scrollbar()': src/text_editor_widget.cpp:1229:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != text_.size(); ++n) { ^ src/text_editor_widget.cpp: In member function 'virtual void gui::text_editor_widget::select_token(const string&, int&, int&, int&, int&)': src/text_editor_widget.cpp:1254:77: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(util::c_isdigit(row[begin_col]) || row[begin_col] == '.' && begin_col+1 < row.size() && util::c_isdigit(row[begin_col+1])) { ^ src/text_editor_widget.cpp:1254:90: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(util::c_isdigit(row[begin_col]) || row[begin_col] == '.' && begin_col+1 < row.size() && util::c_isdigit(row[begin_col+1])) { ^ src/text_editor_widget.cpp:1263:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(end_col < row.size() && (util::c_isdigit(row[end_col]) || row[end_col] == '.')) { ^ src/text_editor_widget.cpp:1273:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(end_col < row.size() && (util::c_isalnum(row[end_col]) || row[end_col] == '_')) { ^ src/text_editor_widget.cpp:1276:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] } else if(end_col < row.size()) { ^ src/text_editor_widget.cpp: In member function 'void gui::text_editor_widget::truncate_col_position()': src/text_editor_widget.cpp:1351:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(cursor_.col > text_[cursor_.row].size()) { ^ src/text_editor_widget.cpp:1355:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(select_.col > text_[select_.row].size()) { ^ src/text_editor_widget.cpp: In member function 'void gui::text_editor_widget::calculate_search_matches()': src/text_editor_widget.cpp:1400:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != text_.size(); ++n) { ^ src/text_editor_widget.cpp: At global scope: src/text_editor_widget.cpp:1573:73: warning: 'UTILITY_VAR_textedit' defined but not used [-Wunused-variable] src/text_editor_widget.cpp:1602:36: warning: 'TEST_VAR_test_regex' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/text_editor_widget.cpp > text_editor_widget.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/thread.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/thread.cpp > thread.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/tile_map.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/tile_map.cpp:10: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/multi_tile_pattern.hpp:12:0, from src/tile_map.cpp:14: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/tile_map.cpp:19:0: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/tile_map.cpp: In constructor 'tile_pattern::tile_pattern(variant, const string&)': src/tile_map.cpp:93:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != patterns.size(); ++n) { ^ src/tile_map.cpp: In constructor 'tile_map::tile_map(variant)': src/tile_map.cpp:399:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index_entry == pattern_index_.size()) { ^ src/tile_map.cpp: In member function 'void tile_map::build_patterns()': src/tile_map.cpp:455:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(matches == re.size()) { ^ src/tile_map.cpp:461:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(matches == re.size()) { ^ src/tile_map.cpp:466:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(matches == re.size()) { ^ src/tile_map.cpp:490:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(matches == re.size()) { ^ src/tile_map.cpp:496:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(matches == re.size()) { ^ src/tile_map.cpp:501:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(matches == re.size()) { ^ src/tile_map.cpp: In member function 'variant tile_map::write() const': src/tile_map.cpp:576:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != unique_tiles.size(); ++n) { ^ src/tile_map.cpp:589:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i != row.size(); ++i) { ^ src/tile_map.cpp: In member function 'const char* tile_map::get_tile(int, int) const': src/tile_map.cpp:615:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(x < 0 || y < 0 || y >= map_.size() || x >= map_[y].size()) { ^ src/tile_map.cpp:615:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(x < 0 || y < 0 || y >= map_.size() || x >= map_[y].size()) { ^ src/tile_map.cpp: In member function 'const tile_map::pattern_index_entry& tile_map::get_tile_entry(int, int) const': src/tile_map.cpp:624:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(x < 0 || y < 0 || y >= map_.size() || x >= map_[y].size()) { ^ src/tile_map.cpp:624:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(x < 0 || y < 0 || y >= map_.size() || x >= map_[y].size()) { ^ src/tile_map.cpp: In member function 'int tile_map::variation(int, int) const': src/tile_map.cpp:661:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(x < 0 || y < 0 || y >= variations_.size() || x >= variations_[y].size()) { ^ src/tile_map.cpp:661:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(x < 0 || y < 0 || y >= variations_.size() || x >= variations_[y].size()) { ^ src/tile_map.cpp: In member function 'void tile_map::flip_variation(int, int, int)': src/tile_map.cpp:678:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(y >= variations_.size()) { ^ src/tile_map.cpp:683:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(x >= row.size()) { ^ src/tile_map.cpp: In member function 'void tile_map::apply_matching_multi_pattern(int&, int, const multi_tile_pattern&, point_map&, std::map, level_object*>&) const': src/tile_map.cpp:738:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != pattern.try_order().size() && match; ++n) { ^ src/tile_map.cpp: In member function 'void tile_map::build_tiles(std::vector*, const rect*) const': src/tile_map.cpp:787:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(row.size() > width) { ^ src/tile_map.cpp:800:9: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(r && ypos < r->y() || r && ypos > r->y2()) { ^ src/tile_map.cpp:812:23: warning: unused variable 'obj' [-Wunused-variable] const level_object* obj = i->second; ^ src/tile_map.cpp:836:8: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(r && ypos < r->y() || r && ypos > r->y2()) { ^ src/tile_map.cpp:863:9: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(r && xpos < r->x() || r && xpos > r->x2()) { ^ src/tile_map.cpp:876:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(variation_num >= p->variations.size()) { ^ src/tile_map.cpp:783:12: warning: unused variable 'begin_time' [-Wunused-variable] const int begin_time = SDL_GetTicks(); ^ src/tile_map.cpp: In member function 'const tile_pattern* tile_map::get_matching_pattern(int, int, {anonymous}::tile_pattern_cache&, bool*) const': src/tile_map.cpp:921:12: warning: unused variable 'xpos' [-Wunused-variable] const int xpos = xpos_ + x*TileSize; ^ src/tile_map.cpp: In member function 'bool tile_map::set_tile(int, int, const string&)': src/tile_map.cpp:1019:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(map_.size() <= y) { ^ src/tile_map.cpp:1035:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(row.size() > x && row[x] == index) { ^ src/tile_map.cpp:1040:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(row.size() <= x) { ^ src/tile_map.cpp:1047:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (y < variations_.size() && x < variations_[y].size()) { ^ src/tile_map.cpp:1047:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (y < variations_.size() && x < variations_[y].size()) { ^ In file included from src/tile_map.cpp:15:0: src/point_map.hpp: In instantiation of 'void point_map::insert(const point&, ValueType) [with ValueType = level_object*]': src/tile_map.cpp:770:52: required from here src/point_map.hpp:29:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index >= negative_rows_.size()) { ^ src/point_map.hpp:36:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index >= positive_rows_.size()) { ^ src/point_map.hpp:45:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index >= row->negative_cells.size()) { ^ src/point_map.hpp:52:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index >= row->positive_cells.size()) { ^ src/point_map.hpp: In instantiation of 'const ValueType* point_map::lookup(const point&) const [with ValueType = level_object*]': src/point_map.hpp:16:34: required from 'const ValueType& point_map::get(const point&) const [with ValueType = level_object*]' src/tile_map.cpp:753:97: required from here src/point_map.hpp:67:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index >= negative_rows_.size()) { ^ In file included from src/tile_map.cpp:15:0: src/point_map.hpp:74:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index >= positive_rows_.size()) { ^ In file included from src/tile_map.cpp:15:0: src/point_map.hpp:83:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index >= row->negative_cells.size()) { ^ In file included from src/tile_map.cpp:15:0: src/point_map.hpp:90:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index >= row->positive_cells.size()) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/tile_map.cpp > tile_map.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/tileset_editor_dialog.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/border_widget.hpp:6, from src/tileset_editor_dialog.cpp:7: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/border_widget.hpp:6, from src/tileset_editor_dialog.cpp:7: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/border_widget.hpp:6:0, from src/tileset_editor_dialog.cpp:7: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/editor.hpp:13, from src/tileset_editor_dialog.cpp:9: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/level.hpp:25:0, from src/editor.hpp:13, from src/tileset_editor_dialog.cpp:9: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/editor.hpp:13, from src/tileset_editor_dialog.cpp:9: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/editor.hpp:13, from src/tileset_editor_dialog.cpp:9: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/tileset_editor_dialog.cpp: In member function 'void editor_dialogs::tileset_editor_dialog::init()': src/tileset_editor_dialog.cpp:59:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert(editor_.get_tileset() >= 0 && editor_.get_tileset() < editor_.all_tilesets().size()); ^ src/tileset_editor_dialog.cpp:65:17: warning: unused variable 'first_index' [-Wunused-variable] int index = 0, first_index = -1; ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/tileset_editor_dialog.cpp > tileset_editor_dialog.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/tooltip.cpp In file included from src/tooltip.cpp:17:0: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/tooltip.cpp > tooltip.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/translate.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/translate.cpp > translate.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/tree_view_widget.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/border_widget.hpp:6, from src/dropdown_widget.hpp:10, from src/tree_view_widget.cpp:11: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/border_widget.hpp:6, from src/dropdown_widget.hpp:10, from src/tree_view_widget.cpp:11: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/border_widget.hpp:6:0, from src/dropdown_widget.hpp:10, from src/tree_view_widget.cpp:11: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/dropdown_widget.hpp:13:0, from src/tree_view_widget.cpp:11: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ In file included from src/tree_view_widget.cpp:20:0: src/tree_view_widget.hpp: In constructor 'gui::tree_view_widget::tree_view_widget(int, int, const variant&)': src/tree_view_widget.hpp:76:6: warning: 'gui::tree_view_widget::selected_row_' will be initialized after [-Wreorder] int selected_row_; ^ src/tree_view_widget.hpp:68:6: warning: 'int gui::tree_view_widget::char_height_' [-Wreorder] int char_height_; ^ src/tree_view_widget.cpp:24:1: warning: when initialized here [-Wreorder] tree_view_widget::tree_view_widget(int w, int h, const variant& tree) ^ In file included from src/tree_view_widget.cpp:20:0: src/tree_view_widget.hpp:77:6: warning: 'gui::tree_view_widget::nrows_' will be initialized after [-Wreorder] int nrows_; ^ src/tree_view_widget.hpp:74:7: warning: 'bool gui::tree_view_widget::swallow_clicks_' [-Wreorder] bool swallow_clicks_; ^ src/tree_view_widget.cpp:24:1: warning: when initialized here [-Wreorder] tree_view_widget::tree_view_widget(int w, int h, const variant& tree) ^ In file included from src/tree_view_widget.cpp:20:0: src/tree_view_widget.hpp:78:6: warning: 'gui::tree_view_widget::max_height_' will be initialized after [-Wreorder] int max_height_; ^ src/tree_view_widget.hpp:70:6: warning: 'int gui::tree_view_widget::min_col_size_' [-Wreorder] int min_col_size_; ^ src/tree_view_widget.cpp:24:1: warning: when initialized here [-Wreorder] tree_view_widget::tree_view_widget(int w, int h, const variant& tree) ^ In file included from src/tree_view_widget.cpp:20:0: src/tree_view_widget.hpp:71:6: warning: 'gui::tree_view_widget::max_col_size_' will be initialized after [-Wreorder] int max_col_size_; ^ src/tree_view_widget.hpp:69:6: warning: 'int gui::tree_view_widget::char_width_' [-Wreorder] int char_width_; ^ src/tree_view_widget.cpp:24:1: warning: when initialized here [-Wreorder] tree_view_widget::tree_view_widget(int w, int h, const variant& tree) ^ In file included from src/tree_view_widget.cpp:20:0: src/tree_view_widget.hpp: In constructor 'gui::tree_view_widget::tree_view_widget(const variant&, game_logic::formula_callable*)': src/tree_view_widget.hpp:77:6: warning: 'gui::tree_view_widget::nrows_' will be initialized after [-Wreorder] int nrows_; ^ src/tree_view_widget.hpp:70:6: warning: 'int gui::tree_view_widget::min_col_size_' [-Wreorder] int min_col_size_; ^ src/tree_view_widget.cpp:38:1: warning: when initialized here [-Wreorder] tree_view_widget::tree_view_widget(const variant& v, game_logic::formula_callable* e) ^ src/tree_view_widget.cpp: In member function 'virtual int gui::tree_view_widget::traverse(int, int, int, variant*, const variant&, variant*)': src/tree_view_widget.cpp:101:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(str.length() > max_chars && max_chars > 3) { ^ src/tree_view_widget.cpp:137:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(str.length() > max_chars && max_chars > 3) { ^ src/tree_view_widget.cpp:151:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int index = 0; index != value->as_list().size(); index++) { ^ src/tree_view_widget.cpp: In member function 'void gui::tree_view_widget::gen_traverse(int, boost::function, const variant&, variant*)': src/tree_view_widget.cpp:188:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int index = 0; index != value->as_list().size(); index++) { ^ src/tree_view_widget.cpp: In member function 'void gui::tree_view_widget::calc_column_widths(int, const variant&, variant*)': src/tree_view_widget.cpp:202:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(col_widths_.size() <= depth) { ^ src/tree_view_widget.cpp: In member function 'virtual void gui::tree_view_widget::handle_draw() const': src/tree_view_widget.cpp:269:26: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] glTranslatef(GLfloat(x()+2 & ~1), GLfloat(y()+2 & ~1), 0.0); ^ src/tree_view_widget.cpp:269:47: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] glTranslatef(GLfloat(x()+2 & ~1), GLfloat(y()+2 & ~1), 0.0); ^ src/tree_view_widget.cpp:277:85: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(persistent_highlight_ && highlighted_row_ >= 0 && size_t(persistent_highlight_) < nrows()) { ^ src/tree_view_widget.cpp: In member function 'virtual void gui::tree_editor_widget::on_select(Uint8, int)': src/tree_view_widget.cpp:508:13: warning: unused variable 'v' [-Wunused-variable] variant* v = row_map_[selection].second; ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/tree_view_widget.cpp > tree_view_widget.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/utils.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/level.hpp:20, from src/utils.cpp:18: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/utils.cpp:18: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/utils.cpp:18: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/utils.cpp:18: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/utils.cpp:18: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/utils.cpp:18: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/utils.cpp:18: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/utils.cpp > utils.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/variant.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/variant.cpp:15: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ src/variant.cpp: In member function 'variant variant::get_list_slice(int, int) const': src/variant.cpp:607:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(begin < 0 || end > list_->size()) { ^ src/variant.cpp: In member function 'variant variant::operator()(const std::vector&) const': src/variant.cpp:632:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(args.size() < min_args || args.size() > max_args) { ^ src/variant.cpp:632:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(args.size() < min_args || args.size() > max_args) { ^ src/variant.cpp:640:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(size_t n = args.size(); n < max_args; ++n) { ^ src/variant.cpp: In member function 'std::vector > variant::as_list_string() const': src/variant.cpp:723:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != list_->size(); ++n) { ^ src/variant.cpp: In member function 'std::vector variant::as_list_int() const': src/variant.cpp:745:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != list_->size(); ++n) { ^ src/variant.cpp: In member function 'std::vector variant::as_list_decimal() const': src/variant.cpp:757:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != list_->size(); ++n) { ^ src/variant.cpp: In member function 'variant* variant::get_index_mutable(int)': src/variant.cpp:841:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(index >= 0 && index < list_->size()) { ^ src/variant.cpp: In member function 'variant variant::operator*(const variant&) const': src/variant.cpp:995:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int m = 0; m != list_->size(); ++m) { ^ src/variant.cpp: In member function 'bool variant::operator==(const variant&) const': src/variant.cpp:1065:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(!is_numeric() && !is_null() || !v.is_numeric() && !v.is_null()) { ^ src/variant.cpp: In function 'void BENCHMARK_variant_assign(int)': src/variant.cpp:1845:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != vec.size(); ++n) { ^ src/variant.cpp: In function 'void TEST_variant_foreach()': src/variant.cpp:1864:16: warning: unused variable 'v' [-Wunused-variable] foreach(const variant& v, variant().range()) { ^ src/variant.cpp: At global scope: src/variant.cpp:1830:41: warning: 'TEST_VAR_variant_decimal' defined but not used [-Wunused-variable] src/variant.cpp:1840:69: warning: 'BENCHMARK_VAR_variant_assign' defined but not used [-Wunused-variable] src/variant.cpp:1851:41: warning: 'TEST_VAR_variant_foreach' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/variant.cpp > variant.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/variant_callable.cpp src/variant_callable.cpp: In member function 'variant variant_callable::create_for_list(const variant&) const': src/variant_callable.cpp:34:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value.num_elements(); ++n) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/variant_callable.cpp > variant_callable.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/variant_utils.cpp src/variant_utils.cpp: In function 'variant append_variants(variant, variant)': src/variant_utils.cpp:30:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(b.num_elements() > 0 && (b[0].is_numeric() || b[0].is_string()) || ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/variant_utils.cpp > variant_utils.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/water.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/water.cpp:11: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/water.cpp:12: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/water.cpp:12: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/water.cpp:12: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/water.cpp:12: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/water.cpp:12: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/water.cpp:12: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/water.cpp: In constructor 'water::water(variant)': src/water.cpp:42:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(n < color_vec.size()) { ^ src/water.cpp: In member function 'void water::add_wave(const point&, double, double, double, double, double)': src/water.cpp:141:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != a.surface_segments_.size(); ++n) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/water.cpp > water.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/water_particle_system.cpp In file included from src/water_particle_system.cpp:7:0: src/water_particle_system.hpp: In constructor 'water_particle_system::water_particle_system(const entity&, const water_particle_system_factory&)': src/water_particle_system.hpp:66:19: warning: 'water_particle_system::velocity_y_' will be initialized after [-Wreorder] int velocity_x_, velocity_y_; ^ src/water_particle_system.hpp:55:6: warning: 'int water_particle_system::cycle_' [-Wreorder] int cycle_; ^ src/water_particle_system.cpp:38:1: warning: when initialized here [-Wreorder] water_particle_system::water_particle_system(const entity& e, const water_particle_system_factory& factory) ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/water_particle_system.cpp > water_particle_system.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/weather_particle_system.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/weather_particle_system.cpp > weather_particle_system.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/widget.cpp In file included from src/widget.cpp:19:0: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/widget.cpp:21: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.cpp:21:0: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp: In constructor 'gui::widget::widget(const variant&, game_logic::formula_callable*)': src/widget.hpp:93:32: warning: 'gui::widget::environ_' will be initialized after [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:86:6: warning: 'int gui::widget::w_' [-Wreorder] int w_, h_; ^ src/widget.cpp:28:1: warning: when initialized here [-Wreorder] widget::widget(const variant& v, game_logic::formula_callable* e) ^ In file included from src/widget.cpp:21:0: src/widget.hpp:86:10: warning: 'gui::widget::h_' will be initialized after [-Wreorder] int w_, h_; ^ src/widget.hpp:85:6: warning: 'int gui::widget::x_' [-Wreorder] int x_, y_; ^ src/widget.cpp:28:1: warning: when initialized here [-Wreorder] widget::widget(const variant& v, game_logic::formula_callable* e) ^ In file included from src/widget.cpp:21:0: src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.cpp:28:1: warning: when initialized here [-Wreorder] widget::widget(const variant& v, game_logic::formula_callable* e) ^ In file included from src/widget.cpp:21:0: src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.cpp:28:1: warning: when initialized here [-Wreorder] widget::widget(const variant& v, game_logic::formula_callable* e) ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/widget.cpp > widget.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/widget_factory.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/widget.hpp:19, from src/widget_factory.cpp:1: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/widget.hpp:22:0, from src/widget_factory.cpp:1: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/widget_factory.cpp:1:0: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/code_editor_widget.hpp:9:0, from src/widget_factory.cpp:11: src/text_editor_widget.hpp: In member function 'bool gui::text_editor_widget::Loc::operator<(const gui::text_editor_widget::Loc&) const': src/text_editor_widget.hpp:41:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses] bool operator<(const Loc& o) const { return row < o.row || row == o.row && col < o.col; } ^ In file included from src/preview_tileset_widget.hpp:4:0, from src/widget_factory.cpp:22: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/widget_factory.cpp > widget_factory.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/wml_formula_callable.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/wml_formula_callable.cpp > wml_formula_callable.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/unit_test.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/unit_test.cpp > unit_test.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/formula_test.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/formula_test.cpp:3: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ src/formula_test.cpp: At global scope: src/formula_test.cpp:50:33: warning: 'TEST_VAR_formula' defined but not used [-Wunused-variable] src/formula_test.cpp:107:76: warning: 'BENCHMARK_VAR_construct_int_variant' defined but not used [-Wunused-variable] src/formula_test.cpp:123:129: warning: 'BENCHMARK_ARG_VAR_name_integer' defined but not used [-Wunused-variable] src/formula_test.cpp:124:139: warning: 'BENCHMARK_ARG_VAR_name_where' defined but not used [-Wunused-variable] src/formula_test.cpp:125:129: warning: 'BENCHMARK_ARG_VAR_name_add' defined but not used [-Wunused-variable] src/formula_test.cpp:126:154: warning: 'BENCHMARK_ARG_VAR_name_arithmetic' defined but not used [-Wunused-variable] src/formula_test.cpp:127:135: warning: 'BENCHMARK_ARG_VAR_name_read_input' defined but not used [-Wunused-variable] src/formula_test.cpp:128:148: warning: 'BENCHMARK_ARG_VAR_name_read_input_sub' defined but not used [-Wunused-variable] src/formula_test.cpp:129:150: warning: 'BENCHMARK_ARG_VAR_name_array' defined but not used [-Wunused-variable] src/formula_test.cpp:130:162: warning: 'BENCHMARK_ARG_VAR_name_array_str' defined but not used [-Wunused-variable] src/formula_test.cpp:131:133: warning: 'BENCHMARK_ARG_VAR_name_string' defined but not used [-Wunused-variable] src/formula_test.cpp:132:140: warning: 'BENCHMARK_ARG_VAR_name_null_function' defined but not used [-Wunused-variable] src/formula_test.cpp:133:147: warning: 'BENCHMARK_ARG_VAR_name_if_function' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/formula_test.cpp > formula_test.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/loading_screen.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/custom_object_type.hpp:11, from src/loading_screen.cpp:7: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ src/loading_screen.cpp: In member function 'void loading_screen::draw_internal(const string&)': src/loading_screen.cpp:78:6: warning: unused variable 'bar_origin_x' [-Wunused-variable] int bar_origin_x = graphics::screen_width()/2 - bar_width/2; ^ src/loading_screen.cpp: In member function 'void loading_screen::finish_loading()': src/loading_screen.cpp:110:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(started_at_ + 3000 > SDL_GetTicks()) { ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/loading_screen.cpp > loading_screen.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/utility_object_compiler.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/custom_object_type.hpp:11, from src/utility_object_compiler.cpp:10: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ src/utility_object_compiler.cpp: In function 'bool {anonymous}::animation_area_has_alpha_channel({anonymous}::animation_area_ptr)': src/utility_object_compiler.cpp:135:20: warning: unused variable 'pixel' [-Wunused-variable] const uint32_t pixel = pixels[index]; ^ src/utility_object_compiler.cpp: In function 'void UTILITY_compile_objects(const std::vector >&)': src/utility_object_compiler.cpp:304:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != output_areas.size(); ++n) { ^ src/utility_object_compiler.cpp: At global scope: src/utility_object_compiler.cpp:148:80: warning: 'UTILITY_VAR_compile_objects' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/utility_object_compiler.cpp > utility_object_compiler.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/utility_query.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/utility_query.cpp:9: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ src/utility_query.cpp: In function 'std::__cxx11::string modify_variant_text(const string&, variant, variant, int, int, std::__cxx11::string)': src/utility_query.cpp:242:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != a.size(); ++n) { ^ src/utility_query.cpp:256:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = a.size(); n < b.size(); ++n) { ^ src/utility_query.cpp: At global scope: src/utility_query.cpp:372:70: warning: 'UTILITY_VAR_query' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/utility_query.cpp > utility_query.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/utility_render_level.cpp In file included from src/formula_function.hpp:26:0, from src/formula.hpp:22, from src/level.hpp:20, from src/utility_render_level.cpp:8: src/formula_callable_utils.hpp: In member function 'virtual variant game_logic::slot_formula_callable::get_value(const string&) const': src/formula_callable_utils.hpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != value_names_->size(); ++n) { ^ In file included from src/custom_object.hpp:15:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/utility_render_level.cpp:8: src/draw_scene.hpp: In constructor 'screen_position::screen_position()': src/draw_scene.hpp:29:6: warning: 'screen_position::coins' will be initialized after [-Wreorder] int coins; ^ src/draw_scene.hpp:26:6: warning: 'int screen_position::shake_x_offset' [-Wreorder] int shake_x_offset,shake_y_offset; ^ src/draw_scene.hpp:19:2: warning: when initialized here [-Wreorder] screen_position() : init(false), x(0), y(0), focus_x(0), focus_y(0), ^ In file included from src/widget.hpp:22:0, from src/custom_object.hpp:25, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/utility_render_level.cpp:8: src/tooltip.hpp: In constructor 'gui::tooltip_item::tooltip_item(const string&, int)': src/tooltip.hpp:27:6: warning: 'gui::tooltip_item::font_size' will be initialized after [-Wreorder] int font_size; ^ src/tooltip.hpp:26:14: warning: 'std::__cxx11::string gui::tooltip_item::text' [-Wreorder] std::string text; ^ src/tooltip.hpp:23:11: warning: when initialized here [-Wreorder] explicit tooltip_item(const std::string& s, int fs=18) ^ In file included from src/custom_object.hpp:25:0, from src/gui_formula_functions.hpp:4, from src/level.hpp:24, from src/utility_render_level.cpp:8: src/widget.hpp: In constructor 'gui::widget::widget()': src/widget.hpp:104:17: warning: 'gui::widget::align_v_' will be initialized after [-Wreorder] VERTICAL_ALIGN align_v_; ^ src/widget.hpp:87:6: warning: 'int gui::widget::true_x_' [-Wreorder] int true_x_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:101:10: warning: 'gui::widget::disabled_opacity_' will be initialized after [-Wreorder] uint8_t disabled_opacity_; ^ src/widget.hpp:90:7: warning: 'bool gui::widget::tooltip_displayed_' [-Wreorder] bool tooltip_displayed_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ src/widget.hpp:98:6: warning: 'gui::widget::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/widget.hpp:93:32: warning: 'game_logic::formula_callable* gui::widget::environ_' [-Wreorder] game_logic::formula_callable* environ_; ^ src/widget.hpp:69:2: warning: when initialized here [-Wreorder] widget() ^ In file included from src/level.hpp:25:0, from src/utility_render_level.cpp:8: src/hex_map.hpp: In constructor 'hex::hex_map::hex_map()': src/hex_map.hpp:68:6: warning: 'hex::hex_map::zorder_' will be initialized after [-Wreorder] int zorder_; ^ src/hex_map.hpp:64:9: warning: 'size_t hex::hex_map::width_' [-Wreorder] size_t width_; ^ src/hex_map.hpp:26:2: warning: when initialized here [-Wreorder] hex_map() : zorder_(-1000), width_(0), height_(0), x_(0), y_(0) ^ In file included from src/level.hpp:26:0, from src/utility_render_level.cpp:8: src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.y || a.y == b.y && a.x < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const level_tile&, const std::pair&) const': src/level_object.hpp:49:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.y < b.second || a.y == b.second && a.x < b.first; ^ src/level_object.hpp: In member function 'bool level_tile_pos_comparer::operator()(const std::pair&, const level_tile&) const': src/level_object.hpp:53:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.second < b.y || a.second == b.y && a.first < b.x; ^ src/level_object.hpp: In member function 'bool level_tile_zorder_pos_comparer::operator()(const level_tile&, const level_tile&) const': src/level_object.hpp:59:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ src/level_object.hpp:59:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return a.zorder < b.zorder || a.zorder == b.zorder && a.y < b.y || a.zorder == b.zorder && a.y == b.y && a.x < b.x; ^ In file included from src/level.hpp:31:0, from src/utility_render_level.cpp:8: src/tile_map.hpp: In constructor 'tile_map::pattern_index_entry::pattern_index_entry()': src/tile_map.hpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] pattern_index_entry() { for(int n = 0; n != str.size(); ++n) { str[n] = 0; } } ^ src/utility_render_level.cpp: In function 'void UTILITY_render_level(const std::vector >&)': src/utility_render_level.cpp:36:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int n = 0; n != files.size(); ++n) { ^ src/utility_render_level.cpp: At global scope: src/utility_render_level.cpp:13:77: warning: 'UTILITY_VAR_render_level' defined but not used [-Wunused-variable] g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/utility_render_level.cpp > utility_render_level.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/vector_text.cpp In file included from src/vector_text.cpp:8:0: src/vector_text.hpp: In constructor 'gui::vector_text::vector_text(const variant&)': src/vector_text.hpp:56:14: warning: 'gui::vector_text::text_' will be initialized after [-Wreorder] std::string text_; ^ src/vector_text.hpp:53:7: warning: 'bool gui::vector_text::visible_' [-Wreorder] bool visible_; ^ src/vector_text.cpp:12:1: warning: when initialized here [-Wreorder] vector_text::vector_text(const variant& node) ^ g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/vector_text.cpp > vector_text.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG \ -c src/wm.cpp g++ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 -DIMPLEMENT_SAVE_PNG -MM src/wm.cpp > wm.d ccache g++ \ -pipe -Wall -g -O2 -fno-inline-functions -fthreadsafe-statics -Wno-narrowing -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libpng15 \ IMG_savepng.o achievements.o animation_creator.o animation_preview_widget.o animation_widget.o asserts.o background.o background_task_pool.o base64.o blur.o border_widget.o button.o character_editor_dialog.o checkbox.o checksum.o code_editor_dialog.o code_editor_widget.o color_chart.o compress.o current_generator.o decimal.o difficulty.o drag_widget.o dropdown_widget.o editor_dialogs.o editor_formula_functions.o editor_layers_dialog.o editor_stats_dialog.o editor_variable_info.o external_text_editor.o clipboard.o collision_utils.o color_utils.o controls.o controls_dialog.o custom_object.o custom_object_callable.o custom_object_dialog.o custom_object_functions.o custom_object_type.o debug_console.o dialog.o draw_number.o draw_scene.o draw_tile.o editor.o editor_level_properties_dialog.o editor_module_properties_dialog.o entity.o file_chooser_dialog.o filesystem.o font.o formula.o formula_callable_definition.o formula_constants.o formula_function.o formula_function_registry.o formula_profiler.o formula_tokenizer.o formula_variable_storage.o frame.o framed_gui_element.o game_registry.o geometry.o gles2.o globals.o graphical_font.o graphical_font_label.o grid_widget.o group_property_editor_dialog.o gui_formula_functions.o gui_section.o hex_map.o hex_object.o hex_tile.o hex_tileset_editor_dialog.o http_client.o http_server.o i18n.o image_widget.o input.o iphone_controls.o joystick.o json_parser.o json_tokenizer.o key.o key_button.o label.o language_dialog.o level.o level_logic.o level_object.o level_runner.o level_solid_map.o light.o load_level_nothread.o main.o md5.o message_dialog.o module.o module_web_server.o movement_script.o multi_tile_pattern.o multiplayer.o object_events.o options_dialog.o particle_system.o pathfinding.o pause_game_dialog.o playable_custom_object.o player_info.o preferences.o preprocessor.o preview_tileset_widget.o progress_bar.o property_editor_dialog.o random.o raster.o raster_distortion.o rectangle_rotator.o scrollbar_widget.o scrollable_widget.o segment_editor_dialog.o settings_dialog.o shaders.o sys.o slider.o solid_map.o sound.o speech_dialog.o stats.o stats_server.o stats_server_main.o stats_web_server.o string_utils.o surface_cache.o surface_formula.o surface_palette.o surface_scaling.o surface.o tbs_ai_player.o tbs_bot.o tbs_client.o tbs_functions.o tbs_game.o tbs_server.o tbs_web_server.o texture.o texture_frame_buffer.o text_editor_widget.o thread.o tile_map.o tileset_editor_dialog.o tooltip.o translate.o tree_view_widget.o utils.o variant.o variant_callable.o variant_utils.o water.o water_particle_system.o weather_particle_system.o widget.o widget_factory.o wml_formula_callable.o unit_test.o formula_test.o loading_screen.o utility_object_compiler.o utility_query.o utility_render_level.o vector_text.o wm.o -o game \ -lX11 -lGLEW -lGLU -lGL -lSDL_image -lSDL -lpthread -lpng15 -lz -lSDL_ttf -lSDL_mixer -lboost_regex -lboost_system -lpthread -fthreadsafe-statics make: Leaving directory `/usr/src/RPM/BUILD/frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d' + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.17863 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/frogatto-buildroot + : + /bin/rm -rf -- /usr/src/tmp/frogatto-buildroot + cd frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d + install -d /usr/src/tmp/frogatto-buildroot/usr/bin + install -m 755 -p /usr/src/RPM/SOURCES/frogatto.sh /usr/src/tmp/frogatto-buildroot/usr/bin/frogatto + install -d /usr/src/tmp/frogatto-buildroot/usr/libexec/frogatto + install -m 755 -p game /usr/src/tmp/frogatto-buildroot/usr/libexec/frogatto + install -d /usr/src/tmp/frogatto-buildroot/usr/share/frogatto/modules/frogatto + cp -pr data images music compile-objects.cfg master-config.cfg surface_scaling.cfg /usr/src/tmp/frogatto-buildroot/usr/share/frogatto + pushd modules/frogatto ~/RPM/BUILD/frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/modules/frogatto ~/RPM/BUILD/frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d + cp -pr data images music sounds master-config.cfg module.cfg /usr/src/tmp/frogatto-buildroot/usr/share/frogatto/modules/frogatto + cp -pr locale /usr/src/tmp/frogatto-buildroot/usr/share + popd ~/RPM/BUILD/frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d + install -d /usr/src/tmp/frogatto-buildroot/usr/share/applications + desktop-file-install --dir /usr/src/tmp/frogatto-buildroot/usr/share/applications /usr/src/RPM/SOURCES/frogatto.desktop + icns2png -x modules/frogatto/images/os/mac/icon.icns ---------------------------------------------------- Reading icns family from modules/frogatto/images/os/mac/icon.icns... Saved 'is32' element to icon_16x16x32.png. Saved 'il32' element to icon_32x32x32.png. Saved 'it32' element to icon_128x128x32.png. Saved 'ic08' element to icon_256x256x32.png. Extracted 4 elements from modules/frogatto/images/os/mac/icon.icns. + for i in 16 32 128 256 + install -d -m 755 /usr/src/tmp/frogatto-buildroot/usr/share/icons/hicolor/16x16/apps + install -m 644 icon_16x16x32.png /usr/src/tmp/frogatto-buildroot/usr/share/icons/hicolor/16x16/apps/frogatto.png + for i in 16 32 128 256 + install -d -m 755 /usr/src/tmp/frogatto-buildroot/usr/share/icons/hicolor/32x32/apps + install -m 644 icon_32x32x32.png /usr/src/tmp/frogatto-buildroot/usr/share/icons/hicolor/32x32/apps/frogatto.png + for i in 16 32 128 256 + install -d -m 755 /usr/src/tmp/frogatto-buildroot/usr/share/icons/hicolor/128x128/apps + install -m 644 icon_128x128x32.png /usr/src/tmp/frogatto-buildroot/usr/share/icons/hicolor/128x128/apps/frogatto.png + for i in 16 32 128 256 + install -d -m 755 /usr/src/tmp/frogatto-buildroot/usr/share/icons/hicolor/256x256/apps + install -m 644 icon_256x256x32.png /usr/src/tmp/frogatto-buildroot/usr/share/icons/hicolor/256x256/apps/frogatto.png + install -d /usr/src/tmp/frogatto-buildroot/usr/share/man/man6 + pod2man --section=6 '-center=RPM Fusion contributed man pages' '-release=frogatto 1.3.3' '-date=July 13th, 2010' /usr/src/RPM/SOURCES/frogatto.pod + /usr/lib/rpm/find-lang frogatto + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/frogatto-buildroot (auto) Verifying and fixing files in /usr/src/tmp/frogatto-buildroot (binconfig,pkgconfig,libtool,desktop) Compressing files in /usr/src/tmp/frogatto-buildroot (auto) Verifying ELF objects in /usr/src/tmp/frogatto-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Hardlinking identical .pyc and .pyo files Processing files: frogatto-1.3.3-alt2_5.M80P.1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.u8j0Qd find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.JWZzvC find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks) Requires: icon-theme-hicolor, fonts-ttf-gnu-freefont-mono, frogatto-gamedata = 1.3.3-alt2_5.M80P.1, /bin/sh, /lib64/ld-linux-x86-64.so.2, libGL.so.1()(64bit) >= set:oinoUZ0fkt5oDOvvbZmEI0TaZxa1579BfyBN3ymTazqc15FG2G7y2Wa5Z9tWsK7ifPtqCw3dEKZ0q7NddzooIcJ5KO2IEOl44NGoZHnrH8nv4NXZbsmDobNb6TPGoZ6vx663, libGLEW.so.2.0()(64bit) >= set:pjTPEI7u86tTfeffYoNS68uIPllI8Zztmw5I54zf2xm77xK4xK3uaeZ9I80z3bcVFYBxr9QorbIyE8EaxkOUb1oOQYwqSZcZy1FXXT049W6RQOtZd0D1PDimg4pf0CGE3dMdA66u7rxeQdjoDDy3s8, libGLU.so.1()(64bit) >= set:jiBA9, libSDL-1.2.so.0()(64bit) >= set:lfZpd6dfEWpAPmeDgMyjacWsMAFcnWUeCvzo7K8mF5S8DtYkuPNIQfayUZl5v4hYyNVCp7MnH3Kt99mnmLyefOsazBJIwXppPnlVUq9SA2z5DBZIwt6qHlY8TKf3fnWbl2o9qVFD9B2Cz2, libSDL_image-1.2.so.0()(64bit) >= set:jifK3, libSDL_mixer-1.2.so.0()(64bit) >= set:kfMSUHfEkJL3JrOfcrzhUEV4T87WpedToJE0yxIW2, libSDL_ttf-2.0.so.0()(64bit) >= set:jgUAJFwQRIkj0, libX11.so.6()(64bit) >= set:okJ5tfbmTzZlFTIE6owcFvpi3wI8S2wcwglWZjqG0, libboost_regex.so.1.58.0()(64bit) >= set:okffft2byg5fMSGkP6czjfOZD84TgFXzGuuZnkVSlgFZoU0, libboost_system.so.1.58.0()(64bit) >= set:hf9iUA9, libc.so.6(GLIBC_2.11)(64bit), libc.so.6(GLIBC_2.14)(64bit), libc.so.6(GLIBC_2.15)(64bit), libc.so.6(GLIBC_2.2.5)(64bit), libc.so.6(GLIBC_2.3)(64bit), libc.so.6(GLIBC_2.3.2)(64bit), libc.so.6(GLIBC_2.3.4)(64bit), libc.so.6(GLIBC_2.4)(64bit), libc.so.6(GLIBC_2.7)(64bit), libc.so.6(GLIBC_2.8)(64bit), libc.so.6(GLIBC_2.9)(64bit), libgcc_s.so.1(GCC_3.0)(64bit), libm.so.6(GLIBC_2.2.5)(64bit), libpng15.so.15()(64bit) >= set:lhHMiYgG4QJEYopg6hZuf7FmOWsszDn5nZ0bPUE0, libpng15.so.15(PNG15_0)(64bit), libpthread.so.0(GLIBC_2.2.5)(64bit), libpthread.so.0(GLIBC_2.3.2)(64bit), libstdc++.so.6(CXXABI_1.3)(64bit), libstdc++.so.6(GLIBCXX_3.4)(64bit), libstdc++.so.6(GLIBCXX_3.4.11)(64bit), libstdc++.so.6(GLIBCXX_3.4.15)(64bit), libstdc++.so.6(GLIBCXX_3.4.20)(64bit), libstdc++.so.6(GLIBCXX_3.4.21)(64bit), libstdc++.so.6(GLIBCXX_3.4.9)(64bit), libz.so.1()(64bit) >= set:kiuXOSqHAe1, libz.so.1(ZLIB_1.2.0)(64bit), rtld(GNU_HASH), rtld(GNU_UNIQUE) Requires(rpmlib): rpmlib(SetVersions) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.0LrfB6 Creating frogatto-debuginfo package Processing files: frogatto-gamedata-1.3.3-alt2_5.M80P.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.50261 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d + DOCDIR=/usr/src/tmp/frogatto-buildroot/usr/share/doc/frogatto-gamedata-1.3.3 + export DOCDIR + rm -rf /usr/src/tmp/frogatto-buildroot/usr/share/doc/frogatto-gamedata-1.3.3 + /bin/mkdir -p /usr/src/tmp/frogatto-buildroot/usr/share/doc/frogatto-gamedata-1.3.3 + cp -prL modules/frogatto/CHANGELOG LICENSE /usr/src/tmp/frogatto-buildroot/usr/share/doc/frogatto-gamedata-1.3.3 + chmod -R go-w /usr/src/tmp/frogatto-buildroot/usr/share/doc/frogatto-gamedata-1.3.3 + chmod -R a+rX /usr/src/tmp/frogatto-buildroot/usr/share/doc/frogatto-gamedata-1.3.3 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.TuedPG find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.krJEkq find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks) Processing files: frogatto-debuginfo-1.3.3-alt2_5.M80P.1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.ZY3QGj find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.IMnBRf find-requires: running scripts (debuginfo) Requires: frogatto = 1.3.3-alt2_5.M80P.1, /usr/lib/debug/lib64/ld-linux-x86-64.so.2.debug, debug64(libGL.so.1), debug64(libGLEW.so.2.0), debug64(libGLU.so.1), debug64(libSDL-1.2.so.0), debug64(libSDL_image-1.2.so.0), debug64(libSDL_mixer-1.2.so.0), debug64(libSDL_ttf-2.0.so.0), debug64(libX11.so.6), debug64(libboost_regex.so.1.58.0), debug64(libboost_system.so.1.58.0), debug64(libc.so.6), debug64(libgcc_s.so.1), debug64(libm.so.6), debug64(libpng15.so.15), debug64(libpthread.so.0), debug64(libstdc++.so.6), debug64(libz.so.1) Wrote: /usr/src/RPM/RPMS/x86_64/frogatto-1.3.3-alt2_5.M80P.1.x86_64.rpm Wrote: /usr/src/RPM/RPMS/noarch/frogatto-gamedata-1.3.3-alt2_5.M80P.1.noarch.rpm Wrote: /usr/src/RPM/RPMS/x86_64/frogatto-debuginfo-1.3.3-alt2_5.M80P.1.x86_64.rpm 702.70user 39.52system 18:02.74elapsed 68%CPU (0avgtext+0avgdata 578492maxresident)k 0inputs+0outputs (0major+13300596minor)pagefaults 0swaps 713.83user 44.25system 18:21.59elapsed 68%CPU (0avgtext+0avgdata 578492maxresident)k 27920inputs+0outputs (0major+13696254minor)pagefaults 0swaps