<86>Feb 26 06:28:02 userdel[421528]: delete user 'rooter' <86>Feb 26 06:28:02 userdel[421528]: removed group 'rooter' owned by 'rooter' <86>Feb 26 06:28:02 groupadd[421541]: group added to /etc/group: name=rooter, GID=666 <86>Feb 26 06:28:02 groupadd[421541]: group added to /etc/gshadow: name=rooter <86>Feb 26 06:28:02 groupadd[421541]: new group: name=rooter, GID=666 <86>Feb 26 06:28:02 useradd[421553]: new user: name=rooter, UID=666, GID=666, home=/root, shell=/bin/bash <86>Feb 26 06:28:02 userdel[421567]: delete user 'builder' <86>Feb 26 06:28:02 userdel[421567]: removed group 'builder' owned by 'builder' <86>Feb 26 06:28:02 userdel[421567]: removed shadow group 'builder' owned by 'builder' <86>Feb 26 06:28:02 groupadd[421579]: group added to /etc/group: name=builder, GID=667 <86>Feb 26 06:28:02 groupadd[421579]: group added to /etc/gshadow: name=builder <86>Feb 26 06:28:02 groupadd[421579]: new group: name=builder, GID=667 <86>Feb 26 06:28:02 useradd[421587]: new user: name=builder, UID=667, GID=667, home=/usr/src, shell=/bin/bash /usr/src/in/srpm/maxr-0.2.6-alt2_3.src.rpm: license not found in '/usr/share/license' directory: GFDL warning: user igor does not exist - using root warning: group igor does not exist - using root warning: user igor does not exist - using root warning: group igor does not exist - using root warning: user igor does not exist - using root warning: group igor does not exist - using root warning: user igor does not exist - using root warning: group igor does not exist - using root warning: user igor does not exist - using root warning: group igor does not exist - using root <13>Feb 26 06:28:05 rpmi: rpm-macros-kde-common-devel-14.12.1-alt1 1422279175 installed <13>Feb 26 06:28:05 rpmi: rpm-macros-generic-compat-0.04-alt1 1527350580 installed <13>Feb 26 06:28:05 rpmi: rpm-macros-fedora-compat-0.159-alt1 sisyphus+258368.100.1.1 1600512138 installed <13>Feb 26 06:28:08 rpmi: libpng16-1.6.37-alt1 sisyphus+236677.100.2.1 1566917982 installed <13>Feb 26 06:28:08 rpmi: libjpeg-2:2.0.6-alt1 sisyphus+266888.100.1.1 1614172364 installed <13>Feb 26 06:28:08 rpmi: libexpat-2.2.10-alt1 sisyphus+259966.100.1.1 1602824514 installed <13>Feb 26 06:28:08 rpmi: xorg-proto-devel-2020.1-alt1 sisyphus+250406.100.1.1 1587554810 installed <13>Feb 26 06:28:08 rpmi: libogg-1.3.4-alt1 sisyphus+247109.100.1.1 1582849991 installed <13>Feb 26 06:28:08 rpmi: libvorbis-1.3.7-alt1 sisyphus+256535.100.1.1 1597965499 installed <13>Feb 26 06:28:08 rpmi: zlib-devel-1.2.11-alt1 sisyphus+221902.6000.4.1 1550600768 installed <13>Feb 26 06:28:08 rpmi: libglvnd-7:1.3.2-alt1 sisyphus+254610.100.1.1 1594124262 installed <13>Feb 26 06:28:08 rpmi: libICE-1.0.10-alt1 sisyphus+247690.100.1.1 1584000383 installed <13>Feb 26 06:28:08 rpmi: libSM-1.2.3-alt1 sisyphus+226734.100.2.1 1554586157 installed <13>Feb 26 06:28:08 rpmi: libpng-devel-1.6.37-alt1 sisyphus+236677.100.2.1 1566917982 installed <13>Feb 26 06:28:08 rpmi: libflac8-1.3.3.0.62.ce6d-alt1 sisyphus+262142.100.1.1 1605801575 installed <13>Feb 26 06:28:08 rpmi: libphysfs-3.0.2-alt1 sisyphus+227312.100.1.1 1555511352 installed <13>Feb 26 06:28:08 rpmi: libgomp1-10.2.1-alt2 sisyphus+263054.100.3.1 1607510507 installed <13>Feb 26 06:28:08 rpmi: libwebp7-1.2.0-alt1 sisyphus+265504.100.2.1 1612122043 installed <13>Feb 26 06:28:08 rpmi: libogg-devel-1.3.4-alt1 sisyphus+247109.100.1.1 1582849991 installed <13>Feb 26 06:28:08 rpmi: libquadmath0-10.2.1-alt2 sisyphus+263054.100.3.1 1607510507 installed <13>Feb 26 06:28:09 rpmi: libicu67-1:6.7.1-alt2 sisyphus+252432.100.2.2 1590796031 installed <13>Feb 26 06:28:09 rpmi: liblcms2-2.12-alt1 sisyphus+265911.100.2.1 1613037760 installed <13>Feb 26 06:28:09 rpmi: libltdl7-2.4.6-alt2 sisyphus+263722.100.1.1 1608561796 installed <13>Feb 26 06:28:09 rpmi: libopenjpeg2.0-2.4.0-alt1 sisyphus+264173.100.1.1 1609245154 installed <13>Feb 26 06:28:09 rpmi: libnettle8-3.7-alt1 sisyphus+265128.100.1.1 1611325136 installed <13>Feb 26 06:28:09 rpmi: libjbig-2.1-alt1 1401380921 installed <13>Feb 26 06:28:09 rpmi: libtiff5-4.2.0-alt1 sisyphus+266365.100.2.1 1613478686 installed <13>Feb 26 06:28:09 rpmi: libfribidi-1.0.10-alt1 sisyphus+254557.100.1.1 1594020354 installed <13>Feb 26 06:28:09 rpmi: libgraphite2-1.3.14-alt2 sisyphus+250009.100.1.1 1586943071 installed <13>Feb 26 06:28:09 rpmi: libwayland-server-1.19.0-alt1 sisyphus+265427.100.1.1 1611852852 installed <13>Feb 26 06:28:09 rpmi: ilmbase25-common-2.5.3-alt1 sisyphus+260406.100.1.1 1603706855 installed <13>Feb 26 06:28:09 rpmi: libiex25-2.5.3-alt1 sisyphus+260406.100.1.1 1603706855 installed <13>Feb 26 06:28:09 rpmi: libXau-1.0.9-alt1 sisyphus+223149.200.2.1 1551268156 installed <13>Feb 26 06:28:09 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Feb 26 06:28:09 rpmi: libp11-kit-0.23.15-alt2 sisyphus+252784.100.2.2 1591274915 installed <13>Feb 26 06:28:09 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825069 installed <13>Feb 26 06:28:09 rpmi: libXau-devel-1.0.9-alt1 sisyphus+223149.200.2.1 1551268156 installed <13>Feb 26 06:28:09 rpmi: libilmthread25-2.5.3-alt1 sisyphus+260406.100.1.1 1603706855 installed <13>Feb 26 06:28:09 rpmi: libimath25-2.5.3-alt1 sisyphus+260406.100.1.1 1603706855 installed <13>Feb 26 06:28:09 rpmi: libhalf25-2.5.3-alt1 sisyphus+260406.100.1.1 1603706855 installed <13>Feb 26 06:28:09 rpmi: libgraphite2-devel-1.3.14-alt2 sisyphus+250009.100.1.1 1586943071 installed <13>Feb 26 06:28:09 rpmi: libhogweed6-3.7-alt1 sisyphus+265128.100.1.1 1611325136 installed <13>Feb 26 06:28:09 rpmi: icu-utils-1:6.7.1-alt2 sisyphus+252432.100.2.2 1590796031 installed <13>Feb 26 06:28:09 rpmi: libicu-devel-1:6.7.1-alt2 sisyphus+252432.100.2.2 1590796031 installed <13>Feb 26 06:28:09 rpmi: libquadmath10-devel-10.2.1-alt2 sisyphus+263054.100.3.1 1607510507 installed <13>Feb 26 06:28:09 rpmi: libgfortran5-10.2.1-alt2 sisyphus+263054.100.3.1 1607510507 installed <13>Feb 26 06:28:09 rpmi: libvorbis-devel-1.3.7-alt1 sisyphus+256535.100.1.1 1597965499 installed <13>Feb 26 06:28:09 rpmi: libphysfs-devel-3.0.2-alt1 sisyphus+227312.100.1.1 1555511352 installed <13>Feb 26 06:28:09 rpmi: libICE-devel-1.0.10-alt1 sisyphus+247690.100.1.1 1584000383 installed <13>Feb 26 06:28:09 rpmi: libOpenGL-7:1.3.2-alt1 sisyphus+254610.100.1.1 1594124262 installed <13>Feb 26 06:28:09 rpmi: libGLES-7:1.3.2-alt1 sisyphus+254610.100.1.1 1594124262 installed <13>Feb 26 06:28:09 rpmi: libjasper-2.0.25-alt1 sisyphus+265995.100.1.1 1612818850 installed <13>Feb 26 06:28:09 rpmi: libraw-0.20.2-alt1 sisyphus+258819.40.9.1 1604414257 installed <13>Feb 26 06:28:09 rpmi: libflif-0.3-alt3 sisyphus+248230.100.1.1 1584818777 installed <13>Feb 26 06:28:09 rpmi: libnatspec-0.3.1-alt2 1445691578 installed <13>Feb 26 06:28:09 rpmi: liblua5.1-preinstall-5.1.5-alt17 sisyphus+261780.100.1.1 1605367954 installed <13>Feb 26 06:28:10 rpmi: liblua5.1-5.1.5-alt17 sisyphus+261780.100.1.1 1605367954 installed <13>Feb 26 06:28:10 rpmi: libreadline-devel-7.0.3-alt3 sisyphus+222164.300.1.1 1550686325 installed <13>Feb 26 06:28:10 rpmi: liblua5.1-compat-devel-5.1.5-alt17 sisyphus+261780.100.1.1 1605367954 installed <13>Feb 26 06:28:10 rpmi: liblua5.1-devel-5.1.5-alt17 sisyphus+261780.100.1.1 1605367954 installed <13>Feb 26 06:28:10 rpmi: libspeex-1.2-alt1 1528115225 installed <13>Feb 26 06:28:10 rpmi: libmodplug-0.8.9.0-alt1 sisyphus+224334.100.1.1 1552243564 installed <13>Feb 26 06:28:10 rpmi: libmad-0.15.1b-alt9 sisyphus+222614.100.1.1 1550890148 installed <13>Feb 26 06:28:10 rpmi: timidity-instruments-1:1.0-alt1 1166705614 installed <13>Feb 26 06:28:10 rpmi: libopus-1.3.1-alt3 sisyphus+248017.100.1.1 1584520346 installed <13>Feb 26 06:28:10 rpmi: libgsm-1.0.17-alt1 1523356157 installed <13>Feb 26 06:28:10 rpmi: libsndfile-1.0.30-alt2 sisyphus+263035.100.1.1 1607353096 installed <13>Feb 26 06:28:10 rpmi: libasyncns-0.8-alt2.qa1 1365949819 installed <13>Feb 26 06:28:10 rpmi: gcc-fortran-common-1.4.27-alt1 sisyphus+262033.600.7.2 1607340230 installed <13>Feb 26 06:28:10 rpmi: libgfortran10-devel-10.2.1-alt2 sisyphus+263054.100.3.1 1607510507 installed <13>Feb 26 06:28:10 rpmi: gcc10-fortran-10.2.1-alt2 sisyphus+263054.100.3.1 1607510507 installed <13>Feb 26 06:28:10 rpmi: gcc-c++-common-1.4.27-alt1 sisyphus+262033.600.7.2 1607340230 installed <13>Feb 26 06:28:11 rpmi: libstdc++10-devel-10.2.1-alt2 sisyphus+263054.100.3.1 1607510507 installed <13>Feb 26 06:28:12 rpmi: gcc10-c++-10.2.1-alt2 sisyphus+263054.100.3.1 1607510507 installed <13>Feb 26 06:28:12 rpmi: libstdc++-devel-10-alt1 sisyphus+263054.200.3.1 1607517515 installed <13>Feb 26 06:28:12 rpmi: xml-utils-1:2.9.10-alt6 sisyphus+265234.30740.49.1 1613762093 installed <13>Feb 26 06:28:12 rpmi: rpm-build-gir-0.7.3-alt3 sisyphus+242150.100.1.1 1575312005 installed <13>Feb 26 06:28:12 rpmi: libjack-1:1.9.14-alt1 sisyphus+251263.200.3.1 1588856119 installed <13>Feb 26 06:28:12 rpmi: alsa-ucm-conf-1.2.4-alt1 sisyphus+260180.200.1.1 1603282405 installed <13>Feb 26 06:28:12 rpmi: alsa-topology-conf-1.2.4-alt1 sisyphus+260180.100.1.1 1603282384 installed <13>Feb 26 06:28:12 rpmi: libalsa-1:1.2.4-alt1 sisyphus+260180.300.1.1 1603282485 installed <13>Feb 26 06:28:12 rpmi: libImageMagick6-common-6.9.11.53-alt1 sisyphus+264282.100.1.1 1609576396 installed <13>Feb 26 06:28:12 rpmi: libwmflite-0.2.8.4-alt13 1506519334 installed <13>Feb 26 06:28:12 rpmi: liblqr-0.4.2-alt1 1383038436 installed <13>Feb 26 06:28:12 rpmi: libx265-192-3.4-alt1 sisyphus+254160.100.7.1 1593756032 installed <13>Feb 26 06:28:12 rpmi: libde265-1.0.7-alt1 sisyphus+258615.100.1.1 1600957226 installed <13>Feb 26 06:28:12 rpmi: libaom2-2.0.1-alt1 sisyphus+265247.100.1.1 1611584736 installed <13>Feb 26 06:28:12 rpmi: libfftw3-common-3.3.8-alt1 sisyphus+247390.100.1.1 1583426835 installed <13>Feb 26 06:28:12 rpmi: libfftw3-3.3.8-alt1 sisyphus+247390.100.1.1 1583426835 installed <13>Feb 26 06:28:12 rpmi: djvu-common-3.5.27-alt1 sisyphus+252709.100.1.1 1591173068 installed <13>Feb 26 06:28:12 rpmi: libdjvu-3.5.27-alt1 sisyphus+252709.100.1.1 1591173068 installed <13>Feb 26 06:28:12 rpmi: libgts-0.7.6-alt2.drc20130205.1 sisyphus+225727.500.8.1 1553672625 installed <13>Feb 26 06:28:12 rpmi: libpaper-1.1.28-alt1 sisyphus+259176.100.1.1 1601738991 installed <13>Feb 26 06:28:12 rpmi: libidn2-2.3.0-alt1 sisyphus+240846.100.1.2 1573870464 installed <13>Feb 26 06:28:12 rpmi: libgnutls30-3.6.15-alt1 sisyphus+257742.200.2.1 1599668675 installed <13>Feb 26 06:28:12 rpmi: icon-theme-hicolor-0.17-alt2 sisyphus+248343.100.1.1 1584979043 installed <13>Feb 26 06:28:12 rpmi: libgdk-pixbuf-locales-2.42.2-alt1 sisyphus+263074.100.1.1 1607428070 installed <13>Feb 26 06:28:12 rpmi: libgtk+2-locales-2.24.33-alt1 sisyphus+263711.100.20.1 1609407991 installed <13>Feb 26 06:28:13 rpmi: libatk-locales-2.36.0-alt1 sisyphus+249208.100.1.1 1585840405 installed <13>Feb 26 06:28:13 rpmi: libatk-2.36.0-alt1 sisyphus+249208.100.1.1 1585840405 installed <13>Feb 26 06:28:13 rpmi: libdatrie-0.2.9-alt1_6 1511686677 installed <13>Feb 26 06:28:13 rpmi: libthai-0.1.28-alt1_1 sisyphus+226107.100.1.1 1554123079 installed <13>Feb 26 06:28:13 rpmi: libpixman-3:0.40.0-alt1 sisyphus+250700.100.1.1 1587970807 installed <13>Feb 26 06:28:13 rpmi: libbrotlicommon-1.0.9-alt2 sisyphus+257777.100.1.1 1599688015 installed <13>Feb 26 06:28:13 rpmi: libbrotlidec-1.0.9-alt2 sisyphus+257777.100.1.1 1599688015 installed <13>Feb 26 06:28:13 rpmi: libharfbuzz-2.6.8-alt1 sisyphus+254028.100.1.1 1593106819 installed <13>Feb 26 06:28:13 rpmi: libfreetype-2.10.4-alt2 sisyphus+260293.100.2.1 1604479495 installed <13>Feb 26 06:28:13 rpmi: fontconfig-2.13.1-alt1 sisyphus+257555.100.1.1 1599475143 installed Updating fonts cache: <29>Feb 26 06:28:14 fontconfig: Updating fonts cache: succeeded [ DONE ] <13>Feb 26 06:28:14 rpmi: libraqm-0.7.0-alt1 sisyphus+235164.100.2.1 1564651522 installed <13>Feb 26 06:28:14 rpmi: libharfbuzz-icu-2.6.8-alt1 sisyphus+254028.100.1.1 1593106819 installed <13>Feb 26 06:28:14 rpmi: libharfbuzz-gobject-2.6.8-alt1 sisyphus+254028.100.1.1 1593106819 installed <13>Feb 26 06:28:14 rpmi: libxshmfence-1.3-alt1 sisyphus+223149.1000.2.1 1551268594 installed <13>Feb 26 06:28:14 rpmi: libwayland-client-1.19.0-alt1 sisyphus+265427.100.1.1 1611852852 installed <13>Feb 26 06:28:14 rpmi: libpciaccess-1:0.16-alt1 sisyphus+234814.100.1.1 1563438297 installed <13>Feb 26 06:28:14 rpmi: libdrm-1:2.4.104-alt1 sisyphus+264662.100.1.1 1610612816 installed <13>Feb 26 06:28:14 rpmi: libgbm-4:20.3.4-alt1 sisyphus+265564.100.1.1 1612163457 installed <13>Feb 26 06:28:14 rpmi: openexr25-common-2.5.3-alt1 sisyphus+260406.200.2.1 1603719714 installed <13>Feb 26 06:28:14 rpmi: libilmimf25-2.5.3-alt1 sisyphus+260406.200.2.1 1603719714 installed <13>Feb 26 06:28:14 rpmi: openldap-common-2.4.57-alt1 sisyphus+266287.100.1.1 1613244218 installed <13>Feb 26 06:28:14 rpmi: libverto-0.3.1-alt1_2 sisyphus+265276.100.1.1 1611604632 installed <13>Feb 26 06:28:14 rpmi: liblmdb-0.9.23-alt1 sisyphus+225277.100.2.1 1553001689 installed <13>Feb 26 06:28:14 rpmi: libkeyutils-1.6.3-alt1 sisyphus+266061.100.1.1 1612919566 installed <13>Feb 26 06:28:14 rpmi: libcom_err-1.45.6.0.24.af1a-alt1 sisyphus+262279.100.1.1 1606088191 installed <13>Feb 26 06:28:15 rpmi: shared-mime-info-2.1-alt1 sisyphus+264261.100.1.1 1609507718 installed <13>Feb 26 06:28:15 rpmi: gsettings-desktop-schemas-data-3.38.0-alt1 sisyphus+258314.500.14.2 1600843028 installed <13>Feb 26 06:28:15 rpmi: libgio-2.66.7-alt1 sisyphus+265234.43160.49.1 1613772812 installed <13>Feb 26 06:28:15 rpmi: gsettings-desktop-schemas-3.38.0-alt1 sisyphus+258314.500.14.2 1600843028 installed <13>Feb 26 06:28:15 rpmi: libgdk-pixbuf-2.42.2-alt1 sisyphus+263074.100.1.1 1607428070 installed <13>Feb 26 06:28:15 rpmi: gtk-update-icon-cache-3.24.26-alt1 sisyphus+266853.200.1.2 1614175298 installed <13>Feb 26 06:28:15 rpmi: libheif-1.9.0-alt1 sisyphus+258615.200.1.1 1600957289 installed <13>Feb 26 06:28:15 rpmi: liblz4-1:1.9.3-alt1 sisyphus+262305.100.1.1 1606099128 installed <13>Feb 26 06:28:15 rpmi: libgpg-error-1.41-alt4 sisyphus+264254.200.1.1 1609440105 installed <13>Feb 26 06:28:15 rpmi: libgcrypt20-1.9.2-alt1 sisyphus+266496.100.1.1 1613559130 installed <13>Feb 26 06:28:15 rpmi: libsystemd-1:247.3-alt2 sisyphus+266129.100.1.3 1613012524 installed <13>Feb 26 06:28:15 rpmi: libdbus-1.12.18-alt1 sisyphus+252758.100.1.1 1591203684 installed <13>Feb 26 06:28:15 rpmi: libdbus-glib-1:0.110-alt1 sisyphus+261272.100.1.1 1604838966 installed <13>Feb 26 06:28:15 rpmi: dbus-tools-1.12.18-alt1 sisyphus+252758.100.1.1 1591203684 installed <86>Feb 26 06:28:15 groupadd[461018]: group added to /etc/group: name=messagebus, GID=499 <86>Feb 26 06:28:15 groupadd[461018]: group added to /etc/gshadow: name=messagebus <86>Feb 26 06:28:15 groupadd[461018]: new group: name=messagebus, GID=499 <86>Feb 26 06:28:15 useradd[461044]: new user: name=messagebus, UID=499, GID=499, home=/run/dbus, shell=/dev/null <13>Feb 26 06:28:15 rpmi: dbus-1.12.18-alt1 sisyphus+252758.100.1.1 1591203684 installed <13>Feb 26 06:28:15 rpmi: libavahi-0.8-alt1 sisyphus+255349.240.4.1 1595604500 installed <13>Feb 26 06:28:15 rpmi: libcups-2.3.3-alt1 sisyphus+265411.100.1.1 1611832624 installed <13>Feb 26 06:28:16 rpmi: libgs-9.53.3-alt1 sisyphus+260366.100.1.1 1603614495 installed <13>Feb 26 06:28:16 rpmi: libpolkit-0.118-alt2 sisyphus+263041.200.3.1 1611694155 installed <13>Feb 26 06:28:16 rpmi: libxslt-1.1.34-alt2 sisyphus+248264.100.1.1 1584829787 installed <13>Feb 26 06:28:16 rpmi: xsltproc-1.1.34-alt2 sisyphus+248264.100.1.1 1584829787 installed <13>Feb 26 06:28:16 rpmi: libX11-locales-3:1.7.0-alt1 sisyphus+264667.100.1.2 1610655150 installed <13>Feb 26 06:28:16 rpmi: libXdmcp-1.1.3-alt1 sisyphus+225206.600.1.2 1552949347 installed <13>Feb 26 06:28:16 rpmi: libxcb-1.14-alt1 sisyphus+247358.200.1.3 1583854223 installed <13>Feb 26 06:28:16 rpmi: libX11-3:1.7.0-alt1 sisyphus+264667.100.1.2 1610655150 installed <13>Feb 26 06:28:16 rpmi: libXext-1.3.4-alt1 sisyphus+225206.700.1.2 1552949422 installed <13>Feb 26 06:28:16 rpmi: libXrender-0.9.10-alt1 sisyphus+261890.100.1.1 1605595144 installed <13>Feb 26 06:28:16 rpmi: libXfixes-5.0.3-alt1 sisyphus+226736.100.2.2 1554614842 installed <13>Feb 26 06:28:16 rpmi: libpulseaudio-14.2-alt1 sisyphus+265609.100.1.1 1612188811 installed <13>Feb 26 06:28:16 rpmi: libmikmod-3.3.11.1-alt2 1502706813 installed <13>Feb 26 06:28:16 rpmi: libXcursor-1.2.0-alt1 sisyphus+225206.400.1.2 1552949214 installed <13>Feb 26 06:28:16 rpmi: libXft-2.3.3-alt1 sisyphus+225206.1000.3.2 1552987714 installed <13>Feb 26 06:28:16 rpmi: libXrandr-1.5.2-alt1 sisyphus+225206.1300.1.2 1552949698 installed <13>Feb 26 06:28:16 rpmi: libSDL-1.2.14-alt9 sisyphus+261262.100.1.1 1604829349 installed <13>Feb 26 06:28:16 rpmi: libSDL_image-1.2.12-alt2 sisyphus+223384.100.1.1 1551514520 installed <13>Feb 26 06:28:16 rpmi: libSDL_sound-1.0.3-alt4 sisyphus+222884.100.1.1 1551177998 installed <13>Feb 26 06:28:16 rpmi: libXxf86vm-1.1.4-alt2 1527672159 installed <13>Feb 26 06:28:16 rpmi: libXdamage-1.1.5-alt1 sisyphus+225206.500.1.2 1552949282 installed <13>Feb 26 06:28:16 rpmi: libGLX-mesa-4:20.3.4-alt1 sisyphus+265564.100.1.1 1612163457 installed <13>Feb 26 06:28:16 rpmi: libEGL-mesa-4:20.3.4-alt1 sisyphus+265564.100.1.1 1612163457 installed <13>Feb 26 06:28:16 rpmi: libEGL-7:1.3.2-alt1 sisyphus+254610.100.1.1 1594124262 installed <13>Feb 26 06:28:17 rpmi: libxcb-devel-1.14-alt1 sisyphus+247358.200.1.3 1583854223 installed <13>Feb 26 06:28:17 rpmi: libX11-devel-3:1.7.0-alt1 sisyphus+264667.100.1.2 1610655150 installed <13>Feb 26 06:28:17 rpmi: libXrender-devel-0.9.10-alt1 sisyphus+261890.100.1.1 1605595144 installed <13>Feb 26 06:28:17 rpmi: libXext-devel-1.3.4-alt1 sisyphus+225206.700.1.2 1552949422 installed <13>Feb 26 06:28:17 rpmi: libGLX-7:1.3.2-alt1 sisyphus+254610.100.1.1 1594124262 installed <13>Feb 26 06:28:17 rpmi: libGL-7:1.3.2-alt1 sisyphus+254610.100.1.1 1594124262 installed <13>Feb 26 06:28:17 rpmi: libcairo-1:1.16.0-alt1 sisyphus+226534.100.2.3 1554515520 installed <13>Feb 26 06:28:17 rpmi: libglvnd-devel-7:1.3.2-alt1 sisyphus+254610.100.1.1 1594124262 installed <13>Feb 26 06:28:17 rpmi: libpango-1.48.2-alt1 sisyphus+266169.100.1.1 1613030890 installed <13>Feb 26 06:28:17 rpmi: libGLU-4:9.0.1-alt1 sisyphus+248864.100.1.1 1585556464 installed <13>Feb 26 06:28:17 rpmi: libGLU-devel-4:9.0.1-alt1 sisyphus+248864.100.1.1 1585556464 installed <13>Feb 26 06:28:17 rpmi: libSDL-devel-1.2.14-alt9 sisyphus+261262.100.1.1 1604829349 installed <13>Feb 26 06:28:17 rpmi: libGL-devel-4:20.3.4-alt1 sisyphus+265564.100.1.1 1612163457 installed <13>Feb 26 06:28:17 rpmi: libSDL_sound-devel-1.0.3-alt4 sisyphus+222884.100.1.1 1551177998 installed <13>Feb 26 06:28:17 rpmi: radius-engine-1.1-alt1_16 sisyphus+248809.100.1.1 1585429381 installed <13>Feb 26 06:28:17 rpmi: liblasi-1.1.3-alt2 sisyphus+239300.100.1.1 1571209619 installed <13>Feb 26 06:28:17 rpmi: libEGL-devel-4:20.3.4-alt1 sisyphus+265564.100.1.1 1612163457 installed <13>Feb 26 06:28:17 rpmi: libcairo-gobject-1:1.16.0-alt1 sisyphus+226534.100.2.3 1554515520 installed <13>Feb 26 06:28:18 rpmi: librsvg-1:2.50.3-alt1 sisyphus+265438.100.1.1 1611858681 installed <13>Feb 26 06:28:18 rpmi: libSDL_gfx-2.0.25-alt1 1417989825 installed <13>Feb 26 06:28:18 rpmi: libSDL_mixer-1.2.12-alt1 1421435872 installed <13>Feb 26 06:28:18 rpmi: libSDL_net-1.2.8-alt1 1333963621 installed <13>Feb 26 06:28:18 rpmi: libSDL_ttf-2.0.10-alt2 1314052175 installed <13>Feb 26 06:28:18 rpmi: libXi-1.7.10-alt1 sisyphus+232786.300.1.1 1561106975 installed <13>Feb 26 06:28:18 rpmi: libXinerama-1.1.4-alt1 sisyphus+223149.300.2.1 1551268223 installed <13>Feb 26 06:28:18 rpmi: libXxf86dga-1.1.5-alt1 sisyphus+225206.1500.1.2 1552949831 installed <13>Feb 26 06:28:18 rpmi: dbus-tools-gui-1.12.18-alt1 sisyphus+252758.100.1.1 1591203684 installed <13>Feb 26 06:28:18 rpmi: libXt-1.2.1-alt1 sisyphus+265202.200.1.1 1611565457 installed <13>Feb 26 06:28:18 rpmi: libXpm-3.5.13-alt1 sisyphus+247690.300.1.1 1584000502 installed <13>Feb 26 06:28:18 rpmi: liballegro4.4-4.4.2-alt7 sisyphus+265406.100.1.1 1611826489 installed <13>Feb 26 06:28:18 rpmi: dumb-0.9.3-alt5 1523614881 installed <13>Feb 26 06:28:18 rpmi: libguichan-0.8.2-alt3.1 1433991057 installed <13>Feb 26 06:28:18 rpmi: libgd3-2.3.0-alt2 sisyphus+250375.100.2.1 1587542911 installed <13>Feb 26 06:28:18 rpmi: libXcomposite-0.4.5-alt1 sisyphus+225206.300.1.2 1552949136 installed <13>Feb 26 06:28:18 rpmi: libgtk+2-2.24.33-alt1 sisyphus+263711.100.20.1 1609407991 installed <13>Feb 26 06:28:18 rpmi: libgraphviz-2.41.2-alt4 sisyphus+265234.25500.49.1 1613757808 installed <13>Feb 26 06:28:18 rpmi: libImageMagick6.6-6.9.11.53-alt1 sisyphus+264282.100.1.1 1609576396 installed <13>Feb 26 06:28:18 rpmi: ImageMagick-tools-6.9.11.53-alt1 sisyphus+264282.100.1.1 1609576396 installed <13>Feb 26 06:28:18 rpmi: liballegro-devel-4.4.2-alt7 sisyphus+265406.100.1.1 1611826489 installed <13>Feb 26 06:28:18 rpmi: python-modules-curses-2.7.18-alt4 sisyphus+266950.200.2.1 1614241385 installed <13>Feb 26 06:28:18 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Feb 26 06:28:18 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Feb 26 06:28:18 rpmi: ca-certificates-2021.01.27-alt1 sisyphus+265371.200.1.1 1611759824 installed <13>Feb 26 06:28:18 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Feb 26 06:28:18 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+252784.100.2.2 1591274915 installed <13>Feb 26 06:28:18 rpmi: libcrypto1.1-1.1.1i-alt3 sisyphus+265605.200.2.1 1612202514 installed <13>Feb 26 06:28:19 rpmi: libssl1.1-1.1.1i-alt3 sisyphus+265605.200.2.1 1612202514 installed <13>Feb 26 06:28:19 rpmi: python-modules-compiler-2.7.18-alt4 sisyphus+266950.200.2.1 1614241385 installed <13>Feb 26 06:28:19 rpmi: python-modules-email-2.7.18-alt4 sisyphus+266950.200.2.1 1614241385 installed <13>Feb 26 06:28:19 rpmi: python-modules-unittest-2.7.18-alt4 sisyphus+266950.200.2.1 1614241385 installed <13>Feb 26 06:28:19 rpmi: python-modules-encodings-2.7.18-alt4 sisyphus+266950.200.2.1 1614241385 installed <13>Feb 26 06:28:19 rpmi: python-modules-2.7.18-alt4 sisyphus+266950.200.2.1 1614241385 installed <13>Feb 26 06:28:19 rpmi: libpython3-3.9.1-alt1 sisyphus+265234.40.49.1 1613741398 installed <13>Feb 26 06:28:19 rpmi: python3-3.9.1-alt1 sisyphus+265234.40.49.1 1613741398 installed <13>Feb 26 06:28:20 rpmi: python3-base-3.9.1-alt1 sisyphus+265234.40.49.1 1613741398 installed <13>Feb 26 06:28:20 rpmi: glib2-devel-2.66.7-alt1 sisyphus+265234.43160.49.1 1613772812 installed <13>Feb 26 06:28:20 rpmi: libfreetype-devel-2.10.4-alt2 sisyphus+260293.100.2.1 1604479495 installed <13>Feb 26 06:28:20 rpmi: libharfbuzz-devel-2.6.8-alt1 sisyphus+254028.100.1.1 1593106819 installed <13>Feb 26 06:28:20 rpmi: fontconfig-devel-2.13.1-alt1 sisyphus+257555.100.1.1 1599475143 installed <13>Feb 26 06:28:20 rpmi: libcairo-devel-1:1.16.0-alt1 sisyphus+226534.100.2.3 1554515520 installed <13>Feb 26 06:28:20 rpmi: libgio-devel-2.66.7-alt1 sisyphus+265234.43160.49.1 1613772812 installed <13>Feb 26 06:28:20 rpmi: libgdk-pixbuf-devel-2.42.2-alt1 sisyphus+263074.100.1.1 1607428070 installed <13>Feb 26 06:28:20 rpmi: libXft-devel-2.3.3-alt1 sisyphus+225206.1000.3.2 1552987714 installed <13>Feb 26 06:28:20 rpmi: libpango-devel-1.48.2-alt1 sisyphus+266169.100.1.1 1613030890 installed <13>Feb 26 06:28:20 rpmi: libatk-devel-2.36.0-alt1 sisyphus+249208.100.1.1 1585840405 installed <13>Feb 26 06:28:20 rpmi: libpulseaudio-devel-14.2-alt1 sisyphus+265609.100.1.1 1612188811 installed <13>Feb 26 06:28:20 rpmi: gtk-builder-convert-2.24.33-alt1 sisyphus+263711.100.20.1 1609407991 installed <13>Feb 26 06:28:20 rpmi: python-modules-xml-2.7.18-alt4 sisyphus+266950.200.2.1 1614241385 installed <13>Feb 26 06:28:20 rpmi: python-modules-hotshot-2.7.18-alt4 sisyphus+266950.200.2.1 1614241385 installed <13>Feb 26 06:28:20 rpmi: python-modules-bsddb-2.7.18-alt4 sisyphus+266950.200.2.1 1614241385 installed <13>Feb 26 06:28:20 rpmi: python-modules-ctypes-2.7.18-alt4 sisyphus+266950.200.2.1 1614241385 installed <13>Feb 26 06:28:20 rpmi: python-modules-multiprocessing-2.7.18-alt4 sisyphus+266950.200.2.1 1614241385 installed <13>Feb 26 06:28:20 rpmi: python-modules-logging-2.7.18-alt4 sisyphus+266950.200.2.1 1614241385 installed <13>Feb 26 06:28:20 rpmi: python-2.7.18-alt4 sisyphus+266950.200.2.1 1614241385 installed <13>Feb 26 06:28:20 rpmi: python-modules-distutils-2.7.18-alt4 sisyphus+266950.200.2.1 1614241385 installed <86>Feb 26 06:28:20 groupadd[482058]: group added to /etc/group: name=_keytab, GID=498 <13>Feb 26 06:28:20 rpmi: libkrb5-1.18.3-alt1 sisyphus+262109.100.1.1 1605776749 installed <86>Feb 26 06:28:20 groupadd[482448]: group added to /etc/group: name=sasl, GID=497 <86>Feb 26 06:28:20 groupadd[482448]: group added to /etc/gshadow: name=sasl <86>Feb 26 06:28:20 groupadd[482448]: new group: name=sasl, GID=497 <13>Feb 26 06:28:20 rpmi: libsasl2-3-2.1.27-alt2.1 sisyphus+255909.100.2.1 1597199521 installed <13>Feb 26 06:28:20 rpmi: libldap-2.4.57-alt1 sisyphus+266287.100.1.1 1613244218 installed <13>Feb 26 06:28:20 rpmi: libGConf-3.2.6-alt4 sisyphus+248231.100.1.1 1584821795 installed <13>Feb 26 06:28:20 rpmi: libtinfo-devel-6.2.20210123-alt1 sisyphus+265425.100.1.1 1611851422 installed <13>Feb 26 06:28:21 rpmi: libncurses-devel-6.2.20210123-alt1 sisyphus+265425.100.1.1 1611851422 installed <13>Feb 26 06:28:21 rpmi: python-dev-2.7.18-alt4 sisyphus+266950.200.2.1 1614241385 installed <13>Feb 26 06:28:21 rpmi: GConf-3.2.6-alt4 sisyphus+248231.100.1.1 1584821795 installed <13>Feb 26 06:28:21 rpmi: libgtk+2-devel-2.24.33-alt1 sisyphus+263711.100.20.1 1609407991 installed <13>Feb 26 06:28:21 rpmi: libmikmod-devel-3.3.11.1-alt2 1502706813 installed <13>Feb 26 06:28:21 rpmi: dumb-devel-0.9.3-alt5 1523614881 installed <13>Feb 26 06:28:21 rpmi: libguichan-devel-0.8.2-alt3.1 1433991057 installed <13>Feb 26 06:28:21 rpmi: libSDL_ttf-devel-2.0.10-alt2 1314052175 installed <13>Feb 26 06:28:21 rpmi: libSDL_net-devel-1.2.8-alt1 1333963621 installed <13>Feb 26 06:28:21 rpmi: libSDL_mixer-devel-1.2.12-alt1 1421435872 installed <13>Feb 26 06:28:21 rpmi: libSDL_gfx-devel-2.0.25-alt1 1417989825 installed <13>Feb 26 06:28:21 rpmi: radius-engine-devel-1.1-alt1_16 sisyphus+248809.100.1.1 1585429381 installed <13>Feb 26 06:28:21 rpmi: libSDL_image-devel-1.2.12-alt2 sisyphus+223384.100.1.1 1551514520 installed <13>Feb 26 06:28:21 rpmi: gcc-c++-10-alt1 sisyphus+263054.200.3.1 1607517515 installed <13>Feb 26 06:28:21 rpmi: gcc-fortran-10-alt1 sisyphus+263054.200.3.1 1607517515 installed <13>Feb 26 06:28:21 rpmi: unzip-6.0-alt4 sisyphus+261685.200.2.1 1605218922 installed <13>Feb 26 06:28:21 rpmi: libSM-devel-1.2.3-alt1 sisyphus+226734.100.2.1 1554586157 installed <13>Feb 26 06:28:21 rpmi: desktop-file-utils-0.23-alt2 sisyphus+226879.100.1.1 1554744353 installed <13>Feb 26 06:28:21 rpmi: libxml2-devel-1:2.9.10-alt6 sisyphus+265234.30740.49.1 1613762093 installed Building target platforms: x86_64 Building for target x86_64 Wrote: /usr/src/in/nosrpm/maxr-0.2.6-alt2_3.nosrc.rpm (w1.gzdio) Installing maxr-0.2.6-alt2_3.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.45102 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf maxr-0.2.6 + echo 'Source #0 (maxr-0.2.6.tar.gz):' Source #0 (maxr-0.2.6.tar.gz): + /bin/tar -xf - + /bin/gzip -dc /usr/src/RPM/SOURCES/maxr-0.2.6.tar.gz + cd maxr-0.2.6 + /bin/chmod -c -Rf u+rwX,go-w . + sed -i 's/\r//' CHANGELOG + iconv -f iso-8859-1 -t utf-8 -o COPYING.README.utf8 COPYING.README + touch -c -r COPYING.README COPYING.README.utf8 + mv -f COPYING.README.utf8 COPYING.README + iconv -f iso-8859-1 -t utf-8 -o ABOUT.utf8 ABOUT + touch -c -r ABOUT ABOUT.utf8 + mv -f ABOUT.utf8 ABOUT + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.45102 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd maxr-0.2.6 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export FFLAGS + FCFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2' + export FCFLAGS + '[' -n '' ']' ++ sed -r 's/(^|[[:space:]]+)-[^m][^[:space:]]*//g' ++ printf %s '-pipe -frecord-gcc-switches -Wall -g -O2' + ASFLAGS= + export ASFLAGS + export lt_cv_deplibs_check_method=pass_all + lt_cv_deplibs_check_method=pass_all + xargs -ri find '{}' -type f '(' -name config.sub -or -name config.guess ')' -printf '%h/\n' + xargs -rn1 install -pm755 -- /usr/share/gnu-config/config.sub /usr/share/gnu-config/config.guess + xargs -ri dirname -- '{}' + readlink -e -- ./configure + sort -u + ./configure --build=x86_64-alt-linux --host=x86_64-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --disable-silent-rules --without-included-gettext configure: WARNING: unrecognized options: --disable-silent-rules, --without-included-gettext checking for a sed that does not truncate output... /bin/sed checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for x86_64-alt-linux-gcc... x86_64-alt-linux-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-alt-linux-gcc accepts -g... yes checking for x86_64-alt-linux-gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of x86_64-alt-linux-gcc... none checking for x86_64-alt-linux-g++... x86_64-alt-linux-g++ checking whether we are using the GNU C++ compiler... yes checking whether x86_64-alt-linux-g++ accepts -g... yes checking dependency style of x86_64-alt-linux-g++... none checking for gawk... (cached) gawk checking build system type... x86_64-alt-linux-gnu checking host system type... x86_64-alt-linux-gnu checking for a sed that does not truncate output... (cached) /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by x86_64-alt-linux-gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/bin/ld option to reload object files... -r checking for x86_64-alt-linux-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... (cached) pass_all checking for x86_64-alt-linux-ar... no checking for ar... ar checking for x86_64-alt-linux-strip... no checking for strip... strip checking for x86_64-alt-linux-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from x86_64-alt-linux-gcc object... ok checking how to run the C preprocessor... x86_64-alt-linux-gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking whether we are using the GNU C++ compiler... (cached) yes checking whether x86_64-alt-linux-g++ accepts -g... (cached) yes checking dependency style of x86_64-alt-linux-g++... (cached) none checking how to run the C++ preprocessor... x86_64-alt-linux-g++ -E checking for objdir... .libs checking if x86_64-alt-linux-gcc supports -fno-rtti -fno-exceptions... no checking for x86_64-alt-linux-gcc option to produce PIC... -fPIC -DPIC checking if x86_64-alt-linux-gcc PIC flag -fPIC -DPIC works... yes checking if x86_64-alt-linux-gcc static flag -static works... no checking if x86_64-alt-linux-gcc supports -c -o file.o... yes checking if x86_64-alt-linux-gcc supports -c -o file.o... (cached) yes checking whether the x86_64-alt-linux-gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for ld used by x86_64-alt-linux-g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the x86_64-alt-linux-g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for x86_64-alt-linux-g++ option to produce PIC... -fPIC -DPIC checking if x86_64-alt-linux-g++ PIC flag -fPIC -DPIC works... yes checking if x86_64-alt-linux-g++ static flag -static works... no checking if x86_64-alt-linux-g++ supports -c -o file.o... yes checking if x86_64-alt-linux-g++ supports -c -o file.o... (cached) yes checking whether the x86_64-alt-linux-g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for sdl-config... sdl-config checking for SDL_Init in -lSDL... yes checking SDL/SDL.h usability... yes checking SDL/SDL.h presence... yes checking for SDL/SDL.h... yes checking for Mix_OpenAudio in -lSDL_mixer... yes checking SDL/SDL_mixer.h usability... yes checking SDL/SDL_mixer.h presence... yes checking for SDL/SDL_mixer.h... yes checking for SDLNet_Init in -lSDL_net... yes checking SDL/SDL_net.h usability... yes checking SDL/SDL_net.h presence... yes checking for SDL/SDL_net.h... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands configure: WARNING: unrecognized options: --disable-silent-rules, --without-included-gettext + make -j8 make all-recursive Making all in . make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6' /bin/sh ./buildinfo.sh /usr/share/maxr Creating autoversion.h Couldn't read svn info from src/.svn make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6' Making all in src make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o automjobs.o automjobs.cpp automjobs.cpp: In member function 'float cAutoMJob::CalcFactor(int, int)': automjobs.cpp:221:10: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 221 | if ( i == iNumber ) continue; | ~~^~~~~~~~~~ automjobs.cpp: In member function 'void cAutoMJob::PlanLongMove()': automjobs.cpp:265:11: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 265 | if (i == iNumber || autoMJobs[i]->vehicle->owner != vehicle->owner) continue; | ~~^~~~~~~~~~ automjobs.cpp:286:46: warning: 'bestY' may be used uninitialized in this function [-Wmaybe-uninitialized] 286 | Client->addMoveJob( vehicle, bestX + bestY * Client->Map->size); | ~~~~~~^~~~~~~~~~~~~~~~~~~ automjobs.cpp:286:21: warning: 'bestX' may be used uninitialized in this function [-Wmaybe-uninitialized] 286 | Client->addMoveJob( vehicle, bestX + bestY * Client->Map->size); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ automjobs.cpp: In member function 'void cAutoMJob::PlanNextMove()': automjobs.cpp:150:46: warning: 'bestY' may be used uninitialized in this function [-Wmaybe-uninitialized] 150 | Client->addMoveJob( vehicle, bestX + bestY * Client->Map->size ); | ~~~~~~^~~~~~~~~~~~~~~~~~~ automjobs.cpp:150:21: warning: 'bestX' may be used uninitialized in this function [-Wmaybe-uninitialized] 150 | Client->addMoveJob( vehicle, bestX + bestY * Client->Map->size ); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o clientevents.o clientevents.cpp make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o clans.o clans.cpp make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o drawingcache.o drawingcache.cpp drawingcache.cpp: In member function 'SDL_Surface* cDrawingCache::getCachedImage(cVehicle*)': drawingcache.cpp:205:21: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 205 | if ( entry.frame != Client->iFrame % 4 ) continue; | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o attackJobs.o attackJobs.cpp make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o extendedtinyxml.o extendedtinyxml.cpp extendedtinyxml.cpp: In member function 'ExTiXmlNode* ExTiXmlNode::XmlGetFirstNodeChild()': extendedtinyxml.cpp:88:2: warning: 'nonnull' argument 'this' compared to NULL [-Wnonnull-compare] 88 | if( this == NULL ) | ^~ extendedtinyxml.cpp: In member function 'ExTiXmlNode* ExTiXmlNode::XmlGetNextNodeSibling()': extendedtinyxml.cpp:102:2: warning: 'nonnull' argument 'this' compared to NULL [-Wnonnull-compare] 102 | if( this == NULL ) | ^~ extendedtinyxml.cpp: In member function 'ExTiXmlNode* ExTiXmlNode::XmlReadNodeData(std::string&, ExTiXmlNode::XML_NODE_TYPE)': extendedtinyxml.cpp:120:2: warning: 'nonnull' argument 'this' compared to NULL [-Wnonnull-compare] 120 | if( this == NULL ) | ^~ extendedtinyxml.cpp: In member function 'ExTiXmlNode* ExTiXmlNode::XmlReadNodeData(std::string&, ExTiXmlNode::XML_NODE_TYPE, const char*)': extendedtinyxml.cpp:191:2: warning: 'nonnull' argument 'this' compared to NULL [-Wnonnull-compare] 191 | if( this == NULL ) | ^~ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o base.o base.cpp In file included from base.cpp:19: base.h: In constructor 'sSubBase::sSubBase(int, cPlayer*)': base.h:154:6: warning: 'sSubBase::GoldProd' will be initialized after [-Wreorder] 154 | int GoldProd; | ^~~~~~~~ base.h:59:6: warning: 'int sSubBase::HumanProd' [-Wreorder] 59 | int HumanProd; | ^~~~~~~~~ base.cpp:25:1: warning: when initialized here [-Wreorder] 25 | sSubBase::sSubBase( int iNextID, cPlayer* owner_ ) : | ^~~~~~~~ In file included from base.cpp:19: base.h:61:6: warning: 'sSubBase::MaxHumanNeed' will be initialized after [-Wreorder] 61 | int MaxHumanNeed; | ^~~~~~~~~~~~ base.h:39:6: warning: 'int sSubBase::iID' [-Wreorder] 39 | int iID; | ^~~ base.cpp:25:1: warning: when initialized here [-Wreorder] 25 | sSubBase::sSubBase( int iNextID, cPlayer* owner_ ) : | ^~~~~~~~ In file included from base.cpp:19: base.h:39:6: warning: 'sSubBase::iID' will be initialized after [-Wreorder] 39 | int iID; | ^~~ base.h:37:11: warning: 'cPlayer* sSubBase::owner' [-Wreorder] 37 | cPlayer* owner; | ^~~~~ base.cpp:25:1: warning: when initialized here [-Wreorder] 25 | sSubBase::sSubBase( int iNextID, cPlayer* owner_ ) : | ^~~~~~~~ In file included from base.cpp:19: base.h: In copy constructor 'sSubBase::sSubBase(const sSubBase&)': base.h:154:6: warning: 'sSubBase::GoldProd' will be initialized after [-Wreorder] 154 | int GoldProd; | ^~~~~~~~ base.h:59:6: warning: 'int sSubBase::HumanProd' [-Wreorder] 59 | int HumanProd; | ^~~~~~~~~ base.cpp:53:1: warning: when initialized here [-Wreorder] 53 | sSubBase::sSubBase( const sSubBase& sb ) : | ^~~~~~~~ In file included from base.cpp:19: base.h:61:6: warning: 'sSubBase::MaxHumanNeed' will be initialized after [-Wreorder] 61 | int MaxHumanNeed; | ^~~~~~~~~~~~ base.h:39:6: warning: 'int sSubBase::iID' [-Wreorder] 39 | int iID; | ^~~ base.cpp:53:1: warning: when initialized here [-Wreorder] 53 | sSubBase::sSubBase( const sSubBase& sb ) : | ^~~~~~~~ base.cpp: In member function 'void sSubBase::addRessouce(sUnitData::eStorageResType, int)': base.cpp:430:9: warning: enumeration value 'STORE_RES_NONE' not handled in switch [-Wswitch] 430 | switch ( storeResType ) | ^ base.cpp: In member function 'void sSubBase::addBuilding(cBuilding*)': base.cpp:1098:9: warning: enumeration value 'STORE_RES_NONE' not handled in switch [-Wswitch] 1098 | switch ( b->data.storeResType ) | ^ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o dialog.o dialog.cpp In file included from dialog.h:22, from dialog.cpp:22: menus.h: In constructor 'sClientLandData::sClientLandData()': menus.h:55:18: warning: 'sClientLandData::iLastLandY' will be initialized after [-Wreorder] 55 | int iLastLandX, iLastLandY; | ^~~~~~~~~~ menus.h:54:16: warning: 'eLandingState sClientLandData::landingState' [-Wreorder] 54 | eLandingState landingState; | ^~~~~~~~~~~~ menus.h:58:2: warning: when initialized here [-Wreorder] 58 | sClientLandData() : iLandX(0), iLandY(0), iLastLandX(0), iLastLandY(0), landingState ( LANDING_STATE_UNKNOWN ), receivedOK(true) {} | ^~~~~~~~~~~~~~~ In file included from dialog.h:22, from dialog.cpp:22: menus.h: In constructor 'cGameDataContainer::cGameDataContainer()': menus.h:154:8: warning: 'cGameDataContainer::map' will be initialized after [-Wreorder] 154 | cMap *map; | ^~~ menus.h:144:13: warning: 'eGameTypes cGameDataContainer::type' [-Wreorder] 144 | eGameTypes type; | ^~~~ menus.h:164:2: warning: when initialized here [-Wreorder] 164 | cGameDataContainer() : settings(NULL), map(NULL), type(GAME_TYPE_SINGLE), savegameNum(-1) {} | ^~~~~~~~~~~~~~~~~~ dialog.cpp: In destructor 'cDialogYesNow::~cDialogYesNow()': dialog.cpp:54:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 54 | delete textLabel; | ^~~~~~~~~~~~~~~~ dialog.cpp:55:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 55 | delete yesButton; | ^~~~~~~~~~~~~~~~ dialog.cpp:56:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 56 | delete noButton; | ^~~~~~~~~~~~~~~ dialog.cpp: In member function 'virtual void cDialogYesNow::handleKeyInput(SDL_KeyboardEvent&, std::string)': dialog.cpp:63:9: warning: enumeration value 'SDLK_UNKNOWN' not handled in switch [-Wswitch] 63 | switch ( key.keysym.sym ) | ^ dialog.cpp:63:9: warning: enumeration value 'SDLK_FIRST' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_BACKSPACE' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_TAB' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_CLEAR' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_PAUSE' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_SPACE' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_EXCLAIM' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_QUOTEDBL' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_HASH' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_DOLLAR' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_AMPERSAND' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_QUOTE' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_LEFTPAREN' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_RIGHTPAREN' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_ASTERISK' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_PLUS' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_COMMA' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_MINUS' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_PERIOD' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_SLASH' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_0' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_1' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_2' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_3' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_4' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_5' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_6' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_7' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_8' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_9' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_COLON' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_SEMICOLON' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_LESS' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_EQUALS' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_GREATER' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_QUESTION' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_AT' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_LEFTBRACKET' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_BACKSLASH' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_RIGHTBRACKET' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_CARET' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_UNDERSCORE' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_BACKQUOTE' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_a' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_b' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_c' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_d' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_e' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_f' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_g' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_h' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_i' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_j' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_k' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_l' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_m' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_n' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_o' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_p' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_q' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_r' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_s' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_t' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_u' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_v' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_w' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_x' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_y' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_z' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_DELETE' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_0' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_1' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_2' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_3' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_4' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_5' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_6' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_7' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_8' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_9' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_10' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_11' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_12' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_13' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_14' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_15' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_16' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_17' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_18' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_19' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_20' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_21' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_22' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_23' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_24' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_25' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_26' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_27' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_28' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_29' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_30' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_31' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_32' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_33' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_34' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_35' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_36' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_37' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_38' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_39' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_40' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_41' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_42' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_43' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_44' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_45' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_46' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_47' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_48' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_49' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_50' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_51' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_52' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_53' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_54' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_55' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_56' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_57' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_58' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_59' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_60' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_61' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_62' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_63' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_64' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_65' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_66' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_67' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_68' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_69' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_70' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_71' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_72' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_73' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_74' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_75' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_76' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_77' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_78' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_79' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_80' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_81' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_82' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_83' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_84' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_85' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_86' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_87' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_88' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_89' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_90' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_91' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_92' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_93' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_94' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_WORLD_95' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_KP0' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_KP1' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_KP2' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_KP3' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_KP4' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_KP5' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_KP6' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_KP7' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_KP8' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_KP9' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_KP_PERIOD' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_KP_DIVIDE' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_KP_MULTIPLY' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_KP_MINUS' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_KP_PLUS' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_KP_ENTER' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_KP_EQUALS' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_UP' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_DOWN' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_RIGHT' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_LEFT' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_INSERT' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_HOME' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_END' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_PAGEUP' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_PAGEDOWN' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_F1' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_F2' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_F3' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_F4' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_F5' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_F6' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_F7' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_F8' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_F9' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_F10' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_F11' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_F12' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_F13' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_F14' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_F15' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_NUMLOCK' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_CAPSLOCK' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_SCROLLOCK' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_RSHIFT' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_LSHIFT' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_RCTRL' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_LCTRL' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_RALT' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_LALT' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_RMETA' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_LMETA' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_LSUPER' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_RSUPER' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_MODE' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_COMPOSE' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_HELP' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_PRINT' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_SYSREQ' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_BREAK' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_MENU' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_POWER' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_EURO' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_UNDO' not handled in switch [-Wswitch] dialog.cpp:63:9: warning: enumeration value 'SDLK_LAST' not handled in switch [-Wswitch] dialog.cpp: In destructor 'cDialogOK::~cDialogOK()': dialog.cpp:102:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 102 | delete textLabel; | ^~~~~~~~~~~~~~~~ dialog.cpp:103:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 103 | delete okButton; | ^~~~~~~~~~~~~~~ dialog.cpp: In destructor 'cDialogLicence::~cDialogLicence()': dialog.cpp:157:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 157 | delete maxrLabel; | ^~~~~~~~~~~~~~~~ dialog.cpp:158:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 158 | delete headerLabel; | ^~~~~~~~~~~~~~~~~~ dialog.cpp:159:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 159 | delete textLabel; | ^~~~~~~~~~~~~~~~ dialog.cpp:161:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 161 | delete okButton; | ^~~~~~~~~~~~~~~ dialog.cpp:162:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 162 | delete upButton; | ^~~~~~~~~~~~~~~ dialog.cpp:163:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 163 | delete downButton; | ^~~~~~~~~~~~~~~~~ dialog.cpp: In destructor 'cDialogPreferences::~cDialogPreferences()': dialog.cpp:404:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 404 | delete titleLabel; | ^~~~~~~~~~~~~~~~~ dialog.cpp:406:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 406 | delete volumeLabel; | ^~~~~~~~~~~~~~~~~~ dialog.cpp:407:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 407 | delete musicLabel; | ^~~~~~~~~~~~~~~~~ dialog.cpp:408:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 408 | delete effectsLabel; | ^~~~~~~~~~~~~~~~~~~ dialog.cpp:409:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 409 | delete voicesLabel; | ^~~~~~~~~~~~~~~~~~ dialog.cpp:410:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 410 | delete disableMusicChBox; | ^~~~~~~~~~~~~~~~~~~~~~~~ dialog.cpp:411:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 411 | delete disableEffectsChBox; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ dialog.cpp:412:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 412 | delete disableVoicesChBox; | ^~~~~~~~~~~~~~~~~~~~~~~~~ dialog.cpp:413:2: warning: deleting object of polymorphic class type 'cMenuSlider' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 413 | delete musicSlider; | ^~~~~~~~~~~~~~~~~~ dialog.cpp:414:2: warning: deleting object of polymorphic class type 'cMenuSlider' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 414 | delete effectsSlider; | ^~~~~~~~~~~~~~~~~~~~ dialog.cpp:415:2: warning: deleting object of polymorphic class type 'cMenuSlider' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 415 | delete voicesSlider; | ^~~~~~~~~~~~~~~~~~~ dialog.cpp:417:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 417 | delete nameLabel; | ^~~~~~~~~~~~~~~~ dialog.cpp:418:2: warning: deleting object of polymorphic class type 'cMenuLineEdit' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 418 | delete nameEdit; | ^~~~~~~~~~~~~~~ dialog.cpp:420:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 420 | delete animationChBox; | ^~~~~~~~~~~~~~~~~~~~~ dialog.cpp:421:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 421 | delete shadowsChBox; | ^~~~~~~~~~~~~~~~~~~ dialog.cpp:422:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 422 | delete alphaChBox; | ^~~~~~~~~~~~~~~~~ dialog.cpp:423:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 423 | delete demageBuilChBox; | ^~~~~~~~~~~~~~~~~~~~~~ dialog.cpp:424:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 424 | delete demageVehChBox; | ^~~~~~~~~~~~~~~~~~~~~ dialog.cpp:425:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 425 | delete tracksChBox; | ^~~~~~~~~~~~~~~~~~ dialog.cpp:427:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 427 | delete scrollSpeedLabel; | ^~~~~~~~~~~~~~~~~~~~~~~ dialog.cpp:428:2: warning: deleting object of polymorphic class type 'cMenuSlider' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 428 | delete scrollSpeedSlider; | ^~~~~~~~~~~~~~~~~~~~~~~~ dialog.cpp:430:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 430 | delete autosaveChBox; | ^~~~~~~~~~~~~~~~~~~~ dialog.cpp:431:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 431 | delete introChBox; | ^~~~~~~~~~~~~~~~~ dialog.cpp:432:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 432 | delete windowChBox; | ^~~~~~~~~~~~~~~~~~ dialog.cpp:434:2: warning: deleting object of polymorphic class type 'cMenuRadioGroup' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 434 | delete resoulutionGroup; | ^~~~~~~~~~~~~~~~~~~~~~~ dialog.cpp:436:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 436 | delete okButton; | ^~~~~~~~~~~~~~~ dialog.cpp:437:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 437 | delete cancelButton; | ^~~~~~~~~~~~~~~~~~~ In file included from dialog.cpp:22: dialog.h: In constructor 'cDialogTransfer::cDialogTransfer(cBuilding*, cVehicle*, cBuilding*, cVehicle*)': dialog.h:154:12: warning: 'cDialogTransfer::srcVehicle' will be initialized after [-Wreorder] 154 | cVehicle *srcVehicle, *destVehicle; | ^~~~~~~~~~ dialog.h:153:27: warning: 'cBuilding* cDialogTransfer::destBuilding' [-Wreorder] 153 | cBuilding *srcBuilding, *destBuilding; | ^~~~~~~~~~~~ dialog.cpp:571:1: warning: when initialized here [-Wreorder] 571 | cDialogTransfer::cDialogTransfer( cBuilding *srcBuilding_, cVehicle *srcVehicle_, cBuilding *destBuilding_, cVehicle *destVehicle_ ) : | ^~~~~~~~~~~~~~~ dialog.cpp: In destructor 'cDialogTransfer::~cDialogTransfer()': dialog.cpp:634:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 634 | delete doneButton; | ^~~~~~~~~~~~~~~~~ dialog.cpp:635:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 635 | delete cancelButton; | ^~~~~~~~~~~~~~~~~~~ dialog.cpp:637:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 637 | delete incButton; | ^~~~~~~~~~~~~~~~ dialog.cpp:638:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 638 | delete decButton; | ^~~~~~~~~~~~~~~~ dialog.cpp:640:2: warning: deleting object of polymorphic class type 'cMenuMaterialBar' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 640 | delete resBar; | ^~~~~~~~~~~~~ dialog.cpp:642:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 642 | delete transferLabel; | ^~~~~~~~~~~~~~~~~~~~ dialog.cpp:646:3: warning: deleting object of polymorphic class type 'cMenuImage' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 646 | delete unitImages[i]; | ^~~~~~~~~~~~~~~~~~~~ dialog.cpp:648:3: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 648 | delete unitNameLabels[i]; | ^~~~~~~~~~~~~~~~~~~~~~~~ dialog.cpp:649:3: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 649 | delete unitCargoLabels[i]; | ^~~~~~~~~~~~~~~~~~~~~~~~~ dialog.cpp: In member function 'void cDialogTransfer::getTransferType()': dialog.cpp:687:9: warning: enumeration value 'STORE_RES_NONE' not handled in switch [-Wswitch] 687 | switch ( tmpTransferType ) | ^ dialog.cpp: In member function 'void cDialogTransfer::getNamesNCargoNImages()': dialog.cpp:708:49: warning: narrowing conversion of '((cDialogTransfer*)this)->cDialogTransfer::srcBuilding->cBuilding::typ->sBuilding::img->SDL_Surface::w' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 708 | SDL_Rect src = { 0, 0, srcBuilding->typ->img->w, srcBuilding->typ->img->h }; | ~~~~~~~~~~~~~~~~~~~~~~~^ dialog.cpp:708:75: warning: narrowing conversion of '((cDialogTransfer*)this)->cDialogTransfer::srcBuilding->cBuilding::typ->sBuilding::img->SDL_Surface::h' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 708 | SDL_Rect src = { 0, 0, srcBuilding->typ->img->w, srcBuilding->typ->img->h }; | ~~~~~~~~~~~~~~~~~~~~~~~^ dialog.cpp:720:11: warning: enumeration value 'STORE_RES_NONE' not handled in switch [-Wswitch] 720 | switch ( destVehicle->data.storeResType ) | ^ dialog.cpp:758:50: warning: narrowing conversion of '((cDialogTransfer*)this)->cDialogTransfer::destBuilding->cBuilding::typ->sBuilding::img->SDL_Surface::w' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 758 | SDL_Rect src = { 0, 0, destBuilding->typ->img->w, destBuilding->typ->img->h }; | ~~~~~~~~~~~~~~~~~~~~~~~~^ dialog.cpp:758:77: warning: narrowing conversion of '((cDialogTransfer*)this)->cDialogTransfer::destBuilding->cBuilding::typ->sBuilding::img->SDL_Surface::h' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 758 | SDL_Rect src = { 0, 0, destBuilding->typ->img->w, destBuilding->typ->img->h }; | ~~~~~~~~~~~~~~~~~~~~~~~~^ dialog.cpp:770:11: warning: enumeration value 'STORE_RES_NONE' not handled in switch [-Wswitch] 770 | switch ( srcVehicle->data.storeResType ) | ^ dialog.cpp: In member function 'virtual void cDialogTransfer::handleKeyInput(SDL_KeyboardEvent&, std::string)': dialog.cpp:827:9: warning: enumeration value 'SDLK_UNKNOWN' not handled in switch [-Wswitch] 827 | switch ( key.keysym.sym ) | ^ dialog.cpp:827:9: warning: enumeration value 'SDLK_FIRST' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_BACKSPACE' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_TAB' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_CLEAR' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_PAUSE' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_SPACE' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_EXCLAIM' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_QUOTEDBL' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_HASH' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_DOLLAR' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_AMPERSAND' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_QUOTE' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_LEFTPAREN' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_RIGHTPAREN' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_ASTERISK' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_PLUS' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_COMMA' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_MINUS' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_PERIOD' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_SLASH' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_0' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_1' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_2' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_3' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_4' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_5' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_6' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_7' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_8' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_9' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_COLON' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_SEMICOLON' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_LESS' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_EQUALS' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_GREATER' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_QUESTION' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_AT' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_LEFTBRACKET' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_BACKSLASH' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_RIGHTBRACKET' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_CARET' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_UNDERSCORE' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_BACKQUOTE' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_a' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_b' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_c' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_d' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_e' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_f' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_g' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_h' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_i' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_j' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_k' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_l' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_m' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_n' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_o' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_p' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_q' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_r' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_s' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_t' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_u' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_v' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_w' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_x' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_y' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_z' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_DELETE' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_0' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_1' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_2' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_3' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_4' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_5' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_6' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_7' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_8' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_9' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_10' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_11' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_12' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_13' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_14' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_15' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_16' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_17' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_18' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_19' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_20' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_21' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_22' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_23' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_24' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_25' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_26' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_27' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_28' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_29' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_30' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_31' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_32' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_33' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_34' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_35' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_36' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_37' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_38' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_39' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_40' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_41' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_42' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_43' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_44' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_45' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_46' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_47' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_48' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_49' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_50' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_51' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_52' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_53' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_54' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_55' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_56' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_57' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_58' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_59' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_60' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_61' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_62' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_63' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_64' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_65' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_66' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_67' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_68' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_69' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_70' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_71' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_72' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_73' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_74' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_75' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_76' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_77' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_78' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_79' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_80' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_81' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_82' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_83' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_84' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_85' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_86' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_87' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_88' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_89' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_90' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_91' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_92' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_93' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_94' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_WORLD_95' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_KP0' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_KP1' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_KP2' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_KP3' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_KP4' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_KP5' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_KP6' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_KP7' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_KP8' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_KP9' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_KP_PERIOD' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_KP_DIVIDE' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_KP_MULTIPLY' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_KP_MINUS' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_KP_PLUS' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_KP_ENTER' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_KP_EQUALS' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_UP' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_DOWN' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_RIGHT' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_LEFT' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_INSERT' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_HOME' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_END' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_PAGEUP' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_PAGEDOWN' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_F1' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_F2' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_F3' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_F4' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_F5' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_F6' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_F7' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_F8' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_F9' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_F10' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_F11' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_F12' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_F13' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_F14' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_F15' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_NUMLOCK' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_CAPSLOCK' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_SCROLLOCK' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_RSHIFT' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_LSHIFT' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_RCTRL' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_LCTRL' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_RALT' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_LALT' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_RMETA' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_LMETA' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_LSUPER' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_RSUPER' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_MODE' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_COMPOSE' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_HELP' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_PRINT' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_SYSREQ' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_BREAK' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_MENU' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_POWER' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_EURO' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_UNDO' not handled in switch [-Wswitch] dialog.cpp:827:9: warning: enumeration value 'SDLK_LAST' not handled in switch [-Wswitch] dialog.cpp: In function 'void drawContextItem(std::string, bool, int, int, SDL_Surface*)': dialog.cpp:899:17: warning: narrowing conversion of 'x' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 899 | SDL_Rect dest={x,y,42,21}; | ^ dialog.cpp:899:19: warning: narrowing conversion of 'y' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 899 | SDL_Rect dest={x,y,42,21}; | ^ dialog.cpp: In member function 'virtual void cDialogResearch::handleKeyInput(SDL_KeyboardEvent&, std::string)': dialog.cpp:1041:9: warning: enumeration value 'SDLK_UNKNOWN' not handled in switch [-Wswitch] 1041 | switch ( key.keysym.sym ) | ^ dialog.cpp:1041:9: warning: enumeration value 'SDLK_FIRST' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_BACKSPACE' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_TAB' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_CLEAR' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_PAUSE' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_SPACE' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_EXCLAIM' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_QUOTEDBL' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_HASH' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_DOLLAR' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_AMPERSAND' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_QUOTE' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_LEFTPAREN' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_RIGHTPAREN' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_ASTERISK' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_PLUS' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_COMMA' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_MINUS' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_PERIOD' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_SLASH' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_0' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_1' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_2' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_3' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_4' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_5' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_6' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_7' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_8' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_9' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_COLON' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_SEMICOLON' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_LESS' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_EQUALS' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_GREATER' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_QUESTION' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_AT' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_LEFTBRACKET' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_BACKSLASH' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_RIGHTBRACKET' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_CARET' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_UNDERSCORE' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_BACKQUOTE' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_a' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_b' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_c' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_d' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_e' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_f' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_g' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_h' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_i' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_j' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_k' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_l' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_m' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_n' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_o' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_p' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_q' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_r' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_s' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_t' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_u' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_v' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_w' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_x' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_y' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_z' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_DELETE' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_0' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_1' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_2' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_3' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_4' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_5' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_6' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_7' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_8' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_9' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_10' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_11' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_12' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_13' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_14' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_15' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_16' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_17' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_18' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_19' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_20' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_21' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_22' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_23' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_24' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_25' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_26' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_27' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_28' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_29' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_30' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_31' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_32' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_33' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_34' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_35' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_36' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_37' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_38' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_39' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_40' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_41' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_42' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_43' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_44' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_45' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_46' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_47' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_48' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_49' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_50' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_51' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_52' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_53' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_54' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_55' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_56' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_57' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_58' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_59' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_60' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_61' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_62' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_63' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_64' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_65' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_66' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_67' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_68' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_69' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_70' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_71' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_72' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_73' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_74' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_75' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_76' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_77' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_78' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_79' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_80' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_81' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_82' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_83' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_84' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_85' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_86' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_87' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_88' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_89' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_90' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_91' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_92' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_93' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_94' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_WORLD_95' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_KP0' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_KP1' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_KP2' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_KP3' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_KP4' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_KP5' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_KP6' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_KP7' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_KP8' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_KP9' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_KP_PERIOD' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_KP_DIVIDE' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_KP_MULTIPLY' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_KP_MINUS' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_KP_PLUS' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_KP_ENTER' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_KP_EQUALS' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_UP' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_DOWN' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_RIGHT' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_LEFT' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_INSERT' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_HOME' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_END' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_PAGEUP' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_PAGEDOWN' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_F1' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_F2' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_F3' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_F4' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_F5' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_F6' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_F7' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_F8' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_F9' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_F10' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_F11' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_F12' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_F13' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_F14' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_F15' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_NUMLOCK' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_CAPSLOCK' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_SCROLLOCK' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_RSHIFT' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_LSHIFT' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_RCTRL' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_LCTRL' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_RALT' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_LALT' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_RMETA' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_LMETA' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_LSUPER' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_RSUPER' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_MODE' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_COMPOSE' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_HELP' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_PRINT' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_SYSREQ' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_BREAK' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_MENU' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_POWER' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_EURO' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_UNDO' not handled in switch [-Wswitch] dialog.cpp:1041:9: warning: enumeration value 'SDLK_LAST' not handled in switch [-Wswitch] dialog.cpp: In member function 'void cDialogTransfer::getNamesNCargoNImages()': dialog.cpp:805:26: warning: 'unitImage1' may be used uninitialized in this function [-Wmaybe-uninitialized] 805 | unitImages[0]->setImage ( unitImage1 ); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o events.o events.cpp In file included from menuevents.h:23, from events.cpp:22: menus.h: In constructor 'sClientLandData::sClientLandData()': menus.h:55:18: warning: 'sClientLandData::iLastLandY' will be initialized after [-Wreorder] 55 | int iLastLandX, iLastLandY; | ^~~~~~~~~~ menus.h:54:16: warning: 'eLandingState sClientLandData::landingState' [-Wreorder] 54 | eLandingState landingState; | ^~~~~~~~~~~~ menus.h:58:2: warning: when initialized here [-Wreorder] 58 | sClientLandData() : iLandX(0), iLandY(0), iLastLandX(0), iLastLandY(0), landingState ( LANDING_STATE_UNKNOWN ), receivedOK(true) {} | ^~~~~~~~~~~~~~~ In file included from menuevents.h:23, from events.cpp:22: menus.h: In constructor 'cGameDataContainer::cGameDataContainer()': menus.h:154:8: warning: 'cGameDataContainer::map' will be initialized after [-Wreorder] 154 | cMap *map; | ^~~ menus.h:144:13: warning: 'eGameTypes cGameDataContainer::type' [-Wreorder] 144 | eGameTypes type; | ^~~~ menus.h:164:2: warning: when initialized here [-Wreorder] 164 | cGameDataContainer() : settings(NULL), map(NULL), type(GAME_TYPE_SINGLE), savegameNum(-1) {} | ^~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o files.o files.cpp files.cpp: In function 'cList >* getFilesOfDirectory(std::string)': files.cpp:115:11: warning: argument 1 null where non-null expected [-Wnonnull] 115 | closedir( hDir ); | ~~~~~~~~^~~~~~~~ In file included from files.cpp:29: /usr/include/dirent.h:149:12: note: in a call to function 'int closedir(DIR*)' declared here 149 | extern int closedir (DIR *__dirp) __nonnull ((1)); | ^~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o input.o input.cpp In file included from input.cpp:21: menus.h: In constructor 'sClientLandData::sClientLandData()': menus.h:55:18: warning: 'sClientLandData::iLastLandY' will be initialized after [-Wreorder] 55 | int iLastLandX, iLastLandY; | ^~~~~~~~~~ menus.h:54:16: warning: 'eLandingState sClientLandData::landingState' [-Wreorder] 54 | eLandingState landingState; | ^~~~~~~~~~~~ menus.h:58:2: warning: when initialized here [-Wreorder] 58 | sClientLandData() : iLandX(0), iLandY(0), iLastLandX(0), iLastLandY(0), landingState ( LANDING_STATE_UNKNOWN ), receivedOK(true) {} | ^~~~~~~~~~~~~~~ In file included from input.cpp:21: menus.h: In constructor 'cGameDataContainer::cGameDataContainer()': menus.h:154:8: warning: 'cGameDataContainer::map' will be initialized after [-Wreorder] 154 | cMap *map; | ^~~ menus.h:144:13: warning: 'eGameTypes cGameDataContainer::type' [-Wreorder] 144 | eGameTypes type; | ^~~~ menus.h:164:2: warning: when initialized here [-Wreorder] 164 | cGameDataContainer() : settings(NULL), map(NULL), type(GAME_TYPE_SINGLE), savegameNum(-1) {} | ^~~~~~~~~~~~~~~~~~ input.cpp: In member function 'void cInput::inputkey(SDL_KeyboardEvent&)': input.cpp:74:20: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 74 | if ( stringpos < (int)inputStr.length() ) | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ input.cpp:99:20: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 99 | if ( stringpos < (int)inputStr.length() ) | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ input.cpp: In member function 'std::string cInput::getInputStr(eCursorBehavior)': input.cpp:300:9: warning: enumeration value 'CURSOR_DISABLED' not handled in switch [-Wswitch] 300 | switch ( showcursor ) | ^ input.cpp:300:9: warning: enumeration value 'CURSOR_STANDARD' not handled in switch [-Wswitch] make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o keys.o keys.cpp make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o log.o log.cpp make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o hud.o hud.cpp In file included from dialog.h:22, from hud.cpp:24: menus.h: In constructor 'sClientLandData::sClientLandData()': menus.h:55:18: warning: 'sClientLandData::iLastLandY' will be initialized after [-Wreorder] 55 | int iLastLandX, iLastLandY; | ^~~~~~~~~~ menus.h:54:16: warning: 'eLandingState sClientLandData::landingState' [-Wreorder] 54 | eLandingState landingState; | ^~~~~~~~~~~~ menus.h:58:2: warning: when initialized here [-Wreorder] 58 | sClientLandData() : iLandX(0), iLandY(0), iLastLandX(0), iLastLandY(0), landingState ( LANDING_STATE_UNKNOWN ), receivedOK(true) {} | ^~~~~~~~~~~~~~~ In file included from dialog.h:22, from hud.cpp:24: menus.h: In constructor 'cGameDataContainer::cGameDataContainer()': menus.h:154:8: warning: 'cGameDataContainer::map' will be initialized after [-Wreorder] 154 | cMap *map; | ^~~ menus.h:144:13: warning: 'eGameTypes cGameDataContainer::type' [-Wreorder] 144 | eGameTypes type; | ^~~~ menus.h:164:2: warning: when initialized here [-Wreorder] 164 | cGameDataContainer() : settings(NULL), map(NULL), type(GAME_TYPE_SINGLE), savegameNum(-1) {} | ^~~~~~~~~~~~~~~~~~ hud.cpp: In member function 'void cHud::ExtraPlayers(std::string, int, int, bool, bool)': hud.cpp:1482:63: warning: narrowing conversion of 'GraphicsData.cGraphicsData::gfx_hud_extra_players->SDL_Surface::w' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 1482 | SDL_Rect rSrc = { 0, 0, GraphicsData.gfx_hud_extra_players->w, GraphicsData.gfx_hud_extra_players->h}; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ hud.cpp:1482:102: warning: narrowing conversion of 'GraphicsData.cGraphicsData::gfx_hud_extra_players->SDL_Surface::h' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 1482 | SDL_Rect rSrc = { 0, 0, GraphicsData.gfx_hud_extra_players->w, GraphicsData.gfx_hud_extra_players->h}; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ hud.cpp:1499:38: warning: narrowing conversion of '((((int)rDest.SDL_Rect::x) + 23) - ((int)rSrc.SDL_Rect::x))' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 1499 | SDL_Rect rDotDest = { rDest.x + 23 - rSrc.x, rDest.y + 6, rDot.w, rDot.h }; | ~~~~~~~~~~~~~^~~~~~~~ hud.cpp:1499:56: warning: narrowing conversion of '(((int)rDest.SDL_Rect::y) + 6)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 1499 | SDL_Rect rDotDest = { rDest.x + 23 - rSrc.x, rDest.y + 6, rDot.w, rDot.h }; | ~~~~~~~~^~~ hud.cpp:1502:40: warning: narrowing conversion of '((((int)rDest.SDL_Rect::x) + 40) - ((int)rSrc.SDL_Rect::x))' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 1502 | SDL_Rect rColorDest = { rDest.x + 40 - rSrc.x, rDest.y + 6, rColorSrc.w, rColorSrc.h }; | ~~~~~~~~~~~~~^~~~~~~~ hud.cpp:1502:58: warning: narrowing conversion of '(((int)rDest.SDL_Rect::y) + 6)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 1502 | SDL_Rect rColorDest = { rDest.x + 40 - rSrc.x, rDest.y + 6, rColorSrc.w, rColorSrc.h }; | ~~~~~~~~^~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o map.o map.cpp make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o menuevents.o menuevents.cpp In file included from menuevents.h:23, from menuevents.cpp:19: menus.h: In constructor 'sClientLandData::sClientLandData()': menus.h:55:18: warning: 'sClientLandData::iLastLandY' will be initialized after [-Wreorder] 55 | int iLastLandX, iLastLandY; | ^~~~~~~~~~ menus.h:54:16: warning: 'eLandingState sClientLandData::landingState' [-Wreorder] 54 | eLandingState landingState; | ^~~~~~~~~~~~ menus.h:58:2: warning: when initialized here [-Wreorder] 58 | sClientLandData() : iLandX(0), iLandY(0), iLastLandX(0), iLastLandY(0), landingState ( LANDING_STATE_UNKNOWN ), receivedOK(true) {} | ^~~~~~~~~~~~~~~ In file included from menuevents.h:23, from menuevents.cpp:19: menus.h: In constructor 'cGameDataContainer::cGameDataContainer()': menus.h:154:8: warning: 'cGameDataContainer::map' will be initialized after [-Wreorder] 154 | cMap *map; | ^~~ menus.h:144:13: warning: 'eGameTypes cGameDataContainer::type' [-Wreorder] 144 | eGameTypes type; | ^~~~ menus.h:164:2: warning: when initialized here [-Wreorder] 164 | cGameDataContainer() : settings(NULL), map(NULL), type(GAME_TYPE_SINGLE), savegameNum(-1) {} | ^~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o language.o language.cpp make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o mouse.o mouse.cpp make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o main.o main.cpp In file included from main.cpp:55: menus.h: In constructor 'sClientLandData::sClientLandData()': menus.h:55:18: warning: 'sClientLandData::iLastLandY' will be initialized after [-Wreorder] 55 | int iLastLandX, iLastLandY; | ^~~~~~~~~~ menus.h:54:16: warning: 'eLandingState sClientLandData::landingState' [-Wreorder] 54 | eLandingState landingState; | ^~~~~~~~~~~~ menus.h:58:2: warning: when initialized here [-Wreorder] 58 | sClientLandData() : iLandX(0), iLandY(0), iLastLandX(0), iLastLandY(0), landingState ( LANDING_STATE_UNKNOWN ), receivedOK(true) {} | ^~~~~~~~~~~~~~~ In file included from main.cpp:55: menus.h: In constructor 'cGameDataContainer::cGameDataContainer()': menus.h:154:8: warning: 'cGameDataContainer::map' will be initialized after [-Wreorder] 154 | cMap *map; | ^~~ menus.h:144:13: warning: 'eGameTypes cGameDataContainer::type' [-Wreorder] 144 | eGameTypes type; | ^~~~ menus.h:164:2: warning: when initialized here [-Wreorder] 164 | cGameDataContainer() : settings(NULL), map(NULL), type(GAME_TYPE_SINGLE), savegameNum(-1) {} | ^~~~~~~~~~~~~~~~~~ main.cpp: In function 'void drawCircle(int, int, int, int, SDL_Surface*)': main.cpp:484:16: warning: variable 'ptr' set but not used [-Wunused-but-set-variable] 484 | unsigned int *ptr; | ^~~ main.cpp: In member function 'std::string sID::getText()': main.cpp:584:17: warning: '0' flag ignored with precision and '%d' gnu_printf format [-Wformat=] 584 | sprintf ( tmp, "%0.2d %0.2d", iFirstPart, iSecondPart ); | ^~~~~~~~~~~~~ main.cpp:584:17: warning: '0' flag ignored with precision and '%d' gnu_printf format [-Wformat=] make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o buildings.o buildings.cpp In file included from buildings.cpp:31: menus.h: In constructor 'sClientLandData::sClientLandData()': menus.h:55:18: warning: 'sClientLandData::iLastLandY' will be initialized after [-Wreorder] 55 | int iLastLandX, iLastLandY; | ^~~~~~~~~~ menus.h:54:16: warning: 'eLandingState sClientLandData::landingState' [-Wreorder] 54 | eLandingState landingState; | ^~~~~~~~~~~~ menus.h:58:2: warning: when initialized here [-Wreorder] 58 | sClientLandData() : iLandX(0), iLandY(0), iLastLandX(0), iLastLandY(0), landingState ( LANDING_STATE_UNKNOWN ), receivedOK(true) {} | ^~~~~~~~~~~~~~~ In file included from buildings.cpp:31: menus.h: In constructor 'cGameDataContainer::cGameDataContainer()': menus.h:154:8: warning: 'cGameDataContainer::map' will be initialized after [-Wreorder] 154 | cMap *map; | ^~~ menus.h:144:13: warning: 'eGameTypes cGameDataContainer::type' [-Wreorder] 144 | eGameTypes type; | ^~~~ menus.h:164:2: warning: when initialized here [-Wreorder] 164 | cGameDataContainer() : settings(NULL), map(NULL), type(GAME_TYPE_SINGLE), savegameNum(-1) {} | ^~~~~~~~~~~~~~~~~~ buildings.cpp: In member function 'void cBuilding::DrawExitPoints(sVehicle*)': buildings.cpp:1469:16: warning: variable 'size' set but not used [-Wunused-but-set-variable] 1469 | int spx, spy, size; | ^~~~ buildings.cpp: In member function 'bool cBuilding::canLoad(cVehicle*, bool)': buildings.cpp:1549:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 1549 | if ( i == data.storeUnitsTypes.size() ) return false; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ buildings.cpp: In member function 'void cBuilding::ShowDetails(bool, int, int, SDL_Surface*, bool)': buildings.cpp:2689:31: warning: narrowing conversion of '(((int)dest.SDL_Rect::x) + 2)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2689 | SDL_Rect lineRect = { dest.x+2, dest.y+14, 153, 1 }; | ~~~~~~^~ buildings.cpp:2689:41: warning: narrowing conversion of '(((int)dest.SDL_Rect::y) + 14)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2689 | SDL_Rect lineRect = { dest.x+2, dest.y+14, 153, 1 }; | ~~~~~~^~~ buildings.cpp:2712:11: warning: enumeration value 'STORE_RES_NONE' not handled in switch [-Wswitch] 2712 | switch ( data.storeResType ) | ^ buildings.cpp:2735:11: warning: enumeration value 'STORE_UNIT_IMG_NONE' not handled in switch [-Wswitch] 2735 | switch ( data.storeUnitsImageType ) | ^ buildings.cpp: In member function 'void cBuilding::DrawSymbolBig(eSymbolsBig, int, int, int, int, int, SDL_Surface*)': buildings.cpp:1714:14: warning: 'src.SDL_Rect::w' may be used uninitialized in this function [-Wmaybe-uninitialized] 1714 | maxx -= src.w; | ~~~~^ buildings.cpp: In member function 'void cBuilding::DrawAttackCursor(int)': buildings.cpp:1964:6: warning: 'wp' may be used uninitialized in this function [-Wmaybe-uninitialized] 1964 | r.w = wp; | ~~~~^~~~ buildings.cpp: In member function 'void cBuilding::RotateTo(int)': buildings.cpp:2010:2: warning: 'dest' may be used uninitialized in this function [-Wmaybe-uninitialized] 2010 | if ( dest < 4 ) | ^~ buildings.cpp: In member function 'void cBuilding::DrawSymbol(eSymbols, int, int, int, int, int, SDL_Surface*)': buildings.cpp:2960:14: warning: 'full.SDL_Rect::w' may be used uninitialized in this function [-Wmaybe-uninitialized] 2960 | offx = full.w; | ~~~~~^ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o mapdownload.o mapdownload.cpp In file included from mapdownload.cpp:28: menus.h: In constructor 'sClientLandData::sClientLandData()': menus.h:55:18: warning: 'sClientLandData::iLastLandY' will be initialized after [-Wreorder] 55 | int iLastLandX, iLastLandY; | ^~~~~~~~~~ menus.h:54:16: warning: 'eLandingState sClientLandData::landingState' [-Wreorder] 54 | eLandingState landingState; | ^~~~~~~~~~~~ menus.h:58:2: warning: when initialized here [-Wreorder] 58 | sClientLandData() : iLandX(0), iLandY(0), iLastLandX(0), iLastLandY(0), landingState ( LANDING_STATE_UNKNOWN ), receivedOK(true) {} | ^~~~~~~~~~~~~~~ In file included from mapdownload.cpp:28: menus.h: In constructor 'cGameDataContainer::cGameDataContainer()': menus.h:154:8: warning: 'cGameDataContainer::map' will be initialized after [-Wreorder] 154 | cMap *map; | ^~~ menus.h:144:13: warning: 'eGameTypes cGameDataContainer::type' [-Wreorder] 144 | eGameTypes type; | ^~~~ menus.h:164:2: warning: when initialized here [-Wreorder] 164 | cGameDataContainer() : settings(NULL), map(NULL), type(GAME_TYPE_SINGLE), savegameNum(-1) {} | ^~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o mveplayer.o mveplayer.cpp mveplayer.cpp: In function 'int MVEPlayer(const char*, int, int, int, int)': mveplayer.cpp:135:46: warning: variable 'width' set but not used [-Wunused-but-set-variable] 135 | Uint16 width_blocks = 0, height_blocks = 0, width = 0, height = 0; | ^~~~~ mveplayer.cpp:135:57: warning: variable 'height' set but not used [-Wunused-but-set-variable] 135 | Uint16 width_blocks = 0, height_blocks = 0, width = 0, height = 0; | ^~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o network.o network.cpp make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o netmessage.o netmessage.cpp In file included from menuevents.h:23, from netmessage.cpp:26: menus.h: In constructor 'sClientLandData::sClientLandData()': menus.h:55:18: warning: 'sClientLandData::iLastLandY' will be initialized after [-Wreorder] 55 | int iLastLandX, iLastLandY; | ^~~~~~~~~~ menus.h:54:16: warning: 'eLandingState sClientLandData::landingState' [-Wreorder] 54 | eLandingState landingState; | ^~~~~~~~~~~~ menus.h:58:2: warning: when initialized here [-Wreorder] 58 | sClientLandData() : iLandX(0), iLandY(0), iLastLandX(0), iLastLandY(0), landingState ( LANDING_STATE_UNKNOWN ), receivedOK(true) {} | ^~~~~~~~~~~~~~~ In file included from menuevents.h:23, from netmessage.cpp:26: menus.h: In constructor 'cGameDataContainer::cGameDataContainer()': menus.h:154:8: warning: 'cGameDataContainer::map' will be initialized after [-Wreorder] 154 | cMap *map; | ^~~ menus.h:144:13: warning: 'eGameTypes cGameDataContainer::type' [-Wreorder] 144 | eGameTypes type; | ^~~~ menus.h:164:2: warning: when initialized here [-Wreorder] 164 | cGameDataContainer() : settings(NULL), map(NULL), type(GAME_TYPE_SINGLE), savegameNum(-1) {} | ^~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o pcx.o pcx.cpp make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o movejobs.o movejobs.cpp In file included from movejobs.cpp:20: movejobs.h: In constructor 'cPathDestHandler::cPathDestHandler(ePathDestinationTypes, int, int, cVehicle*, cBuilding*, cVehicle*)': movejobs.h:72:13: warning: 'cPathDestHandler::destY' will be initialized after [-Wreorder] 72 | int destX, destY; | ^~~~~ movejobs.h:68:12: warning: 'cVehicle* cPathDestHandler::srcVehicle' [-Wreorder] 68 | cVehicle *srcVehicle; | ^~~~~~~~~~ movejobs.cpp:30:1: warning: when initialized here [-Wreorder] 30 | cPathDestHandler::cPathDestHandler ( ePathDestinationTypes type_, int destX_, int destY_, cVehicle *srcVehicle_, cBuilding *destBuilding_, cVehicle *destVehicle_ ) : | ^~~~~~~~~~~~~~~~ In file included from movejobs.cpp:20: movejobs.h: In constructor 'cEndMoveAction::cEndMoveAction(eEndMoveActionType, cBuilding*, cVehicle*, cBuilding*, cVehicle*, int, int)': movejobs.h:199:21: warning: 'cEndMoveAction::endMoveActionType' will be initialized after [-Wreorder] 199 | eEndMoveActionType endMoveActionType; | ^~~~~~~~~~~~~~~~~ movejobs.h:190:13: warning: 'cBuilding* cEndMoveAction::srcBuilding' [-Wreorder] 190 | cBuilding *srcBuilding; | ^~~~~~~~~~~ movejobs.cpp:711:1: warning: when initialized here [-Wreorder] 711 | cEndMoveAction::cEndMoveAction( eEndMoveActionType endMoveActionType_, cBuilding *srcBuilding_, cVehicle *srcVehicle_, cBuilding *destBuilding_, cVehicle *destVehicle_, int destX_, int destY_ ) : | ^~~~~~~~~~~~~~ In file included from movejobs.cpp:20: movejobs.h:201:18: warning: 'cEndMoveAction::moveJob' will be initialized after [-Wreorder] 201 | cClientMoveJob *moveJob; | ^~~~~~~ movejobs.h:197:7: warning: 'bool cEndMoveAction::success' [-Wreorder] 197 | bool success; | ^~~~~~~ movejobs.cpp:711:1: warning: when initialized here [-Wreorder] 711 | cEndMoveAction::cEndMoveAction( eEndMoveActionType endMoveActionType_, cBuilding *srcBuilding_, cVehicle *srcVehicle_, cBuilding *destBuilding_, cVehicle *destVehicle_, int destX_, int destY_ ) : | ^~~~~~~~~~~~~~ movejobs.cpp: In member function 'void cPathCalculator::insertToHeap(sPathNode*, bool)': movejobs.cpp:325:14: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized] 325 | nodesHeap[i] = TempNode; | ^ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c SDL_flic.c make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o player.o player.cpp In file included from player.cpp:20: player.h: In constructor 'cPlayer::cPlayer(std::string, SDL_Surface*, int, int)': player.h:88:8: warning: 'cPlayer::base' will be initialized after [-Wreorder] 88 | cBase base; // Die Basis dieses Spielers. | ^~~~ player.h:77:9: warning: 'std::string cPlayer::name' [-Wreorder] 77 | string name; | ^~~~ player.cpp:30:1: warning: when initialized here [-Wreorder] 30 | cPlayer::cPlayer(string Name, SDL_Surface* Color, int nr, int iSocketNum) | ^~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o settings.o settings.cpp make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o sound.o sound.cpp make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o tinystr.o tinystr.cpp make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o serverevents.o serverevents.cpp In file included from menuevents.h:23, from serverevents.cpp:26: menus.h: In constructor 'sClientLandData::sClientLandData()': menus.h:55:18: warning: 'sClientLandData::iLastLandY' will be initialized after [-Wreorder] 55 | int iLastLandX, iLastLandY; | ^~~~~~~~~~ menus.h:54:16: warning: 'eLandingState sClientLandData::landingState' [-Wreorder] 54 | eLandingState landingState; | ^~~~~~~~~~~~ menus.h:58:2: warning: when initialized here [-Wreorder] 58 | sClientLandData() : iLandX(0), iLandY(0), iLastLandX(0), iLastLandY(0), landingState ( LANDING_STATE_UNKNOWN ), receivedOK(true) {} | ^~~~~~~~~~~~~~~ In file included from menuevents.h:23, from serverevents.cpp:26: menus.h: In constructor 'cGameDataContainer::cGameDataContainer()': menus.h:154:8: warning: 'cGameDataContainer::map' will be initialized after [-Wreorder] 154 | cMap *map; | ^~~ menus.h:144:13: warning: 'eGameTypes cGameDataContainer::type' [-Wreorder] 144 | eGameTypes type; | ^~~~ menus.h:164:2: warning: when initialized here [-Wreorder] 164 | cGameDataContainer() : settings(NULL), map(NULL), type(GAME_TYPE_SINGLE), savegameNum(-1) {} | ^~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o tinyxml.o tinyxml.cpp make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o tinyxmlerror.o tinyxmlerror.cpp make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o menuitems.o menuitems.cpp In file included from menuitems.cpp:20: menus.h: In constructor 'sClientLandData::sClientLandData()': menus.h:55:18: warning: 'sClientLandData::iLastLandY' will be initialized after [-Wreorder] 55 | int iLastLandX, iLastLandY; | ^~~~~~~~~~ menus.h:54:16: warning: 'eLandingState sClientLandData::landingState' [-Wreorder] 54 | eLandingState landingState; | ^~~~~~~~~~~~ menus.h:58:2: warning: when initialized here [-Wreorder] 58 | sClientLandData() : iLandX(0), iLandY(0), iLastLandX(0), iLastLandY(0), landingState ( LANDING_STATE_UNKNOWN ), receivedOK(true) {} | ^~~~~~~~~~~~~~~ In file included from menuitems.cpp:20: menus.h: In constructor 'cGameDataContainer::cGameDataContainer()': menus.h:154:8: warning: 'cGameDataContainer::map' will be initialized after [-Wreorder] 154 | cMap *map; | ^~~ menus.h:144:13: warning: 'eGameTypes cGameDataContainer::type' [-Wreorder] 144 | eGameTypes type; | ^~~~ menus.h:164:2: warning: when initialized here [-Wreorder] 164 | cGameDataContainer() : settings(NULL), map(NULL), type(GAME_TYPE_SINGLE), savegameNum(-1) {} | ^~~~~~~~~~~~~~~~~~ In file included from menuitems.cpp:19: menuitems.h: In constructor 'cMenuButton::cMenuButton(int, int, std::string, cMenuButton::eButtonTypes, eUnicodeFontType, Mix_Chunk*)': menuitems.h:385:15: warning: 'cMenuButton::buttonType' will be initialized after [-Wreorder] 385 | eButtonTypes buttonType; | ^~~~~~~~~~ menuitems.h:382:15: warning: 'SDL_Surface* cMenuButton::surface' [-Wreorder] 382 | SDL_Surface* surface; | ^~~~~~~ menuitems.cpp:353:1: warning: when initialized here [-Wreorder] 353 | cMenuButton::cMenuButton ( int x, int y, string text_, eButtonTypes buttonType_, eUnicodeFontType fontType_, sSOUND *clickSound_ ) : cMenuItem( x, y ), fontType( fontType_ ), buttonType( buttonType_ ), surface( NULL ) | ^~~~~~~~~~~ In file included from menuitems.cpp:19: menuitems.h: In constructor 'cMenuCheckButton::cMenuCheckButton(int, int, std::string, bool, bool, cMenuCheckButton::eCheckButtonTypes, cMenuCheckButton::eCheckButtonTextOriantation, eUnicodeFontType, Mix_Chunk*)': menuitems.h:438:30: warning: 'cMenuCheckButton::textOrientation' will be initialized after [-Wreorder] 438 | eCheckButtonTextOriantation textOrientation; | ^~~~~~~~~~~~~~~ menuitems.h:435:15: warning: 'SDL_Surface* cMenuCheckButton::surface' [-Wreorder] 435 | SDL_Surface* surface; | ^~~~~~~ menuitems.cpp:545:1: warning: when initialized here [-Wreorder] 545 | cMenuCheckButton::cMenuCheckButton ( int x, int y, string text_, bool checked_, bool centered_, eCheckButtonTypes buttonType_, eCheckButtonTextOriantation textOrientation_, eUnicodeFontType fontType_, sSOUND *clickSound_ ) | ^~~~~~~~~~~~~~~~ menuitems.cpp: In member function 'virtual void cMenuCheckButton::draw()': menuitems.cpp:691:43: warning: narrowing conversion of '((((int)((cMenuCheckButton*)this)->cMenuCheckButton::.cMenuItem::position.SDL_Rect::x) + ((int)((cMenuCheckButton*)this)->cMenuCheckButton::.cMenuItem::position.SDL_Rect::w)) + 2)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 691 | SDL_Rect dest = { position.x+position.w+2, position.y-1, 1, position.h+2 }; | ~~~~~~~~~~~~~~~~~~~~~^~ menuitems.cpp:691:57: warning: narrowing conversion of '(((int)((cMenuCheckButton*)this)->cMenuCheckButton::.cMenuItem::position.SDL_Rect::y) - 1)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 691 | SDL_Rect dest = { position.x+position.w+2, position.y-1, 1, position.h+2 }; | ~~~~~~~~~~^~ menuitems.cpp:691:74: warning: narrowing conversion of '(((int)((cMenuCheckButton*)this)->cMenuCheckButton::.cMenuItem::position.SDL_Rect::h) + 2)' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 691 | SDL_Rect dest = { position.x+position.w+2, position.y-1, 1, position.h+2 }; | ~~~~~~~~~~^~ menuitems.cpp: In destructor 'cMenuRadioGroup::~cMenuRadioGroup()': menuitems.cpp:732:3: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 732 | delete buttonList[0]; | ^~~~~~~~~~~~~~~~~~~~ In file included from menuitems.cpp:19: menuitems.h: In constructor 'cMenuUnitListItem::cMenuUnitListItem(sID, cPlayer*, sUnitUpgrade*, eMenuUnitListDisplayTypes, cMenuUnitsList*, bool)': menuitems.h:514:16: warning: 'cMenuUnitListItem::upgrades' will be initialized after [-Wreorder] 514 | sUnitUpgrade *upgrades; | ^~~~~~~~ menuitems.h:503:28: warning: 'eMenuUnitListDisplayTypes cMenuUnitListItem::displayType' [-Wreorder] 503 | eMenuUnitListDisplayTypes displayType; | ^~~~~~~~~~~ menuitems.cpp:791:1: warning: when initialized here [-Wreorder] 791 | cMenuUnitListItem::cMenuUnitListItem( sID unitID_, cPlayer *owner_, sUnitUpgrade *upgrades_, eMenuUnitListDisplayTypes displayType_, cMenuUnitsList* parent, bool fixedResValue_ ) | ^~~~~~~~~~~~~~~~~ In file included from menuitems.cpp:19: menuitems.h:518:7: warning: 'cMenuUnitListItem::fixedResValue' will be initialized after [-Wreorder] 518 | bool fixedResValue; | ^~~~~~~~~~~~~ menuitems.h:504:18: warning: 'cMenuUnitsList* cMenuUnitListItem::parentList' [-Wreorder] 504 | cMenuUnitsList* parentList; | ^~~~~~~~~~ menuitems.cpp:791:1: warning: when initialized here [-Wreorder] 791 | cMenuUnitListItem::cMenuUnitListItem( sID unitID_, cPlayer *owner_, sUnitUpgrade *upgrades_, eMenuUnitListDisplayTypes displayType_, cMenuUnitsList* parent, bool fixedResValue_ ) | ^~~~~~~~~~~~~~~~~ In file included from menuitems.cpp:19: menuitems.h: In constructor 'cMenuUnitListItem::cMenuUnitListItem(sUnitData*, cPlayer*, sUnitUpgrade*, eMenuUnitListDisplayTypes, cMenuUnitsList*, bool)': menuitems.h:514:16: warning: 'cMenuUnitListItem::upgrades' will be initialized after [-Wreorder] 514 | sUnitUpgrade *upgrades; | ^~~~~~~~ menuitems.h:503:28: warning: 'eMenuUnitListDisplayTypes cMenuUnitListItem::displayType' [-Wreorder] 503 | eMenuUnitListDisplayTypes displayType; | ^~~~~~~~~~~ menuitems.cpp:804:1: warning: when initialized here [-Wreorder] 804 | cMenuUnitListItem::cMenuUnitListItem( sUnitData *unitData_, cPlayer *owner_, sUnitUpgrade *upgrades_, eMenuUnitListDisplayTypes displayType_, cMenuUnitsList* parent, bool fixedResValue_ ) | ^~~~~~~~~~~~~~~~~ In file included from menuitems.cpp:19: menuitems.h:518:7: warning: 'cMenuUnitListItem::fixedResValue' will be initialized after [-Wreorder] 518 | bool fixedResValue; | ^~~~~~~~~~~~~ menuitems.h:504:18: warning: 'cMenuUnitsList* cMenuUnitListItem::parentList' [-Wreorder] 504 | cMenuUnitsList* parentList; | ^~~~~~~~~~ menuitems.cpp:804:1: warning: when initialized here [-Wreorder] 804 | cMenuUnitListItem::cMenuUnitListItem( sUnitData *unitData_, cPlayer *owner_, sUnitUpgrade *upgrades_, eMenuUnitListDisplayTypes displayType_, cMenuUnitsList* parent, bool fixedResValue_ ) | ^~~~~~~~~~~~~~~~~ menuitems.cpp: In member function 'int cMenuUnitListItem::drawName(bool)': menuitems.cpp:914:33: warning: narrowing conversion of '((((int)((cMenuUnitListItem*)this)->cMenuUnitListItem::.cMenuItem::position.SDL_Rect::x) + 32) + 4)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 914 | SDL_Rect dest = { position.x+32+4, position.y+12, position.w-(32+4)-12, 0 }; | ~~~~~~~~~~~~~^~ menuitems.cpp:914:47: warning: narrowing conversion of '(((int)((cMenuUnitListItem*)this)->cMenuUnitListItem::.cMenuItem::position.SDL_Rect::y) + 12)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 914 | SDL_Rect dest = { position.x+32+4, position.y+12, position.w-(32+4)-12, 0 }; | ~~~~~~~~~~^~~ menuitems.cpp:914:69: warning: narrowing conversion of '((((int)((cMenuUnitListItem*)this)->cMenuUnitListItem::.cMenuItem::position.SDL_Rect::w) - (32 + 4)) - 12)' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 914 | SDL_Rect dest = { position.x+32+4, position.y+12, position.w-(32+4)-12, 0 }; | ~~~~~~~~~~~~~~~~~^~~ menuitems.cpp: In member function 'void cMenuUnitListItem::drawCargo(int)': menuitems.cpp:948:33: warning: narrowing conversion of '((((int)((cMenuUnitListItem*)this)->cMenuUnitListItem::.cMenuItem::position.SDL_Rect::x) + 32) + 4)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 948 | SDL_Rect dest = { position.x+32+4, destY, 0, 0 }; | ~~~~~~~~~~~~~^~ menuitems.cpp:948:37: warning: narrowing conversion of 'destY' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 948 | SDL_Rect dest = { position.x+32+4, destY, 0, 0 }; | ^~~~~ menuitems.cpp: In destructor 'cMenuUnitsList::~cMenuUnitsList()': menuitems.cpp:1060:3: warning: deleting object of polymorphic class type 'cMenuUnitListItem' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1060 | delete unitsList[0]; | ^~~~~~~~~~~~~~~~~~~ menuitems.cpp: In member function 'void cMenuUnitsList::removeUnit(cMenuUnitListItem*)': menuitems.cpp:1194:14: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 1194 | if ( i+1 < (int)unitsList.Size() ) nextSelUnit = unitsList[i+1]; | ~~~~^~~~~~~~~~~~~~~~~~~~~~~ menuitems.cpp:1198:4: warning: deleting object of polymorphic class type 'cMenuUnitListItem' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1198 | delete unitsList[i]; | ^~~~~~~~~~~~~~~~~~~ menuitems.cpp: In member function 'void cMenuUnitsList::clear()': menuitems.cpp:1216:3: warning: deleting object of polymorphic class type 'cMenuUnitListItem' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1216 | delete unitsList[0]; | ^~~~~~~~~~~~~~~~~~~ menuitems.cpp: In static member function 'static void cUnitDataSymbolHandler::drawSymbols(cUnitDataSymbolHandler::eUnitDataSymbols, int, int, int, bool, int, int)': menuitems.cpp:1269:19: warning: narrowing conversion of 'x' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 1269 | SDL_Rect dest = {x, y, 0, 0}; | ^ menuitems.cpp:1269:22: warning: narrowing conversion of 'y' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 1269 | SDL_Rect dest = {x, y, 0, 0}; | ^ menuitems.cpp: In static member function 'static SDL_Rect cUnitDataSymbolHandler::getBigSymbolPosition(cUnitDataSymbolHandler::eUnitDataSymbols)': menuitems.cpp:1298:9: warning: enumeration value 'MENU_SYMBOLS_TRANS_TANK' not handled in switch [-Wswitch] 1298 | switch ( symType ) | ^ menuitems.cpp:1298:9: warning: enumeration value 'MENU_SYMBOLS_TRANS_AIR' not handled in switch [-Wswitch] menuitems.cpp: In static member function 'static SDL_Rect cUnitDataSymbolHandler::getSmallSymbolPosition(cUnitDataSymbolHandler::eUnitDataSymbols)': menuitems.cpp:1372:9: warning: enumeration value 'MENU_SYMBOLS_ATTACK' not handled in switch [-Wswitch] 1372 | switch ( symType ) | ^ menuitems.cpp:1372:9: warning: enumeration value 'MENU_SYMBOLS_RANGE' not handled in switch [-Wswitch] menuitems.cpp:1372:9: warning: enumeration value 'MENU_SYMBOLS_ARMOR' not handled in switch [-Wswitch] menuitems.cpp:1372:9: warning: enumeration value 'MENU_SYMBOLS_SCAN' not handled in switch [-Wswitch] menuitems.cpp: In member function 'virtual void cMenuUnitDetails::draw()': menuitems.cpp:1502:10: warning: enumeration value 'STORE_RES_NONE' not handled in switch [-Wswitch] 1502 | switch ( transport ) | ^ menuitems.cpp: In destructor 'cMenuMaterialBar::~cMenuMaterialBar()': menuitems.cpp:1667:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1667 | delete valueLabel; | ^~~~~~~~~~~~~~~~~ menuitems.cpp: In destructor 'cMenuUpgradeHandler::~cMenuUpgradeHandler()': menuitems.cpp:1794:3: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1794 | delete decreaseButtons[i]; | ^~~~~~~~~~~~~~~~~~~~~~~~~ menuitems.cpp:1795:3: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1795 | delete increaseButtons[i]; | ^~~~~~~~~~~~~~~~~~~~~~~~~ menuitems.cpp:1796:3: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1796 | delete costsLabel[i]; | ^~~~~~~~~~~~~~~~~~~~ menuitems.cpp: In member function 'cUpgradeCalculator::UpgradeTypes cMenuUpgradeHandler::getUpgradeType(sUnitUpgrade)': menuitems.cpp:1892:9: warning: enumeration value 'UPGRADE_TYPE_NONE' not handled in switch [-Wswitch] 1892 | switch ( upgrade.type ) | ^ In file included from menuitems.cpp:19: menuitems.h: In constructor 'cMenuScroller::cMenuScroller(int, int, cMenuScroller::eMenuScrollerTypes, cMenuItem*, void (*)(void*))': menuitems.h:761:21: warning: 'cMenuScroller::scrollerType' will be initialized after [-Wreorder] 761 | eMenuScrollerTypes scrollerType; | ^~~~~~~~~~~~ menuitems.h:760:13: warning: 'cMenuItem* cMenuScroller::parent' [-Wreorder] 760 | cMenuItem *parent; | ^~~~~~ menuitems.cpp:1915:1: warning: when initialized here [-Wreorder] 1915 | cMenuScroller::cMenuScroller ( int x, int y, eMenuScrollerTypes scrollerType_, cMenuItem *parent_, void (*movedCallback_)(void *) ) : | ^~~~~~~~~~~~~ In file included from menuitems.cpp:19: menuitems.h: In constructor 'cMenuScrollBar::cMenuScrollBar(int, int, int, int, cMenu*, cMenuItem*)': menuitems.h:791:6: warning: 'cMenuScrollBar::pageSteps' will be initialized after [-Wreorder] 791 | int pageSteps; | ^~~~~~~~~ menuitems.h:785:9: warning: 'cMenu* cMenuScrollBar::parentMenu' [-Wreorder] 785 | cMenu *parentMenu; | ^~~~~~~~~~ menuitems.cpp:1988:1: warning: when initialized here [-Wreorder] 1988 | cMenuScrollBar::cMenuScrollBar ( int x, int y, int h, int pageSteps_, cMenu *parentMenu_, cMenuItem *parentItem_ ) : cMenuItemContainer ( x, y ), pageSteps(pageSteps_), parentMenu(parentMenu_), parentItem(parentItem_) | ^~~~~~~~~~~~~~ menuitems.cpp: In destructor 'cMenuScrollBar::~cMenuScrollBar()': menuitems.cpp:2011:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2011 | delete upButton; | ^~~~~~~~~~~~~~~ menuitems.cpp:2012:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2012 | delete downButton; | ^~~~~~~~~~~~~~~~~ menuitems.cpp:2013:2: warning: deleting object of polymorphic class type 'cMenuScroller' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2013 | delete scroller; | ^~~~~~~~~~~~~~~ In file included from menuitems.cpp:19: menuitems.h: In constructor 'cMenuListBox::cMenuListBox(int, int, int, int, int, cMenu*)': menuitems.h:823:6: warning: 'cMenuListBox::maxLines' will be initialized after [-Wreorder] 823 | int maxLines; | ^~~~~~~~ menuitems.h:820:9: warning: 'cMenu* cMenuListBox::parentMenu' [-Wreorder] 820 | cMenu *parentMenu; | ^~~~~~~~~~ menuitems.cpp:2082:1: warning: when initialized here [-Wreorder] 2082 | cMenuListBox::cMenuListBox ( int x, int y, int w, int h, int maxLines_, cMenu *parentMenu_ ) : cMenuItemContainer ( x, y ), maxLines(maxLines_), parentMenu(parentMenu_) | ^~~~~~~~~~~~ menuitems.cpp: In destructor 'cMenuListBox::~cMenuListBox()': menuitems.cpp:2095:2: warning: deleting object of polymorphic class type 'cMenuScrollBar' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2095 | delete scrollBar; | ^~~~~~~~~~~~~~~~ menuitems.cpp: In destructor 'cMenuPlayersBox::~cMenuPlayersBox()': menuitems.cpp:2356:2: warning: deleting object of polymorphic class type 'cMenuScrollBar' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2356 | delete scrollBar; | ^~~~~~~~~~~~~~~~ menuitems.cpp:2359:3: warning: deleting object of polymorphic class type 'cMenuImage' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2359 | delete playerColors[i]; | ^~~~~~~~~~~~~~~~~~~~~~ menuitems.cpp:2360:3: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2360 | delete playerNames[i]; | ^~~~~~~~~~~~~~~~~~~~~ menuitems.cpp:2361:3: warning: deleting object of polymorphic class type 'cMenuImage' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2361 | delete playerReadys[i]; | ^~~~~~~~~~~~~~~~~~~~~~ menuitems.cpp: In destructor 'cMenuSaveSlot::~cMenuSaveSlot()': menuitems.cpp:2447:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2447 | delete saveNumber; | ^~~~~~~~~~~~~~~~~ menuitems.cpp:2448:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2448 | delete saveType; | ^~~~~~~~~~~~~~~ menuitems.cpp:2449:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2449 | delete saveTime; | ^~~~~~~~~~~~~~~ menuitems.cpp:2450:2: warning: deleting object of polymorphic class type 'cMenuLineEdit' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2450 | delete saveName; | ^~~~~~~~~~~~~~~ menuitems.cpp: In destructor 'cMenuBuildSpeedHandler::~cMenuBuildSpeedHandler()': menuitems.cpp:2512:3: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2512 | delete turnsLabels[i]; | ^~~~~~~~~~~~~~~~~~~~~ menuitems.cpp:2513:3: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2513 | delete costsLabels[i]; | ^~~~~~~~~~~~~~~~~~~~~ menuitems.cpp:2515:2: warning: deleting object of polymorphic class type 'cMenuRadioGroup' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2515 | delete speedGroup; | ^~~~~~~~~~~~~~~~~ menuitems.cpp: In destructor 'cMenuUpgradeFilter::~cMenuUpgradeFilter()': menuitems.cpp:2592:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2592 | delete checkButtonTank; | ^~~~~~~~~~~~~~~~~~~~~~ menuitems.cpp:2593:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2593 | delete checkButtonPlane; | ^~~~~~~~~~~~~~~~~~~~~~~ menuitems.cpp:2594:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2594 | delete checkButtonShip; | ^~~~~~~~~~~~~~~~~~~~~~ menuitems.cpp:2595:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2595 | delete checkButtonBuilding; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ menuitems.cpp:2596:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2596 | delete checkButtonTNT; | ^~~~~~~~~~~~~~~~~~~~~ menuitems.cpp: In destructor 'cMenuSlider::~cMenuSlider()': menuitems.cpp:2708:2: warning: deleting object of polymorphic class type 'cMenuScroller' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2708 | delete scroller; | ^~~~~~~~~~~~~~~ menuitems.cpp: In destructor 'cMenuScrollerHandler::~cMenuScrollerHandler()': menuitems.cpp:2767:2: warning: deleting object of polymorphic class type 'cMenuScroller' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2767 | delete scroller; | ^~~~~~~~~~~~~~~ menuitems.cpp: In member function 'void cMenuReportsScreen::drawUnitsScreen()': menuitems.cpp:2833:34: warning: narrowing conversion of '(((int)((cMenuReportsScreen*)this)->cMenuReportsScreen::.cMenuItem::position.SDL_Rect::x) + 13)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2833 | SDL_Rect selDest = { position.x+13, position.y+26+55*selIndex, 8, 1 }; | ~~~~~~~~~~^~~ menuitems.cpp:2833:52: warning: narrowing conversion of '((((int)((cMenuReportsScreen*)this)->cMenuReportsScreen::.cMenuItem::position.SDL_Rect::y) + 26) + (55 * selIndex))' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2833 | SDL_Rect selDest = { position.x+13, position.y+26+55*selIndex, 8, 1 }; | ~~~~~~~~~~~~~^~~~~~~~~~~~ menuitems.cpp: In member function 'void cMenuReportsScreen::drawReportsScreen()': menuitems.cpp:2867:34: warning: narrowing conversion of '(((int)((cMenuReportsScreen*)this)->cMenuReportsScreen::.cMenuItem::position.SDL_Rect::x) + 54)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2867 | SDL_Rect textDest = { position.x+54, position.y+25, 410, 30 }; | ~~~~~~~~~~^~~ menuitems.cpp:2867:49: warning: narrowing conversion of '(((int)((cMenuReportsScreen*)this)->cMenuReportsScreen::.cMenuItem::position.SDL_Rect::y) + 25)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2867 | SDL_Rect textDest = { position.x+54, position.y+25, 410, 30 }; | ~~~~~~~~~~^~~ menuitems.cpp:2882:33: warning: narrowing conversion of '(((int)((cMenuReportsScreen*)this)->cMenuReportsScreen::.cMenuItem::position.SDL_Rect::x) + 17)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2882 | SDL_Rect dest = { position.x+17, position.y+30+(i-(index)*maxItems)*55, 0, 0 }; | ~~~~~~~~~~^~~ menuitems.cpp:2882:51: warning: narrowing conversion of '(((unsigned int)(((int)((cMenuReportsScreen*)this)->cMenuReportsScreen::.cMenuItem::position.SDL_Rect::y) + 30)) + ((i - ((unsigned int)(((cMenuReportsScreen*)this)->cMenuReportsScreen::index * ((cMenuReportsScreen*)this)->cMenuReportsScreen::maxItems))) * 55))' from 'unsigned int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2882 | SDL_Rect dest = { position.x+17, position.y+30+(i-(index)*maxItems)*55, 0, 0 }; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ menuitems.cpp:2904:35: warning: narrowing conversion of '(((int)((cMenuReportsScreen*)this)->cMenuReportsScreen::.cMenuItem::position.SDL_Rect::x) + 15)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2904 | SDL_Rect selDest = { position.x+15, position.y+23+55*selIndex, 1, 53 }; | ~~~~~~~~~~^~~ menuitems.cpp:2904:53: warning: narrowing conversion of '((((int)((cMenuReportsScreen*)this)->cMenuReportsScreen::.cMenuItem::position.SDL_Rect::y) + 23) + (55 * selIndex))' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2904 | SDL_Rect selDest = { position.x+15, position.y+23+55*selIndex, 1, 53 }; | ~~~~~~~~~~~~~^~~~~~~~~~~~ menuitems.cpp: In member function 'bool cMenuReportsScreen::goThroughUnits(bool, int*, cVehicle**, cBuilding**)': menuitems.cpp:2953:30: warning: narrowing conversion of '(((int)((cMenuReportsScreen*)this)->cMenuReportsScreen::.cMenuItem::position.SDL_Rect::x) + 17)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2953 | SDL_Rect dest = { position.x+17, position.y+30, 0, 0 }; | ~~~~~~~~~~^~~ menuitems.cpp:2953:45: warning: narrowing conversion of '(((int)((cMenuReportsScreen*)this)->cMenuReportsScreen::.cMenuItem::position.SDL_Rect::y) + 30)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2953 | SDL_Rect dest = { position.x+17, position.y+30, 0, 0 }; | ~~~~~~~~~~^~~ menuitems.cpp:2954:34: warning: narrowing conversion of '(((int)((cMenuReportsScreen*)this)->cMenuReportsScreen::.cMenuItem::position.SDL_Rect::x) + 54)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2954 | SDL_Rect nameDest = { position.x+54, position.y+25, 75, 30 }; | ~~~~~~~~~~^~~ menuitems.cpp:2954:49: warning: narrowing conversion of '(((int)((cMenuReportsScreen*)this)->cMenuReportsScreen::.cMenuItem::position.SDL_Rect::y) + 25)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2954 | SDL_Rect nameDest = { position.x+54, position.y+25, 75, 30 }; | ~~~~~~~~~~^~~ menuitems.cpp: In member function 'virtual void cMenuCheckButton::draw()': menuitems.cpp:677:18: warning: 'textDest.SDL_Rect::y' may be used uninitialized in this function [-Wmaybe-uninitialized] 677 | font->showText ( textDest.x , textDest.y, text, fontType ); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ menuitems.cpp:677:18: warning: 'textDest.SDL_Rect::x' may be used uninitialized in this function [-Wmaybe-uninitialized] menuitems.cpp: In constructor 'cMenuScroller::cMenuScroller(int, int, cMenuScroller::eMenuScrollerTypes, cMenuItem*, void (*)(void*))': menuitems.cpp:1936:19: warning: 'src.SDL_Rect::w' may be used uninitialized in this function [-Wmaybe-uninitialized] 1936 | position.w = src.w; | ~~~~^ menuitems.cpp:1937:19: warning: 'src.SDL_Rect::h' may be used uninitialized in this function [-Wmaybe-uninitialized] 1937 | position.h = src.h; | ~~~~^ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o tinyxmlparser.o tinyxmlparser.cpp tinyxmlparser.cpp: In static member function 'static const char* TiXmlBase::SkipWhiteSpace(const char*, TiXmlEncoding)': tinyxmlparser.cpp:357:14: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 357 | while ( *p && IsWhiteSpace( *p ) || *p == '\n' || *p =='\r' ) | ~~~^~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o server.o server.cpp In file included from server.cpp:28: menus.h: In constructor 'sClientLandData::sClientLandData()': menus.h:55:18: warning: 'sClientLandData::iLastLandY' will be initialized after [-Wreorder] 55 | int iLastLandX, iLastLandY; | ^~~~~~~~~~ menus.h:54:16: warning: 'eLandingState sClientLandData::landingState' [-Wreorder] 54 | eLandingState landingState; | ^~~~~~~~~~~~ menus.h:58:2: warning: when initialized here [-Wreorder] 58 | sClientLandData() : iLandX(0), iLandY(0), iLastLandX(0), iLastLandY(0), landingState ( LANDING_STATE_UNKNOWN ), receivedOK(true) {} | ^~~~~~~~~~~~~~~ In file included from server.cpp:28: menus.h: In constructor 'cGameDataContainer::cGameDataContainer()': menus.h:154:8: warning: 'cGameDataContainer::map' will be initialized after [-Wreorder] 154 | cMap *map; | ^~~ menus.h:144:13: warning: 'eGameTypes cGameDataContainer::type' [-Wreorder] 144 | eGameTypes type; | ^~~~ menus.h:164:2: warning: when initialized here [-Wreorder] 164 | cGameDataContainer() : settings(NULL), map(NULL), type(GAME_TYPE_SINGLE), savegameNum(-1) {} | ^~~~~~~~~~~~~~~~~~ server.cpp: In member function 'int cServer::HandleNetMessage(cNetMessage*)': server.cpp:1120:25: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 1120 | if (upgradeAll || i == storageSlot) | ~~^~~~~~~~~~~~~~ server.cpp: In member function 'cVehicle* cServer::getVehicleFromID(int)': server.cpp:2850:22: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 2850 | if ( Vehicle->iID == iID ) return Vehicle; | ~~~~~~~~~~~~~^~~~~~ server.cpp: In member function 'cBuilding* cServer::getBuildingFromID(int)': server.cpp:2866:23: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 2866 | if ( Building->iID == iID ) return Building; | ~~~~~~~~~~~~~~^~~~~~ server.cpp: In member function 'int cServer::HandleNetMessage(cNetMessage*)': server.cpp:1247:44: warning: 'LocalPlayer' may be used uninitialized in this function [-Wmaybe-uninitialized] 1247 | if ( message->iPlayerNr != LocalPlayer->Nr ) break; | ~~~~~~~~~~~~~^~ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o loaddata.o loaddata.cpp loaddata.cpp: In function 'void MakeLog(std::string, int, int)': loaddata.cpp:348:53: warning: narrowing conversion of 'font->cUnicodeFont::getFontHeight(FONT_LATIN_BIG_GOLD)' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 348 | SDL_Rect rDest = {22, 152, 228, font->getFontHeight(FONT_LATIN_BIG_GOLD)}; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ loaddata.cpp:349:55: warning: narrowing conversion of 'font->cUnicodeFont::getFontHeight(FONT_LATIN_BIG_GOLD)' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 349 | SDL_Rect rDest2 = {250, 152, 230, font->getFontHeight(FONT_LATIN_BIG_GOLD)}; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ loaddata.cpp: In function 'int LoadVehicles()': loaddata.cpp:1908:20: warning: '0' flag ignored with precision and '%d' gnu_printf format [-Wformat=] 1908 | sprintf(sztmp,"img%d_%0.2d.pcx",n,j); | ^~~~~~~~~~~~~~~~~ loaddata.cpp: In function 'void translateUnitData(sID, bool)': loaddata.cpp:2245:20: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare] 2245 | while(iPosition != string::npos) | ~~~~~~~~~~^~~~~~~~~~~~~~~ loaddata.cpp: In function 'void LoadUnitData(sUnitData*, const char*, int)': loaddata.cpp:2637:21: warning: '0' flag ignored with precision and '%d' gnu_printf format [-Wformat=] 2637 | sprintf( szTmp, "unit with id %0.2d %0.2d already exists", UnitsData.vehicle[i].data.ID.iFirstPart, UnitsData.vehicle[i].data.ID.iSecondPart); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ loaddata.cpp:2637:21: warning: '0' flag ignored with precision and '%d' gnu_printf format [-Wformat=] loaddata.cpp:2649:21: warning: '0' flag ignored with precision and '%d' gnu_printf format [-Wformat=] 2649 | sprintf( szTmp, "unit with id %0.2d %0.2d already exists", UnitsData.vehicle[i].data.ID.iFirstPart, UnitsData.vehicle[i].data.ID.iSecondPart); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ loaddata.cpp:2649:21: warning: '0' flag ignored with precision and '%d' gnu_printf format [-Wformat=] loaddata.cpp:2660:19: warning: '0' flag ignored with precision and '%d' gnu_printf format [-Wformat=] 2660 | sprintf( szTmp, "ID %0.2d %0.2d isn't equal with ID for unit \"%s\" ", atoi(idString.substr(0,idString.find(" ",0)).c_str()), atoi(idString.substr(idString.find(" ",0),idString.length()).c_str()), directory); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ loaddata.cpp:2660:19: warning: '0' flag ignored with precision and '%d' gnu_printf format [-Wformat=] loaddata.cpp:2666:19: warning: '0' flag ignored with precision and '%d' gnu_printf format [-Wformat=] 2666 | sprintf( szTmp, "ID %0.2d %0.2d verified", atoi(idString.substr(0,idString.find(" ",0)).c_str()), atoi(idString.substr(idString.find(" ",0),idString.length()).c_str()), directory); | ^~~~~~~~~~~~~~~~~~~~~~~~~ loaddata.cpp:2666:19: warning: '0' flag ignored with precision and '%d' gnu_printf format [-Wformat=] loaddata.cpp:2666:19: warning: too many arguments for format [-Wformat-extra-args] loaddata.cpp:2672:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2672 | if(pExXmlNode = pExXmlNode->XmlGetFirstNode( unitDataXml, "Unit", "Description", NULL) ) | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ loaddata.cpp:2676:19: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare] 2676 | while(iPosition != string::npos) | ~~~~~~~~~~^~~~~~~~~~~~~~~ loaddata.cpp:2813:13: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare] 2813 | if ( pos == string::npos ) pos = storeUnitsString.length(); | ~~~~^~~~~~~~~~~~~~~ loaddata.cpp: In function 'void LoadUnitGraphicData(sUnitData*, const char*)': loaddata.cpp:2834:15: warning: unused variable 'pExXmlNode' [-Wunused-variable] 2834 | ExTiXmlNode *pExXmlNode = NULL; | ^~~~~~~~~~ loaddata.cpp: In function 'int LoadClans()': loaddata.cpp:2882:18: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2882 | while (clanNode = xmlNode->IterateChildren (clanNode)) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ loaddata.cpp:2899:32: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2899 | while (changedUnitStatsNode = clanNode->IterateChildren ("ChangedUnitStat", changedUnitStatsNode)) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ loaddata.cpp:2917:30: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 2917 | while (modificationNode = changedUnitStatsNode->IterateChildren (modificationNode)) | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o unifonts.o unifonts.cpp unifonts.cpp: In member function 'void cUnicodeFont::loadChars(eUnicodeFontCharset, eUnicodeFontType)': unifonts.cpp:131:9: warning: unused variable 'stop' [-Wunused-variable] 131 | int stop = 0; | ^~~~ unifonts.cpp: In member function 'void cUnicodeFont::showText(int, int, std::string, eUnicodeFontType, SDL_Surface*, bool)': unifonts.cpp:330:8: warning: enumeration value 'FONT_LATIN_NORMAL' not handled in switch [-Wswitch] 330 | switch( fonttype ) | ^ unifonts.cpp:330:8: warning: enumeration value 'FONT_LATIN_BIG' not handled in switch [-Wswitch] unifonts.cpp:330:8: warning: enumeration value 'FONT_LATIN_BIG_GOLD' not handled in switch [-Wswitch] unifonts.cpp:379:22: warning: narrowing conversion of 'offX' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 379 | SDL_Rect rTmp = {offX, offY, 16, 16}; | ^~~~ unifonts.cpp:379:28: warning: narrowing conversion of 'offY' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 379 | SDL_Rect rTmp = {offX, offY, 16, 16}; | ^~~~ unifonts.cpp: In member function 'int cUnicodeFont::drawWithBreakLines(SDL_Rect, std::string, eUnicodeFontType, SDL_Surface*, bool)': unifonts.cpp:402:86: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare] 402 | while ( getTextWide ( sText.substr ( 0, pos ), fonttype, encode ) < rDest.w && pos != string::npos ); | ~~~~^~~~~~~~~~~~~~~ unifonts.cpp: In member function 'int cUnicodeFont::showTextAsBlock(SDL_Rect, std::string, eUnicodeFontType, SDL_Surface*, bool)': unifonts.cpp:453:10: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare] 453 | if ( k != string::npos ) | ~~^~~~~~~~~~~~~~~ unifonts.cpp:459:12: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare] 459 | while ( k != string::npos ); | ~~^~~~~~~~~~~~~~~ unifonts.cpp:466:10: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare] 466 | if ( k != string::npos ) | ~~^~~~~~~~~~~~~~~ unifonts.cpp:471:12: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare] 471 | while ( k != string::npos ); | ~~^~~~~~~~~~~~~~~ unifonts.cpp:478:10: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare] 478 | if ( k != string::npos ) | ~~^~~~~~~~~~~~~~~ unifonts.cpp:490:12: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare] 490 | while ( k != string::npos ); | ~~^~~~~~~~~~~~~~~ unifonts.cpp: In member function 'SDL_Rect cUnicodeFont::getTextSize(std::string, eUnicodeFontType, bool)': unifonts.cpp:520:8: warning: enumeration value 'FONT_LATIN_NORMAL' not handled in switch [-Wswitch] 520 | switch( fonttype ) | ^ unifonts.cpp:520:8: warning: enumeration value 'FONT_LATIN_BIG' not handled in switch [-Wswitch] unifonts.cpp:520:8: warning: enumeration value 'FONT_LATIN_BIG_GOLD' not handled in switch [-Wswitch] make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o savegame.o savegame.cpp In file included from savegame.cpp:25: menus.h: In constructor 'sClientLandData::sClientLandData()': menus.h:55:18: warning: 'sClientLandData::iLastLandY' will be initialized after [-Wreorder] 55 | int iLastLandX, iLastLandY; | ^~~~~~~~~~ menus.h:54:16: warning: 'eLandingState sClientLandData::landingState' [-Wreorder] 54 | eLandingState landingState; | ^~~~~~~~~~~~ menus.h:58:2: warning: when initialized here [-Wreorder] 58 | sClientLandData() : iLandX(0), iLandY(0), iLastLandX(0), iLastLandY(0), landingState ( LANDING_STATE_UNKNOWN ), receivedOK(true) {} | ^~~~~~~~~~~~~~~ In file included from savegame.cpp:25: menus.h: In constructor 'cGameDataContainer::cGameDataContainer()': menus.h:154:8: warning: 'cGameDataContainer::map' will be initialized after [-Wreorder] 154 | cMap *map; | ^~~ menus.h:144:13: warning: 'eGameTypes cGameDataContainer::type' [-Wreorder] 144 | eGameTypes type; | ^~~~ menus.h:164:2: warning: when initialized here [-Wreorder] 164 | cGameDataContainer() : settings(NULL), map(NULL), type(GAME_TYPE_SINGLE), savegameNum(-1) {} | ^~~~~~~~~~~~~~~~~~ savegame.cpp: In constructor 'cSavegame::cSavegame(int)': savegame.cpp:33:23: warning: '0' flag ignored with precision and '%d' gnu_printf format [-Wformat=] 33 | sprintf ( numberstr, "%0.3d", number ); | ^~~~~~~ savegame.cpp: In member function 'void cSavegame::loadGameInfo()': savegame.cpp:232:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 232 | if ( element = gameInfoNode->FirstChildElement( "Hotseat" ) ) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:237:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 237 | if ( element = gameInfoNode->FirstChildElement( "PlayTurns" ) ) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp: In member function 'cPlayer* cSavegame::loadPlayer(TiXmlElement*, cMap*)': savegame.cpp:304:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 304 | if ( element = playerNode->FirstChildElement ("Clan" ) ) element->Attribute ( "num", &clan ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:393:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 393 | if ( subbasesNode = playerNode->FirstChildElement( "Subbases" ) ) | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp: In member function 'void cSavegame::loadUpgrade(TiXmlElement*, sUnitData*)': savegame.cpp:423:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 423 | if ( element = upgradeNode->FirstChildElement( "Ammo" ) ) element->Attribute ( "num", &data->ammoMax ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:424:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 424 | if ( element = upgradeNode->FirstChildElement( "HitPoints" ) ) element->Attribute ( "num", &data->hitpointsMax ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:425:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 425 | if ( element = upgradeNode->FirstChildElement( "Shots" ) ) element->Attribute ( "num", &data->shotsMax ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:426:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 426 | if ( element = upgradeNode->FirstChildElement( "Speed" ) ) element->Attribute ( "num", &data->speedMax ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:427:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 427 | if ( element = upgradeNode->FirstChildElement( "Armor" ) ) element->Attribute ( "num", &data->armor ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:428:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 428 | if ( element = upgradeNode->FirstChildElement( "Costs" ) ) element->Attribute ( "num", &data->buildCosts ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:429:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 429 | if ( element = upgradeNode->FirstChildElement( "Damage" ) ) element->Attribute ( "num", &data->damage ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:430:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 430 | if ( element = upgradeNode->FirstChildElement( "Range" ) ) element->Attribute ( "num", &data->range ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:431:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 431 | if ( element = upgradeNode->FirstChildElement( "Scan" ) ) element->Attribute ( "num", &data->scan ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp: In member function 'void cSavegame::loadVehicle(TiXmlElement*, sID&)': savegame.cpp:563:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 563 | if ( element = unitNode->FirstChildElement( "CommandoRank" ) ) { element->Attribute ( "num", &tmpdouble ); vehicle->CommandoRank = (float)tmpdouble; } | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:574:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 574 | if ( element = unitNode->FirstChildElement( "Building" ) ) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:599:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 599 | if ( element = unitNode->FirstChildElement( "Clearing" ) ) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:606:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 606 | if ( element = unitNode->FirstChildElement( "Movejob" ) ) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:618:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 618 | if ( detectedNode = unitNode->FirstChildElement( "IsDetectedByPlayers" ) ) | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:621:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 621 | while ( element = detectedNode->FirstChildElement ( ("Player_" + iToStr( playerNodeNum )).c_str() ) ) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:635:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 635 | if ( element = unitNode->FirstChildElement( "Stored_In" ) ) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp: In member function 'void cSavegame::loadBuilding(TiXmlElement*, sID&)': savegame.cpp:707:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 707 | if ( element = unitNode->FirstChildElement( "Building" ) ) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:710:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 710 | if ( element = buildNode->FirstChildElement( "BuildSpeed" ) ) element->Attribute ( "num", &building->BuildSpeed ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:711:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 711 | if ( element = buildNode->FirstChildElement( "MetalPerRound" ) ) element->Attribute ( "num", &building->MetalPerRound ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:749:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 749 | if ( detectedNode = unitNode->FirstChildElement( "IsDetectedByPlayers" ) ) | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:752:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 752 | while ( element = detectedNode->FirstChildElement ( ("Player_" + iToStr( playerNodeNum )).c_str() ) ) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp: In member function 'void cSavegame::loadUnitValues(TiXmlElement*, sUnitData*)': savegame.cpp:785:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 785 | if ( Element = unitNode->FirstChildElement( "Version" ) ) Element->Attribute ( "num", &Data->version ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:787:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 787 | if ( Element = unitNode->FirstChildElement( "Max_Hitpoints" ) ) Element->Attribute ( "num", &Data->hitpointsMax ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:788:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 788 | if ( Element = unitNode->FirstChildElement( "Max_Ammo" ) ) Element->Attribute ( "num", &Data->ammoMax ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:789:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 789 | if ( Element = unitNode->FirstChildElement( "Max_Speed" ) ) Element->Attribute ( "num", &Data->speedMax ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:790:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 790 | if ( Element = unitNode->FirstChildElement( "Max_Shots" ) ) Element->Attribute ( "num", &Data->shotsMax ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:791:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 791 | if ( Element = unitNode->FirstChildElement( "Armor" ) ) Element->Attribute ( "num", &Data->armor ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:792:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 792 | if ( Element = unitNode->FirstChildElement( "Damage" ) ) Element->Attribute ( "num", &Data->damage ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:793:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 793 | if ( Element = unitNode->FirstChildElement( "Range" ) ) Element->Attribute ( "num", &Data->range ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:794:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 794 | if ( Element = unitNode->FirstChildElement( "Scan" ) ) Element->Attribute ( "num", &Data->scan ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:796:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 796 | if ( Element = unitNode->FirstChildElement( "Hitpoints" ) ) Element->Attribute ( "num", &Data->hitpointsCur ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:798:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 798 | if ( Element = unitNode->FirstChildElement( "Ammo" ) ) Element->Attribute ( "num", &Data->ammoCur ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:801:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 801 | if ( Element = unitNode->FirstChildElement( "ResCargo" ) ) Element->Attribute ( "num", &Data->storageResCur ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:802:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 802 | if ( Element = unitNode->FirstChildElement( "UnitCargo" ) ) Element->Attribute ( "num", &Data->storageUnitsCur ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:804:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 804 | if ( Element = unitNode->FirstChildElement( "Cargo" ) ) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:810:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 810 | if ( Element = unitNode->FirstChildElement( "Speed" ) ) Element->Attribute ( "num", &Data->speedCur ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:812:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 812 | if ( Element = unitNode->FirstChildElement( "Shots" ) ) Element->Attribute ( "num", &Data->shotsCur ); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp: In member function 'void cSavegame::loadStandardUnitValues(TiXmlElement*)': savegame.cpp:865:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 865 | if ( Element = unitNode->FirstChildElement( "Scan" ) ) Element->Attribute ( "num", &Data->scan ); else Data->scan = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:866:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 866 | if ( Element = unitNode->FirstChildElement( "Movement" ) ) Element->Attribute ( "num", &Data->speedMax ); else Data->speedMax = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:871:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 871 | if ( Element = unitNode->FirstChildElement( "MuzzleType" ) ) { Element->Attribute ( "num", &tmpInt ); Data->muzzleType = (sUnitData::eMuzzleType)tmpInt; } else Data->muzzleType = sUnitData::MUZZLE_TYPE_NONE; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:872:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 872 | if ( Element = unitNode->FirstChildElement( "Shots" ) ) Element->Attribute ( "num", &Data->shotsMax ); else Data->shotsMax = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:873:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 873 | if ( Element = unitNode->FirstChildElement( "Ammo" ) ) Element->Attribute ( "num", &Data->ammoMax ); else Data->ammoMax = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:874:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 874 | if ( Element = unitNode->FirstChildElement( "Range" ) ) Element->Attribute ( "num", &Data->range ); else Data->range = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:875:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 875 | if ( Element = unitNode->FirstChildElement( "Damage" ) ) Element->Attribute ( "num", &Data->damage ); else Data->damage = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:876:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 876 | if ( Element = unitNode->FirstChildElement( "Can_Attack" ) ) { Element->Attribute ( "num", &tmpInt ); Data->canAttack = tmpInt; } else Data->canAttack = TERRAIN_NONE; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:878:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 878 | if ( Element = unitNode->FirstChildElement( "Can_Build" ) ) Data->canBuild = Element->Attribute ( "string" ); else Data->canBuild = ""; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:879:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 879 | if ( Element = unitNode->FirstChildElement( "Build_As" ) ) Data->buildAs = Element->Attribute ( "string" ); else Data->buildAs = ""; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:880:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 880 | if ( Element = unitNode->FirstChildElement( "Max_Build_Factor" ) ) Element->Attribute ( "num", &Data->maxBuildFactor ); else Data->maxBuildFactor = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:882:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 882 | if ( Element = unitNode->FirstChildElement( "Storage_Res_Max" ) ) Element->Attribute ( "num", &Data->storageResMax ); else Data->storageResMax = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:883:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 883 | if ( Element = unitNode->FirstChildElement( "Storage_Units_Max" ) ) Element->Attribute ( "num", &Data->storageUnitsMax ); else Data->storageUnitsMax = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:884:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 884 | if ( Element = unitNode->FirstChildElement( "Store_Res_Type" ) ) { Element->Attribute ( "num", &tmpInt ); Data->storeResType = (sUnitData::eStorageResType)tmpInt; } else Data->storeResType = sUnitData::STORE_RES_NONE; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:885:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 885 | if ( Element = unitNode->FirstChildElement( "StoreUnits_Image_Type" ) ) { Element->Attribute ( "num", &tmpInt ); Data->storeUnitsImageType = (sUnitData::eStorageUnitsImageType)tmpInt; } else Data->storeUnitsImageType = sUnitData::STORE_UNIT_IMG_NONE; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:886:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 886 | if ( Element = unitNode->FirstChildElement( "Is_Storage_Type" ) ) Data->isStorageType = Element->Attribute ( "string" ); else Data->isStorageType = ""; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:887:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 887 | if ( Element = unitNode->FirstChildElement( "StoreUnitsTypes" ) ) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:897:14: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare] 897 | if ( pos == string::npos ) pos = storeUnitsString.length(); | ~~~~^~~~~~~~~~~~~~~ savegame.cpp:904:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 904 | if ( Element = unitNode->FirstChildElement( "Needs_Energy" ) ) Element->Attribute ( "num", &Data->needsEnergy ); else Data->needsEnergy = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:905:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 905 | if ( Element = unitNode->FirstChildElement( "Needs_Humans" ) ) Element->Attribute ( "num", &Data->needsHumans ); else Data->needsHumans = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:906:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 906 | if ( Element = unitNode->FirstChildElement( "Needs_Oil" ) ) Element->Attribute ( "num", &Data->needsOil ); else Data->needsOil = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:907:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 907 | if ( Element = unitNode->FirstChildElement( "Needs_Metal" ) ) Element->Attribute ( "num", &Data->needsMetal ); else Data->needsMetal = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:908:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 908 | if ( Element = unitNode->FirstChildElement( "Converts_Gold" ) ) Element->Attribute ( "num", &Data->convertsGold ); else Data->convertsGold = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:909:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 909 | if ( Element = unitNode->FirstChildElement( "Can_Mine_Max_Res" ) ) Element->Attribute ( "num", &Data->canMineMaxRes ); else Data->canMineMaxRes = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:921:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 921 | if ( Element = unitNode->FirstChildElement( "Is_Stealth_On" ) ) { Element->Attribute ( "num", &tmpInt ); Data->isStealthOn = tmpInt; } else Data->isStealthOn = TERRAIN_NONE; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:922:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 922 | if ( Element = unitNode->FirstChildElement( "Can_Detect_Stealth_On" ) ) { Element->Attribute ( "num", &tmpInt ); Data->canDetectStealthOn = tmpInt; } else Data->canDetectStealthOn = TERRAIN_NONE; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:924:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 924 | if ( Element = unitNode->FirstChildElement( "Surface_Position" ) ) { Element->Attribute ( "num", &tmpInt ); Data->surfacePosition = (sUnitData::eSurfacePosition)tmpInt; } else Data->surfacePosition = sUnitData::SURFACE_POS_GROUND; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:925:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 925 | if ( Element = unitNode->FirstChildElement( "Can_Be_Overbuild" ) ) { Element->Attribute ( "num", &tmpInt ); Data->canBeOverbuild = (sUnitData::eOverbuildType)tmpInt; } else Data->canBeOverbuild = sUnitData::OVERBUILD_TYPE_NO; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:928:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 928 | if ( Element = unitNode->FirstChildElement( "Factor_Air" ) ) { Element->Attribute ( "num", &tmpdouble ); Data->factorAir = (float)tmpdouble; } else Data->factorAir = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:929:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 929 | if ( Element = unitNode->FirstChildElement( "Factor_Coast" ) ) { Element->Attribute ( "num", &tmpdouble ); Data->factorCoast = (float)tmpdouble; } else Data->factorCoast = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:930:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 930 | if ( Element = unitNode->FirstChildElement( "Factor_Ground" ) ) { Element->Attribute ( "num", &tmpdouble ); Data->factorGround = (float)tmpdouble; } else Data->factorGround = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:931:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 931 | if ( Element = unitNode->FirstChildElement( "Factor_Sea" ) ) { Element->Attribute ( "num", &tmpdouble ); Data->factorSea = (float)tmpdouble; } else Data->factorSea = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:933:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 933 | if ( Element = unitNode->FirstChildElement( "Factor_Sea" ) ) { Element->Attribute ( "num", &tmpdouble ); Data->modifiesSpeed = (float)tmpdouble; } else Data->modifiesSpeed = 0; | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp:822:6: warning: variable 'unitNum' set but not used [-Wunused-but-set-variable] 822 | int unitNum; | ^~~~~~~ savegame.cpp:823:7: warning: variable 'isVehicle' set but not used [-Wunused-but-set-variable] 823 | bool isVehicle; | ^~~~~~~~~ savegame.cpp: In constructor 'cSavegame::cSavegame(int)': savegame.cpp:33:24: warning: '%0.3d' directive writing between 3 and 11 bytes into a region of size 4 [-Wformat-overflow=] 33 | sprintf ( numberstr, "%0.3d", number ); | ^~~~~ savegame.cpp:33:23: note: directive argument in the range [-2147483648, 100] 33 | sprintf ( numberstr, "%0.3d", number ); | ^~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6545, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from main.h:36, from savegame.h:22, from savegame.cpp:20: /usr/include/bits/stdio2.h:38:34: note: '__builtin___sprintf_chk' output between 4 and 12 bytes into a destination of size 4 38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 39 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ savegame.cpp: In member function 'void cSavegame::loadVehicle(TiXmlElement*, sID&)': savegame.cpp:551:71: warning: 'number' may be used uninitialized in this function [-Wmaybe-uninitialized] 551 | cVehicle *vehicle = Server->addUnit ( x, y, &UnitsData.vehicle[number], owner, true, unitNode->FirstChildElement( "Stored_In" )==NULL ); | ^ savegame.cpp: In member function 'void cSavegame::loadBuilding(TiXmlElement*, sID&)': savegame.cpp:679:74: warning: 'number' may be used uninitialized in this function [-Wmaybe-uninitialized] 679 | cBuilding *building = Server->addUnit ( x, y, &UnitsData.building[number], owner, true ); | ^ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o client.o client.cpp In file included from client.cpp:32: menus.h: In constructor 'sClientLandData::sClientLandData()': menus.h:55:18: warning: 'sClientLandData::iLastLandY' will be initialized after [-Wreorder] 55 | int iLastLandX, iLastLandY; | ^~~~~~~~~~ menus.h:54:16: warning: 'eLandingState sClientLandData::landingState' [-Wreorder] 54 | eLandingState landingState; | ^~~~~~~~~~~~ menus.h:58:2: warning: when initialized here [-Wreorder] 58 | sClientLandData() : iLandX(0), iLandY(0), iLastLandX(0), iLastLandY(0), landingState ( LANDING_STATE_UNKNOWN ), receivedOK(true) {} | ^~~~~~~~~~~~~~~ In file included from client.cpp:32: menus.h: In constructor 'cGameDataContainer::cGameDataContainer()': menus.h:154:8: warning: 'cGameDataContainer::map' will be initialized after [-Wreorder] 154 | cMap *map; | ^~~ menus.h:144:13: warning: 'eGameTypes cGameDataContainer::type' [-Wreorder] 144 | eGameTypes type; | ^~~~ menus.h:164:2: warning: when initialized here [-Wreorder] 164 | cGameDataContainer() : settings(NULL), map(NULL), type(GAME_TYPE_SINGLE), savegameNum(-1) {} | ^~~~~~~~~~~~~~~~~~ client.cpp: In constructor 'sFX::sFX(eFXTyps, int, int)': client.cpp:64:9: warning: enumeration value 'fxMuzzleBig' not handled in switch [-Wswitch] 64 | switch ( typ ) | ^ client.cpp:64:9: warning: enumeration value 'fxMuzzleSmall' not handled in switch [-Wswitch] client.cpp:64:9: warning: enumeration value 'fxMuzzleMed' not handled in switch [-Wswitch] client.cpp:64:9: warning: enumeration value 'fxMuzzleMedLong' not handled in switch [-Wswitch] client.cpp:64:9: warning: enumeration value 'fxExploSmall' not handled in switch [-Wswitch] client.cpp:64:9: warning: enumeration value 'fxExploBig' not handled in switch [-Wswitch] client.cpp:64:9: warning: enumeration value 'fxExploAir' not handled in switch [-Wswitch] client.cpp:64:9: warning: enumeration value 'fxExploWater' not handled in switch [-Wswitch] client.cpp:64:9: warning: enumeration value 'fxHit' not handled in switch [-Wswitch] client.cpp:64:9: warning: enumeration value 'fxSmoke' not handled in switch [-Wswitch] client.cpp:64:9: warning: enumeration value 'fxBubbles' not handled in switch [-Wswitch] client.cpp:64:9: warning: enumeration value 'fxCorpse' not handled in switch [-Wswitch] client.cpp:64:9: warning: enumeration value 'fxAbsorb' not handled in switch [-Wswitch] client.cpp: In member function 'void cClient::run()': client.cpp:338:57: warning: narrowing conversion of '(SettingsData.cSettings::iScreenH - 30)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 338 | SDL_Rect bottomDisplay = {240, SettingsData.iScreenH - 30, 400, 30}; | ~~~~~~~~~~~~~~~~~~~~~~^~~~ client.cpp: In member function 'void cClient::handleMouseInput(sMouseState)': client.cpp:556:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 556 | if ( SelectedVehicle && SelectedVehicle->MenuActive && SelectedVehicle->MouseOverMenu ( mouse->x, mouse->y ) || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ client.cpp: In member function 'void cClient::drawMap(bool)': client.cpp:1549:55: warning: narrowing conversion of '(SettingsData.cSettings::iScreenW - 192)' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 1549 | SDL_Rect clipRect = { 180, 18, SettingsData.iScreenW - 192, SettingsData.iScreenH - 32 }; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ client.cpp:1549:84: warning: narrowing conversion of '(SettingsData.cSettings::iScreenH - 32)' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 1549 | SDL_Rect clipRect = { 180, 18, SettingsData.iScreenW - 192, SettingsData.iScreenH - 32 }; | ~~~~~~~~~~~~~~~~~~~~~~^~~~ client.cpp:1545:8: warning: unused variable 'factor' [-Wunused-variable] 1545 | float factor = (float)(Hud.Zoom/64.0); | ^~~~~~ client.cpp: In member function 'void cClient::displayFX()': client.cpp:2230:55: warning: narrowing conversion of '(SettingsData.cSettings::iScreenW - 192)' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 2230 | SDL_Rect clipRect = { 180, 18, SettingsData.iScreenW - 192, SettingsData.iScreenH - 32 }; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ client.cpp:2230:84: warning: narrowing conversion of '(SettingsData.cSettings::iScreenH - 32)' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 2230 | SDL_Rect clipRect = { 180, 18, SettingsData.iScreenW - 192, SettingsData.iScreenH - 32 }; | ~~~~~~~~~~~~~~~~~~~~~~^~~~ client.cpp: In member function 'void cClient::displayFXBottom()': client.cpp:2245:55: warning: narrowing conversion of '(SettingsData.cSettings::iScreenW - 192)' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 2245 | SDL_Rect clipRect = { 180, 18, SettingsData.iScreenW - 192, SettingsData.iScreenH - 32 }; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ client.cpp:2245:84: warning: narrowing conversion of '(SettingsData.cSettings::iScreenH - 32)' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 2245 | SDL_Rect clipRect = { 180, 18, SettingsData.iScreenW - 192, SettingsData.iScreenH - 32 }; | ~~~~~~~~~~~~~~~~~~~~~~^~~~ client.cpp: In member function 'void cClient::drawFX(int)': client.cpp:2339:9: warning: enumeration value 'fxTorpedo' not handled in switch [-Wswitch] 2339 | switch ( fx->typ ) | ^ client.cpp:2339:9: warning: enumeration value 'fxTracks' not handled in switch [-Wswitch] client.cpp:2339:9: warning: enumeration value 'fxBubbles' not handled in switch [-Wswitch] client.cpp:2339:9: warning: enumeration value 'fxCorpse' not handled in switch [-Wswitch] client.cpp: In member function 'void cClient::drawFXBottom(int)': client.cpp:2590:9: warning: enumeration value 'fxMuzzleBig' not handled in switch [-Wswitch] 2590 | switch ( fx->typ ) | ^ client.cpp:2590:9: warning: enumeration value 'fxMuzzleSmall' not handled in switch [-Wswitch] client.cpp:2590:9: warning: enumeration value 'fxMuzzleMed' not handled in switch [-Wswitch] client.cpp:2590:9: warning: enumeration value 'fxMuzzleMedLong' not handled in switch [-Wswitch] client.cpp:2590:9: warning: enumeration value 'fxExploSmall' not handled in switch [-Wswitch] client.cpp:2590:9: warning: enumeration value 'fxExploBig' not handled in switch [-Wswitch] client.cpp:2590:9: warning: enumeration value 'fxExploAir' not handled in switch [-Wswitch] client.cpp:2590:9: warning: enumeration value 'fxExploWater' not handled in switch [-Wswitch] client.cpp:2590:9: warning: enumeration value 'fxHit' not handled in switch [-Wswitch] client.cpp:2590:9: warning: enumeration value 'fxSmoke' not handled in switch [-Wswitch] client.cpp:2590:9: warning: enumeration value 'fxRocket' not handled in switch [-Wswitch] client.cpp:2590:9: warning: enumeration value 'fxDarkSmoke' not handled in switch [-Wswitch] client.cpp:2590:9: warning: enumeration value 'fxAbsorb' not handled in switch [-Wswitch] client.cpp: In member function 'void cClient::drawUnitCircles()': client.cpp:2695:55: warning: narrowing conversion of '(SettingsData.cSettings::iScreenW - 192)' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 2695 | SDL_Rect clipRect = { 180, 18, SettingsData.iScreenW - 192, SettingsData.iScreenH - 32 }; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ client.cpp:2695:84: warning: narrowing conversion of '(SettingsData.cSettings::iScreenH - 32)' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 2695 | SDL_Rect clipRect = { 180, 18, SettingsData.iScreenW - 192, SettingsData.iScreenH - 32 }; | ~~~~~~~~~~~~~~~~~~~~~~^~~~ client.cpp:2721:19: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 2721 | v.IsBuilding && v.BuildRounds == 0 || | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ client.cpp: In member function 'void cClient::displayDebugOutput()': client.cpp:2843:48: warning: narrowing conversion of '(SettingsData.cSettings::iScreenW - 140)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2843 | #define DEBUGOUT_X_POS (SettingsData.iScreenW-140) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ client.cpp:2852:22: note: in expansion of macro 'DEBUGOUT_X_POS' 2852 | SDL_Rect rDest = { DEBUGOUT_X_POS, iDebugOff, 20, 10 }; | ^~~~~~~~~~~~~~ client.cpp:2852:38: warning: narrowing conversion of '((cClient*)this)->cClient::iDebugOff' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2852 | SDL_Rect rDest = { DEBUGOUT_X_POS, iDebugOff, 20, 10 }; | ^~~~~~~~~ client.cpp:2854:38: warning: narrowing conversion of '((SettingsData.cSettings::iScreenW - 140) - 10)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2854 | SDL_Rect rDotDest = {DEBUGOUT_X_POS-10, iDebugOff, 10, 10 }; | ^ client.cpp:2854:43: warning: narrowing conversion of '((cClient*)this)->cClient::iDebugOff' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2854 | SDL_Rect rDotDest = {DEBUGOUT_X_POS-10, iDebugOff, 10, 10 }; | ^~~~~~~~~ client.cpp:2855:39: warning: narrowing conversion of '((SettingsData.cSettings::iScreenW - 140) + 20)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2855 | SDL_Rect rBlackOut = {DEBUGOUT_X_POS+20, iDebugOff, 0, 10 }; | ^ client.cpp:2855:44: warning: narrowing conversion of '((cClient*)this)->cClient::iDebugOff' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 2855 | SDL_Rect rBlackOut = {DEBUGOUT_X_POS+20, iDebugOff, 0, 10 }; | ^~~~~~~~~ client.cpp: In member function 'void cClient::mouseMoveCallback(bool)': client.cpp:3546:17: warning: '0' flag ignored with precision and '%d' gnu_printf format [-Wformat=] 3546 | sprintf ( str, "%0.3d-%0.3d", iX, iY ); | ^~~~~~~~~~~~~ client.cpp:3546:17: warning: '0' flag ignored with precision and '%d' gnu_printf format [-Wformat=] client.cpp: In member function 'void cClient::handleMessages()': client.cpp:3732:56: warning: narrowing conversion of 'font->cUnicodeFont::getFontHeight(FONT_LATIN_NORMAL)' from 'int' to 'Uint16' {aka 'short unsigned int'} [-Wnarrowing] 3732 | SDL_Rect rColorSrc = { 0, 0, 10, font->getFontHeight() }; | ~~~~~~~~~~~~~~~~~~~^~ client.cpp: In member function 'int cClient::HandleNetMessage(cNetMessage*)': client.cpp:4090:28: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] 4090 | if ( Vehicle->Disabled > 0 != bWasDisabled ) Vehicle->owner->DoScan(); | ~~~~~~~~~~~~~~~~~~^~~ client.cpp:4110:29: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] 4110 | if ( Building->Disabled > 0 != bWasDisabled ) Building->owner->DoScan(); | ~~~~~~~~~~~~~~~~~~~^~~ client.cpp:4034:13: warning: unused variable 'Player' [-Wunused-variable] 4034 | cPlayer *Player = getPlayerFromNumber ( message->popInt16() ); | ^~~~~~ client.cpp: In member function 'cVehicle* cClient::getVehicleFromID(int)': client.cpp:5609:22: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 5609 | if ( Vehicle->iID == iID ) return Vehicle; | ~~~~~~~~~~~~~^~~~~~ client.cpp: In member function 'cBuilding* cClient::getBuildingFromID(int)': client.cpp:5624:23: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 5624 | if ( Building->iID == iID ) return Building; | ~~~~~~~~~~~~~~^~~~~~ client.cpp:5632:22: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 5632 | if ( Building->iID == iID ) return Building; | ~~~~~~~~~~~~~~^~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o upgradecalculator.o upgradecalculator.cpp make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o vehicles.o vehicles.cpp In file included from dialog.h:22, from vehicles.cpp:25: menus.h: In constructor 'sClientLandData::sClientLandData()': menus.h:55:18: warning: 'sClientLandData::iLastLandY' will be initialized after [-Wreorder] 55 | int iLastLandX, iLastLandY; | ^~~~~~~~~~ menus.h:54:16: warning: 'eLandingState sClientLandData::landingState' [-Wreorder] 54 | eLandingState landingState; | ^~~~~~~~~~~~ menus.h:58:2: warning: when initialized here [-Wreorder] 58 | sClientLandData() : iLandX(0), iLandY(0), iLastLandX(0), iLastLandY(0), landingState ( LANDING_STATE_UNKNOWN ), receivedOK(true) {} | ^~~~~~~~~~~~~~~ In file included from dialog.h:22, from vehicles.cpp:25: menus.h: In constructor 'cGameDataContainer::cGameDataContainer()': menus.h:154:8: warning: 'cGameDataContainer::map' will be initialized after [-Wreorder] 154 | cMap *map; | ^~~ menus.h:144:13: warning: 'eGameTypes cGameDataContainer::type' [-Wreorder] 144 | eGameTypes type; | ^~~~ menus.h:164:2: warning: when initialized here [-Wreorder] 164 | cGameDataContainer() : settings(NULL), map(NULL), type(GAME_TYPE_SINGLE), savegameNum(-1) {} | ^~~~~~~~~~~~~~~~~~ vehicles.cpp: In member function 'void cVehicle::ShowDetails(bool, int, int, SDL_Surface*, bool)': vehicles.cpp:990:31: warning: narrowing conversion of '(((int)dest.SDL_Rect::x) + 2)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 990 | SDL_Rect lineRect = { dest.x+2, dest.y+14, 153, 1 }; | ~~~~~~^~ vehicles.cpp:990:41: warning: narrowing conversion of '(((int)dest.SDL_Rect::y) + 14)' from 'int' to 'Sint16' {aka 'short int'} [-Wnarrowing] 990 | SDL_Rect lineRect = { dest.x+2, dest.y+14, 153, 1 }; | ~~~~~~^~~ vehicles.cpp:1016:11: warning: enumeration value 'STORE_RES_NONE' not handled in switch [-Wswitch] 1016 | switch ( data.storeResType ) | ^ vehicles.cpp:1033:11: warning: enumeration value 'STORE_UNIT_IMG_NONE' not handled in switch [-Wswitch] 1033 | switch ( data.storeUnitsImageType ) | ^ vehicles.cpp: In member function 'void cVehicle::DrawSymbol(eSymbols, int, int, int, int, int, SDL_Surface*)': vehicles.cpp:1078:9: warning: enumeration value 'SAir' not handled in switch [-Wswitch] 1078 | switch ( sym ) | ^ vehicles.cpp: In member function 'void cVehicle::DrawSymbolBig(eSymbolsBig, int, int, int, int, int, SDL_Surface*)': vehicles.cpp:1249:9: warning: enumeration value 'SBEnergy' not handled in switch [-Wswitch] 1249 | switch ( sym ) | ^ vehicles.cpp:1249:9: warning: enumeration value 'SBHuman' not handled in switch [-Wswitch] vehicles.cpp: In member function 'void cVehicle::DrawExitPoints(sVehicle*) const': vehicles.cpp:2936:16: warning: variable 'size' set but not used [-Wunused-but-set-variable] 2936 | int spx, spy, size; | ^~~~ vehicles.cpp: In member function 'bool cVehicle::canLoad(cVehicle*, bool)': vehicles.cpp:2987:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 2987 | if ( i == data.storeUnitsTypes.size() ) return false; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vehicles.cpp: In member function 'bool cVehicle::canDoCommandoAction(int, int, cMap*, bool)': vehicles.cpp:3188:11: warning: variable 'boff' set but not used [-Wunused-but-set-variable] 3188 | int off, boff; | ^~~~ vehicles.cpp: In member function 'void cVehicle::DrawSymbol(eSymbols, int, int, int, int, int, SDL_Surface*)': vehicles.cpp:1181:14: warning: 'full.SDL_Rect::w' may be used uninitialized in this function [-Wmaybe-uninitialized] 1181 | offx = full.w; | ~~~~~^ vehicles.cpp: In member function 'void cVehicle::DrawSymbolBig(eSymbolsBig, int, int, int, int, int, SDL_Surface*)': vehicles.cpp:1330:14: warning: 'src.SDL_Rect::w' may be used uninitialized in this function [-Wmaybe-uninitialized] 1330 | maxx -= src.w; | ~~~~^ vehicles.cpp: In member function 'void cVehicle::RotateTo(int)': vehicles.cpp:1533:2: warning: 'dest' may be used uninitialized in this function [-Wmaybe-uninitialized] 1533 | if ( dest < 4 ) | ^~ vehicles.cpp: In member function 'int cVehicle::calcCommandoChance(cVehicle*, cBuilding*, bool)': vehicles.cpp:3285:41: warning: 'destTurn' may be used uninitialized in this function [-Wmaybe-uninitialized] 3285 | chance = Round( (float)(8*srcLevel)/(35*destTurn)*factor*100 ); | ~~~^~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' x86_64-alt-linux-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_AUTOVERSION_H -DRELEASE -pipe -frecord-gcc-switches -Wall -g -O2 -c -o menus.o menus.cpp In file included from menus.cpp:22: menus.h: In constructor 'sClientLandData::sClientLandData()': menus.h:55:18: warning: 'sClientLandData::iLastLandY' will be initialized after [-Wreorder] 55 | int iLastLandX, iLastLandY; | ^~~~~~~~~~ menus.h:54:16: warning: 'eLandingState sClientLandData::landingState' [-Wreorder] 54 | eLandingState landingState; | ^~~~~~~~~~~~ menus.h:58:2: warning: when initialized here [-Wreorder] 58 | sClientLandData() : iLandX(0), iLandY(0), iLastLandX(0), iLastLandY(0), landingState ( LANDING_STATE_UNKNOWN ), receivedOK(true) {} | ^~~~~~~~~~~~~~~ In file included from menus.cpp:22: menus.h: In constructor 'cGameDataContainer::cGameDataContainer()': menus.h:154:8: warning: 'cGameDataContainer::map' will be initialized after [-Wreorder] 154 | cMap *map; | ^~~ menus.h:144:13: warning: 'eGameTypes cGameDataContainer::type' [-Wreorder] 144 | eGameTypes type; | ^~~~ menus.h:164:2: warning: when initialized here [-Wreorder] 164 | cGameDataContainer() : settings(NULL), map(NULL), type(GAME_TYPE_SINGLE), savegameNum(-1) {} | ^~~~~~~~~~~~~~~~~~ menus.cpp: In destructor 'cMainMenu::~cMainMenu()': menus.cpp:618:2: warning: deleting object of polymorphic class type 'cMenuImage' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 618 | delete infoImage; | ^~~~~~~~~~~~~~~~ menus.cpp:619:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 619 | delete creditsLabel; | ^~~~~~~~~~~~~~~~~~~ menus.cpp: In destructor 'cStartMenu::~cStartMenu()': menus.cpp:699:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 699 | delete titleLabel; | ^~~~~~~~~~~~~~~~~ menus.cpp:700:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 700 | delete singleButton; | ^~~~~~~~~~~~~~~~~~~ menus.cpp:701:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 701 | delete multiButton; | ^~~~~~~~~~~~~~~~~~ menus.cpp:702:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 702 | delete preferenceButton; | ^~~~~~~~~~~~~~~~~~~~~~~ menus.cpp:703:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 703 | delete licenceButton; | ^~~~~~~~~~~~~~~~~~~~ menus.cpp:704:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 704 | delete exitButton; | ^~~~~~~~~~~~~~~~~ menus.cpp: In destructor 'cSinglePlayerMenu::~cSinglePlayerMenu()': menus.cpp:766:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 766 | delete titleLabel; | ^~~~~~~~~~~~~~~~~ menus.cpp:767:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 767 | delete newGameButton; | ^~~~~~~~~~~~~~~~~~~~ menus.cpp:768:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 768 | delete loadGameButton; | ^~~~~~~~~~~~~~~~~~~~~ menus.cpp:769:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 769 | delete backButton; | ^~~~~~~~~~~~~~~~~ menus.cpp: In destructor 'cMultiPlayersMenu::~cMultiPlayersMenu()': menus.cpp:831:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 831 | delete titleLabel; | ^~~~~~~~~~~~~~~~~ menus.cpp:832:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 832 | delete tcpHostButton; | ^~~~~~~~~~~~~~~~~~~~ menus.cpp:833:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 833 | delete tcpClientButton; | ^~~~~~~~~~~~~~~~~~~~~~ menus.cpp:834:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 834 | delete newHotseatButton; | ^~~~~~~~~~~~~~~~~~~~~~~ menus.cpp:835:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 835 | delete loadHotseatButton; | ^~~~~~~~~~~~~~~~~~~~~~~~ menus.cpp:836:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 836 | delete backButton; | ^~~~~~~~~~~~~~~~~ menus.cpp: In destructor 'cSettingsMenu::~cSettingsMenu()': menus.cpp:1008:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1008 | delete titleLabel; | ^~~~~~~~~~~~~~~~~ menus.cpp:1009:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1009 | delete okButton; | ^~~~~~~~~~~~~~~ menus.cpp:1010:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1010 | delete backButton; | ^~~~~~~~~~~~~~~~~ menus.cpp:1012:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1012 | delete metalLabel; | ^~~~~~~~~~~~~~~~~ menus.cpp:1013:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1013 | delete oilLabel; | ^~~~~~~~~~~~~~~ menus.cpp:1014:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1014 | delete goldLabel; | ^~~~~~~~~~~~~~~~ menus.cpp:1015:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1015 | delete creditsLabel; | ^~~~~~~~~~~~~~~~~~~ menus.cpp:1016:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1016 | delete bridgeheadLabel; | ^~~~~~~~~~~~~~~~~~~~~~ menus.cpp:1018:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1018 | delete clansLabel; | ^~~~~~~~~~~~~~~~~ menus.cpp:1019:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1019 | delete resFrequencyLabel; | ^~~~~~~~~~~~~~~~~~~~~~~~ menus.cpp:1020:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1020 | delete gameTypeLabel; | ^~~~~~~~~~~~~~~~~~~~ menus.cpp:1022:2: warning: deleting object of polymorphic class type 'cMenuRadioGroup' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1022 | delete metalGroup; | ^~~~~~~~~~~~~~~~~ menus.cpp:1023:2: warning: deleting object of polymorphic class type 'cMenuRadioGroup' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1023 | delete oilGroup; | ^~~~~~~~~~~~~~~ menus.cpp:1024:2: warning: deleting object of polymorphic class type 'cMenuRadioGroup' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1024 | delete goldGroup; | ^~~~~~~~~~~~~~~~ menus.cpp:1025:2: warning: deleting object of polymorphic class type 'cMenuRadioGroup' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1025 | delete creditsGroup; | ^~~~~~~~~~~~~~~~~~~ menus.cpp:1026:2: warning: deleting object of polymorphic class type 'cMenuRadioGroup' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1026 | delete bridgeheadGroup; | ^~~~~~~~~~~~~~~~~~~~~~ menus.cpp:1028:2: warning: deleting object of polymorphic class type 'cMenuRadioGroup' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1028 | delete clansGroup; | ^~~~~~~~~~~~~~~~~ menus.cpp:1029:2: warning: deleting object of polymorphic class type 'cMenuRadioGroup' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1029 | delete resFrequencyGroup; | ^~~~~~~~~~~~~~~~~~~~~~~~ menus.cpp:1030:2: warning: deleting object of polymorphic class type 'cMenuRadioGroup' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1030 | delete gameTypeGroup; | ^~~~~~~~~~~~~~~~~~~~ menus.cpp: In destructor 'cPlanetsSelectionMenu::~cPlanetsSelectionMenu()': menus.cpp:1164:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1164 | delete titleLabel; | ^~~~~~~~~~~~~~~~~ menus.cpp:1166:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1166 | delete okButton; | ^~~~~~~~~~~~~~~ menus.cpp:1167:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1167 | delete backButton; | ^~~~~~~~~~~~~~~~~ menus.cpp:1169:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1169 | delete arrowUpButton; | ^~~~~~~~~~~~~~~~~~~~ menus.cpp:1170:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1170 | delete arrowDownButton; | ^~~~~~~~~~~~~~~~~~~~~~ menus.cpp:1174:3: warning: deleting object of polymorphic class type 'cMenuImage' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1174 | delete planetImages[i]; | ^~~~~~~~~~~~~~~~~~~~~~ menus.cpp:1175:3: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1175 | delete planetTitles[i]; | ^~~~~~~~~~~~~~~~~~~~~~ menus.cpp: In destructor 'cClanSelectionMenu::~cClanSelectionMenu()': menus.cpp:1474:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1474 | delete okButton; | ^~~~~~~~~~~~~~~ menus.cpp:1475:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1475 | delete backButton; | ^~~~~~~~~~~~~~~~~ menus.cpp:1477:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1477 | delete titleLabel; | ^~~~~~~~~~~~~~~~~ menus.cpp:1478:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1478 | delete clanDescription1; | ^~~~~~~~~~~~~~~~~~~~~~~ menus.cpp:1479:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1479 | delete clanDescription2; | ^~~~~~~~~~~~~~~~~~~~~~~ menus.cpp:1483:3: warning: deleting object of polymorphic class type 'cMenuImage' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1483 | delete clanImages[i]; | ^~~~~~~~~~~~~~~~~~~~ menus.cpp:1484:3: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1484 | delete clanNames[i]; | ^~~~~~~~~~~~~~~~~~~ menus.cpp: In destructor 'cHangarMenu::~cHangarMenu()': menus.cpp:1625:2: warning: deleting object of polymorphic class type 'cMenuImage' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1625 | delete infoImage; | ^~~~~~~~~~~~~~~~ menus.cpp:1626:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1626 | delete infoText; | ^~~~~~~~~~~~~~~ menus.cpp:1627:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1627 | delete infoTextCheckBox; | ^~~~~~~~~~~~~~~~~~~~~~~ menus.cpp:1629:2: warning: deleting object of polymorphic class type 'cMenuUnitDetails' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1629 | delete unitDetails; | ^~~~~~~~~~~~~~~~~~ menus.cpp:1631:2: warning: deleting object of polymorphic class type 'cMenuUnitsList' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1631 | delete selectionList; | ^~~~~~~~~~~~~~~~~~~~ menus.cpp:1633:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1633 | delete selListUpButton; | ^~~~~~~~~~~~~~~~~~~~~~ menus.cpp:1634:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1634 | delete selListDownButton; | ^~~~~~~~~~~~~~~~~~~~~~~~ menus.cpp:1636:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1636 | delete doneButton; | ^~~~~~~~~~~~~~~~~ menus.cpp:1637:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1637 | delete backButton; | ^~~~~~~~~~~~~~~~~ menus.cpp: In destructor 'cAdvListHangarMenu::~cAdvListHangarMenu()': menus.cpp:1708:2: warning: deleting object of polymorphic class type 'cMenuUnitsList' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1708 | delete secondList; | ^~~~~~~~~~~~~~~~~ menus.cpp:1710:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1710 | delete secondListUpButton; | ^~~~~~~~~~~~~~~~~~~~~~~~~ menus.cpp:1711:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1711 | delete secondListDownButton; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ menus.cpp: In destructor 'cStartupHangarMenu::~cStartupHangarMenu()': menus.cpp:1879:2: warning: deleting object of polymorphic class type 'cMenuRadioGroup' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1879 | delete upgradeBuyGroup; | ^~~~~~~~~~~~~~~~~~~~~~ menus.cpp:1881:2: warning: deleting object of polymorphic class type 'cMenuMaterialBar' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1881 | delete materialBar; | ^~~~~~~~~~~~~~~~~~ menus.cpp:1882:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1882 | delete materialBarLabel; | ^~~~~~~~~~~~~~~~~~~~~~~ menus.cpp:1883:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1883 | delete materialBarUpButton; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ menus.cpp:1884:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 1884 | delete materialBarDownButton; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ menus.cpp: In member function 'void cStartupHangarMenu::updateUnitData()': menus.cpp:1898:11: warning: enumeration value 'UPGRADE_TYPE_NONE' not handled in switch [-Wswitch] 1898 | switch ( upgrades[j].type ) | ^ menus.cpp: In member function 'virtual void cStartupHangarMenu::generateSelectionList()': menus.cpp:2052:13: warning: unused variable 'oldSelectdBuilding' [-Wunused-variable] 2052 | sBuilding *oldSelectdBuilding = NULL; | ^~~~~~~~~~~~~~~~~~ In file included from menus.cpp:22: menus.h: In constructor 'cLandingMenu::cLandingMenu(cGameDataContainer*, cPlayer*)': menus.h:650:15: warning: 'cLandingMenu::mapSurface' will be initialized after [-Wreorder] 650 | SDL_Surface *mapSurface; | ^~~~~~~~~~ menus.h:643:22: warning: 'cGameDataContainer* cLandingMenu::gameDataContainer' [-Wreorder] 643 | cGameDataContainer *gameDataContainer; | ^~~~~~~~~~~~~~~~~ menus.cpp:2175:1: warning: when initialized here [-Wreorder] 2175 | cLandingMenu::cLandingMenu ( cGameDataContainer *gameDataContainer_, cPlayer *player_ ) : cMenu ( NULL ), hudSurface (NULL), mapSurface(NULL), gameDataContainer(gameDataContainer_), player(player_) | ^~~~~~~~~~~~ menus.cpp: In destructor 'cLandingMenu::~cLandingMenu()': menus.cpp:2199:2: warning: deleting object of polymorphic class type 'cMenuImage' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2199 | delete hudImage; | ^~~~~~~~~~~~~~~ menus.cpp:2200:2: warning: deleting object of polymorphic class type 'cMenuImage' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2200 | delete mapImage; | ^~~~~~~~~~~~~~~ menus.cpp:2201:2: warning: deleting object of polymorphic class type 'cMenuImage' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2201 | delete circlesImage; | ^~~~~~~~~~~~~~~~~~~ menus.cpp:2202:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2202 | delete infoLabel; | ^~~~~~~~~~~~~~~~ menus.cpp: In member function 'void cLandingMenu::hitPosition()': menus.cpp:2381:9: warning: enumeration value 'GAME_TYPE_HOTSEAT' not handled in switch [-Wswitch] 2381 | switch ( gameDataContainer->type ) | ^ menus.cpp: In destructor 'cNetworkMenu::~cNetworkMenu()': menus.cpp:2485:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2485 | delete backButton; | ^~~~~~~~~~~~~~~~~ menus.cpp:2486:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2486 | delete sendButton; | ^~~~~~~~~~~~~~~~~ menus.cpp:2488:2: warning: deleting object of polymorphic class type 'cMenuImage' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2488 | delete mapImage; | ^~~~~~~~~~~~~~~ menus.cpp:2489:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2489 | delete mapLabel; | ^~~~~~~~~~~~~~~ menus.cpp:2491:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2491 | delete settingsText; | ^~~~~~~~~~~~~~~~~~~ menus.cpp:2493:2: warning: deleting object of polymorphic class type 'cMenuListBox' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2493 | delete chatBox; | ^~~~~~~~~~~~~~ menus.cpp:2494:2: warning: deleting object of polymorphic class type 'cMenuLineEdit' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2494 | delete chatLine; | ^~~~~~~~~~~~~~~ menus.cpp:2496:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2496 | delete ipLabel; | ^~~~~~~~~~~~~~ menus.cpp:2497:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2497 | delete portLabel; | ^~~~~~~~~~~~~~~~ menus.cpp:2498:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2498 | delete nameLabel; | ^~~~~~~~~~~~~~~~ menus.cpp:2499:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2499 | delete colorLabel; | ^~~~~~~~~~~~~~~~~ menus.cpp:2501:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2501 | delete nextColorButton; | ^~~~~~~~~~~~~~~~~~~~~~ menus.cpp:2502:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2502 | delete prevColorButton; | ^~~~~~~~~~~~~~~~~~~~~~ menus.cpp:2503:2: warning: deleting object of polymorphic class type 'cMenuImage' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2503 | delete colorImage; | ^~~~~~~~~~~~~~~~~ menus.cpp:2505:2: warning: deleting object of polymorphic class type 'cMenuLineEdit' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2505 | delete ipLine; | ^~~~~~~~~~~~~ menus.cpp:2506:2: warning: deleting object of polymorphic class type 'cMenuLineEdit' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2506 | delete portLine; | ^~~~~~~~~~~~~~~ menus.cpp:2507:2: warning: deleting object of polymorphic class type 'cMenuLineEdit' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2507 | delete nameLine; | ^~~~~~~~~~~~~~~ menus.cpp:2509:2: warning: deleting object of polymorphic class type 'cMenuPlayersBox' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2509 | delete playersBox; | ^~~~~~~~~~~~~~~~~ menus.cpp: In member function 'void cNetworkMenu::showMap()': menus.cpp:2606:12: warning: unused variable 'rSrc' [-Wunused-variable] 2606 | SDL_Rect rSrc = { 0, 0, dest.w, dest.h }; | ^~~~ menus.cpp: In destructor 'cNetworkHostMenu::~cNetworkHostMenu()': menus.cpp:2766:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2766 | delete titleLabel; | ^~~~~~~~~~~~~~~~~ menus.cpp:2768:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2768 | delete okButton; | ^~~~~~~~~~~~~~~ menus.cpp:2770:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2770 | delete mapButton; | ^~~~~~~~~~~~~~~~ menus.cpp:2771:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2771 | delete settingsButton; | ^~~~~~~~~~~~~~~~~~~~~ menus.cpp:2772:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2772 | delete loadButton; | ^~~~~~~~~~~~~~~~~ menus.cpp:2773:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 2773 | delete startButton; | ^~~~~~~~~~~~~~~~~~ menus.cpp: In destructor 'cNetworkClientMenu::~cNetworkClientMenu()': menus.cpp:3180:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 3180 | delete titleLabel; | ^~~~~~~~~~~~~~~~~ menus.cpp:3181:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 3181 | delete connectButton; | ^~~~~~~~~~~~~~~~~~~~ menus.cpp: In destructor 'cLoadMenu::~cLoadMenu()': menus.cpp:3591:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 3591 | delete titleLabel; | ^~~~~~~~~~~~~~~~~ menus.cpp:3593:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 3593 | delete backButton; | ^~~~~~~~~~~~~~~~~ menus.cpp:3594:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 3594 | delete loadButton; | ^~~~~~~~~~~~~~~~~ menus.cpp:3596:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 3596 | delete upButton; | ^~~~~~~~~~~~~~~ menus.cpp:3597:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 3597 | delete downButton; | ^~~~~~~~~~~~~~~~~ menus.cpp:3601:3: warning: deleting object of polymorphic class type 'cMenuSaveSlot' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 3601 | delete saveSlots[i]; | ^~~~~~~~~~~~~~~~~~~ menus.cpp: In destructor 'cLoadSaveMenu::~cLoadSaveMenu()': menus.cpp:3764:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 3764 | delete exitButton; | ^~~~~~~~~~~~~~~~~ menus.cpp:3765:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 3765 | delete saveButton; | ^~~~~~~~~~~~~~~~~ menus.cpp: In destructor 'cBuildingsBuildMenu::~cBuildingsBuildMenu()': menus.cpp:3860:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 3860 | delete titleLabel; | ^~~~~~~~~~~~~~~~~ menus.cpp:3862:36: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 3862 | if ( vehicle->data.canBuildPath ) delete pathButton; | ^~~~~~~~~~~~~~~~~ menus.cpp:3864:2: warning: deleting object of polymorphic class type 'cMenuBuildSpeedHandler' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 3864 | delete speedHandler; | ^~~~~~~~~~~~~~~~~~~ menus.cpp: In destructor 'cVehiclesBuildMenu::~cVehiclesBuildMenu()': menus.cpp:3996:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 3996 | delete titleLabel; | ^~~~~~~~~~~~~~~~~ menus.cpp:3997:2: warning: deleting object of polymorphic class type 'cMenuBuildSpeedHandler' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 3997 | delete speedHandler; | ^~~~~~~~~~~~~~~~~~~ menus.cpp:3999:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 3999 | delete repeatButton; | ^~~~~~~~~~~~~~~~~~~ menus.cpp: In destructor 'cUpgradeHangarMenu::~cUpgradeHangarMenu()': menus.cpp:4133:2: warning: deleting object of polymorphic class type 'cMenuUpgradeFilter' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4133 | delete upgradeFilter; | ^~~~~~~~~~~~~~~~~~~~ menus.cpp:4134:2: warning: deleting object of polymorphic class type 'cMenuUpgradeHandler' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4134 | delete upgradeButtons; | ^~~~~~~~~~~~~~~~~~~~~ menus.cpp:4136:2: warning: deleting object of polymorphic class type 'cMenuMaterialBar' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4136 | delete goldBar; | ^~~~~~~~~~~~~~ menus.cpp:4137:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4137 | delete goldBarLabel; | ^~~~~~~~~~~~~~~~~~~ menus.cpp: In constructor 'cUpgradeMenu::cUpgradeMenu(cPlayer*)': menus.cpp:4259:143: warning: base 'cUpgradeHangarMenu' will be initialized after [-Wreorder] 4259 | cUpgradeMenu::cUpgradeMenu ( cPlayer *player ) : cUpgradeHangarMenu ( player ), cHangarMenu ( LoadPCX ( GFXOD_UPGRADE ), player, MNU_BG_ALPHA ) | ^ menus.cpp:4259:143: warning: base 'cHangarMenu' [-Wreorder] menus.cpp:4259:1: warning: when initialized here [-Wreorder] 4259 | cUpgradeMenu::cUpgradeMenu ( cPlayer *player ) : cUpgradeHangarMenu ( player ), cHangarMenu ( LoadPCX ( GFXOD_UPGRADE ), player, MNU_BG_ALPHA ) | ^~~~~~~~~~~~ menus.cpp: In destructor 'cUnitHelpMenu::~cUnitHelpMenu()': menus.cpp:4406:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4406 | delete titleLabel; | ^~~~~~~~~~~~~~~~~ menus.cpp:4408:2: warning: deleting object of polymorphic class type 'cMenuImage' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4408 | delete infoImage; | ^~~~~~~~~~~~~~~~ menus.cpp:4409:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4409 | delete infoText; | ^~~~~~~~~~~~~~~ menus.cpp:4411:2: warning: deleting object of polymorphic class type 'cMenuUnitDetails' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4411 | delete unitDetails; | ^~~~~~~~~~~~~~~~~~ menus.cpp:4413:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4413 | delete doneButton; | ^~~~~~~~~~~~~~~~~ menus.cpp:4415:2: warning: deleting object of polymorphic class type 'cMenuUnitListItem' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4415 | delete unit; | ^~~~~~~~~~~ In file included from menus.cpp:22: menus.h: In constructor 'cStorageMenu::cStorageMenu(cList&, cVehicle*, cBuilding*)': menus.h:966:21: warning: 'cStorageMenu::storageList' will be initialized after [-Wreorder] 966 | cList &storageList; | ^~~~~~~~~~~ menus.h:964:12: warning: 'cVehicle* cStorageMenu::ownerVehicle' [-Wreorder] 964 | cVehicle *ownerVehicle; | ^~~~~~~~~~~~ menus.cpp:4431:1: warning: when initialized here [-Wreorder] 4431 | cStorageMenu::cStorageMenu( cList &storageList_, cVehicle *vehicle, cBuilding *building ) : cMenu ( LoadPCX ( GFXOD_STORAGE ), MNU_BG_ALPHA ), storageList(storageList_), ownerVehicle( vehicle ), ownerBuilding(building) | ^~~~~~~~~~~~ menus.cpp: In destructor 'cStorageMenu::~cStorageMenu()': menus.cpp:4493:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4493 | delete doneButton; | ^~~~~~~~~~~~~~~~~ In file included from menus.cpp:22: menus.h: In constructor 'cMineManagerMenu::cMineManagerMenu(cBuilding*)': menus.h:1028:11: warning: 'cMineManagerMenu::subBase' will be initialized after [-Wreorder] 1028 | sSubBase subBase; | ^~~~~~~ menus.h:1027:13: warning: 'cBuilding* cMineManagerMenu::building' [-Wreorder] 1027 | cBuilding *building; | ^~~~~~~~ menus.cpp:4800:1: warning: when initialized here [-Wreorder] 4800 | cMineManagerMenu::cMineManagerMenu( cBuilding *building_ ) : cMenu ( LoadPCX(GFXOD_MINEMANAGER), MNU_BG_ALPHA ), subBase( *building_->SubBase ), building(building_) | ^~~~~~~~~~~~~~~~ menus.cpp: In destructor 'cMineManagerMenu::~cMineManagerMenu()': menus.cpp:4869:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4869 | delete titleLabel; | ^~~~~~~~~~~~~~~~~ menus.cpp:4870:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4870 | delete doneButton; | ^~~~~~~~~~~~~~~~~ menus.cpp:4876:3: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4876 | delete incButtons[i]; | ^~~~~~~~~~~~~~~~~~~~ menus.cpp:4877:3: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4877 | delete decButtons[i]; | ^~~~~~~~~~~~~~~~~~~~ menus.cpp:4879:3: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4879 | delete resourceLabels[i]; | ^~~~~~~~~~~~~~~~~~~~~~~~ menus.cpp:4880:3: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4880 | delete usageLabels[i]; | ^~~~~~~~~~~~~~~~~~~~~ menus.cpp:4881:3: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4881 | delete reserveLabels[i]; | ^~~~~~~~~~~~~~~~~~~~~~~ menus.cpp:4883:3: warning: deleting object of polymorphic class type 'cMenuMaterialBar' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4883 | delete metalBars[i]; | ^~~~~~~~~~~~~~~~~~~ menus.cpp:4884:3: warning: deleting object of polymorphic class type 'cMenuMaterialBar' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4884 | delete oilBars[i]; | ^~~~~~~~~~~~~~~~~ menus.cpp:4885:3: warning: deleting object of polymorphic class type 'cMenuMaterialBar' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4885 | delete goldBars[i]; | ^~~~~~~~~~~~~~~~~~ menus.cpp:4887:3: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4887 | delete metalBarLabels[i]; | ^~~~~~~~~~~~~~~~~~~~~~~~ menus.cpp:4888:3: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4888 | delete oilBarLabels[i]; | ^~~~~~~~~~~~~~~~~~~~~~ menus.cpp:4889:3: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4889 | delete goldBarLabels[i]; | ^~~~~~~~~~~~~~~~~~~~~~~ menus.cpp:4891:3: warning: deleting object of polymorphic class type 'cMenuMaterialBar' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 4891 | delete noneBars[i]; | ^~~~~~~~~~~~~~~~~~ menus.cpp: In destructor 'cReportsMenu::~cReportsMenu()': menus.cpp:5122:2: warning: deleting object of polymorphic class type 'cMenuRadioGroup' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 5122 | delete typeButtonGroup; | ^~~~~~~~~~~~~~~~~~~~~~ menus.cpp:5124:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 5124 | delete includedLabel; | ^~~~~~~~~~~~~~~~~~~~ menus.cpp:5125:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 5125 | delete planesCheckBtn; | ^~~~~~~~~~~~~~~~~~~~~ menus.cpp:5126:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 5126 | delete groundCheckBtn; | ^~~~~~~~~~~~~~~~~~~~~ menus.cpp:5127:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 5127 | delete seaCheckBtn; | ^~~~~~~~~~~~~~~~~~ menus.cpp:5128:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 5128 | delete stationaryCheckBtn; | ^~~~~~~~~~~~~~~~~~~~~~~~~ menus.cpp:5130:2: warning: deleting object of polymorphic class type 'cMenuLabel' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 5130 | delete borderedLabel; | ^~~~~~~~~~~~~~~~~~~~ menus.cpp:5131:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 5131 | delete buildCheckBtn; | ^~~~~~~~~~~~~~~~~~~~ menus.cpp:5132:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 5132 | delete fightCheckBtn; | ^~~~~~~~~~~~~~~~~~~~ menus.cpp:5133:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 5133 | delete damagedCheckBtn; | ^~~~~~~~~~~~~~~~~~~~~~ menus.cpp:5134:2: warning: deleting object of polymorphic class type 'cMenuCheckButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 5134 | delete stealthCheckBtn; | ^~~~~~~~~~~~~~~~~~~~~~ menus.cpp:5136:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 5136 | delete doneButton; | ^~~~~~~~~~~~~~~~~ menus.cpp:5137:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 5137 | delete upButton; | ^~~~~~~~~~~~~~~ menus.cpp:5138:2: warning: deleting object of polymorphic class type 'cMenuButton' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 5138 | delete downButton; | ^~~~~~~~~~~~~~~~~ menus.cpp:5140:2: warning: deleting object of polymorphic class type 'cMenuReportsScreen' which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor] 5140 | delete dataScreen; | ^~~~~~~~~~~~~~~~~ menus.cpp: In member function 'SDL_Surface* cMainMenu::getRandomInfoImage()': menus.cpp:652:15: warning: 'unitShow' may be used uninitialized in this function [-Wmaybe-uninitialized] 652 | lastUnitShow = unitShow; //store shown unit | ~~~~~~~~~~~~~^~~~~~~~~~ menus.cpp: In member function 'bool cNetworkHostMenu::runSavedGame()': menus.cpp:3124:21: warning: 'localPlayer' may be used uninitialized in this function [-Wmaybe-uninitialized] 3124 | Client->initPlayer ( localPlayer ); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' /bin/sh ../libtool --tag=CXX --mode=link x86_64-alt-linux-g++ -pipe -frecord-gcc-switches -Wall -g -O2 -o maxr attackJobs.o automjobs.o base.o buildings.o clans.o client.o clientevents.o dialog.o drawingcache.o events.o extendedtinyxml.o files.o hud.o input.o keys.o language.o loaddata.o log.o main.o map.o mapdownload.o menuevents.o menuitems.o menus.o mouse.o movejobs.o mveplayer.o netmessage.o network.o pcx.o player.o savegame.o SDL_flic.o server.o serverevents.o settings.o sound.o tinystr.o tinyxml.o tinyxmlerror.o tinyxmlparser.o unifonts.o upgradecalculator.o vehicles.o -lSDL -lSDL_mixer -lSDL_net libtool: link: x86_64-alt-linux-g++ -pipe -frecord-gcc-switches -Wall -g -O2 -o maxr attackJobs.o automjobs.o base.o buildings.o clans.o client.o clientevents.o dialog.o drawingcache.o events.o extendedtinyxml.o files.o hud.o input.o keys.o language.o loaddata.o log.o main.o map.o mapdownload.o menuevents.o menuitems.o menus.o mouse.o movejobs.o mveplayer.o netmessage.o network.o pcx.o player.o savegame.o SDL_flic.o server.o serverevents.o settings.o sound.o tinystr.o tinyxml.o tinyxmlerror.o tinyxmlparser.o unifonts.o upgradecalculator.o vehicles.o -lSDL -lSDL_mixer -lSDL_net make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.6750 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/maxr-buildroot + : + /bin/rm -rf -- /usr/src/tmp/maxr-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd maxr-0.2.6 + make DESTDIR=/usr/src/tmp/maxr-buildroot 'INSTALL=install -p' install make: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6' Making install in . make[1]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6' /bin/sh ./buildinfo.sh /usr/share/maxr Recreating autoversion.h Couldn't read svn info from src/.svn make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6' make[2]: Nothing to be done for 'install-exec-am'. test -z "/usr/share/maxr" || /bin/mkdir -p "/usr/src/tmp/maxr-buildroot/usr/share/maxr" make install-data-hook make[3]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6' /bin/sh /usr/src/RPM/BUILD/maxr-0.2.6/build-aux/install-sh -d /usr/src/tmp/maxr-buildroot/usr/share/maxr cp -a ./data/* /usr/src/tmp/maxr-buildroot/usr/share/maxr/ make[3]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6' make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6' make[1]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6' Making install in src make[1]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[2]: Entering directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' test -z "/usr/bin" || /bin/mkdir -p "/usr/src/tmp/maxr-buildroot/usr/bin" /bin/sh ../libtool --mode=install install -p maxr '/usr/src/tmp/maxr-buildroot/usr/bin' libtool: install: install -p maxr /usr/src/tmp/maxr-buildroot/usr/bin/maxr make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make[1]: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6/src' make: Leaving directory '/usr/src/RPM/BUILD/maxr-0.2.6' + desktop-file-install --dir=/usr/src/tmp/maxr-buildroot/usr/share/applications /usr/src/RPM/SOURCES/maxr.desktop + mkdir -p /usr/src/tmp/maxr-buildroot/usr/share/icons/hicolor/32x32/apps + install -p -m 0644 /usr/src/RPM/SOURCES/maxr.png /usr/src/tmp/maxr-buildroot/usr/share/icons/hicolor/32x32/apps/maxr.png + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/maxr-buildroot (auto) Verifying and fixing files in /usr/src/tmp/maxr-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) /usr/share/applications/maxr.desktop: performed minor cleanup: 3d2 < Encoding=UTF-8 Checking contents of files in /usr/src/tmp/maxr-buildroot/ (default) Compressing files in /usr/src/tmp/maxr-buildroot (auto) Verifying ELF objects in /usr/src/tmp/maxr-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: maxr-0.2.6-alt2_3 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.71444 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd maxr-0.2.6 + DOCDIR=/usr/src/tmp/maxr-buildroot/usr/share/doc/maxr-0.2.6 + export DOCDIR + rm -rf /usr/src/tmp/maxr-buildroot/usr/share/doc/maxr-0.2.6 + /bin/mkdir -p /usr/src/tmp/maxr-buildroot/usr/share/doc/maxr-0.2.6 + cp -prL ABOUT CHANGELOG COPYING COPYING.README /usr/src/tmp/maxr-buildroot/usr/share/doc/maxr-0.2.6 + chmod -R go-w /usr/src/tmp/maxr-buildroot/usr/share/doc/maxr-0.2.6 + chmod -R a+rX /usr/src/tmp/maxr-buildroot/usr/share/doc/maxr-0.2.6 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.b4cnpq find-provides: running scripts (alternatives,debuginfo,gir,lib,pam,perl,pkgconfig,python,shell,typelib) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Ie4uxo find-requires: running scripts (cpp,debuginfo,files,gir-js,gir-python,gir,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks,systemd-services,typelib) Requires: icon-theme-hicolor, /lib64/ld-linux-x86-64.so.2, libSDL-1.2.so.0()(64bit) >= set:lfwMFF0LACvSV4em4i1KrsF3Pa5ZwAFjHxjydDdDbRrvQoqXZbQ8yns0Ir6PEDBLLV3cxZDx8mHZeszBJIoHzt0Zph923uALb6NDAKc9ZIaMAsIZ0v6aWm7HYQP4, libSDL_mixer-1.2.so.0()(64bit) >= set:kgIdSR7alvpQY3CJ1LnsNwguoZfonPln0, libSDL_net-1.2.so.0()(64bit) >= set:jfOufyTmBRoMyZKCV80WvukIVgeAs1, libc.so.6(GLIBC_2.11)(64bit), libc.so.6(GLIBC_2.14)(64bit), libc.so.6(GLIBC_2.2.5)(64bit), libc.so.6(GLIBC_2.3)(64bit), libc.so.6(GLIBC_2.3.4)(64bit), libc.so.6(GLIBC_2.4)(64bit), libc.so.6(GLIBC_2.7)(64bit), libgcc_s.so.1(GCC_3.0)(64bit), libm.so.6(GLIBC_2.2.5)(64bit), libm.so.6(GLIBC_2.27)(64bit), libm.so.6(GLIBC_2.29)(64bit), libstdc++.so.6(CXXABI_1.3)(64bit), libstdc++.so.6(CXXABI_1.3.1)(64bit), libstdc++.so.6(CXXABI_1.3.8)(64bit), libstdc++.so.6(CXXABI_1.3.9)(64bit), libstdc++.so.6(GLIBCXX_3.4)(64bit), libstdc++.so.6(GLIBCXX_3.4.20)(64bit), libstdc++.so.6(GLIBCXX_3.4.21)(64bit), libstdc++.so.6(GLIBCXX_3.4.9)(64bit), rtld(GNU_HASH) Requires(rpmlib): rpmlib(SetVersions) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.xpe8Ep Creating maxr-debuginfo package Processing files: maxr-debuginfo-0.2.6-alt2_3 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Z0SzMo find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.bM60hp find-requires: running scripts (debuginfo) Requires: maxr = 0.2.6-alt2_3, /usr/lib/debug/lib64/ld-linux-x86-64.so.2.debug, debug64(libSDL-1.2.so.0), debug64(libSDL_mixer-1.2.so.0), debug64(libSDL_net-1.2.so.0), debug64(libc.so.6), debug64(libgcc_s.so.1), debug64(libm.so.6), debug64(libstdc++.so.6) Wrote: /usr/src/RPM/RPMS/x86_64/maxr-0.2.6-alt2_3.x86_64.rpm (w2T8.xzdio) Wrote: /usr/src/RPM/RPMS/x86_64/maxr-debuginfo-0.2.6-alt2_3.x86_64.rpm (w2T8.xzdio) 91.07user 5.40system 0:42.59elapsed 226%CPU (0avgtext+0avgdata 328264maxresident)k 0inputs+0outputs (0major+2294463minor)pagefaults 0swaps /.out/maxr-0.2.6-alt2_3.x86_64.rpm: license not found in '/usr/share/license' directory: GFDL /.out/maxr-debuginfo-0.2.6-alt2_3.x86_64.rpm: license not found in '/usr/share/license' directory: GFDL 110.11user 9.94system 1:11.10elapsed 168%CPU (0avgtext+0avgdata 328264maxresident)k 1496inputs+0outputs (0major+2837752minor)pagefaults 0swaps --- maxr-0.2.6-alt2_3.x86_64.rpm.repo 2012-01-28 22:14:10.000000000 +0000 +++ maxr-0.2.6-alt2_3.x86_64.rpm.hasher 2021-02-26 06:29:11.782589199 +0000 @@ -1327,17 +1327,25 @@ Requires: rpmlib(SetVersions) -Requires: libSDL_mixer-1.2.so.0()(64bit) >= set:lhS63Cv0ubAX4nGZl6lZhoS6uLUdiJZnIH9 +Requires: libSDL_mixer-1.2.so.0()(64bit) >= set:kgIdSR7alvpQY3CJ1LnsNwguoZfonPln0 Requires: libSDL_net-1.2.so.0()(64bit) >= set:jfOufyTmBRoMyZKCV80WvukIVgeAs1 Requires: libc.so.6(GLIBC_2.11)(64bit) +Requires: libc.so.6(GLIBC_2.14)(64bit) Requires: libc.so.6(GLIBC_2.2.5)(64bit) +Requires: libc.so.6(GLIBC_2.3)(64bit) Requires: libc.so.6(GLIBC_2.3.4)(64bit) Requires: libc.so.6(GLIBC_2.4)(64bit) +Requires: libc.so.6(GLIBC_2.7)(64bit) Requires: libgcc_s.so.1(GCC_3.0)(64bit) Requires: libm.so.6(GLIBC_2.2.5)(64bit) -Requires: libpthread.so.0(GLIBC_2.2.5)(64bit) +Requires: libm.so.6(GLIBC_2.27)(64bit) +Requires: libm.so.6(GLIBC_2.29)(64bit) Requires: libstdc++.so.6(CXXABI_1.3)(64bit) Requires: libstdc++.so.6(CXXABI_1.3.1)(64bit) +Requires: libstdc++.so.6(CXXABI_1.3.8)(64bit) +Requires: libstdc++.so.6(CXXABI_1.3.9)(64bit) Requires: libstdc++.so.6(GLIBCXX_3.4)(64bit) +Requires: libstdc++.so.6(GLIBCXX_3.4.20)(64bit) +Requires: libstdc++.so.6(GLIBCXX_3.4.21)(64bit) Requires: libstdc++.so.6(GLIBCXX_3.4.9)(64bit) Requires: rtld(GNU_HASH) -Requires: rpmlib(PayloadIsLzma) +Requires: rpmlib(PayloadIsXz) Provides: maxr = 0.2.6-alt2_3 --- maxr-debuginfo-0.2.6-alt2_3.x86_64.rpm.repo 2012-01-28 22:14:10.000000000 +0000 +++ maxr-debuginfo-0.2.6-alt2_3.x86_64.rpm.hasher 2021-02-26 06:29:11.808589231 +0000 @@ -30,2 +30,3 @@ /usr/src/debug/maxr-0.2.6/src/files.cpp 100644 +/usr/src/debug/maxr-0.2.6/src/files.h 100644 /usr/src/debug/maxr-0.2.6/src/hud.cpp 100644 @@ -59,2 +60,3 @@ /usr/src/debug/maxr-0.2.6/src/mveplayer.cpp 100644 +/usr/src/debug/maxr-0.2.6/src/mveplayer.h 100644 /usr/src/debug/maxr-0.2.6/src/netmessage.cpp 100644 @@ -64,2 +66,3 @@ /usr/src/debug/maxr-0.2.6/src/pcx.cpp 100644 +/usr/src/debug/maxr-0.2.6/src/pcx.h 100644 /usr/src/debug/maxr-0.2.6/src/player.cpp 100644 @@ -97,5 +100,4 @@ Requires: debug64(libm.so.6) -Requires: debug64(libpthread.so.0) Requires: debug64(libstdc++.so.6) -Requires: rpmlib(PayloadIsLzma) +Requires: rpmlib(PayloadIsXz) Provides: maxr-debuginfo = 0.2.6-alt2_3