=> Building games/freera build started at Wed Oct 5 04:51:08 PDT 2016 port directory: /usr/ports/games/freera building for: DragonFly pkgbox64.dragonflybsd.org 4.7-DEVELOPMENT DragonFly v4.7.0.78.g7d868-DEVELOPMENT #7: Mon Aug 1 22:25:32 PDT 2016 root@pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 maintained by: amdmi3@FreeBSD.org ident warning: no id keywords in /build/boomdata/data/.m/bleeding-edge-default/ref/../02//usr/ports/games/freera/Makefile Makefile ident: Poudriere version: 3.1-pre Host OSVERSION: 400700 Jail OSVERSION: 400702 !!! Jail is newer than host. (Jail: 400702, Host: 400700) !!! !!! This is not supported. !!! !!! Host kernel must be same or newer than jail. !!! !!! Expect build failures. !!! ---Begin Environment--- STATUS=1 SAVED_TERM=screen MASTERMNT=/build/boomdata/data/.m/bleeding-edge-default/ref PATH=/usr/local/libexec/poudriere:/sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/pkg/xorg/bin:/usr/X11R6/bin:/root/bin:/sbin:/usr/sbin POUDRIERE_BUILD_TYPE=bulk PKGNAME=freera-080203_6 OLDPWD=/root/boom PWD=/build/boomdata/data/.m/bleeding-edge-default/ref/.p/pool MASTERNAME=bleeding-edge-default TERM=cons25 USER=root HOME=/root POUDRIERE_VERSION=3.1-pre LOCALBASE=/usr/local PACKAGE_BUILDING=yes ---End Environment--- ---Begin OPTIONS List--- ---End OPTIONS List--- --CONFIGURE_ARGS-- --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- SDL_CONFIG=/usr/local/bin/sdl-config XDG_DATA_HOME=/wrkdirs/games/freera XDG_CONFIG_HOME=/wrkdirs/games/freera HOME=/wrkdirs/games/freera TMPDIR="/tmp" SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc50 --End CONFIGURE_ENV-- --MAKE_ENV-- SDL_CONFIG=/usr/local/bin/sdl-config XDG_DATA_HOME=/wrkdirs/games/freera XDG_CONFIG_HOME=/wrkdirs/games/freera HOME=/wrkdirs/games/freera TMPDIR="/tmp" NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc50 PREFIX=/usr/local LOCALBASE=/usr/local LIBDIR="/usr/lib" NOPROFILE=1 CC="cc" CFLAGS="-pipe -O2 -fno-strict-aliasing" CPP="cpp" CPPFLAGS="" LDFLAGS="" LIBS="" CXX="c++" CXXFLAGS=" -pipe -O2 -fno-strict-aliasing" MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 444" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- OSREL=4.7 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local PORTDOCS="" PORTEXAMPLES="" LIB32DIR=lib PROFILE="@comment " DOCSDIR="share/doc/freera" EXAMPLESDIR="share/examples/freera" DATADIR="share/freera" WWWDIR="www/freera" ETCDIR="etc/freera" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/freera DOCSDIR=/usr/local/share/doc/freera EXAMPLESDIR=/usr/local/share/examples/freera WWWDIR=/usr/local/www/freera ETCDIR=/usr/local/etc/freera --End SUB_LIST-- ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs NO_BACKUP=yes USE_PACKAGE_DEPENDS=yes PKG_CREATE_VERBOSE=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORT_DBDIR=/options PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles MAKE_JOBS_NUMBER=5 ---End make.conf--- =================================================== =========================================================================== =================================================== ===> freera-080203_6 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.8.7_3.txz Installing pkg-1.8.7_3... Extracting pkg-1.8.7_3: .......... done ===> freera-080203_6 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of freera-080203_6 =========================================================================== =================================================== =========================================================================== =================================================== ===> Fetching all distfiles required by freera-080203_6 for building =========================================================================== =================================================== ===> Fetching all distfiles required by freera-080203_6 for building => SHA256 Checksum OK for 080203_freera++_src.tar.gz. =========================================================================== =================================================== =========================================================================== =================================================== ===> Fetching all distfiles required by freera-080203_6 for building ===> Extracting for freera-080203_6 => SHA256 Checksum OK for 080203_freera++_src.tar.gz. =========================================================================== =================================================== =========================================================================== =================================================== ===> Patching for freera-080203_6 ===> Applying ports patches for freera-080203_6 =========================================================================== =================================================== ===> freera-080203_6 depends on file: /usr/local/bin/sdl-config - not found ===> Installing existing package /packages/All/sdl-1.2.15_7,2.txz Installing sdl-1.2.15_7,2... `-- Installing libXrender-0.9.9... | `-- Installing xproto-7.0.28... | `-- Extracting xproto-7.0.28: .......... done | `-- Installing renderproto-0.11.1... | `-- Extracting renderproto-0.11.1: .... done | `-- Installing libX11-1.6.3,1... | | `-- Installing kbproto-1.0.7... | | `-- Extracting kbproto-1.0.7: .......... done | | `-- Installing libXdmcp-1.1.2... | | `-- Extracting libXdmcp-1.1.2: ......... done | | `-- Installing libxcb-1.11.1... | | `-- Installing libxml2-2.9.4... | | `-- Extracting libxml2-2.9.4: .......... done | | `-- Installing libpthread-stubs-0.3_6... | | `-- Extracting libpthread-stubs-0.3_6: ..... done | | `-- Installing libXau-1.0.8_3... | | `-- Extracting libXau-1.0.8_3: .......... done | | `-- Extracting libxcb-1.11.1: .......... done | `-- Extracting libX11-1.6.3,1: .......... done `-- Extracting libXrender-0.9.9: .......... done `-- Installing libXrandr-1.5.0... | `-- Installing randrproto-1.5.0... | `-- Extracting randrproto-1.5.0: .... done | `-- Installing libXext-1.3.3_1,1... | | `-- Installing xextproto-7.3.0... | | `-- Extracting xextproto-7.3.0: .......... done | `-- Extracting libXext-1.3.3_1,1: .......... done `-- Extracting libXrandr-1.5.0: .......... done `-- Installing libGLU-9.0.0_2... | `-- Installing libGL-11.2.2... | | `-- Installing expat-2.2.0... | | `-- Extracting expat-2.2.0: .......... done | | `-- Installing dri2proto-2.8... | | `-- Extracting dri2proto-2.8: .... done | | `-- Installing libXdamage-1.1.4_3... | | `-- Installing libXfixes-5.0.1_3... | | | `-- Installing fixesproto-5.0... | | | `-- Extracting fixesproto-5.0: .... done | | `-- Extracting libXfixes-5.0.1_3: .......... done | | `-- Installing damageproto-1.2.1... | | `-- Extracting damageproto-1.2.1: .... done | | `-- Extracting libXdamage-1.1.4_3: ...... done | | `-- Installing libdevq-0.0.2_1... | | `-- Extracting libdevq-0.0.2_1: ....... done | | `-- Installing libXxf86vm-1.1.4_1... | | `-- Installing xf86vidmodeproto-2.3.1... | | `-- Extracting xf86vidmodeproto-2.3.1: .... done | | `-- Extracting libXxf86vm-1.1.4_1: .......... done | | `-- Installing libdrm-2.4.66,1... | | `-- Installing libpciaccess-0.13.4... | | | `-- Installing pciids-20160621... | | | `-- Extracting pciids-20160621: ..... done | | `-- Extracting libpciaccess-0.13.4: ...... done | | `-- Extracting libdrm-2.4.66,1: .......... done | | `-- Installing libelf-0.8.13_1... | | `-- Installing gettext-runtime-0.19.8.1... | | | `-- Installing indexinfo-0.2.5... | | | `-- Extracting indexinfo-0.2.5: .... done | | `-- Extracting gettext-runtime-0.19.8.1: .......... done | | `-- Extracting libelf-0.8.13_1: .......... done | | `-- Installing libxshmfence-1.2... | | `-- Extracting libxshmfence-1.2: ......... done | | `-- Installing libglapi-11.2.2... | | `-- Installing libXvMC-1.0.9... | | | `-- Installing libXv-1.0.10_3,1... | | | `-- Installing videoproto-2.3.2... | | | `-- Extracting videoproto-2.3.2: ...... done | | | `-- Extracting libXv-1.0.10_3,1: .......... done | | `-- Extracting libXvMC-1.0.9: .......... done | | `-- Extracting libglapi-11.2.2: ... done | `-- Extracting libGL-11.2.2: .......... done `-- Extracting libGLU-9.0.0_2: ...... done `-- Installing aalib-1.4.r5_11... | `-- Installing ncurses-6.0_5... | `-- Extracting ncurses-6.0_5: .......... done `-- Extracting aalib-1.4.r5_11: .......... done Extracting sdl-1.2.15_7,2: .......... done Message from ncurses-6.0_5: ===> NOTICE: The ncurses port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port Message from aalib-1.4.r5_11: ===> NOTICE: The aalib port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port Message from sdl-1.2.15_7,2: ------------------------------------------------------------------------------ Your SDL library has been built with libvgl support, which means that you can run almost any SDL application straight on your console (VESA 2.0 compatible videocard is required). To do this you have to load the vesa kernel module or enable it in your kernel, and set environment variable "SDL_VIDEODRIVER=vgl". ------------------------------------------------------------------------------ ===> freera-080203_6 depends on file: /usr/local/bin/sdl-config - found ===> Returning to build of freera-080203_6 ===> freera-080203_6 depends on file: /usr/local/bin/scons - not found ===> Installing existing package /packages/All/scons-2.5.0.txz Installing scons-2.5.0... `-- Installing python27-2.7.12... | `-- Installing readline-6.3.8... | `-- Extracting readline-6.3.8: .......... done | `-- Installing libffi-3.2.1... | `-- Extracting libffi-3.2.1: .......... done | `-- Installing libressl-2.4.3... | `-- Extracting libressl-2.4.3: .......... done `-- Extracting python27-2.7.12: .......... done `-- Installing py27-setuptools27-23.1.0... `-- Extracting py27-setuptools27-23.1.0: .......... done `-- Installing python2-2_3... `-- Extracting python2-2_3: ...... done `-- Installing m4-1.4.17_1,1... `-- Extracting m4-1.4.17_1,1: .......... done Extracting scons-2.5.0: .......... done Message from python27-2.7.12: =========================================================================== Note that some standard Python modules are provided as separate ports as they require additional dependencies. They are available as: bsddb databases/py-bsddb gdbm databases/py-gdbm sqlite3 databases/py-sqlite3 tkinter x11-toolkits/py-tkinter =========================================================================== Message from scons-2.5.0: ===> NOTICE: The scons port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> freera-080203_6 depends on file: /usr/local/bin/scons - found ===> Returning to build of freera-080203_6 =========================================================================== =================================================== ===> freera-080203_6 depends on shared library: libSDL.so - found (/usr/local/lib/libSDL.so) ===> freera-080203_6 depends on shared library: libSDL_mixer.so - not found ===> Installing existing package /packages/All/sdl_mixer-1.2.12_12.txz Installing sdl_mixer-1.2.12_12... `-- Installing flac-1.3.1_2... | `-- Installing libogg-1.3.2_1,4... | `-- Extracting libogg-1.3.2_1,4: .......... done `-- Extracting flac-1.3.1_2: .......... done `-- Installing libmikmod-3.3.8... `-- Extracting libmikmod-3.3.8: .......... done `-- Installing smpeg-0.4.4_14... `-- Extracting smpeg-0.4.4_14: .......... done `-- Installing libvorbis-1.3.5,3... `-- Extracting libvorbis-1.3.5,3: .......... done `-- Installing timidity-0.2i_1... `-- Extracting timidity-0.2i_1: .......... done Extracting sdl_mixer-1.2.12_12: ......... done Message from timidity-0.2i_1: ===> NOTICE: The timidity port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> freera-080203_6 depends on shared library: libSDL_mixer.so - found (/usr/local/lib/libSDL_mixer.so) ===> Returning to build of freera-080203_6 =========================================================================== =================================================== ===> Configuring for freera-080203_6 =========================================================================== =================================================== ===> Building for freera-080203_6 scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... c++ -o src/freera.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/freera.cpp c++ -o src/ui/selection.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/ui/selection.cpp In file included from src/include/common.h:5:0, from src/include/ccmap.h:9, from src/ui/selection.cpp:4: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ c++ -o src/ui/font.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/ui/font.cpp c++ -o src/ui/widgets.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/ui/widgets.cpp c++ -o src/ui/logger.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/ui/logger.cpp In file included from src/include/common.h:5:0, from src/include/vfs.h:8, from src/ui/font.cpp:7: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/common.h:5:0, from src/ui/widgets.cpp:3: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/common.h:5:0, from src/ui/logger.cpp:3: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/common.h:5:0, from src/freera.cpp:15: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/structure.h:9:0, from src/include/ccmap.h:11, from src/ui/selection.cpp:4: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ In file included from src/include/ccmap.h:11:0, from src/ui/selection.cpp:4: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ src/ui/font.cpp: In member function 'void Font::Load(std::__cxx11::string)': src/ui/font.cpp:235:16: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] chrdest[i].x = fntotalw; ^ src/ui/font.cpp:253:24: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] chardata[pos+i+1] = (data>>4); ^ src/ui/font.cpp: In member function 'void Font::drawText(const string&, SDL_Surface*, Uint32, Uint32, SDL_Surface*, SDL_Color, Uint32, Uint32)': src/ui/font.cpp:421:10: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] destr.x = DestStartx; ^ src/ui/font.cpp:422:10: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] destr.y = DestStarty; ^ src/ui/font.cpp:452:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] destr.x += src_rect->w+1; ^ src/ui/font.cpp:457:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 Length = destr.x -DestStartx; ^ src/ui/font.cpp:458:66: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] draw_h_line ( DestSurf, FGcolor, 0, DestSurf->h - 4, Length, 1 ); ^ src/ui/font.cpp:463:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 Length = destr.x -DestStartx; ^ src/ui/font.cpp:464:66: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] draw_h_line ( DestSurf, FGcolor, 0, DestSurf->h - 4, Length, 1 ); ^ src/ui/font.cpp:465:66: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] draw_h_line ( DestSurf, FGcolor, 0, DestSurf->h - 2, Length, 1 ); ^ In file included from src/include/playerpool.h:10:0, from src/include/graphicsengine.h:12, from src/freera.cpp:18: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/ui/selection.cpp:4:0: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ c++ -o src/ui/pause_menu.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/ui/pause_menu.cpp In file included from src/include/playerpool.h:10:0, from src/include/ai.h:8, from src/include/unit.h:17, from src/include/path.h:8, from src/ui/selection.cpp:7: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/include/path.h:8:0, from src/ui/selection.cpp:7: src/include/unit.h: In member function 'Uint8 InfantryGroup::GetFreePos() const': src/include/unit.h:458:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] return i; ^ src/include/unit.h: In member function 'Uint8 InfantryGroup::GetImageNums(Uint32**, Sint8**, Sint8**)': src/include/unit.h:478:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*xoffsets)[j]=positions[i]->getXoffset()+unitoffsets[i]; ^ src/include/unit.h:479:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*yoffsets)[j]=positions[i]->getYoffset()+unitoffsets[i+5]; ^ src/include/unit.h: In member function 'void InfantryGroup::GetSubposOffsets(Uint8, Uint8, Sint8*, Sint8*)': src/include/unit.h:488:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xoffs = unitoffsets[oldsp]-unitoffsets[newsp]; ^ src/include/unit.h:489:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *yoffs = unitoffsets[oldsp+5]-unitoffsets[newsp+5]; ^ In file included from src/ui/selection.cpp:9:0: src/include/selection.h: In member function 'Uint32 Selection::numbUnits() const': src/include/selection.h:35:53: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::__cxx11::list::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 numbUnits() const {return sel_units.size();} ^ In file included from src/include/playerpool.h:10:0, from src/include/graphicsengine.h:12, from src/ui/widgets.cpp:6: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ src/ui/widgets.cpp: In member function 'void RA_Label::Create()': src/ui/widgets.cpp:191:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Width; ^ src/ui/widgets.cpp:192:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Heigth; ^ src/ui/widgets.cpp: In member function 'void RA_Label::Draw(int, int)': src/ui/widgets.cpp:263:14: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] LabelDest.x = X; ^ src/ui/widgets.cpp:264:14: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] LabelDest.y = Y; ^ src/ui/widgets.cpp:265:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] LabelDest.w = Width; ^ src/ui/widgets.cpp:266:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] LabelDest.h = Heigth; ^ src/ui/widgets.cpp: In member function 'bool ButtonClass::handleMouseEvent(SDL_Event)': src/ui/widgets.cpp:393:65: warning: suggest parentheses around '&&' within '||' [-Wparentheses] }else if(event.type == SDL_MOUSEBUTTONUP || !this->MouseOver() && this->ButtonState != BUTTON_STATE_UP){ ^ src/ui/widgets.cpp: In member function 'void ButtonClass::setposition(int, int)': src/ui/widgets.cpp:466:20: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] SizeAndPosition.x = x; ^ src/ui/widgets.cpp:467:20: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] SizeAndPosition.y = y; ^ src/ui/widgets.cpp: In member function 'void ButtonClass::setsize(int, int)': src/ui/widgets.cpp:472:20: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] SizeAndPosition.w = w; ^ src/ui/widgets.cpp:473:20: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] SizeAndPosition.h = h; ^ src/ui/widgets.cpp: In member function 'void ButtonClass::CreateSurface()': src/ui/widgets.cpp:563:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = SizeAndPosition.w - 2; ^ src/ui/widgets.cpp:573:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = SizeAndPosition.h - 2; ^ src/ui/widgets.cpp:622:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = SizeAndPosition.w - 2; ^ src/ui/widgets.cpp:632:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = SizeAndPosition.h - 2; ^ src/ui/widgets.cpp:682:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = SizeAndPosition.w - 2; ^ src/ui/widgets.cpp:692:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = SizeAndPosition.h - 2; ^ src/ui/widgets.cpp: In member function 'void RA_WindowClass::SetupWindow(int, int, int, int)': src/ui/widgets.cpp:760:20: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] SizeAndPosition.x = Xpos; ^ src/ui/widgets.cpp:761:20: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] SizeAndPosition.y = Ypos; ^ src/ui/widgets.cpp:762:20: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] SizeAndPosition.w = Width; ^ src/ui/widgets.cpp:763:20: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] SizeAndPosition.h = Heigth; ^ src/ui/widgets.cpp: In member function 'void RA_WindowClass::ResizeWindow(int, int)': src/ui/widgets.cpp:823:20: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] SizeAndPosition.w = Width; ^ src/ui/widgets.cpp:824:20: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] SizeAndPosition.h = Heigth; ^ src/ui/widgets.cpp: In member function 'void RA_WindowClass::ChangeWindowPosition(int, int)': src/ui/widgets.cpp:847:20: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] SizeAndPosition.x = Xpos; ^ src/ui/widgets.cpp:848:20: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] SizeAndPosition.y = Ypos; ^ src/ui/widgets.cpp: In member function 'SDL_Surface* RA_WindowClass::ReadShpImage(char*, int, Uint8)': src/ui/widgets.cpp:878:60: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] TempPic->getImage(ImageNumb, &image, &shadow, palnum /*1*/); ^ src/ui/widgets.cpp: In member function 'void RA_WindowClass::DrawRaBackground()': src/ui/widgets.cpp:903:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = WindowSurface->w; ^ src/ui/widgets.cpp:904:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = WindowSurface->h; ^ src/ui/widgets.cpp:920:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = Image->w; ^ src/ui/widgets.cpp:921:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = WindowSurface->w - Image->w; ^ src/ui/widgets.cpp:922:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = WindowSurface->h; ^ src/ui/widgets.cpp:925:12: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = Image->h; ^ src/ui/widgets.cpp:931:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = Image->h; ^ src/ui/widgets.cpp:932:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = WindowSurface->w; ^ src/ui/widgets.cpp:933:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = WindowSurface->h; ^ src/ui/widgets.cpp:955:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = WindowSurface->w; ^ src/ui/widgets.cpp:956:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Image->h; ^ src/ui/widgets.cpp:961:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = Image->w; ^ src/ui/widgets.cpp:962:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = WindowSurface->w - Image->w; ^ src/ui/widgets.cpp:963:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Image->h; ^ src/ui/widgets.cpp:982:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = WindowSurface->h - Image->h; ^ src/ui/widgets.cpp:983:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = WindowSurface->w; ^ src/ui/widgets.cpp:984:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Image->h; ^ src/ui/widgets.cpp:989:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = Image->w; ^ src/ui/widgets.cpp:990:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = WindowSurface->w - Image->w; ^ src/ui/widgets.cpp:991:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Image->h; ^ src/ui/widgets.cpp:1012:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Image->w; ^ src/ui/widgets.cpp:1013:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = WindowSurface->h; ^ src/ui/widgets.cpp:1018:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = Image->h; ^ src/ui/widgets.cpp:1019:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Image->w; ^ src/ui/widgets.cpp:1020:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = WindowSurface->h - Image->h; ^ src/ui/widgets.cpp:1041:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = WindowSurface->w - Image->w; ^ src/ui/widgets.cpp:1043:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Image->w; ^ src/ui/widgets.cpp:1044:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = WindowSurface->h; ^ src/ui/widgets.cpp:1048:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = WindowSurface->w - Image->w; ^ src/ui/widgets.cpp:1049:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = Image->h; ^ src/ui/widgets.cpp:1050:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Image->w; ^ src/ui/widgets.cpp:1051:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = WindowSurface->h - Image->h; ^ src/ui/widgets.cpp:1071:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Image->w; ^ src/ui/widgets.cpp:1072:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Image->h; ^ src/ui/widgets.cpp:1089:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = WindowSurface->w - Image->w; ^ src/ui/widgets.cpp:1091:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Image->w; ^ src/ui/widgets.cpp:1092:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Image->h; ^ src/ui/widgets.cpp:1110:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = WindowSurface->h - Image->h; ^ src/ui/widgets.cpp:1111:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Image->w; ^ src/ui/widgets.cpp:1112:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Image->h; ^ src/ui/widgets.cpp:1129:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = WindowSurface->w - Image->w; ^ src/ui/widgets.cpp:1130:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = WindowSurface->h - Image->h; ^ src/ui/widgets.cpp:1131:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Image->w; ^ src/ui/widgets.cpp:1132:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Image->h; ^ src/ui/widgets.cpp:1152:11: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dest.x = EdgeOffset; ^ src/ui/widgets.cpp:1153:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = i; ^ src/ui/widgets.cpp:1154:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Image->w; ^ src/ui/widgets.cpp:1155:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Image->h; ^ src/ui/widgets.cpp:1160:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] SrcRect.w = Image->w; ^ src/ui/widgets.cpp:1161:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] SrcRect.h = Image->h; ^ src/ui/widgets.cpp:1163:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] SrcRect.h = WindowSurface->h - dest.y - botspacing; ^ src/ui/widgets.cpp:1182:11: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dest.x = WindowSurface->w - EdgeOffset - Image->w; ^ src/ui/widgets.cpp:1183:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = i; ^ src/ui/widgets.cpp:1184:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Image->w; ^ src/ui/widgets.cpp:1185:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Image->h; ^ src/ui/widgets.cpp:1189:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] SrcRect.w = Image->w; ^ src/ui/widgets.cpp:1190:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] SrcRect.h = Image->h; ^ src/ui/widgets.cpp:1193:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] SrcRect.h = WindowSurface->h - dest.y - botspacing; ^ src/ui/widgets.cpp: In member function 'unsigned int ListboxClass::CalcSliderHeight()': src/ui/widgets.cpp:1280:57: warning: conversion to 'unsigned int' from 'std::vector >::size_type {aka long unsigned int}' may alter its value [-Wconversion] return (AvailableHeight * NumbLines)/MessageList.size(); ^ src/ui/widgets.cpp: In member function 'unsigned int ListboxClass::CalcSliderYoffset()': src/ui/widgets.cpp:1294:97: warning: conversion to 'unsigned int' from 'std::vector >::size_type {aka long unsigned int}' may alter its value [-Wconversion] return (AvailableHeight - CalcSliderHeight()) * ScrollPos/(MessageList.size() - NumbLines - 1); ^ src/ui/widgets.cpp: In member function 'void ListboxClass::DrawSlider()': src/ui/widgets.cpp:1321:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Slider->w; ^ src/ui/widgets.cpp:1322:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Slider->h; ^ src/ui/widgets.cpp:1328:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Slider->w; ^ src/ui/widgets.cpp:1334:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = Slider->h - 1; ^ src/ui/widgets.cpp:1335:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Slider->w; ^ src/ui/widgets.cpp:1343:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Slider->h; ^ src/ui/widgets.cpp:1347:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = Slider->w - 1; ^ src/ui/widgets.cpp:1350:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Slider->h; ^ src/ui/widgets.cpp:1354:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = ListBoxSurface->w - LISTBOX_SCROLLBAR_WITH; ^ src/ui/widgets.cpp:1355:9: warning: conversion to 'Sint16 {aka short int}' from 'unsigned int' may alter its value [-Wconversion] dest.y = LISTBOX_ARROW_UPDOWN_HEIGTH + CalcSliderYoffset(); ^ src/ui/widgets.cpp:1356:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Slider->w; ^ src/ui/widgets.cpp:1357:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Slider->h; ^ src/ui/widgets.cpp: In member function 'SDL_Surface* ListboxClass::ReadShpImage(char*, int, Uint8)': src/ui/widgets.cpp:1378:54: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] TempPic->getImage(ImageNumb, &image, &shadow, palnum); ^ src/ui/widgets.cpp: In member function 'void ListboxClass::SetType(unsigned int)': src/ui/widgets.cpp:1400:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] ListBoxType = type; ^ src/ui/widgets.cpp: In member function 'void ListboxClass::HandleInput(SDL_Event)': src/ui/widgets.cpp:1469:100: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] Uint16 pos = (MouseYpos - Ypos - LISTBOX_BORDER_WITH) / (FontHeigth+LISTBOX_FONT_LINE_SPACING); ^ src/ui/widgets.cpp:1471:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] SelectPos = pos + ScrollPos; ^ src/ui/widgets.cpp:1479:100: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] Uint16 pos = (MouseYpos - Ypos - LISTBOX_BORDER_WITH) / (FontHeigth+LISTBOX_FONT_LINE_SPACING); ^ src/ui/widgets.cpp: In member function 'void ListboxClass::CreateListBox()': src/ui/widgets.cpp:1595:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] color.r = (color.b-40)&0xff; ^ src/ui/widgets.cpp:1617:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] color.r = (color.b-40)&0xff; ^ src/ui/widgets.cpp:1646:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = ListBoxSurface->w; ^ src/ui/widgets.cpp:1647:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = ListBoxSurface->h; ^ src/ui/widgets.cpp:1652:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = ListBoxSurface->w - LISTBOX_SCROLLBAR_WITH; ^ src/ui/widgets.cpp:1655:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = ListBoxSurface->h; ^ src/ui/widgets.cpp:1661:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = ListBoxSurface->w; ^ src/ui/widgets.cpp:1664:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = ListBoxSurface->h - 1; ^ src/ui/widgets.cpp:1668:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = ListBoxSurface->h; ^ src/ui/widgets.cpp:1670:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = ListBoxSurface->w - 1 - LISTBOX_SCROLLBAR_WITH; ^ src/ui/widgets.cpp:1672:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = ListBoxSurface->w - 1; ^ src/ui/widgets.cpp:1683:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = ListBoxSurface->w - btn_up[btn_up_down]->w; ^ src/ui/widgets.cpp:1685:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = btn_up[btn_up_down]->w; ^ src/ui/widgets.cpp:1686:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = btn_up[btn_up_down]->h; ^ src/ui/widgets.cpp:1690:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = ListBoxSurface->h - btn_down[btn_down_down]->h; ^ src/ui/widgets.cpp:1698:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'std::vector >::size_type {aka long unsigned int}' may alter its value [-Wconversion] ScrollPos = MessageList.size() - 1; ^ src/ui/widgets.cpp:1770:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = ListBoxSurface->w - LISTBOX_SCROLLBAR_WITH - 10; ^ src/ui/widgets.cpp:1771:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = this->FontHeigth; ^ src/ui/widgets.cpp:1795:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = ListBoxSurface->w - LISTBOX_SCROLLBAR_WITH - 10; ^ src/ui/widgets.cpp:1796:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = this->FontHeigth; ^ src/ui/widgets.cpp:1837:12: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = BorderWidth; ^ src/ui/widgets.cpp:1838:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = With - 2*BorderWidth; ^ src/ui/widgets.cpp:1839:12: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = (FontHeigth * i) + (Spacing * i) + BorderWidth; //TempImage->h * i; ^ src/ui/widgets.cpp:1840:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = TempImage->h; ^ c++ -o src/ui/menu.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/ui/menu.cpp src/ui/widgets.cpp: In member function 'void ListboxClass::DrawListBox(int, int)': src/ui/widgets.cpp:1865:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = Xpos; ^ src/ui/widgets.cpp:1866:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = Ypos; ^ src/ui/widgets.cpp:1867:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = With; ^ src/ui/widgets.cpp:1868:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = FontHeigth * NumbLines; ^ src/ui/widgets.cpp: In member function 'void TCheckBox::Create()': src/ui/widgets.cpp:1912:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Width; ^ src/ui/widgets.cpp:1913:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Heigth; ^ src/ui/widgets.cpp:1921:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Width-2; ^ src/ui/widgets.cpp:1922:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Heigth-2; ^ src/ui/widgets.cpp: In member function 'void TCheckBox::Draw(int, int)': src/ui/widgets.cpp:1941:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = X; ^ src/ui/widgets.cpp:1942:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = Y; ^ src/ui/widgets.cpp:1943:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Width; ^ src/ui/widgets.cpp:1944:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Heigth; ^ src/ui/widgets.cpp: In member function 'void TTextBox::Create()': src/ui/widgets.cpp:2045:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = SizeAndPosition.w-2; ^ src/ui/widgets.cpp:2046:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = SizeAndPosition.h-2; ^ src/ui/widgets.cpp:2057:7: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Ypos = (SizeAndPosition.h - TextBoxLabel.getHeight())/2; ^ src/ui/widgets.cpp:2012:12: warning: variable 'temp' set but not used [-Wunused-but-set-variable] char *temp; ^ src/ui/widgets.cpp: In member function 'char* TTextBox::getText()': src/ui/widgets.cpp:2087:49: warning: conversion to 'unsigned int' from 'std::__cxx11::basic_string::size_type {aka long unsigned int}' may alter its value [-Wconversion] this->DeleteChar(TextBoxString.size() - 1); ^ src/ui/widgets.cpp: In member function 'void TTextBox::HandleInput(SDL_Event)': src/ui/widgets.cpp:2172:60: warning: conversion to 'unsigned int' from 'std::__cxx11::basic_string::size_type {aka long unsigned int}' may alter its value [-Wconversion] this->DeleteChar(TextBoxString.size() - 1); ^ src/ui/widgets.cpp:2191:49: warning: conversion to 'unsigned int' from 'std::__cxx11::basic_string::size_type {aka long unsigned int}' may alter its value [-Wconversion] this->DeleteChar(TextBoxString.size() - 2); ^ src/ui/widgets.cpp:2205:70: warning: conversion to 'unsigned int' from 'std::__cxx11::basic_string::size_type {aka long unsigned int}' may alter its value [-Wconversion] this->DeleteChar(TextBoxString.size() - 1); ^ src/ui/widgets.cpp: In member function 'bool TTextBox::Draw(int, int)': src/ui/widgets.cpp:2224:20: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] SizeAndPosition.x = X; ^ src/ui/widgets.cpp:2225:20: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] SizeAndPosition.y = Y; ^ src/ui/widgets.cpp: In member function 'SDL_Surface* DropDownListBox::ReadShpImage(char*, int, Uint8)': src/ui/widgets.cpp:2311:54: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] TempPic->getImage(ImageNumb, &image, &shadow, palnum); ^ src/ui/widgets.cpp: In member function 'void DropDownListBox::Create()': src/ui/widgets.cpp:2359:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Spacing = (SizeAndPosition.h - ListBoxLabel.getHeight())/2; ^ src/ui/widgets.cpp:2363:182: warning: conversion to 'int' from 'std::vector >::size_type {aka long unsigned int}' may alter its value [-Wconversion] ListBoxSurface = SDL_CreateRGBSurface(SDL_SWSURFACE|SDL_SRCCOLORKEY, SizeAndPosition.w, (SizeAndPosition.h + Spacing + (SizeAndPosition.h - Spacing)* List.size() ), 16, 0, 0, 0, 0); ^ src/ui/widgets.cpp:2375:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = ListBoxSurface->w; ^ src/ui/widgets.cpp:2376:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = ListBoxSurface->h; ^ src/ui/widgets.cpp:2384:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = ListBoxSurface->w-2; ^ src/ui/widgets.cpp:2385:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = SizeAndPosition.h-2; ^ src/ui/widgets.cpp:2394:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = ListBoxSurface->w-2; ^ src/ui/widgets.cpp:2395:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = ListBoxSurface->h - 2 -SizeAndPosition.h; ^ src/ui/widgets.cpp:2410:8: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Ypos = SizeAndPosition.h + (SizeAndPosition.h - ListBoxLabel.getHeight())/2; ^ src/ui/widgets.cpp:2412:8: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Ypos = (SizeAndPosition.h - ListBoxLabel.getHeight())/2; ^ src/ui/widgets.cpp:2418:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Ypos += ListBoxLabel.getHeight()+Spacing; ^ src/ui/widgets.cpp:2455:11: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] color.r = (color.b+10)&0xff; ^ src/ui/widgets.cpp:2458:11: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] color.b = ColRed-10; ^ src/ui/widgets.cpp: In member function 'bool DropDownListBox::MouseOver()': src/ui/widgets.cpp:2507:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Spacing = (SizeAndPosition.h - ListBoxLabel.getHeight())/2; ^ src/ui/widgets.cpp: In member function 'Uint32 DropDownListBox::MouseOver_entry()': src/ui/widgets.cpp:2535:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Spacing = (SizeAndPosition.h - ListBoxLabel.getHeight())/2; ^ src/ui/widgets.cpp:2539:163: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector >::size_type {aka long unsigned int}' may alter its value [-Wconversion] return List.size() - (unsigned)(((SizeAndPosition.y + (SizeAndPosition.h + Spacing + (SizeAndPosition.h - Spacing) * List.size())) - my)/SizeAndPosition.h) - 1; ^ src/ui/widgets.cpp: In member function 'bool DropDownListBox::Draw(int, int)': src/ui/widgets.cpp:2613:20: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] SizeAndPosition.x = X; ^ src/ui/widgets.cpp:2614:20: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] SizeAndPosition.y = Y; ^ src/ui/widgets.cpp:2632:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = SizeAndPosition.x + SizeAndPosition.w - 1; ^ src/ui/widgets.cpp:2634:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = ArrowDownImage->w; ^ src/ui/widgets.cpp:2635:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = ArrowDownImage->h; ^ src/ui/widgets.cpp:2644:20: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] SizeAndPosition.h = Heigth; ^ src/ui/widgets.cpp: In constructor 'SliderControl::SliderControl(int, int, bool)': src/ui/widgets.cpp:2665:21: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] _sizeAndPosition.w = w; ^ src/ui/widgets.cpp: In member function 'bool SliderControl::Draw(int, int)': src/ui/widgets.cpp:2710:21: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] _sizeAndPosition.x = X; ^ src/ui/widgets.cpp:2711:21: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] _sizeAndPosition.y = Y; ^ src/ui/widgets.cpp: In member function 'void SliderControl::CreateSlider(int)': src/ui/widgets.cpp:2733:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = x; ^ src/ui/widgets.cpp: In member function 'void SliderControl::Create()': src/ui/widgets.cpp:2767:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = _sizeAndPosition.w-2; ^ src/ui/widgets.cpp:2768:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = _sizeAndPosition.h-2; ^ src/ui/widgets.cpp: In member function 'void SliderControl::HandleInput(SDL_Event)': src/ui/widgets.cpp:2817:5: warning: case label value exceeds maximum value for type case SDLK_LSHIFT: ^ src/ui/widgets.cpp: In member function 'Uint8 RA_ProgressBar::getProgressPosition()': src/ui/widgets.cpp:2877:9: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] return _position; ^ src/ui/widgets.cpp: In member function 'void RA_ProgressBar::setCurStep(Uint8)': src/ui/widgets.cpp:2894:32: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 perc = _curStep * 100 / _maxSteps; ^ src/ui/widgets.cpp: In member function 'bool RA_ProgressBar::HandleMouseClick()': src/ui/widgets.cpp:2954:8: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] perc = mx * 100 / _sizeAndPosition.w; ^ src/ui/widgets.cpp:2958:8: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] perc = _curStep * 100 / _maxSteps; ^ src/ui/widgets.cpp: In member function 'void RA_ProgressBar::Create()': src/ui/widgets.cpp:2994:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dest.w = (_sizeAndPosition.w-4) * _position/100; ^ src/ui/widgets.cpp:3010:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = _sizeAndPosition.h - 1; ^ src/ui/widgets.cpp:3023:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = _sizeAndPosition.w - 1; ^ src/ui/widgets.cpp:3032:9: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dest.x = (_sizeAndPosition.w-4) * _position/100; ^ src/ui/widgets.cpp:3039:9: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dest.x = (_sizeAndPosition.w-4) * _position/100; ^ src/ui/widgets.cpp:3047:9: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dest.x = (_sizeAndPosition.w-4) * _position/100 + 3; ^ src/ui/widgets.cpp:3054:9: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dest.x = (_sizeAndPosition.w-4) * _position/100; ^ src/ui/widgets.cpp:3055:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = _sizeAndPosition.h - 1; ^ src/ui/widgets.cpp: In member function 'void RA_ProgressBar::Draw(int, int)': src/ui/widgets.cpp:3067:21: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] _sizeAndPosition.x = X; ^ src/ui/widgets.cpp:3068:21: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] _sizeAndPosition.y = Y; ^ src/ui/selection.cpp: In member function 'Unit* Selection::getRandomUnit()': src/ui/selection.cpp:358:13: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] rnd = (int) ((double)sze*rand()/(RAND_MAX+1.0)); ^ src/ui/selection.cpp: In member function 'bool Selection::loadSelection(Uint8)': src/ui/selection.cpp:403:111: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] for_each(sel_units.begin(), sel_units.end(), postloadproc(lplayernum, &enemy_selected, &numattacking)); ^ src/ui/selection.cpp:404:120: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] for_each(sel_structs.begin(), sel_structs.end(), postloadproc(lplayernum, &enemy_selected, &numattacking)); ^ In file included from src/include/common.h:5:0, from src/ui/pause_menu.cpp:2: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/common.h:5:0, from src/ui/menu.cpp:2: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/playerpool.h:10:0, from src/include/graphicsengine.h:12, from src/ui/pause_menu.cpp:5: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/ui/pause_menu.cpp:8:0: src/include/cursor.h: In member function 'Uint16 Cursor::getX()': src/include/cursor.h:43:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return x+cursor_offset; ^ src/include/cursor.h: In member function 'Uint16 Cursor::getY()': src/include/cursor.h:47:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return y+cursor_offset; ^ c++ -o src/ui/sidebar.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/ui/sidebar.cpp In file included from src/ui/pause_menu.cpp:9:0: src/include/sidebar.h: In member function 'Uint16 Sidebar::width()': src/include/sidebar.h:59:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return sbar->w; ^ src/ui/pause_menu.cpp: In member function 'void PauseMenuClass::DrawMousePointer()': src/ui/pause_menu.cpp:74:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = mx; ^ src/ui/pause_menu.cpp:75:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = my; ^ src/ui/pause_menu.cpp:80:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = my_cursor->w; ^ src/ui/pause_menu.cpp:81:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = my_cursor->h; ^ src/ui/pause_menu.cpp: In member function 'void PauseMenuClass::HandleInput()': src/ui/pause_menu.cpp:118:29: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] p::ppool->getPlayer(i)->resumeBuilding(); ^ src/ui/pause_menu.cpp:125:29: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] p::ppool->getPlayer(i)->resumeBuilding(); ^ src/ui/pause_menu.cpp: In member function 'int PauseMenuClass::HandleMenu()': src/ui/pause_menu.cpp:152:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] p::ppool->getPlayer(i)->pauseBuilding(); ^ src/ui/pause_menu.cpp:144:5: warning: variable 'old_mx' set but not used [-Wunused-but-set-variable] old_mx = 0, ^ src/ui/pause_menu.cpp:145:5: warning: variable 'old_my' set but not used [-Wunused-but-set-variable] old_my = 100; ^ In file included from src/include/common.h:5:0, from src/include/buildqueue.h:7, from src/ui/sidebar.cpp:10: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/playerpool.h:10:0, from src/include/graphicsengine.h:12, from src/ui/menu.cpp:5: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/ui/menu.cpp:8:0: src/include/cursor.h: In member function 'Uint16 Cursor::getX()': src/include/cursor.h:43:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return x+cursor_offset; ^ src/include/cursor.h: In member function 'Uint16 Cursor::getY()': src/include/cursor.h:47:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return y+cursor_offset; ^ src/ui/menu.cpp: In constructor 'MenuClass::MenuClass()': src/ui/menu.cpp:76:15: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] scale_factor = MIN(1.0 * display->w / unscaled_logo->w , 1.0 * display->h / unscaled_logo->h); ^ src/ui/menu.cpp:76:15: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] src/ui/menu.cpp:79:15: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] scale_factor = MIN(1.0 * display->w / unscaled_logo->w , 1.0 * display->h / unscaled_logo->h); ^ src/ui/menu.cpp:79:15: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] src/ui/menu.cpp:237:7: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] Ypos += 14; ^ src/ui/menu.cpp:262:7: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] Ypos += 14; ^ src/ui/menu.cpp:284:7: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] Ypos += 14; ^ src/ui/menu.cpp: In member function 'void MenuClass::loadPal(const string&, SDL_Color*)': src/ui/menu.cpp:355:16: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] palette[i].r <<= 2; ^ src/ui/menu.cpp:356:16: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] palette[i].g <<= 2; ^ src/ui/menu.cpp:357:16: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] palette[i].b <<= 2; ^ src/ui/menu.cpp: In member function 'void MenuClass::DrawMenuBackground()': src/ui/menu.cpp:369:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = display->w; ^ src/ui/menu.cpp:370:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = display->h; ^ src/ui/menu.cpp:378:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = (display->w - SDLlogo->w)/2; ^ src/ui/menu.cpp:379:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = (display->h - SDLlogo->h)/2; ^ src/ui/menu.cpp: In member function 'void MenuClass::DrawMousePointer()': src/ui/menu.cpp:416:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = mx; ^ src/ui/menu.cpp:417:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = my; ^ src/ui/menu.cpp:422:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = my_cursor->w; ^ src/ui/menu.cpp:423:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = my_cursor->h; ^ src/ui/menu.cpp: In member function 'void MenuClass::HandleInput()': src/ui/menu.cpp:516:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] numb_ai_players = Numb; ^ src/ui/menu.cpp:616:34: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] pc::Config.totalplayers = 1 + numb_ai_players; ^ src/ui/menu.cpp: In member function 'int MenuClass::HandleMenu()': src/ui/menu.cpp:669:4: warning: variable 'old_mx' set but not used [-Wunused-but-set-variable] old_mx = 0, ^ src/ui/menu.cpp:670:4: warning: variable 'old_my' set but not used [-Wunused-but-set-variable] old_my = 100; ^ In file included from src/include/input.h:9:0, from src/ui/sidebar.cpp:14: src/include/selection.h: In member function 'Uint32 Selection::numbUnits() const': src/include/selection.h:35:53: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::__cxx11::list::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 numbUnits() const {return sel_units.size();} ^ src/ui/widgets.cpp: In member function 'void RA_WindowClass::DrawRaBackground()': src/ui/widgets.cpp:1181:50: warning: 'botspacing' may be used uninitialized in this function [-Wmaybe-uninitialized] for (int i = topspacing; i < (WindowSurface->h - botspacing); i+=Image->h){ ^ src/ui/widgets.cpp:1151:3: warning: 'topspacing' may be used uninitialized in this function [-Wmaybe-uninitialized] for (int i = topspacing; i < (WindowSurface->h - botspacing); i+=Image->h){ ^ In file included from src/ui/sidebar.cpp:18:0: src/include/sidebar.h: In member function 'Uint16 Sidebar::width()': src/include/sidebar.h:59:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return sbar->w; ^ In file included from src/include/playerpool.h:10:0, from src/ui/sidebar.cpp:20: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/include/structure.h:9:0, from src/include/ccmap.h:11, from src/include/unitandstructurepool.h:10, from src/ui/sidebar.cpp:21: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ c++ -o src/ui/cursor.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/ui/cursor.cpp In file included from src/include/ccmap.h:11:0, from src/include/unitandstructurepool.h:10, from src/ui/sidebar.cpp:21: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ In file included from src/include/unitandstructurepool.h:10:0, from src/ui/sidebar.cpp:21: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ src/ui/menu.cpp: In constructor 'MenuClass::MenuClass()': src/ui/menu.cpp:79:93: warning: 'unscaled_logo' may be used uninitialized in this function [-Wmaybe-uninitialized] scale_factor = MIN(1.0 * display->w / unscaled_logo->w , 1.0 * display->h / unscaled_logo->h); ^ In file included from src/ui/sidebar.cpp:21:0: src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbUnits()': src/include/unitandstructurepool.h:105:55: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbUnits (void) { return unitpool.size(); } ^ src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbStructures()': src/include/unitandstructurepool.h:110:65: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbStructures (void) { return structurepool.size(); } ^ In file included from src/ui/sidebar.cpp:22:0: src/include/unit.h: In member function 'Uint8 InfantryGroup::GetFreePos() const': src/include/unit.h:458:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] return i; ^ src/include/unit.h: In member function 'Uint8 InfantryGroup::GetImageNums(Uint32**, Sint8**, Sint8**)': src/include/unit.h:478:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*xoffsets)[j]=positions[i]->getXoffset()+unitoffsets[i]; ^ src/include/unit.h:479:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*yoffsets)[j]=positions[i]->getYoffset()+unitoffsets[i+5]; ^ src/include/unit.h: In member function 'void InfantryGroup::GetSubposOffsets(Uint8, Uint8, Sint8*, Sint8*)': src/include/unit.h:488:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xoffs = unitoffsets[oldsp]-unitoffsets[newsp]; ^ src/include/unit.h:489:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *yoffs = unitoffsets[oldsp+5]-unitoffsets[newsp+5]; ^ In file included from src/ui/sidebar.cpp:25:0: src/include/cursor.h: In member function 'Uint16 Cursor::getX()': src/include/cursor.h:43:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return x+cursor_offset; ^ src/include/cursor.h: In member function 'Uint16 Cursor::getY()': src/include/cursor.h:47:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return y+cursor_offset; ^ src/ui/sidebar.cpp: In constructor 'Sidebar::Sidebar(Player*, Uint16, const char*)': src/ui/sidebar.cpp:135:19: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] tablocation.w = tmp->w; ^ src/ui/sidebar.cpp:136:19: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] tablocation.h = tmp->h; ^ src/ui/sidebar.cpp:154:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] side += 6; ^ src/ui/sidebar.cpp:168:22: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] side += 3; ^ src/ui/sidebar.cpp:170:22: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] side -= 3; ^ src/ui/sidebar.cpp:195:21: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] radarlocation.w = radar->w; radarlocation.h = radar->h; ^ src/ui/sidebar.cpp:195:50: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] radarlocation.w = radar->w; radarlocation.h = radar->h; ^ src/ui/sidebar.cpp: In member function 'SDL_Surface* Sidebar::ReadShpImage(char*, int)': src/ui/sidebar.cpp:260:49: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] TempPic->getImage(ImageNumb, &image, &shadow, 1); ^ src/ui/sidebar.cpp: In member function 'SDL_Surface* Sidebar::getSidebarImage(SDL_Rect)': src/ui/sidebar.cpp:337:20: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = texture->h; ^ src/ui/sidebar.cpp:341:19: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src.h = texture->h; ^ src/ui/sidebar.cpp:342:58: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] for (dest.y = 0; dest.y < location.h; dest.y += dest.h) { ^ src/ui/sidebar.cpp:369:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] newdest.h = radar->h; ^ src/ui/sidebar.cpp:370:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] newdest.w = radar->w; ^ src/ui/sidebar.cpp:384:35: warning: conversion to 'Sint8 {aka signed char}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] for (Sint8 x = buttons.size()-1;x>=0;--x) { ^ src/ui/sidebar.cpp: In member function 'void Sidebar::SetupButtons(Uint16)': src/ui/sidebar.cpp:425:39: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] strip = new SHPImage(tmpname, scaleq); ^ src/ui/sidebar.cpp:431:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] geom.bh = strip->getHeight(); ^ src/ui/sidebar.cpp:432:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] geom.bw = strip->getWidth(); ^ src/ui/sidebar.cpp:437:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] geom.bh = geom.bh>>2; ^ src/ui/sidebar.cpp:439:11: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] buildbut = ((height-startoffs)/geom.bh)-2; ^ src/ui/sidebar.cpp:444:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollbase = startoffs + geom.bh*buildbut; ^ src/ui/sidebar.cpp:445:85: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] AddButton(ButtonXpos+geom.bw,scrollbase,"stripup.shp",sbo_scroll|sbo_unit|sbo_up,0); // 0 ^ src/ui/sidebar.cpp:446:82: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] AddButton(ButtonXpos,scrollbase,"stripup.shp",sbo_scroll|sbo_structure|sbo_up,0); // 1 ^ src/ui/sidebar.cpp:448:100: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] AddButton(ButtonXpos+geom.bw+(geom.bw>>1),scrollbase,"stripdn.shp",sbo_scroll|sbo_unit|sbo_down,0); // 2 ^ src/ui/sidebar.cpp:449:97: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] AddButton(ButtonXpos+(geom.bw>>1),scrollbase,"stripdn.shp",sbo_scroll|sbo_structure|sbo_down,0); // 3 ^ src/ui/sidebar.cpp:451:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollbase = startoffs + geom.bh*buildbut; ^ src/ui/sidebar.cpp:452:85: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] AddButton(ButtonXpos+geom.bw,scrollbase,"stripup.shp",sbo_scroll|sbo_unit|sbo_up,0); // 0 ^ src/ui/sidebar.cpp:453:82: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] AddButton(ButtonXpos,scrollbase,"stripup.shp",sbo_scroll|sbo_structure|sbo_up,0); // 1 ^ src/ui/sidebar.cpp:455:100: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] AddButton(ButtonXpos+geom.bw+(geom.bw>>1),scrollbase,"stripdn.shp",sbo_scroll|sbo_unit|sbo_down,0); // 2 ^ src/ui/sidebar.cpp:456:97: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] AddButton(ButtonXpos+(geom.bw>>1),scrollbase,"stripdn.shp",sbo_scroll|sbo_structure|sbo_down,0); // 3 ^ src/ui/sidebar.cpp:466:87: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] AddButton(ButtonXpos+geom.bw,startoffs+geom.bh*t,"stripus.shp",sbo_build|sbo_unit,0); ^ src/ui/sidebar.cpp:466:87: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/ui/sidebar.cpp:468:87: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] AddButton(ButtonXpos+geom.bw,startoffs+geom.bh*t,"stripna.shp",sbo_build|sbo_unit,0); ^ src/ui/sidebar.cpp:468:87: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/ui/sidebar.cpp:470:84: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] AddButton(ButtonXpos+geom.bw,startoffs+geom.bh*t,"strip.shp",sbo_build|sbo_unit,0); ^ src/ui/sidebar.cpp:470:84: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/ui/sidebar.cpp:475:90: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] AddButton(ButtonXpos,startoffs+geom.bh*t,"stripus.shp",sbo_build|sbo_structure,spalnum); ^ src/ui/sidebar.cpp:475:90: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/ui/sidebar.cpp:477:90: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] AddButton(ButtonXpos,startoffs+geom.bh*t,"stripna.shp",sbo_build|sbo_structure,spalnum); ^ src/ui/sidebar.cpp:477:90: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/ui/sidebar.cpp:479:87: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] AddButton(ButtonXpos,startoffs+geom.bh*t,"strip.shp",sbo_build|sbo_structure,spalnum); ^ src/ui/sidebar.cpp:479:87: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/ui/sidebar.cpp: In member function 'void Sidebar::GetButtonName(Uint8, char*)': src/ui/sidebar.cpp:522:65: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 VecPtrIndex = index - 3 - ((function&sbo_unit)?0:buildbut); ^ src/ui/sidebar.cpp: In member function 'void Sidebar::DrawButton(Uint8)': src/ui/sidebar.cpp:597:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] src.y = ButtonYpos/* * dest.h*/; ^ src/ui/sidebar.cpp:598:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src.w = temp->w; ^ src/ui/sidebar.cpp:614:4: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] ); ^ src/ui/sidebar.cpp:624:43: warning: conversion to 'Uint32 {aka unsigned int}' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] Uint32 length = strlen(icons[offset])-8; if (length>13) length = 13; ^ src/ui/sidebar.cpp:667:12: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] imgnum = (steps*progress)/100; ^ src/ui/sidebar.cpp: In member function 'void Sidebar::DrawPowerbar()': src/ui/sidebar.cpp:698:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Powerbar_up->w; ^ src/ui/sidebar.cpp:699:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Powerbar_up->h; ^ src/ui/sidebar.cpp:704:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = radarlocation.h + Powerbar_up->h; ^ src/ui/sidebar.cpp:705:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Powerbar_down->w; ^ src/ui/sidebar.cpp:706:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Powerbar_down->h; ^ src/ui/sidebar.cpp: In member function 'void Sidebar::UpdatePowerbar()': src/ui/sidebar.cpp:756:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Powerbar_up->w; ^ src/ui/sidebar.cpp:757:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Powerbar_up->h; ^ src/ui/sidebar.cpp:762:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = radarlocation.h + Powerbar_up->h; ^ src/ui/sidebar.cpp:763:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Powerbar_down->w; ^ src/ui/sidebar.cpp:764:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Powerbar_down->h; ^ src/ui/sidebar.cpp:774:47: warning: conversion to 'unsigned char' from 'unsigned int' may alter its value [-Wconversion] unsigned char PowerPercentage = power * 100/ MaxPower; ^ src/ui/sidebar.cpp:779:9: warning: conversion to 'Sint16 {aka short int}' from 'unsigned int' may alter its value [-Wconversion] dest.y = radarlocation.h + 31 + MaxPowerHeight - PowerHeight; ^ src/ui/sidebar.cpp:781:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'unsigned int' may alter its value [-Wconversion] dest.h = PowerHeight; ^ src/ui/sidebar.cpp:801:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x += 2; ^ src/ui/sidebar.cpp:810:9: warning: conversion to 'Sint16 {aka short int}' from 'unsigned int' may alter its value [-Wconversion] dest.y = radarlocation.h + 31 + MaxPowerHeight - (MaxPowerHeight * powerused / MaxPower) - PowerIndicator->h/2; ^ src/ui/sidebar.cpp:811:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = PowerIndicator->w; ^ src/ui/sidebar.cpp:812:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = PowerIndicator->h; ^ src/ui/sidebar.cpp: In member function 'void Sidebar::DrawSpecialIcons()': src/ui/sidebar.cpp:903:15: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] RepairLoc.y = radarlocation.h - Repair->h +2; ^ src/ui/sidebar.cpp:904:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] RepairLoc.w = Repair->w; ^ src/ui/sidebar.cpp:905:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] RepairLoc.h = Repair->h; ^ src/ui/sidebar.cpp:913:13: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] SellLoc.x = 18+IconSpacing; ^ src/ui/sidebar.cpp:914:13: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] SellLoc.y = radarlocation.h - Sell->h +2; ^ src/ui/sidebar.cpp:915:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] SellLoc.w = Sell->w; ^ src/ui/sidebar.cpp:916:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] SellLoc.h = Sell->h; ^ src/ui/sidebar.cpp:924:12: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] MapLoc.x = 18+2*IconSpacing; ^ src/ui/sidebar.cpp:925:12: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] MapLoc.y = radarlocation.h - Map->h +2; ^ src/ui/sidebar.cpp:926:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] MapLoc.w = Map->w; ^ src/ui/sidebar.cpp:927:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] MapLoc.h = Map->h; ^ src/ui/sidebar.cpp: In member function 'void Sidebar::DrawClock(Uint8, Uint8)': src/ui/sidebar.cpp:1013:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = Clocks[imgnum]->w; ^ src/ui/sidebar.cpp:1014:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = Clocks[imgnum]->h; ^ src/ui/sidebar.cpp:1010:12: warning: variable 'dest' set but not used [-Wunused-but-set-variable] SDL_Rect dest; ^ src/ui/sidebar.cpp: In member function 'void Sidebar::ClickButton(Uint8, char*, createmode_t*)': src/ui/sidebar.cpp:1059:86: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Build(index - 3 - ((f&sbo_unit)?0:buildbut),(f&sbo_unit),unitname, createmode); ^ src/ui/sidebar.cpp: In member function 'void Sidebar::UpdateAvailableLists()': src/ui/sidebar.cpp:1149:22: warning: conversion to 'Uint8 {aka unsigned char}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] prev_units_avail = uniticons.size(); ^ src/ui/sidebar.cpp:1150:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] prev_structs_avail = structicons.size(); ^ src/ui/sidebar.cpp: In member function 'void Sidebar::UpdateIcons()': src/ui/sidebar.cpp:1228:30: warning: conversion to 'Sint8 {aka signed char}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] for (Sint8 x=buttons.size()-1;x>=0;--x) { ^ src/ui/sidebar.cpp: In member function 'SDL_Surface* Sidebar::SidebarButton::Fallback(const char*)': src/ui/sidebar.cpp:1304:31: warning: conversion to 'Uint32 {aka unsigned int}' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] Uint32 slen = strlen(fname); ^ src/ui/sidebar.cpp: In member function 'void Sidebar::SidebarButton::ChangeImage(const char*, Uint8, Uint8)': src/ui/sidebar.cpp:1326:27: warning: conversion to 'Uint32 {aka unsigned int}' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] Uint32 slen = strlen(fname); ^ src/ui/sidebar.cpp:1376:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] picloc.w = pic->w; ^ src/ui/sidebar.cpp:1377:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] picloc.h = pic->h; ^ src/ui/sidebar.cpp:1380:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] picloc.h >>=2; ^ src/ui/sidebar.cpp: In member function 'virtual void Sidebar::RadarAnimEvent::run()': src/ui/sidebar.cpp:1452:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = radarFrame->h; ^ src/ui/sidebar.cpp:1467:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = radarFrame->h; ^ src/ui/sidebar.cpp:1477:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = radarFrame->h; ^ In file included from src/include/common.h:5:0, from src/ui/cursor.cpp:4: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ c++ -o src/ui/cursorpool.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/ui/cursorpool.cpp In file included from src/ui/cursor.cpp:6:0: src/include/cursor.h: In member function 'Uint16 Cursor::getX()': src/include/cursor.h:43:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return x+cursor_offset; ^ src/include/cursor.h: In member function 'Uint16 Cursor::getY()': src/include/cursor.h:47:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return y+cursor_offset; ^ In file included from src/include/common.h:5:0, from src/ui/cursorpool.cpp:2: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ c++ -o src/ui/input.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/ui/input.cpp In file included from src/include/playerpool.h:10:0, from src/include/graphicsengine.h:12, from src/ui/cursor.cpp:10: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ src/ui/cursor.cpp: In constructor 'Cursor::Cursor()': src/ui/cursor.cpp:38:57: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] transicn = new TemplateImage("trans.icn", mapscaleq, 1); ^ src/ui/cursor.cpp:41:54: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] transicn = new TemplateImage("trans.icn", mapscaleq); ^ src/ui/cursor.cpp: In member function 'void Cursor::reloadImages()': src/ui/cursor.cpp:100:29: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] setCursor(cursornum, nimgs); ^ src/ui/cursor.cpp: In member function 'void Cursor::setCursor(Uint16, Uint8)': src/ui/cursor.cpp:121:45: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] image[i] = cursorimg->getImage(cursornum+i); ^ src/ui/cursor.cpp:124:17: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] cursor_offset = -((image[0]->w)>>1); ^ src/ui/cursor.cpp: In member function 'void Cursor::setCursor(const char*)': src/ui/cursor.cpp:140:53: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] setCursor(ci->anstart, ci->anend - ci->anstart + 1); ^ src/ui/cursor.cpp: In member function 'void Cursor::setPlaceCursor(Uint8, Uint8, Uint8*)': src/ui/cursor.cpp:189:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = transw->w; ^ src/ui/cursor.cpp:190:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = transw->h; ^ src/ui/cursor.cpp:198:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x += dest.w; ^ src/ui/cursor.cpp:222:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x += dest.w; ^ src/ui/cursor.cpp:224:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y += dest.h; ^ src/ui/cursor.cpp: In member function 'void Cursor::setTooltip(std::__cxx11::string)': src/ui/cursor.cpp:279:5: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] h = 2*ToolTipLabel[0].getHeight() + 6; ^ src/ui/cursor.cpp:281:6: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] w = ToolTipLabel[0].getWidth () + 10; ^ src/ui/cursor.cpp:283:6: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] w = ToolTipLabel[1].getWidth () + 10; ^ src/ui/cursor.cpp:298:94: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] draw_solidrectangle ( TooltipSurface, CK_color, 0, 0, TooltipSurface->w, TooltipSurface->h ); ^ src/ui/cursor.cpp:298:94: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src/ui/cursor.cpp:305:82: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] draw_solidrectangle ( TooltipSurface, BG_color, 0, 0, TopTextWidth, TextHeigth ); ^ src/ui/cursor.cpp:305:82: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/ui/cursor.cpp:308:94: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] draw_solidrectangle ( TooltipSurface, BG_color, 0, TextHeigth, BottumTextWidth, TextHeigth ); ^ src/ui/cursor.cpp:308:94: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/ui/cursor.cpp:308:94: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/ui/cursor.cpp:311:71: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] draw_rectangle ( TooltipSurface, FG_color, 0, 0, TopTextWidth, 1, 1 ); ^ src/ui/cursor.cpp:312:111: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] draw_rectangle ( TooltipSurface, FG_color, TopTextWidth, TextHeigth-1, BottumTextWidth - TopTextWidth, 1, 1 ); ^ src/ui/cursor.cpp:312:111: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/ui/cursor.cpp:312:111: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/ui/cursor.cpp:315:76: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] draw_rectangle ( TooltipSurface, FG_color, 0, 0, 1, TooltipSurface->h, 1 ); ^ src/ui/cursor.cpp:318:93: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] draw_rectangle ( TooltipSurface, FG_color, 0, TooltipSurface->h-1, BottumTextWidth, 1, 1 ); ^ src/ui/cursor.cpp:318:93: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/ui/cursor.cpp:319:137: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] draw_rectangle ( TooltipSurface, FG_color, BottumTextWidth, TextHeigth, (TooltipSurface->w-(ToolTipLabel[1].getWidth () + 10)), 1, 1 ); ^ src/ui/cursor.cpp:319:137: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/ui/cursor.cpp:319:137: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/ui/cursor.cpp:322:83: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] draw_rectangle ( TooltipSurface, FG_color, TopTextWidth-1, 0, 1, TextHeigth, 1 ); ^ src/ui/cursor.cpp:322:83: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/ui/cursor.cpp:323:114: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] draw_rectangle ( TooltipSurface, FG_color, (ToolTipLabel[1].getWidth () + 10)-1, TextHeigth, 1, TextHeigth, 1 ); ^ src/ui/cursor.cpp:323:114: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/ui/cursor.cpp:323:114: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/ui/cursor.cpp:343:5: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] h = ToolTipLabel[0].getHeight() + 4; ^ src/ui/cursor.cpp:344:5: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] w = ToolTipLabel[0].getWidth () + 10; ^ src/ui/cursor.cpp:358:94: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] draw_solidrectangle ( TooltipSurface, BG_color, 0, 0, TooltipSurface->w, TooltipSurface->h ); ^ src/ui/cursor.cpp:358:94: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src/ui/cursor.cpp:361:89: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] draw_rectangle ( TooltipSurface, FG_color, 0, 0, TooltipSurface->w, TooltipSurface->h ); ^ src/ui/cursor.cpp:361:89: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] In file included from src/include/common.h:5:0, from src/include/buildqueue.h:7, from src/ui/input.cpp:7: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ src/ui/cursorpool.cpp: In member function 'cursorinfo* CursorPool::getCursorByName(const char*)': src/ui/cursorpool.cpp:35:12: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *p = toupper(*p); ^ src/ui/cursorpool.cpp:47:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] datum->anstart = cursorini->readInt(name,"start",0); ^ src/ui/cursorpool.cpp:48:22: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] datum->anend = cursorini->readInt(name,"end",0); ^ In file included from src/include/structure.h:9:0, from src/include/ccmap.h:11, from src/ui/input.cpp:8: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ c++ -o src/game/ai.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/ai.cpp In file included from src/include/ccmap.h:11:0, from src/ui/input.cpp:8: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ In file included from src/ui/input.cpp:8:0: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ In file included from src/ui/input.cpp:11:0: src/include/cursor.h: In member function 'Uint16 Cursor::getX()': src/include/cursor.h:43:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return x+cursor_offset; ^ src/include/cursor.h: In member function 'Uint16 Cursor::getY()': src/include/cursor.h:47:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return y+cursor_offset; ^ In file included from src/include/input.h:9:0, from src/ui/input.cpp:13: src/include/selection.h: In member function 'Uint32 Selection::numbUnits() const': src/include/selection.h:35:53: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::__cxx11::list::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 numbUnits() const {return sel_units.size();} ^ c++ -o src/game/weaponspool.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/weaponspool.cpp In file included from src/include/common.h:5:0, from src/game/weaponspool.cpp:3: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/common.h:5:0, from src/include/ccmap.h:9, from src/game/ai.cpp:5: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/structure.h:9:0, from src/game/weaponspool.cpp:9: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ In file included from src/game/weaponspool.cpp:9:0: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ In file included from src/include/playerpool.h:10:0, from src/ui/input.cpp:15: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ c++ -o src/game/actioneventqueue.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/actioneventqueue.cpp In file included from src/ui/input.cpp:18:0: src/include/sidebar.h: In member function 'Uint16 Sidebar::width()': src/include/sidebar.h:59:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return sbar->w; ^ In file included from src/include/playerpool.h:10:0, from src/include/ai.h:8, from src/include/unit.h:17, from src/game/weaponspool.cpp:10: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/game/weaponspool.cpp:10:0: src/include/unit.h: In member function 'Uint8 InfantryGroup::GetFreePos() const': src/include/unit.h:458:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] return i; ^ src/include/unit.h: In member function 'Uint8 InfantryGroup::GetImageNums(Uint32**, Sint8**, Sint8**)': src/include/unit.h:478:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*xoffsets)[j]=positions[i]->getXoffset()+unitoffsets[i]; ^ src/include/unit.h:479:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*yoffsets)[j]=positions[i]->getYoffset()+unitoffsets[i+5]; ^ src/include/unit.h: In member function 'void InfantryGroup::GetSubposOffsets(Uint8, Uint8, Sint8*, Sint8*)': src/include/unit.h:488:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xoffs = unitoffsets[oldsp]-unitoffsets[newsp]; ^ src/include/unit.h:489:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *yoffs = unitoffsets[oldsp+5]-unitoffsets[newsp+5]; ^ In file included from src/include/unitandstructurepool.h:10:0, from src/game/weaponspool.cpp:11: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ In file included from src/game/weaponspool.cpp:11:0: src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbUnits()': src/include/unitandstructurepool.h:105:55: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbUnits (void) { return unitpool.size(); } ^ src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbStructures()': src/include/unitandstructurepool.h:110:65: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbStructures (void) { return structurepool.size(); } ^ src/game/weaponspool.cpp: In constructor 'Warhead::Warhead(const char*, INIFile*)': src/game/weaponspool.cpp:32:24: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] explosionimage = pc::imagepool->size()<<16; ^ src/game/weaponspool.cpp:34:51: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] temp = new SHPImage(tmpname, mapscaleq); ^ src/game/weaponspool.cpp:42:25: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] explosionanimsteps = temp->getNumImg(); ^ src/game/weaponspool.cpp: In constructor 'Projectile::Projectile(const char*, INIFile*)': src/game/weaponspool.cpp:86:18: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] imagenum = pc::imagepool->size()<<16; ^ src/game/weaponspool.cpp:88:49: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] temp = new SHPImage(iname, mapscaleq); ^ src/game/weaponspool.cpp:98:18: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] rotationimgs = temp->getNumImg(); ^ src/game/weaponspool.cpp: In constructor 'Weapon::Weapon(const char*)': src/game/weaponspool.cpp:154:14: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *p++ = toupper(*p); ^ src/game/weaponspool.cpp:165:14: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] *p++ = toupper(*p); ^ src/game/weaponspool.cpp:205:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] speed = weapini->readInt(wname, "speed", 100); ^ src/game/weaponspool.cpp:206:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] range = weapini->readInt(wname, "range", 4); ^ src/game/weaponspool.cpp:207:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] reloadtime = weapini->readInt(wname, "reloadtime", 50); ^ src/game/weaponspool.cpp:208:17: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] damage = weapini->readInt(wname, "damage", 10); ^ src/game/weaponspool.cpp:209:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] burst = weapini->readInt(wname, "burst", 1); ^ src/game/weaponspool.cpp:213:17: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] fireimage = pc::imagepool->size()<<16; ^ src/game/weaponspool.cpp:227:16: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] fuel = weapini->readInt(wname, "fuel", 0); ^ src/game/weaponspool.cpp:228:16: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] seekfuel = weapini->readInt(wname, "seekfuel", 0); ^ src/game/weaponspool.cpp:241:59: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] fireanimtemp = new SHPImage(faimage, mapscaleq); ^ src/game/weaponspool.cpp:247:23: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] numfireimages = fireanimtemp->getNumImg(); ^ src/game/weaponspool.cpp:248:27: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] numfiredirections = weapini->readInt(faname, "directions", 1); ^ src/game/weaponspool.cpp:262:71: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] fireanimtemp = new SHPImage(faimage, mapscaleq); ^ src/game/weaponspool.cpp:266:36: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] fireimages[i-1]=(pc::imagepool->size()<<16); ^ src/game/weaponspool.cpp:267:35: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] numfireimages += fireanimtemp->getNumImg(); ^ In file included from src/ui/input.cpp:21:0: src/include/unit.h: In member function 'Uint8 InfantryGroup::GetFreePos() const': src/include/unit.h:458:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] return i; ^ src/include/unit.h: In member function 'Uint8 InfantryGroup::GetImageNums(Uint32**, Sint8**, Sint8**)': src/include/unit.h:478:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*xoffsets)[j]=positions[i]->getXoffset()+unitoffsets[i]; ^ src/include/unit.h:479:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*yoffsets)[j]=positions[i]->getYoffset()+unitoffsets[i+5]; ^ src/include/unit.h: In member function 'void InfantryGroup::GetSubposOffsets(Uint8, Uint8, Sint8*, Sint8*)': src/include/unit.h:488:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xoffs = unitoffsets[oldsp]-unitoffsets[newsp]; ^ src/include/unit.h:489:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *yoffs = unitoffsets[oldsp+5]-unitoffsets[newsp+5]; ^ src/game/weaponspool.cpp: In member function 'void Weapon::fire(UnitOrStructure*, Uint16, Uint8)': src/game/weaponspool.cpp:312:20: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] facing >>= 2; ^ In file included from src/ui/input.cpp:22:0: src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbUnits()': src/include/unitandstructurepool.h:105:55: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbUnits (void) { return unitpool.size(); } ^ src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbStructures()': src/include/unitandstructurepool.h:110:65: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbStructures (void) { return structurepool.size(); } ^ src/ui/input.cpp: In constructor 'Input::Input(Uint16, Uint16, SDL_Rect*)': src/ui/input.cpp:52:61: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] currentaction(a_none), rcd_scrolling(false), sx(0), sy(0) ^ src/ui/input.cpp: In member function 'void Input::handle()': src/ui/input.cpp:100:36: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] markrect.x = mx; ^ src/ui/input.cpp:101:36: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] markrect.y = my; ^ src/ui/input.cpp:116:44: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] if (pc::sidebar->getSpecialButtonState(i) == 1){ // button down ^ src/ui/input.cpp:118:45: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] pc::sidebar->setSpecialButtonState(i, 0); // Set button up ^ src/ui/input.cpp:121:45: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] pc::sidebar->setSpecialButtonState(i, 2); // Set button down ^ src/ui/input.cpp:129:45: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] if (pc::sidebar->getSpecialButtonState(i) == 2){ // button down ^ src/ui/input.cpp:131:45: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] pc::sidebar->setSpecialButtonState(i, 0); // Set button up ^ src/ui/input.cpp:232:59: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 groupnum = event.key.keysym.sym-48; ^ src/ui/input.cpp:261:57: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 locnum = event.key.keysym.sym-282; ^ src/ui/input.cpp:325:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] k_temp &= ~k_shift; ^ src/ui/input.cpp:330:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] k_temp &= ~k_ctrl; ^ src/ui/input.cpp:335:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] k_temp &= ~k_alt; ^ src/ui/input.cpp: In member function 'void Input::updateMousePos()': src/ui/input.cpp:469:48: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] int button = pc::sidebar->getButton( mx, my ); ^ src/ui/input.cpp:469:48: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src/ui/input.cpp:473:42: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] pc::sidebar->DrawButtonTooltip(button); ^ src/ui/input.cpp:489:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] markrect.w = maparea->x+maparea->w-1; ^ src/ui/input.cpp:491:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] markrect.w = mx; ^ src/ui/input.cpp:493:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] markrect.h = my = maparea->y; ^ src/ui/input.cpp:495:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] markrect.h = maparea->y+maparea->h-1; ^ src/ui/input.cpp:497:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] markrect.h = my; ^ src/ui/input.cpp:507:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] markrect.w = mx; ^ src/ui/input.cpp:508:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] markrect.h = my; ^ src/ui/input.cpp:526:61: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] tmp = p::ccmap->absScroll((mx-sx),(my-sy), 5); ^ src/ui/input.cpp:526:61: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] src/ui/input.cpp:537:27: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] cursornum += CUR_SCROLLUP; ^ src/ui/input.cpp:540:27: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] cursornum += CUR_SCROLLUL; ^ src/ui/input.cpp:543:27: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] cursornum += CUR_SCROLLLEFT; ^ src/ui/input.cpp:546:27: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] cursornum += CUR_SCROLLDL; ^ src/ui/input.cpp:549:27: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] cursornum += CUR_SCROLLDOWN; ^ src/ui/input.cpp:552:27: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] cursornum += CUR_SCROLLDR; ^ src/ui/input.cpp:555:27: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] cursornum += CUR_SCROLLRIGHT; ^ src/ui/input.cpp:558:27: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] cursornum += CUR_SCROLLUR; ^ src/ui/input.cpp:571:37: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] pc::cursor->setXY(mx, my); ^ src/ui/input.cpp:571:37: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src/ui/input.cpp:577:29: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] pc::cursor->setXY(mx, my); ^ src/ui/input.cpp:577:29: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src/ui/input.cpp: In member function 'void Input::clickedTile(int, int, Uint16*, Uint8*)': src/ui/input.cpp:862:8: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] tx = mx/tilewidth; ^ src/ui/input.cpp:863:8: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ty = my/tilewidth; ^ src/ui/input.cpp:867:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] *pos = (my/tilewidth)*p::ccmap->getWidth()+mx/tilewidth; ^ src/ui/input.cpp:868:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *pos += p::ccmap->getScrollPos(); ^ src/ui/input.cpp:871:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] xrest = mx%tilewidth; ^ src/ui/input.cpp:872:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] yrest = my%tilewidth; ^ src/ui/input.cpp:879:18: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] (*subpos)+=2; ^ src/ui/input.cpp: In member function 'void Input::selectRegion()': src/ui/input.cpp:1100:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] startx = (min(markrect.x, (Sint16)markrect.w)-maparea->x+p::ccmap->getXTileScroll())/tilewidth+p::ccmap->getXScroll(); ^ src/ui/input.cpp:1101:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] starty = (min(markrect.y, (Sint16)markrect.h)-maparea->y+p::ccmap->getYTileScroll())/tilewidth+p::ccmap->getYScroll(); ^ src/ui/input.cpp:1102:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] stopx = (abs(markrect.x - markrect.w)+1)/tilewidth+startx; ^ src/ui/input.cpp:1103:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] stopy = (abs(markrect.y - markrect.h)+1)/tilewidth+starty; ^ src/ui/input.cpp:1105:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] stopx = p::ccmap->getWidth() - 1; ^ src/ui/input.cpp:1107:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] stopy = p::ccmap->getHeight() - 1; ^ src/ui/input.cpp:1111:20: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] curpos = scannery*p::ccmap->getWidth()+scannerx; ^ src/ui/input.cpp: In member function 'void Input::clickSidebar(int, int, bool)': src/ui/input.cpp:1143:48: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] butclick = pc::sidebar->getSpecialButton(mx,my); ^ src/ui/input.cpp:1143:48: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src/ui/input.cpp:1146:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (butclick == 1 && pc::sidebar->getSpecialButtonState(2) == 0 || butclick == 2 && pc::sidebar->getSpecialButtonState(1) == 0 || butclick == 3){ ^ src/ui/input.cpp:1152:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] butclick = pc::sidebar->getButton(mx,my); ^ src/ui/input.cpp:1152:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src/ui/input.cpp: In member function 'Uint16 Input::checkPlace(int, int)': src/ui/input.cpp:1235:33: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] pc::cursor->setXY(mx, my); ^ src/ui/input.cpp:1235:33: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src/ui/input.cpp:1242:33: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] pc::cursor->setXY(mx, my); ^ src/ui/input.cpp:1242:33: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src/ui/input.cpp:1249:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] delta = (maparea->w / tilewidth)+p::ccmap->getXScroll(); ^ src/ui/input.cpp:1250:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] delta -= (x + (placetype->getXsize()-1)); ^ src/ui/input.cpp:1252:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] x += delta-1; ^ src/ui/input.cpp:1260:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] pos = p::ccmap->translateToPos(x,y); ^ src/ui/input.cpp:1262:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] delta = (maparea->h / tilewidth)+p::ccmap->getYScroll(); ^ src/ui/input.cpp:1263:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] delta -= (y + (placetype->getYsize()-1)); ^ src/ui/input.cpp:1265:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] y += delta-1; ^ src/ui/input.cpp:1271:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] pos = p::ccmap->translateToPos(x,y); ^ src/ui/input.cpp:1283:20: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] curpos = pos+placeypos*p::ccmap->getWidth()+placexpos; ^ src/ui/input.cpp:1284:22: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] placeoff = placeypos*placetype->getXsize()+placexpos; ^ src/ui/input.cpp:1316:29: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] pc::cursor->setXY(mx, my); ^ src/ui/input.cpp:1316:29: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] In file included from src/include/structure.h:9:0, from src/include/ccmap.h:11, from src/game/ai.cpp:5: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ In file included from src/include/ccmap.h:11:0, from src/game/ai.cpp:5: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ c++ -o src/game/buildqueue.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/buildqueue.cpp In file included from src/game/ai.cpp:5:0: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ In file included from src/include/playerpool.h:10:0, from src/include/ai.h:8, from src/game/ai.cpp:7: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ c++ -o src/game/loadmap.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/loadmap.cpp In file included from src/game/ai.cpp:9:0: src/include/unit.h: In member function 'Uint8 InfantryGroup::GetFreePos() const': src/include/unit.h:458:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] return i; ^ src/include/unit.h: In member function 'Uint8 InfantryGroup::GetImageNums(Uint32**, Sint8**, Sint8**)': src/include/unit.h:478:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*xoffsets)[j]=positions[i]->getXoffset()+unitoffsets[i]; ^ src/include/unit.h:479:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*yoffsets)[j]=positions[i]->getYoffset()+unitoffsets[i+5]; ^ src/include/unit.h: In member function 'void InfantryGroup::GetSubposOffsets(Uint8, Uint8, Sint8*, Sint8*)': src/include/unit.h:488:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xoffs = unitoffsets[oldsp]-unitoffsets[newsp]; ^ src/include/unit.h:489:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *yoffs = unitoffsets[oldsp+5]-unitoffsets[newsp+5]; ^ In file included from src/game/ai.cpp:11:0: src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbUnits()': src/include/unitandstructurepool.h:105:55: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbUnits (void) { return unitpool.size(); } ^ src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbStructures()': src/include/unitandstructurepool.h:110:65: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbStructures (void) { return structurepool.size(); } ^ src/game/ai.cpp: In constructor 'ai::ai()': src/game/ai.cpp:49:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Rules.AttackInterval = rules_ini->readInt ("AI", "AttackInterval", 3); ^ src/game/ai.cpp:50:21: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Rules.AttackDelay = rules_ini->readInt ("AI", "AttackDelay", 5); ^ src/game/ai.cpp:51:68: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.PatrolScan = rules_ini->readFloat ("AI", "PatrolScan", .016); ^ src/game/ai.cpp:52:23: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Rules.CreditReserve = rules_ini->readInt ("AI", "CreditReserve", 100); ^ src/game/ai.cpp:53:66: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.PathDelay = rules_ini->readFloat ("AI", "PathDelay", .01); ^ src/game/ai.cpp:54:21: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Rules.OreNearScan = rules_ini->readInt ("AI", "OreNearScan", 6); ^ src/game/ai.cpp:55:20: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Rules.OreFarScan = rules_ini->readInt ("AI", "OreFarScan", 48); ^ src/game/ai.cpp:56:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Rules.AutocreateTime = rules_ini->readInt ("AI", "AutocreateTime", 5); ^ src/game/ai.cpp:58:26: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Rules.InfantryBaseMult = rules_ini->readInt ("AI", "InfantryBaseMult", 1); ^ src/game/ai.cpp:59:22: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Rules.PowerSurplus = rules_ini->readInt ("AI", "PowerSurplus", 50); ^ src/game/ai.cpp:60:21: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Rules.BaseSizeAdd = rules_ini->readInt ("AI", "BaseSizeAdd", 3); ^ src/game/ai.cpp:61:73: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.RefineryRatio = rules_ini->readFloat ("AI", "RefineryRatio", .16); ^ src/game/ai.cpp:62:23: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Rules.RefineryLimit = rules_ini->readInt ("AI", "RefineryLimit", 4); ^ src/game/ai.cpp:63:73: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.BarracksRatio = rules_ini->readFloat ("AI", "BarracksRatio", .16); ^ src/game/ai.cpp:64:23: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Rules.BarracksLimit = rules_ini->readInt ("AI", "BarracksLimit", 2); ^ src/game/ai.cpp:65:63: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.WarRatio = rules_ini->readFloat ("AI", "WarRatio", .1); ^ src/game/ai.cpp:66:19: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Rules.WarLimit = rules_ini->readInt ("AI", "WarLimit", 2); ^ src/game/ai.cpp:67:70: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.DefenseRatio = rules_ini->readFloat ("AI", "DefenseRatio", .4); ^ src/game/ai.cpp:68:22: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Rules.DefenseLimit = rules_ini->readInt ("AI", "DefenseLimit", 40); ^ src/game/ai.cpp:69:62: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.AARatio = rules_ini->readFloat ("AI", "AARatio", .14); ^ src/game/ai.cpp:70:18: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Rules.AALimit = rules_ini->readInt ("AI", "AALimit", 10); ^ src/game/ai.cpp:71:67: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.TeslaRatio = rules_ini->readFloat ("AI", "TeslaRatio", .16); ^ src/game/ai.cpp:72:20: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Rules.TeslaLimit = rules_ini->readInt ("AI", "TeslaLimit", 10); ^ src/game/ai.cpp:73:71: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.HelipadRatio = rules_ini->readFloat ("AI", "HelipadRatio", .12); ^ src/game/ai.cpp:74:22: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Rules.HelipadLimit = rules_ini->readInt ("AI", "HelipadLimit", 5); ^ src/game/ai.cpp:75:73: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.AirstripRatio = rules_ini->readFloat ("AI", "AirstripRatio", .12); ^ src/game/ai.cpp:76:23: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Rules.AirstripLimit = rules_ini->readInt ("AI", "AirstripLimit", 5); ^ src/game/ai.cpp:81:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Rules.PowerEmergency = rules_ini->readInt ("AI", "PowerEmergency", 75); ^ src/game/ai.cpp:85:20: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.PatrolScan =.016; ^ src/game/ai.cpp:87:20: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.PathDelay =.01; ^ src/game/ai.cpp:95:23: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.RefineryRatio = .16; ^ src/game/ai.cpp:97:23: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.BarracksRatio = .16; ^ src/game/ai.cpp:99:19: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.WarRatio =.1; ^ src/game/ai.cpp:101:22: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.DefenseRatio = .4; ^ src/game/ai.cpp:103:18: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.AARatio =.14; ^ src/game/ai.cpp:105:20: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.TeslaRatio = .16; ^ src/game/ai.cpp:107:22: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.HelipadRatio = .12; ^ src/game/ai.cpp:109:23: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] Rules.AirstripRatio = .12; ^ src/game/ai.cpp: In member function 'Uint32 ai::getDist(Uint32, Uint32)': src/game/ai.cpp:130:7: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] x = pos2%p::ccmap->getWidth(); ^ src/game/ai.cpp:131:7: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] y = pos2/p::ccmap->getWidth(); ^ src/game/ai.cpp:132:8: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] nx = pos1%p::ccmap->getWidth(); ^ src/game/ai.cpp:133:8: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] ny = pos1/p::ccmap->getWidth(); ^ src/game/ai.cpp:135:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] xdiff = abs(x-nx); ^ src/game/ai.cpp:136:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ydiff = abs(y-ny); ^ src/game/ai.cpp: In member function 'Unit* ai::EnemyUnitInRange(int, Unit*, int)': src/game/ai.cpp:179:38: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] EnemyPlayer = p::ppool->getPlayer(i); ^ src/game/ai.cpp:181:46: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] MyPlayer = p::ppool->getPlayer(MyPlayerNumb); ^ src/game/ai.cpp:191:18: warning: conversion to 'int' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] EnemyNumbUnits = EnemyPlayer->getNumUnits(); ^ src/game/ai.cpp: In member function 'Structure* ai::EnemyStructureInRange(int, Unit*, int)': src/game/ai.cpp:239:44: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] EnemyPlayer = p::ppool->getPlayer(i); ^ src/game/ai.cpp:241:52: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] MyPlayer = p::ppool->getPlayer(MyPlayerNumb); ^ src/game/ai.cpp:252:29: warning: conversion to 'int' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] EnemyNumbStructures = EnemyPlayer->getNumStructs(); ^ src/game/ai.cpp: In member function 'Unit* ai::EnemyUnitInRange(int, Structure*, int)': src/game/ai.cpp:292:38: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] EnemyPlayer = p::ppool->getPlayer(i); ^ src/game/ai.cpp:294:46: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] MyPlayer = p::ppool->getPlayer(MyPlayerNumb); ^ src/game/ai.cpp:304:18: warning: conversion to 'int' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] EnemyNumbUnits = EnemyPlayer->getNumUnits(); ^ src/game/ai.cpp: In member function 'unsigned int ai::FindClosesedTiberium(Unit*)': src/game/ai.cpp:333:32: warning: conversion to 'Uint16 {aka short unsigned int}' from 'unsigned int' may alter its value [-Wconversion] Distance = Unit->getDist(pos); ^ src/game/ai.cpp: In member function 'void ai::DefendUnits(Player*, int)': src/game/ai.cpp:359:12: warning: conversion to 'int' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] NumbUnits = Player->getNumUnits(); ^ src/game/ai.cpp:385:105: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] Enemy = (UnitOrStructure*) p::uspool->getGroundUnitAt ( EnemyUnit->getPos(), EnemyUnit->getSubpos() ); ^ src/game/ai.cpp:388:102: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] Enemy = (UnitOrStructure*) p::uspool->getFlyingAt ( EnemyUnit->getPos(), EnemyUnit->getSubpos() ); ^ src/game/ai.cpp:391:112: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] Enemy = (UnitOrStructure*) p::uspool->getStructureAt ( EnemyUnit->getPos(), EnemyUnit->getSubpos(), false ); ^ src/game/ai.cpp: In member function 'void ai::DefendStructures(Player*, int)': src/game/ai.cpp:426:17: warning: conversion to 'int' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] NumbStructures = Player->getNumStructs(); ^ src/game/ai.cpp: In member function 'bool ai::CanBuildAt(Uint8, const char*, Uint32)': src/game/ai.cpp:495:51: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] if (!p::ccmap->isBuildableAt(PlayerNumb, curpos)) ^ src/game/ai.cpp: In member function 'bool ai::BuildStructure(Player*, int, const char*, Uint32)': src/game/ai.cpp:537:41: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] pos = p::ccmap->translateToPos (x,y); ^ src/game/ai.cpp:537:41: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/game/ai.cpp:538:49: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] if (CanBuildAt (PlayerNumb, structname, pos) ){ ^ src/game/ai.cpp:539:69: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] if (!p::dispatcher->structurePlace(structname, pos, PlayerNumb)) ^ src/game/ai.cpp: In member function 'void ai::DefendComputerPlayerBaseUnderAttack(Player*, int, UnitOrStructure*, Structure*)': src/game/ai.cpp:578:15: warning: conversion to 'int' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] NumbUnits = Player->getNumUnits(); ^ src/game/ai.cpp:594:51: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] Distance = Unit->getDist(StructureUnderAttackPos); ^ src/game/ai.cpp: In member function 'void ai::DefendComputerPlayerUnitUnderAttack(Player*, int, UnitOrStructure*, Unit*)': src/game/ai.cpp:628:12: warning: conversion to 'int' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] NumbUnits = Player->getNumUnits(); ^ src/game/ai.cpp:639:46: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] Distance = Unit->getDist(UnitUnderAttackPos); ^ src/game/ai.cpp: In member function 'void ai::Build(Player*, int)': src/game/ai.cpp:682:12: warning: conversion to 'int' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] NumbUnits = Player->getNumUnits(); ^ src/game/ai.cpp:684:17: warning: conversion to 'int' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] NumbStructures = Player->getNumStructs(); ^ src/game/ai.cpp:755:60: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] Unit->move (p::ccmap->translateToPos(xpos + 20, ypos)); ^ src/game/ai.cpp:755:61: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Unit->move (p::ccmap->translateToPos(xpos + 20, ypos)); ^ src/game/ai.cpp:757:60: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] Unit->move (p::ccmap->translateToPos(xpos - 20, ypos)); ^ src/game/ai.cpp:757:61: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Unit->move (p::ccmap->translateToPos(xpos - 20, ypos)); ^ src/game/ai.cpp:770:89: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] if (!StructureWasBuild && (NumbOreRefs == 0 || ( NumbOreRefs < NumbStructures * Rules.RefineryRatio && NumbOreRefs < Rules.RefineryLimit))){ ^ src/game/ai.cpp:819:70: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] if (!StructureWasBuild && (NumbTeslaCoils < NumbStructures * Rules.TeslaRatio && NumbTeslaCoils < Rules.TeslaLimit)){ ^ src/game/ai.cpp:835:50: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] if (p::dispatcher->unitSpawn(type, PlayerNumb)) ^ src/game/ai.cpp:846:50: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] if (p::dispatcher->unitSpawn(type, PlayerNumb)){ ^ src/game/ai.cpp:862:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] if (p::dispatcher->unitSpawn(type, PlayerNumb)) ^ src/game/ai.cpp:871:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] if (p::dispatcher->unitSpawn(type, PlayerNumb)) ^ src/game/ai.cpp:880:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] if (p::dispatcher->unitSpawn(type, PlayerNumb)) ^ src/game/ai.cpp:889:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] if (p::dispatcher->unitSpawn(type, PlayerNumb)) ^ src/game/ai.cpp: In member function 'void ai::patrolAndAttack(Player*, int)': src/game/ai.cpp:925:13: warning: conversion to 'int' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] NumbUnits = Player->getNumUnits(); ^ src/game/ai.cpp:930:18: warning: conversion to 'int' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] NumbStructures = Player->getNumStructs(); ^ src/game/ai.cpp:934:24: warning: conversion to 'int' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] lPlayerNumbStructures = p::ppool->getLPlayer()->getNumStructs(); ^ src/game/ai.cpp:936:19: warning: conversion to 'int' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] lPlayerNumbUnits = p::ppool->getLPlayer()->getNumUnits(); ^ src/game/ai.cpp:940:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] RndStr = (int) ((double)lPlayerNumbStructures*rand()/(RAND_MAX)); ^ src/game/ai.cpp:944:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] RndStr = lPlayerNumbStructures - RndStr; ^ src/game/ai.cpp:949:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] RndStr = lPlayerNumbStructures -1; ^ src/game/ai.cpp:906:5: warning: variable 'NumbStructures' set but not used [-Wunused-but-set-variable] NumbStructures, ^ src/game/ai.cpp: In member function 'void ai::guideAttack(Player*, int)': src/game/ai.cpp:1020:13: warning: conversion to 'int' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] NumbUnits = Player->getNumUnits(); ^ src/game/ai.cpp:1025:18: warning: conversion to 'int' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] NumbStructures = Player->getNumStructs(); ^ src/game/ai.cpp:1029:24: warning: conversion to 'int' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] lPlayerNumbStructures = lPlayerStructurePool.size(); ^ src/game/ai.cpp:1031:19: warning: conversion to 'int' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] lPlayerNumbUnits = lPlayerUnitPool.size(); ^ src/game/ai.cpp:999:5: warning: variable 'NumbStructures' set but not used [-Wunused-but-set-variable] NumbStructures, ^ src/game/ai.cpp:1007:9: warning: variable 'StillMoving' set but not used [-Wunused-but-set-variable] bool StillMoving = false; ^ src/game/ai.cpp: In member function 'void ai::Harvest(Player*, int)': src/game/ai.cpp:1208:13: warning: conversion to 'int' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] NumbUnits = Player->getNumUnits(); ^ src/game/ai.cpp: In member function 'void ai::handle()': src/game/ai.cpp:1269:45: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] CurPlayer = p::ppool->getPlayer(PlayerNumb); ^ In file included from src/include/common.h:5:0, from src/include/buildqueue.h:7, from src/game/buildqueue.cpp:5: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/playerpool.h:10:0, from src/game/buildqueue.cpp:8: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/include/structure.h:9:0, from src/include/ccmap.h:11, from src/include/unitandstructurepool.h:10, from src/game/buildqueue.cpp:9: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ In file included from src/include/common.h:5:0, from src/include/ccmap.h:9, from src/game/loadmap.cpp:5: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/ccmap.h:11:0, from src/include/unitandstructurepool.h:10, from src/game/buildqueue.cpp:9: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ In file included from src/include/unitandstructurepool.h:10:0, from src/game/buildqueue.cpp:9: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ In file included from src/game/buildqueue.cpp:9:0: src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbUnits()': src/include/unitandstructurepool.h:105:55: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbUnits (void) { return unitpool.size(); } ^ src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbStructures()': src/include/unitandstructurepool.h:110:65: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbStructures (void) { return structurepool.size(); } ^ src/game/buildqueue.cpp: In member function 'bool BuildQueue::BQueue::tick()': src/game/buildqueue.cpp:223:71: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] Uint8 delta = min((p::aequeue->getCurtick()-last)/buildspeed, left); ^ src/game/buildqueue.cpp: In member function 'ConStatus BuildQueue::BQueue::getStatus(const UnitOrStructureType*, Uint8*, Uint8*) const': src/game/buildqueue.cpp:288:19: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] *progress = 100*(it->first->getCost()-left)/getCurrentType()->getCost(); ^ In file included from src/include/structure.h:9:0, from src/include/ccmap.h:11, from src/game/loadmap.cpp:5: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ c++ -o src/game/projectileanim.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/projectileanim.cpp c++ -o src/game/structureanims.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/structureanims.cpp src/game/ai.cpp: In member function 'unsigned int ai::FindClosesedTiberium(Unit*)': src/game/ai.cpp:341:9: warning: 'ClosesedPos' may be used uninitialized in this function [-Wmaybe-uninitialized] return ClosesedPos; ^ src/game/ai.cpp:334:17: warning: 'ClosesedDistance' may be used uninitialized in this function [-Wmaybe-uninitialized] if (Distance < ClosesedDistance || !FirstFound){ ^ In file included from src/include/common.h:5:0, from src/include/ccmap.h:9, from src/game/projectileanim.cpp:3: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/common.h:5:0, from src/include/ccmap.h:9, from src/game/structureanims.cpp:2: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/ccmap.h:11:0, from src/game/loadmap.cpp:5: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ In file included from src/game/loadmap.cpp:5:0: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ In file included from src/include/structure.h:9:0, from src/include/ccmap.h:11, from src/game/projectileanim.cpp:3: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ In file included from src/include/ccmap.h:11:0, from src/game/projectileanim.cpp:3: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ In file included from src/include/playerpool.h:10:0, from src/game/loadmap.cpp:15: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/game/loadmap.cpp:17:0: src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbUnits()': src/include/unitandstructurepool.h:105:55: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbUnits (void) { return unitpool.size(); } ^ src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbStructures()': src/include/unitandstructurepool.h:110:65: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbStructures (void) { return structurepool.size(); } ^ src/game/loadmap.cpp: In member function 'void CnCMap::loadIni()': src/game/loadmap.cpp:108:91: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] p::ppool->setPlayer(i+1, Nick.c_str(), i+offset, "nod" /* pc::Config.mside.c_str() */); ^ src/game/loadmap.cpp:113:111: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] p::ppool->setLPlayer(i+1, pc::Config.nick.c_str(),pc::Config.side_colour.c_str(), pc::Config.mside.c_str()); ^ src/game/loadmap.cpp:123:50: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] pips = new SHPImage("hpips.shp",mapscaleq); ^ src/game/loadmap.cpp:126:54: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] pips = new SHPImage("pips.shp", mapscaleq); ^ src/game/loadmap.cpp:132:13: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] pipsnum = pc::imagepool->size()<<16; ^ src/game/loadmap.cpp:138:56: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] moveflash = new SHPImage(moveflsh,mapscaleq); ^ src/game/loadmap.cpp:145:62: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] moveflash = new SHPImage("moveflsh.shp",mapscaleq); ^ src/game/loadmap.cpp:151:14: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] flashnum = pc::imagepool->size()<<16; ^ In file included from src/include/structure.h:9:0, from src/include/ccmap.h:11, from src/game/structureanims.cpp:2: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ src/game/loadmap.cpp: In member function 'void CnCMap::simpleSections(INIFile*)': src/game/loadmap.cpp:206:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] height = temp; ^ src/game/loadmap.cpp:213:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] width = temp; ^ src/game/loadmap.cpp:220:5: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] x = temp; ^ src/game/loadmap.cpp:227:5: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] y = temp; ^ src/game/loadmap.cpp:239:28: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] missionData.buildlevel = inifile->readInt("BASIC", "BUILDLEVEL",1); ^ In file included from src/include/ccmap.h:11:0, from src/game/structureanims.cpp:2: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ src/game/loadmap.cpp: In member function 'void CnCMap::advancedSections(INIFile*)': src/game/loadmap.cpp:326:53: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] tmp2 = translateToPos(tx-x, ty-y); ^ src/game/loadmap.cpp:326:53: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src/game/loadmap.cpp:326:26: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] tmp2 = translateToPos(tx-x, ty-y); ^ src/game/loadmap.cpp:327:46: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] setWaypoint (tmpval, tmp2); ^ src/game/loadmap.cpp:329:46: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] scrollbookmarks[0].x = tx-x; ^ src/game/loadmap.cpp:330:46: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] scrollbookmarks[0].y = ty-y; ^ src/game/loadmap.cpp:338:46: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] scrollbookmarks[0].x = tx-x; ^ src/game/loadmap.cpp:339:46: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] scrollbookmarks[0].y = ty-y; ^ src/game/loadmap.cpp:343:50: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] setWaypoint (tmpval, tmp2); ^ src/game/loadmap.cpp:351:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] p::ppool->setPlayerStarts(k, getWaypoint(k)); ^ src/game/loadmap.cpp:351:52: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] p::ppool->setPlayerStarts(k, getWaypoint(k)); ^ src/game/loadmap.cpp:356:53: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] image = new SHPImage("SHADOW.SHP", mapscaleq); ^ src/game/loadmap.cpp:360:55: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] image->getImageAsAlpha(i, &shadowimages[i]); ^ src/game/loadmap.cpp:385:58: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] image = new SHPImage(sname.c_str(), mapscaleq); ^ src/game/loadmap.cpp:386:58: warning: conversion to 'std::vector::value_type {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] resourcebases.push_back(pc::imagepool->size()); ^ src/game/loadmap.cpp:397:56: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] image = new SHPImage(shpname, mapscaleq); ^ src/game/loadmap.cpp:405:56: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] image = new SHPImage(shpname, mapscaleq); ^ src/game/loadmap.cpp:437:23: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] xsize = arts->readInt(shpname, "XSIZE",1); ^ src/game/loadmap.cpp:438:23: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ysize = arts->readInt(shpname, "YSIZE",1); ^ src/game/loadmap.cpp:444:73: warning: conversion to 'unsigned char' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] terraintypes[(ywalk+ty-y)*width+xwalk+tx-x] = ttype; ^ src/game/loadmap.cpp:462:36: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] tmpterrain.xoffset = -(linenum%ysize)*24; ^ src/game/loadmap.cpp:463:36: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] tmpterrain.yoffset = -(linenum/ysize)*24; ^ src/game/loadmap.cpp:465:20: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] tx += linenum%ysize; ^ src/game/loadmap.cpp:467:40: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] tmpterrain.xoffset += 1+tx-(width+x); ^ src/game/loadmap.cpp:468:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] tx = width+x-1; ^ src/game/loadmap.cpp:470:20: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ty += linenum/ysize; ^ src/game/loadmap.cpp:472:40: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] tmpterrain.yoffset += 1+ty-(height+y); ^ src/game/loadmap.cpp:473:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ty = height+y-1; ^ src/game/loadmap.cpp:491:40: warning: conversion to 'std::map, unsigned int>::mapped_type {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] imagelist[shpname] = pc::imagepool->size(); ^ src/game/loadmap.cpp:493:39: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] tmpterrain.shpnum = pc::imagepool->size()<<16; ^ src/game/loadmap.cpp:496:64: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] image = new SHPImage(shpname, mapscaleq); ^ src/game/loadmap.cpp:558:55: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] health, facing, false, trigger); ^ src/game/loadmap.cpp:558:55: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src/game/loadmap.cpp:558:55: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] src/game/loadmap.cpp:575:55: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] health, facing, false, trigger); ^ src/game/loadmap.cpp:575:55: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src/game/loadmap.cpp:575:55: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] src/game/loadmap.cpp:595:135: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] p::uspool->createUnit(type, linenum, 5, p::ppool->getPlayerNum(owner), health, facing, UnitActionToNr(action), trigger); ^ src/game/loadmap.cpp:595:135: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src/game/loadmap.cpp:595:135: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] src/game/loadmap.cpp:617:140: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] p::uspool->createUnit(type, linenum, subpos, p::ppool->getPlayerNum(owner), health, facing, UnitActionToNr(action), trigger); ^ src/game/loadmap.cpp:617:140: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] src/game/loadmap.cpp:617:140: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src/game/loadmap.cpp:617:140: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] src/game/loadmap.cpp:637:38: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] CellTrig.cellpos = linenum; ^ src/game/loadmap.cpp:697:21: warning: conversion to 'int' from 'std::__cxx11::basic_string::size_type {aka long unsigned int}' may alter its value [-Wconversion] pos = key->second.find (teamname,0); ^ src/game/loadmap.cpp:704:25: warning: conversion to 'int' from 'std::__cxx11::basic_string::size_type {aka long unsigned int}' may alter its value [-Wconversion] pos = temp.find (",", 0); ^ c++ -o src/game/moneycounter.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/moneycounter.cpp src/game/loadmap.cpp: In member function 'void CnCMap::parseBin(TileList*)': src/game/loadmap.cpp:924:29: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] tile = xtile&3 | (ytile&3 << 2); ^ src/game/loadmap.cpp:924:22: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] tile = xtile&3 | (ytile&3 << 2); ^ src/game/loadmap.cpp:926:29: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] tile = xtile&1 | (ytile&1 << 1); ^ src/game/loadmap.cpp:926:22: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] tile = xtile&1 | (ytile&1 << 1); ^ src/game/loadmap.cpp:950:25: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] tileidx = tileimages.size(); ^ src/game/loadmap.cpp:952:31: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] tiledata.type = tiletype; ^ src/game/loadmap.cpp:958:43: warning: conversion to 'short unsigned int' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] tilematrix[width*ytile+xtile] = tileidx; ^ src/game/loadmap.cpp:960:49: warning: conversion to 'unsigned char' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] terraintypes[width*ytile+xtile] = tiletype; ^ src/game/loadmap.cpp: In member function 'void CnCMap::unOverlayPack(INIFile*)': src/game/loadmap.cpp:1025:16: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] for (ytile = y; ytile <= y+height; ++ytile){ ^ src/game/loadmap.cpp:1026:20: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] for (xtile = x; xtile <= x+width; ++xtile){ ^ src/game/loadmap.cpp: In member function 'void CnCMap::parseOverlay(const Uint32&, const string&)': src/game/loadmap.cpp:1046:107: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] p::uspool->createStructure(name.c_str(), linenum, p::ppool->getPlayerNum("NEUTRAL"), 256, 0, false); ^ src/game/loadmap.cpp:1055:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] frame = pc::imgcache->loadImage(shpname.c_str()) >> 16; ^ src/game/loadmap.cpp:1059:19: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] frame = pc::imgcache->loadImage(shpname.c_str()) >> 16; ^ src/game/loadmap.cpp:1087:18: warning: conversion to 'Uint8 {aka unsigned char}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] type = resourcebases.size(); ^ src/game/loadmap.cpp:1090:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] res = type | ((i-1) << 8); ^ src/game/loadmap.cpp:1094:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] res = t->second | ((i-1) << 8); ^ src/game/loadmap.cpp: In member function 'void CnCMap::loadPal(const string&, SDL_Color*)': src/game/loadmap.cpp:1142:22: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] palette[i].r <<= 2; ^ src/game/loadmap.cpp:1143:22: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] palette[i].g <<= 2; ^ src/game/loadmap.cpp:1144:22: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] palette[i].b <<= 2; ^ src/game/loadmap.cpp: In member function 'SDL_Surface* CnCMap::loadTile(INIFile*, Uint16, Uint8, Uint32*)': src/game/loadmap.cpp:1214:75: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] theaterfile = new TemplateImage(tilefilename, mapscaleq, 1); ^ src/game/loadmap.cpp:1216:72: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] theaterfile = new TemplateImage(tilefilename, mapscaleq); ^ In file included from src/game/structureanims.cpp:2:0: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ In file included from src/game/projectileanim.cpp:3:0: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ In file included from src/include/playerpool.h:10:0, from src/game/structureanims.cpp:4: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/include/playerpool.h:10:0, from src/include/ai.h:8, from src/include/unit.h:17, from src/game/projectileanim.cpp:9: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/include/common.h:5:0, from src/game/moneycounter.cpp:2: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/game/structureanims.cpp:8:0: src/include/unit.h: In member function 'Uint8 InfantryGroup::GetFreePos() const': src/include/unit.h:458:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] return i; ^ src/include/unit.h: In member function 'Uint8 InfantryGroup::GetImageNums(Uint32**, Sint8**, Sint8**)': src/include/unit.h:478:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*xoffsets)[j]=positions[i]->getXoffset()+unitoffsets[i]; ^ src/include/unit.h:479:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*yoffsets)[j]=positions[i]->getYoffset()+unitoffsets[i+5]; ^ src/include/unit.h: In member function 'void InfantryGroup::GetSubposOffsets(Uint8, Uint8, Sint8*, Sint8*)': src/include/unit.h:488:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xoffs = unitoffsets[oldsp]-unitoffsets[newsp]; ^ src/include/unit.h:489:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *yoffs = unitoffsets[oldsp+5]-unitoffsets[newsp+5]; ^ In file included from src/game/structureanims.cpp:9:0: src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbUnits()': src/include/unitandstructurepool.h:105:55: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbUnits (void) { return unitpool.size(); } ^ src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbStructures()': src/include/unitandstructurepool.h:110:65: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbStructures (void) { return structurepool.size(); } ^ In file included from src/game/projectileanim.cpp:9:0: src/include/unit.h: In member function 'Uint8 InfantryGroup::GetFreePos() const': src/include/unit.h:458:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] return i; ^ src/include/unit.h: In member function 'Uint8 InfantryGroup::GetImageNums(Uint32**, Sint8**, Sint8**)': src/include/unit.h:478:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*xoffsets)[j]=positions[i]->getXoffset()+unitoffsets[i]; ^ src/include/unit.h:479:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*yoffsets)[j]=positions[i]->getYoffset()+unitoffsets[i+5]; ^ src/include/unit.h: In member function 'void InfantryGroup::GetSubposOffsets(Uint8, Uint8, Sint8*, Sint8*)': src/include/unit.h:488:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xoffs = unitoffsets[oldsp]-unitoffsets[newsp]; ^ src/include/unit.h:489:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *yoffs = unitoffsets[oldsp+5]-unitoffsets[newsp+5]; ^ In file included from src/game/projectileanim.cpp:10:0: src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbUnits()': src/include/unitandstructurepool.h:105:55: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbUnits (void) { return unitpool.size(); } ^ src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbStructures()': src/include/unitandstructurepool.h:110:65: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbStructures (void) { return structurepool.size(); } ^ src/game/projectileanim.cpp: In constructor 'ProjectileAnim::ProjectileAnim(Uint32, Weapon*, UnitOrStructure*, Uint16, Uint8)': src/game/projectileanim.cpp:112:27: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] alpha = -M_PI_2; ^ src/game/projectileanim.cpp:114:27: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] alpha = M_PI_2; ^ src/game/projectileanim.cpp:117:23: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] alpha = atan((float)ydiff/(float)xdiff); ^ src/game/projectileanim.cpp:119:27: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] alpha = M_PI+alpha; ^ src/game/projectileanim.cpp: In member function 'virtual void ProjectileAnim::run()': src/game/projectileanim.cpp:170:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] subdest = target->getSubpos(); ^ src/game/projectileanim.cpp:186:31: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] alpha = -M_PI_2; ^ src/game/projectileanim.cpp:188:31: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] alpha = M_PI_2; ^ src/game/projectileanim.cpp:191:27: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] alpha = atan((float)ydiff/(float)xdiff); ^ src/game/projectileanim.cpp:193:31: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] alpha = M_PI+alpha; ^ src/game/projectileanim.cpp:233:61: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] utarget = p::uspool->getUnitAt(dest, sud); ^ src/game/projectileanim.cpp:276:22: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] l2o->cellpos -= p::ccmap->getWidth(); ^ src/game/projectileanim.cpp:280:22: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] l2o->cellpos += p::ccmap->getWidth(); ^ src/game/ai.cpp: In member function 'void ai::patrolAndAttack(Player*, int)': src/game/ai.cpp:984:41: warning: 'target' may be used uninitialized in this function [-Wmaybe-uninitialized] player_targets[PlayerNumb] = target; ^ src/game/structureanims.cpp: In member function 'virtual void BuildingAnimEvent::updateDamaged()': src/game/structureanims.cpp:128:35: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] anim_data.damagedelta = getaniminfo().loopend+1; ^ src/game/structureanims.cpp:130:40: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] anim_data.damagedelta2 = getaniminfo().loopend2+1; ^ src/game/structureanims.cpp: In constructor 'BuildAnimEvent::BuildAnimEvent(Uint32, Structure*, bool)': src/game/structureanims.cpp:146:10: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] framend = getaniminfo().makenum; ^ src/game/structureanims.cpp:147:8: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] frame = (sell?(framend-1):1); ^ src/game/structureanims.cpp: In member function 'virtual void RepairAnimEvent::anim_func(anim_nfo*)': src/game/structureanims.cpp:227:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] data->frame0 = structure->getRealImageNum(0); //(structure->getImageNums()[0]&0x7FF /*0x1f*/); //structure->getImageNum(0)&0x7FF; ^ src/game/structureanims.cpp:236:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dmg_cost -= cost; ^ src/game/structureanims.cpp:268:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] data->frame0 -= getaniminfo().dmgoff; ^ src/game/structureanims.cpp: In member function 'virtual void LoopAnimEvent::anim_func(anim_nfo*)': src/game/structureanims.cpp:299:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] frame = data->damagedelta; ^ src/game/structureanims.cpp: In member function 'virtual void ProcAnimEvent::anim_func(anim_nfo*)': src/game/structureanims.cpp:316:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] frame = data->damagedelta; ^ src/game/structureanims.cpp: In member function 'virtual void ProcAnimEvent::updateDamaged()': src/game/structureanims.cpp:326:19: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] frame += 30; ^ src/game/structureanims.cpp: In constructor 'BTurnAnimEvent::BTurnAnimEvent(Uint32, Structure*, Uint8)': src/game/structureanims.cpp:337:12: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] layerface = str->getRealImageNum(0); ^ src/game/structureanims.cpp: In member function 'virtual void BTurnAnimEvent::anim_func(anim_nfo*)': src/game/structureanims.cpp:356:19: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] layerface += turnmod; ^ src/game/structureanims.cpp:361:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] data->frame0 = layerface+data->damagedelta; ^ src/game/structureanims.cpp: In member function 'virtual void DoorAnimEvent::updateDamaged()': src/game/structureanims.cpp:430:20: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] framestart = getaniminfo().loopend2+1; ^ src/game/structureanims.cpp:431:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] framend = framestart+getaniminfo().loopend2; ^ src/game/structureanims.cpp:433:19: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] frame += framestart; ^ src/game/structureanims.cpp:439:12: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] frame0 = anim_data.damagedelta; ^ src/game/structureanims.cpp: In member function 'virtual void RefineAnimEvent::updateDamaged()': src/game/structureanims.cpp:473:19: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] frame += getaniminfo().dmgoff; ^ src/game/structureanims.cpp:476:16: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] framestart = getaniminfo().loopend+1+anim_data.damagedelta; ^ src/game/structureanims.cpp:477:13: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] framend = framestart + 17; // fixme: avoid hardcoded values ^ src/game/structureanims.cpp: In destructor 'virtual BAttackAnimEvent::~BAttackAnimEvent()': src/game/structureanims.cpp:496:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] frame = StartFrame; ^ src/game/structureanims.cpp: In member function 'virtual void BAttackAnimEvent::run()': src/game/structureanims.cpp:560:19: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] alpha = -M_PI_2; ^ src/game/structureanims.cpp:562:19: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] alpha = M_PI_2; ^ src/game/structureanims.cpp:565:15: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] alpha = atan((float)ytiles/(float)xtiles); ^ src/game/structureanims.cpp:567:19: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] alpha = M_PI+alpha; ^ src/game/structureanims.cpp:586:23: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] frame = StartFrame; ^ src/game/structureanims.cpp:602:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] frame = StartFrame; ^ src/game/structureanims.cpp:612:96: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] strct->type->getWeapon()->fire(strct, target->getBPos(strct->getPos()), target->getSubpos()); ^ src/game/structureanims.cpp: In constructor 'BExplodeAnimEvent::BExplodeAnimEvent(Uint32, Structure*)': src/game/structureanims.cpp:629:19: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] lastframe = getType()->getSHPTNum()[0]-1; ^ src/game/structureanims.cpp: In member function 'virtual void BRepairUnitAnimEvent::run()': src/game/structureanims.cpp:730:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dmg_cost -= cost; ^ In file included from src/game/moneycounter.cpp:5:0: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ src/game/moneycounter.cpp: In member function 'void MoneyCounter::addCredit(Uint16, Uint8)': src/game/moneycounter.cpp:48:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] creditleft += amount; ^ src/game/moneycounter.cpp: In member function 'void MoneyCounter::addDebt(Uint16, Uint8)': src/game/moneycounter.cpp:57:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] debtleft += amount; ^ src/game/moneycounter.cpp: In member function 'Uint8 MoneyCounter::step(Uint16&)': src/game/moneycounter.cpp:74:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] value -= delta; ^ c++ -o src/game/talkback.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/talkback.cpp In file included from src/include/common.h:5:0, from src/include/talkback.h:7, from src/game/talkback.cpp:7: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ c++ -o src/game/game.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/game.cpp c++ -o src/game/unitanimations.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/unitanimations.cpp In file included from src/include/common.h:5:0, from src/include/ccmap.h:9, from src/game/unitanimations.cpp:2: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/structure.h:9:0, from src/include/ccmap.h:11, from src/include/unitandstructurepool.h:10, from src/game/talkback.cpp:8: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ In file included from src/include/ccmap.h:11:0, from src/include/unitandstructurepool.h:10, from src/game/talkback.cpp:8: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ In file included from src/include/common.h:5:0, from src/include/ccmap.h:9, from src/game/game.cpp:7: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/unitandstructurepool.h:10:0, from src/game/talkback.cpp:8: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ In file included from src/game/talkback.cpp:8:0: src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbUnits()': src/include/unitandstructurepool.h:105:55: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbUnits (void) { return unitpool.size(); } ^ src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbStructures()': src/include/unitandstructurepool.h:110:65: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbStructures (void) { return structurepool.size(); } ^ In file included from src/include/structure.h:9:0, from src/include/ccmap.h:11, from src/game/unitanimations.cpp:2: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ In file included from src/include/ccmap.h:11:0, from src/game/unitanimations.cpp:2: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ In file included from src/include/structure.h:9:0, from src/include/ccmap.h:11, from src/game/game.cpp:7: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ In file included from src/game/unitanimations.cpp:2:0: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ In file included from src/include/playerpool.h:10:0, from src/include/ai.h:8, from src/include/unit.h:17, from src/include/path.h:8, from src/game/unitanimations.cpp:5: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/include/path.h:8:0, from src/game/unitanimations.cpp:5: src/include/unit.h: In member function 'Uint8 InfantryGroup::GetFreePos() const': src/include/unit.h:458:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] return i; ^ src/include/unit.h: In member function 'Uint8 InfantryGroup::GetImageNums(Uint32**, Sint8**, Sint8**)': src/include/unit.h:478:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*xoffsets)[j]=positions[i]->getXoffset()+unitoffsets[i]; ^ src/include/unit.h:479:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*yoffsets)[j]=positions[i]->getYoffset()+unitoffsets[i+5]; ^ src/include/unit.h: In member function 'void InfantryGroup::GetSubposOffsets(Uint8, Uint8, Sint8*, Sint8*)': src/include/unit.h:488:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xoffs = unitoffsets[oldsp]-unitoffsets[newsp]; ^ src/include/unit.h:489:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *yoffs = unitoffsets[oldsp+5]-unitoffsets[newsp+5]; ^ src/game/loadmap.cpp: In member function 'void CnCMap::simpleSections(INIFile*)': src/game/loadmap.cpp:167:76: warning: 'key' may be used uninitialized in this function [-Wmaybe-uninitialized] logger->error("Error loading map: unable to find \"%s\"\n",key); ^ In file included from src/game/unitanimations.cpp:8:0: src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbUnits()': src/include/unitandstructurepool.h:105:55: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbUnits (void) { return unitpool.size(); } ^ src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbStructures()': src/include/unitandstructurepool.h:110:65: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbStructures (void) { return structurepool.size(); } ^ src/game/unitanimations.cpp: In member function 'virtual void MoveAnimEvent::run()': src/game/unitanimations.cpp:101:54: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] path = new Path(un, un->getPos(), dest, range); ^ src/game/unitanimations.cpp:122:17: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] un->xoffset += xmod; ^ src/game/unitanimations.cpp:123:17: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] un->yoffset += ymod; ^ src/game/unitanimations.cpp:135:21: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] un->xoffset = -un->xoffset; ^ src/game/unitanimations.cpp:136:21: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] un->yoffset = -un->yoffset; ^ src/game/unitanimations.cpp:139:25: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] un->xoffset += uxoff; ^ src/game/unitanimations.cpp:140:25: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] un->yoffset += uyoff; ^ src/game/unitanimations.cpp: In member function 'void MoveAnimEvent::startMoveOne(bool)': src/game/unitanimations.cpp:192:54: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] path = new Path(un, un->getPos(), dest, range); ^ src/game/unitanimations.cpp:230:10: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] face = ((Sint8)((loopend+1)*(8-path->top())/8))&loopend; ^ src/game/unitanimations.cpp:254:52: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint8 curface = (un->getImageNum(0)&loopend); ^ src/game/unitanimations.cpp:255:43: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 delta = (abs(curface-face))&loopend; ^ src/game/unitanimations.cpp: In member function 'void MoveAnimEvent::moveDone()': src/game/unitanimations.cpp:294:54: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] path = new Path(un, un->getPos(), dest, range); ^ src/game/unitanimations.cpp:303:58: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] path = new Path(un, un->getPos(), dest, range); ^ src/game/unitanimations.cpp: In member function 'virtual void WalkAnimEvent::run()': src/game/unitanimations.cpp:701:19: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] layerface = baseimage + istep; ^ src/game/unitanimations.cpp:703:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] istep = (istep + 1)%6; ^ src/game/unitanimations.cpp: In member function 'void WalkAnimEvent::calcbaseimage()': src/game/unitanimations.cpp:716:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] baseimage = 16 + 3*(dir/2); ^ src/game/unitanimations.cpp: In constructor 'TurnAnimEvent::TurnAnimEvent(Uint32, Unit*, Uint8, Uint8)': src/game/unitanimations.cpp:731:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] layerface = un->getImageNum(layer)&loopend; ^ src/game/unitanimations.cpp:737:17: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] turnmod = -(((UnitType *)un->getType())->getTurnMod()); ^ src/game/unitanimations.cpp: In member function 'virtual void TurnAnimEvent::run()': src/game/unitanimations.cpp:769:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] layerface = un->getImageNum(layer)&loopend; ^ src/game/unitanimations.cpp:771:19: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] layerface += turnmod; ^ src/game/unitanimations.cpp: In member function 'virtual void UAttackAnimEvent::run()': src/game/unitanimations.cpp:935:19: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] alpha = -M_PI_2; ^ src/game/unitanimations.cpp:937:19: warning: conversion to 'float' alters 'double' constant value [-Wfloat-conversion] alpha = M_PI_2; ^ src/game/unitanimations.cpp:940:15: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] alpha = atan((float)ytiles/(float)xtiles); ^ src/game/unitanimations.cpp:942:19: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] alpha = M_PI+alpha; ^ src/game/unitanimations.cpp:946:12: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] facing = ((Sint8)((loopend2+1)*(1-alpha/2/M_PI)+8))&loopend2; ^ src/game/unitanimations.cpp:970:30: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] if (abs((int)(facing - un->getImageNum(0)&loopend2)) > un->type->getROT()) { ^ src/game/unitanimations.cpp:991:103: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] un->type->getWeapon(UsePrimaryWeapon)->fire(un, target->getBPos(un->getPos()), target->getSubpos()); ^ src/game/unitanimations.cpp: In constructor 'UHarvestEvent::UHarvestEvent(Uint32, Unit*)': src/game/unitanimations.cpp:1020:44: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] un->GetResourceType (i, &ResourceTypes[i]); ^ src/game/unitanimations.cpp: In member function 'int UHarvestEvent::GetBaseRefineryPos()': src/game/unitanimations.cpp:1083:4: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] y += 2; ^ src/game/unitanimations.cpp:1084:46: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] temppos = p::ccmap->translateToPos(x+xdiv, y); ^ src/game/unitanimations.cpp:1087:39: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] while ( p::ccmap->getCost(temppos, un) > 4 && y < p::ccmap->getHeight() && un->getPos() != temppos ){ ^ src/game/unitanimations.cpp:1091:6: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] y += 1; ^ src/game/unitanimations.cpp:1095:47: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] temppos = p::ccmap->translateToPos(x+xdiv, y); ^ src/game/unitanimations.cpp: In member function 'virtual void UHarvestEvent::run()': src/game/unitanimations.cpp:1145:31: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] un->move(MoveTargePos, false); ^ src/game/unitanimations.cpp:1174:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (p::uspool->cellOccupied(MoveTargePos) && un->getPos() != MoveTargePos || RetryMoveCounter > 2){ ^ src/game/unitanimations.cpp:1178:32: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] un->move(MoveTargePos, false); ^ src/game/unitanimations.cpp:1200:66: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] un->setImageNum(32+(facing*8) + index, NumbLayers - 1); ^ src/game/unitanimations.cpp:1231:54: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] un->move(this->GetBaseRefineryPos (), false); ^ src/game/unitanimations.cpp:1257:53: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] un->setImageNum(32+(8*8) + index, NumbLayers - 1); ^ src/game/unitanimations.cpp:1261:45: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] un->setImageNum(OrgImage, NumbLayers - 1); ^ In file included from src/include/ccmap.h:11:0, from src/game/game.cpp:7: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ In file included from src/game/game.cpp:7:0: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ In file included from src/game/game.cpp:10:0: src/include/cursor.h: In member function 'Uint16 Cursor::getX()': src/include/cursor.h:43:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return x+cursor_offset; ^ src/include/cursor.h: In member function 'Uint16 Cursor::getY()': src/include/cursor.h:47:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return y+cursor_offset; ^ In file included from src/include/playerpool.h:10:0, from src/include/graphicsengine.h:12, from src/game/game.cpp:13: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/include/input.h:9:0, from src/game/game.cpp:14: src/include/selection.h: In member function 'Uint32 Selection::numbUnits() const': src/include/selection.h:35:53: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::__cxx11::list::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 numbUnits() const {return sel_units.size();} ^ In file included from src/game/game.cpp:18:0: src/include/sidebar.h: In member function 'Uint16 Sidebar::width()': src/include/sidebar.h:59:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return sbar->w; ^ c++ -o src/game/map.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/map.cpp src/game/game.cpp: In member function 'void Game::dumpstats()': src/game/game.cpp:463:7: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] h = uptime/3600; ^ src/game/game.cpp:465:7: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] m = uptime/60; ^ src/game/game.cpp:466:7: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] s = uptime%60; ^ In file included from src/include/common.h:5:0, from src/include/ccmap.h:9, from src/game/map.cpp:8: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/structure.h:9:0, from src/include/ccmap.h:11, from src/game/map.cpp:8: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ c++ -o src/game/unit.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/unit.cpp In file included from src/include/ccmap.h:11:0, from src/game/map.cpp:8: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ In file included from src/game/map.cpp:8:0: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ In file included from src/include/common.h:5:0, from src/include/ccmap.h:9, from src/game/unit.cpp:6: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/playerpool.h:10:0, from src/include/ai.h:8, from src/include/unit.h:17, from src/include/path.h:8, from src/game/map.cpp:15: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ c++ -o src/game/dispatcher.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/dispatcher.cpp In file included from src/include/path.h:8:0, from src/game/map.cpp:15: src/include/unit.h: In member function 'Uint8 InfantryGroup::GetFreePos() const': src/include/unit.h:458:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] return i; ^ src/include/unit.h: In member function 'Uint8 InfantryGroup::GetImageNums(Uint32**, Sint8**, Sint8**)': src/include/unit.h:478:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*xoffsets)[j]=positions[i]->getXoffset()+unitoffsets[i]; ^ src/include/unit.h:479:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*yoffsets)[j]=positions[i]->getYoffset()+unitoffsets[i+5]; ^ src/include/unit.h: In member function 'void InfantryGroup::GetSubposOffsets(Uint8, Uint8, Sint8*, Sint8*)': src/include/unit.h:488:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xoffs = unitoffsets[oldsp]-unitoffsets[newsp]; ^ src/include/unit.h:489:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *yoffs = unitoffsets[oldsp+5]-unitoffsets[newsp+5]; ^ c++ -o src/game/triggers.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/triggers.cpp In file included from src/game/map.cpp:20:0: src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbUnits()': src/include/unitandstructurepool.h:105:55: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbUnits (void) { return unitpool.size(); } ^ src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbStructures()': src/include/unitandstructurepool.h:110:65: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbStructures (void) { return structurepool.size(); } ^ src/game/map.cpp: In member function 'Uint8 CnCMap::accScroll(Uint8)': src/game/map.cpp:194:25: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] scrollvec.y = -scrollstep; ^ src/game/map.cpp:196:25: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] scrollvec.y -= scrollstep; ^ src/game/map.cpp:207:25: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] scrollvec.y += scrollstep; ^ src/game/map.cpp:216:25: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] scrollvec.x = -scrollstep; ^ src/game/map.cpp:218:25: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] scrollvec.x -= scrollstep; ^ src/game/map.cpp:229:25: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] scrollvec.x += scrollstep; ^ src/game/map.cpp: In member function 'void CnCMap::doscroll()': src/game/map.cpp:336:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Sint32 {aka int}' may alter its value [-Wconversion] scrollpos.curxtileoffs = xtile; ^ src/game/map.cpp:347:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Sint32 {aka int}' may alter its value [-Wconversion] scrollpos.curytileoffs = ytile; ^ src/game/map.cpp: In member function 'void CnCMap::setMaxScroll(Uint32, Uint32, Uint32, Uint32, Uint32)': src/game/map.cpp:383:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.maxx = width - x; ^ src/game/map.cpp:384:32: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.maxxtileoffs = xtile; ^ src/game/map.cpp:387:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.maxy = height - y; ^ src/game/map.cpp:388:32: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.maxytileoffs = ytile; ^ src/game/map.cpp:391:25: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.tilewidth = tilew; ^ src/game/map.cpp: In member function 'void CnCMap::setValidScroll()': src/game/map.cpp:423:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] temp &= ~s_left; ^ src/game/map.cpp:426:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] temp &= ~s_up; ^ src/game/map.cpp:430:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] temp &= ~s_right; ^ src/game/map.cpp:434:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] temp &= ~s_down; ^ src/game/map.cpp: In member function 'Uint16 CnCMap::getCost(Uint16, Unit*) const': src/game/map.cpp:677:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] cost = 1 + p::uspool->getTileCost(pos); ^ src/game/map.cpp:679:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] cost = 1 + p::uspool->getTileCost(pos,excpUn); ^ src/game/map.cpp: In member function 'SDL_Surface* CnCMap::getMiniMap(Uint8)': src/game/map.cpp:734:62: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] for(Uint32 i = 0; i < (Uint32) width*height; i++, pos.x += pixsize, ^ src/game/map.cpp:737:19: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] pos.y += pixsize; ^ src/game/map.cpp:756:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] miniclip.w = pixsize*(int)floor((double)tx/(double)pixsize); ^ src/game/map.cpp:757:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] miniclip.h = pixsize*(int)floor((double)ty/(double)pixsize); ^ src/game/map.cpp:759:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] miniclip.w = miniclip.w - RA_OFFSET; ^ src/game/map.cpp:760:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] miniclip.h = miniclip.h - RA_OFFSET - 20; ^ src/game/map.cpp:764:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] miniclip.x = abs(miniclip.sidew-miniclip.w)/2; ^ src/game/map.cpp:766:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] miniclip.y = abs(miniclip.sidew - 20 - miniclip.h)/2; ^ src/game/map.cpp:768:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] miniclip.y = abs(miniclip.sidew - miniclip.h)/2; ^ src/game/map.cpp:771:20: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] miniclip.tilew = miniclip.w/pixsize; ^ src/game/map.cpp:772:20: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] miniclip.tileh = miniclip.h/pixsize; ^ src/game/map.cpp: In member function 'void CnCMap::restoreLocation(Uint8)': src/game/map.cpp:800:32: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] scrollpos.curxtileoffs = scrollpos.tilewidth-1; ^ src/game/map.cpp:803:32: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] scrollpos.curytileoffs = scrollpos.tilewidth-1; ^ src/game/map.cpp: In member function 'void CnCMap::translateFromPos(Uint32, Uint16*, Uint16*) const': src/game/map.cpp:830:8: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *y = pos/width; ^ src/game/map.cpp:831:8: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *x = pos-((*y)*width); ^ In file included from src/include/common.h:5:0, from src/include/ccmap.h:9, from src/game/dispatcher.cpp:2: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/structure.h:9:0, from src/include/ccmap.h:11, from src/game/dispatcher.cpp:2: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ In file included from src/include/common.h:5:0, from src/include/unitorstructure.h:10, from src/include/triggers.h:4, from src/game/triggers.cpp:4: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/structure.h:9:0, from src/include/ccmap.h:11, from src/game/unit.cpp:6: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ In file included from src/include/ccmap.h:11:0, from src/game/dispatcher.cpp:2: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ In file included from src/include/ccmap.h:11:0, from src/game/unit.cpp:6: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ In file included from src/include/structure.h:9:0, from src/include/ccmap.h:11, from src/game/triggers.cpp:5: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ In file included from src/include/ccmap.h:11:0, from src/game/triggers.cpp:5: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ In file included from src/game/dispatcher.cpp:2:0: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ In file included from src/include/playerpool.h:10:0, from src/game/dispatcher.cpp:7: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/game/dispatcher.cpp:9:0: src/include/unit.h: In member function 'Uint8 InfantryGroup::GetFreePos() const': src/include/unit.h:458:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] return i; ^ src/include/unit.h: In member function 'Uint8 InfantryGroup::GetImageNums(Uint32**, Sint8**, Sint8**)': src/include/unit.h:478:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*xoffsets)[j]=positions[i]->getXoffset()+unitoffsets[i]; ^ src/include/unit.h:479:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*yoffsets)[j]=positions[i]->getYoffset()+unitoffsets[i+5]; ^ src/include/unit.h: In member function 'void InfantryGroup::GetSubposOffsets(Uint8, Uint8, Sint8*, Sint8*)': src/include/unit.h:488:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xoffs = unitoffsets[oldsp]-unitoffsets[newsp]; ^ src/include/unit.h:489:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *yoffs = unitoffsets[oldsp+5]-unitoffsets[newsp+5]; ^ In file included from src/game/unit.cpp:6:0: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ In file included from src/game/dispatcher.cpp:11:0: src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbUnits()': src/include/unitandstructurepool.h:105:55: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbUnits (void) { return unitpool.size(); } ^ src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbStructures()': src/include/unitandstructurepool.h:110:65: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbStructures (void) { return structurepool.size(); } ^ src/game/dispatcher.cpp: In member function 'void Dispatcher::Dispatcher::unitMove(Unit*, Uint32)': src/game/dispatcher.cpp:51:26: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] un->move(dest); ^ src/game/dispatcher.cpp: In member function 'bool Dispatcher::Dispatcher::structurePlace(const StructureType*, Uint32, Uint8)': src/game/dispatcher.cpp:116:107: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] return p::uspool->createStructure(const_cast(type),pos,owner,FULLHEALTH,0,true); ^ src/game/dispatcher.cpp: In member function 'bool Dispatcher::Dispatcher::structurePlace(const char*, Uint32, Uint8)': src/game/dispatcher.cpp:131:80: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] return p::uspool->createStructure(tname,pos,owner,FULLHEALTH,0,true); ^ src/game/dispatcher.cpp: In member function 'bool Dispatcher::Dispatcher::unitCreate(const char*, Uint32, Uint8, Uint8)': src/game/dispatcher.cpp:176:77: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] return p::uspool->createUnit(tname,pos,subpos,owner,FULLHEALTH,0); ^ In file included from src/include/playerpool.h:10:0, from src/game/unit.cpp:9: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/game/unit.cpp:13:0: src/include/unit.h: In member function 'Uint8 InfantryGroup::GetFreePos() const': src/include/unit.h:458:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] return i; ^ src/include/unit.h: In member function 'Uint8 InfantryGroup::GetImageNums(Uint32**, Sint8**, Sint8**)': src/include/unit.h:478:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*xoffsets)[j]=positions[i]->getXoffset()+unitoffsets[i]; ^ src/include/unit.h:479:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*yoffsets)[j]=positions[i]->getYoffset()+unitoffsets[i+5]; ^ src/include/unit.h: In member function 'void InfantryGroup::GetSubposOffsets(Uint8, Uint8, Sint8*, Sint8*)': src/include/unit.h:488:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xoffs = unitoffsets[oldsp]-unitoffsets[newsp]; ^ src/include/unit.h:489:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *yoffs = unitoffsets[oldsp+5]-unitoffsets[newsp+5]; ^ In file included from src/game/unit.cpp:15:0: src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbUnits()': src/include/unitandstructurepool.h:105:55: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbUnits (void) { return unitpool.size(); } ^ src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbStructures()': src/include/unitandstructurepool.h:110:65: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbStructures (void) { return structurepool.size(); } ^ In file included from src/game/unit.cpp:17:0: src/include/sidebar.h: In member function 'Uint16 Sidebar::width()': src/include/sidebar.h:59:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return sbar->w; ^ src/game/unit.cpp: In constructor 'UnitType::UnitType(const char*, INIFile*)': src/game/unit.cpp:65:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] unittype = unitini->readInt(tname, "unittype",0); ^ src/game/unit.cpp:70:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] numlayers = unitini->readInt(tname, "layers", 1); ^ src/game/unit.cpp:77:59: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] shpimage = new SHPImage(shpname.c_str(), mapscaleq); ^ src/game/unit.cpp:95:16: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] buildlevel = unitini->readInt(tname,"buildlevel",99); ^ src/game/unit.cpp:96:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] techlevel = unitini->readInt(tname,"techlevel",99); ^ src/game/unit.cpp:113:19: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] speed = (tmpspeed>4)?2:(7-tmpspeed); ^ src/game/unit.cpp:114:21: warning: conversion to 'Sint8 {aka signed char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] movemod = (tmpspeed>4)?(tmpspeed-4):1; ^ src/game/unit.cpp:121:19: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] speed = (tmpspeed>4)?2:(7-tmpspeed); ^ src/game/unit.cpp:122:21: warning: conversion to 'Sint8 {aka signed char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] movemod = (tmpspeed>4)?(tmpspeed-4):1; ^ src/game/unit.cpp:128:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] sight = unitini->readInt(tname, "sight", 3); ^ src/game/unit.cpp:131:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] sight = unitini->readInt(tname, "sight", 5); ^ src/game/unit.cpp:135:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] maxhealth = unitini->readInt(tname, "health", 50); ^ src/game/unit.cpp:136:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] cost = unitini->readInt(tname, "cost", 0); ^ src/game/unit.cpp:146:19: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] turnspeed = (tmpspeed>4)?2:(7-tmpspeed); ^ src/game/unit.cpp:147:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] turnmod = (tmpspeed>4)?(tmpspeed-4):1; ^ src/game/unit.cpp:154:16: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] offset = (shpimage->getWidth()-24)>>1; ^ src/game/unit.cpp:186:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] pipcolour = unitini->readInt(tname,"pipcolour",0); ^ src/game/unit.cpp:207:26: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] animinfo.loopend = unitini->readInt(tname,"loopend",31); ^ src/game/unit.cpp:208:27: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] animinfo.loopend2 = unitini->readInt(tname,"loopend2",0); ^ src/game/unit.cpp:210:28: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] animinfo.animspeed = unitini->readInt(tname,"animspeed", 3); ^ src/game/unit.cpp:215:27: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] animinfo.animtype = unitini->readInt(tname, "animtype", 0); ^ src/game/unit.cpp:216:27: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] animinfo.sectype = unitini->readInt(tname, "sectype", 0); ^ src/game/unit.cpp:218:27: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] animinfo.dmgoff = unitini->readInt(tname, "dmgoff", ((shptnum[0]-1)>>1)); ^ src/game/unit.cpp: In constructor 'Unit::Unit(UnitType*, Uint16, Uint8, InfantryGroup*, Uint8, Uint16, Uint8, Uint8, std::__cxx11::string)': src/game/unit.cpp:269:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] palettenum = (p::ppool->getStructpalNum(owner)<<11); ^ src/game/unit.cpp:271:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] palettenum = (p::ppool->getUnitpalNum(owner)<<11); ^ src/game/unit.cpp: In destructor 'virtual Unit::~Unit()': src/game/unit.cpp:362:111: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] p::uspool->createStructure(type->getDeployTarget(),calcDeployPos(),owner,(Uint16)(ratio*256.0f),0,true); ^ src/game/unit.cpp:324:6: warning: variable 'Tm' set but not used [-Wunused-but-set-variable] tm *Tm; ^ src/game/unit.cpp: In member function 'unsigned int Unit::FindTiberium()': src/game/unit.cpp:397:32: warning: conversion to 'Uint16 {aka short unsigned int}' from 'unsigned int' may alter its value [-Wconversion] Distance = this->getDist(pos); ^ src/game/unit.cpp:413:33: warning: conversion to 'Uint16 {aka short unsigned int}' from 'unsigned int' may alter its value [-Wconversion] Distance = this->getDist(pos); ^ src/game/unit.cpp: In member function 'Uint8 Unit::getImageNums(Uint32**, Sint8**, Sint8**)': src/game/unit.cpp:448:24: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*xoffsets)[i] = xoffset-type->getOffset(); ^ src/game/unit.cpp:449:24: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*yoffsets)[i] = yoffset-type->getOffset(); ^ src/game/unit.cpp: In member function 'void Unit::ChangeHealth(Sint16)': src/game/unit.cpp:490:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] health += amount; ^ src/game/unit.cpp: In member function 'void Unit::Harvest(Uint32, Structure*)': src/game/unit.cpp:624:25: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] this->move(pos, false); ^ src/game/unit.cpp: In member function 'bool Unit::Repair(Structure*)': src/game/unit.cpp:642:7: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] xpos += str->getType()->getXsize()/2 ; ^ src/game/unit.cpp:643:7: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ypos += str->getType()->getYsize()/2; ^ src/game/unit.cpp: In member function 'virtual void Unit::applyDamage(Sint16, Weapon*, UnitOrStructure*)': src/game/unit.cpp:742:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] health -= amount; ^ src/game/unit.cpp: In member function 'bool Unit::checkDeployTarget(Uint32)': src/game/unit.cpp:808:79: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] if( type->getDeployType()->isBlocked(placeypos*typewidth+placexpos) ) { ^ src/game/unit.cpp:809:75: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] if (!p::ccmap->isBuildableAt(this->getOwner(), curpos,this)) { ^ src/game/unit.cpp: In member function 'virtual void Unit::setImageNum(Uint32, Uint8)': src/game/unit.cpp:885:26: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] imagenumbers[layer] = num | palettenum; ^ src/game/unit.cpp: In member function 'virtual Sint8 Unit::getXoffset() const': src/game/unit.cpp:895:40: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] return xoffset-type->getOffset(); ^ src/game/unit.cpp: In member function 'virtual Sint8 Unit::getYoffset() const': src/game/unit.cpp:904:40: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] return yoffset-type->getOffset(); ^ src/game/unit.cpp: In member function 'Uint16 Unit::getDist(Uint16)': src/game/unit.cpp:934:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] xdiff = abs(x-nx); ^ src/game/unit.cpp:935:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ydiff = abs(y-ny); ^ src/game/unit.cpp:937:50: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] return (Uint32) sqrt (xdiff*xdiff+ydiff*ydiff); ^ In file included from src/game/triggers.cpp:5:0: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ c++ -o src/game/path.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/path.cpp In file included from src/game/triggers.cpp:6:0: src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbUnits()': src/include/unitandstructurepool.h:105:55: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbUnits (void) { return unitpool.size(); } ^ src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbStructures()': src/include/unitandstructurepool.h:110:65: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbStructures (void) { return structurepool.size(); } ^ In file included from src/include/playerpool.h:10:0, from src/include/ai.h:8, from src/include/unit.h:17, from src/game/triggers.cpp:8: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/game/triggers.cpp:8:0: src/include/unit.h: In member function 'Uint8 InfantryGroup::GetFreePos() const': src/include/unit.h:458:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] return i; ^ src/include/unit.h: In member function 'Uint8 InfantryGroup::GetImageNums(Uint32**, Sint8**, Sint8**)': src/include/unit.h:478:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*xoffsets)[j]=positions[i]->getXoffset()+unitoffsets[i]; ^ src/include/unit.h:479:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*yoffsets)[j]=positions[i]->getYoffset()+unitoffsets[i+5]; ^ src/include/unit.h: In member function 'void InfantryGroup::GetSubposOffsets(Uint8, Uint8, Sint8*, Sint8*)': src/include/unit.h:488:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xoffs = unitoffsets[oldsp]-unitoffsets[newsp]; ^ src/include/unit.h:489:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *yoffs = unitoffsets[oldsp+5]-unitoffsets[newsp+5]; ^ src/game/triggers.cpp: In function 'void ExecuteTriggerAction(unsigned int, Uint8, RA_Tiggers*)': src/game/triggers.cpp:659:19: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] TriggerName[j]=toupper(TriggerName[j]); ^ c++ -o src/game/player.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/player.cpp In file included from src/include/common.h:5:0, from src/include/unit.h:12, from src/include/path.h:8, from src/game/path.cpp:6: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ src/game/triggers.cpp:583:57: warning: 'Waypoint' may be used uninitialized in this function [-Wmaybe-uninitialized] p::ppool->getLPlayer()->revealAroundWaypoint(Waypoint); ^ In file included from src/include/common.h:5:0, from src/include/buildqueue.h:7, from src/game/player.cpp:5: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/structure.h:9:0, from src/include/unitanimations.h:8, from src/include/unit.h:15, from src/include/path.h:8, from src/game/path.cpp:6: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ In file included from src/include/unitanimations.h:8:0, from src/include/unit.h:15, from src/include/path.h:8, from src/game/path.cpp:6: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ In file included from src/include/playerpool.h:10:0, from src/include/ai.h:8, from src/include/unit.h:17, from src/include/path.h:8, from src/game/path.cpp:6: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/include/structure.h:9:0, from src/include/ccmap.h:11, from src/game/player.cpp:6: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ In file included from src/include/ccmap.h:11:0, from src/game/player.cpp:6: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ In file included from src/game/player.cpp:6:0: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ In file included from src/include/path.h:8:0, from src/game/path.cpp:6: src/include/unit.h: In member function 'Uint8 InfantryGroup::GetFreePos() const': src/include/unit.h:458:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] return i; ^ src/include/unit.h: In member function 'Uint8 InfantryGroup::GetImageNums(Uint32**, Sint8**, Sint8**)': src/include/unit.h:478:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*xoffsets)[j]=positions[i]->getXoffset()+unitoffsets[i]; ^ src/include/unit.h:479:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*yoffsets)[j]=positions[i]->getYoffset()+unitoffsets[i+5]; ^ src/include/unit.h: In member function 'void InfantryGroup::GetSubposOffsets(Uint8, Uint8, Sint8*, Sint8*)': src/include/unit.h:488:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xoffs = unitoffsets[oldsp]-unitoffsets[newsp]; ^ src/include/unit.h:489:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *yoffs = unitoffsets[oldsp+5]-unitoffsets[newsp+5]; ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ c++ -o src/game/unitandstructurepool.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/unitandstructurepool.cpp In file included from src/game/path.cpp:11:0: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ src/game/path.cpp: In constructor 'Path::Path(Unit*, Uint32, Uint32, Uint8)': src/game/path.cpp:77:63: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] Uint16 mapsize = p::ccmap->getWidth()*p::ccmap->getHeight(); ^ src/game/path.cpp:102:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] diffx = abs( startposx - stopposx ); ^ src/game/path.cpp:103:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] diffy = abs( startposy - stopposy ); ^ src/game/path.cpp:142:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ncrY = crY-1; ^ src/game/path.cpp:144:58: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dwCost = cellTempU->g + p::ccmap->getCost(crV, Unit)*10; ^ src/game/path.cpp:151:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ncrX = crX+1; ^ src/game/path.cpp:152:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ncrY = crY-1; ^ src/game/path.cpp:154:58: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dwCost = cellTempU->g + p::ccmap->getCost(crV, Unit)*14; ^ src/game/path.cpp:162:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ncrX = crX+1; ^ src/game/path.cpp:164:58: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dwCost = cellTempU->g + p::ccmap->getCost(crV, Unit)*10; ^ src/game/path.cpp:171:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ncrX = crX+1; ^ src/game/path.cpp:172:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ncrY = crY+1; ^ src/game/path.cpp:174:58: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dwCost = cellTempU->g + p::ccmap->getCost(crV, Unit)*14; ^ src/game/path.cpp:182:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ncrY = crY+1; ^ src/game/path.cpp:184:58: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dwCost = cellTempU->g + p::ccmap->getCost(crV, Unit)*10; ^ src/game/path.cpp:191:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ncrX = crX-1; ^ src/game/path.cpp:192:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ncrY = crY+1; ^ src/game/path.cpp:194:58: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dwCost = cellTempU->g + p::ccmap->getCost(crV, Unit)*14; ^ src/game/path.cpp:202:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ncrX = crX-1; ^ src/game/path.cpp:204:58: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dwCost = cellTempU->g + p::ccmap->getCost(crV, Unit)*10; ^ src/game/path.cpp:211:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ncrX = crX-1; ^ src/game/path.cpp:212:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] ncrY = crY-1; ^ src/game/path.cpp:214:58: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dwCost = cellTempU->g + p::ccmap->getCost(crV, Unit)*14; ^ src/game/path.cpp:249:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] diffx = abs( ncrX - stopposx ); ^ src/game/path.cpp:250:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] diffy = abs( ncrY - stopposy ); ^ In file included from src/game/player.cpp:11:0: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/game/player.cpp:16:0: src/include/unit.h: In member function 'Uint8 InfantryGroup::GetFreePos() const': src/include/unit.h:458:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] return i; ^ src/include/unit.h: In member function 'Uint8 InfantryGroup::GetImageNums(Uint32**, Sint8**, Sint8**)': src/include/unit.h:478:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*xoffsets)[j]=positions[i]->getXoffset()+unitoffsets[i]; ^ src/include/unit.h:479:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*yoffsets)[j]=positions[i]->getYoffset()+unitoffsets[i+5]; ^ src/include/unit.h: In member function 'void InfantryGroup::GetSubposOffsets(Uint8, Uint8, Sint8*, Sint8*)': src/include/unit.h:488:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xoffs = unitoffsets[oldsp]-unitoffsets[newsp]; ^ src/include/unit.h:489:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *yoffs = unitoffsets[oldsp+5]-unitoffsets[newsp+5]; ^ In file included from src/include/common.h:5:0, from src/include/ccmap.h:9, from src/game/unitandstructurepool.cpp:4: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/game/player.cpp:17:0: src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbUnits()': src/include/unitandstructurepool.h:105:55: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbUnits (void) { return unitpool.size(); } ^ src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbStructures()': src/include/unitandstructurepool.h:110:65: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbStructures (void) { return structurepool.size(); } ^ In file included from src/game/player.cpp:18:0: src/include/sidebar.h: In member function 'Uint16 Sidebar::width()': src/include/sidebar.h:59:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return sbar->w; ^ src/game/player.cpp: In constructor 'Player::Player(const char*, INIFile*)': src/game/player.cpp:74:23: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] multiside = playername[5] - 48; ^ src/game/player.cpp:77:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] unitpalnum = multiside - 1; ^ src/game/player.cpp:78:26: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] structpalnum = multiside - 1; ^ src/game/player.cpp: In member function 'bool Player::changeMoney(Sint32)': src/game/player.cpp:153:45: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Sint32 {aka int}' may alter its value [-Wconversion] counter->addCredit(change, playernum); ^ src/game/player.cpp:160:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Sint32 {aka int}' may alter its value [-Wconversion] counter->addDebt(-change, playernum); ^ src/game/player.cpp: In member function 'void Player::revealAroundWaypoint(Uint32)': src/game/player.cpp:179:45: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] wp_cellpos = p::ccmap->getWaypoint(Waypoint); ^ src/game/player.cpp:189:51: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] Uint32 cellpos = p::ccmap->translateToPos(x, y); ^ src/game/player.cpp:189:51: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src/game/player.cpp: In member function 'void Player::setMultiColour(int)': src/game/player.cpp:397:30: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] unitpalnum = structpalnum = colour; ^ src/game/player.cpp:400:30: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] unitpalnum = structpalnum = colour; ^ src/game/player.cpp: In member function 'void Player::addSoB(Uint32, Uint8, Uint8, Uint8, Player::SOB_update)': src/game/player.cpp:786:29: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] sightMatrix[curpos] += (mode == SOB_SIGHT); ^ src/game/player.cpp:787:29: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] buildMatrix[curpos] += (mode == SOB_BUILD); ^ c++ -o src/game/playerpool.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/playerpool.cpp In file included from src/include/common.h:5:0, from src/game/playerpool.cpp:3: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ c++ -o src/game/structure.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/game/structure.cpp In file included from src/include/structure.h:9:0, from src/include/ccmap.h:11, from src/game/unitandstructurepool.cpp:4: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ In file included from src/include/ccmap.h:11:0, from src/game/unitandstructurepool.cpp:4: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ In file included from src/include/common.h:5:0, from src/include/ccmap.h:9, from src/game/structure.cpp:3: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/game/unitandstructurepool.cpp:4:0: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ In file included from src/include/playerpool.h:10:0, from src/game/playerpool.cpp:5: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ src/game/playerpool.cpp: In member function 'Uint16 PlayerPool::getAStart()': src/game/playerpool.cpp:265:9: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] rnd = (int) ((double)sze*rand()/(RAND_MAX+1.0)); ^ src/game/playerpool.cpp:267:13: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] rnd = (int) ((double)sze*rand()/(RAND_MAX+1.0)); ^ src/game/playerpool.cpp:269:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] rv = playerstarts[rnd]; ^ In file included from src/include/playerpool.h:10:0, from src/game/unitandstructurepool.cpp:9: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/game/unitandstructurepool.cpp:11:0: src/include/unit.h: In member function 'Uint8 InfantryGroup::GetFreePos() const': src/include/unit.h:458:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] return i; ^ src/include/unit.h: In member function 'Uint8 InfantryGroup::GetImageNums(Uint32**, Sint8**, Sint8**)': src/include/unit.h:478:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*xoffsets)[j]=positions[i]->getXoffset()+unitoffsets[i]; ^ src/include/unit.h:479:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*yoffsets)[j]=positions[i]->getYoffset()+unitoffsets[i+5]; ^ src/include/unit.h: In member function 'void InfantryGroup::GetSubposOffsets(Uint8, Uint8, Sint8*, Sint8*)': src/include/unit.h:488:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xoffs = unitoffsets[oldsp]-unitoffsets[newsp]; ^ src/include/unit.h:489:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *yoffs = unitoffsets[oldsp+5]-unitoffsets[newsp+5]; ^ In file included from src/include/structure.h:9:0, from src/include/ccmap.h:11, from src/game/structure.cpp:3: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ In file included from src/game/unitandstructurepool.cpp:13:0: src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbUnits()': src/include/unitandstructurepool.h:105:55: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbUnits (void) { return unitpool.size(); } ^ src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbStructures()': src/include/unitandstructurepool.h:110:65: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbStructures (void) { return structurepool.size(); } ^ In file included from src/include/ccmap.h:11:0, from src/game/structure.cpp:3: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ src/game/unitandstructurepool.cpp: In member function 'bool UnitAndStructurePool::getUnitOrStructureLimAt(Uint32, float*, float*, Uint32*, Uint8*, Uint8*, Uint8*, bool*)': src/game/unitandstructurepool.cpp:287:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] if (igrp->UnitAt(i) != NULL) ^ src/game/unitandstructurepool.cpp:288:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *igroup |= 1<getBPos(curpos); ^ src/game/unitandstructurepool.cpp:327:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] if (igrp->UnitAt(i) != NULL) ^ src/game/unitandstructurepool.cpp:328:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *igroup |= 1<::mapped_type {aka short unsigned int}' may alter its value [-Wconversion] numentries = numl2images[pos]; ^ src/game/unitandstructurepool.cpp: In member function 'std::multimap::iterator UnitAndStructurePool::addL2overlay(Uint16, L2Overlay*)': src/game/unitandstructurepool.cpp:371:26: warning: conversion to 'std::map::mapped_type {aka short unsigned int}' from 'int' may alter its value [-Wconversion] numl2images[cellpos] += ov->numimages; ^ src/game/unitandstructurepool.cpp: In member function 'void UnitAndStructurePool::removeL2overlay(std::multimap::iterator)': src/game/unitandstructurepool.cpp:382:24: warning: conversion to 'std::map::key_type {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] numl2images[cellpos] -= entry->second->numimages; ^ src/game/unitandstructurepool.cpp:382:26: warning: conversion to 'std::map::mapped_type {aka short unsigned int}' from 'int' may alter its value [-Wconversion] numl2images[cellpos] -= entry->second->numimages; ^ src/game/unitandstructurepool.cpp:384:28: warning: conversion to 'std::multimap::key_type {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] if( l2pool.find(cellpos) == l2pool.end() ) { ^ src/game/unitandstructurepool.cpp: In member function 'bool UnitAndStructurePool::createStructure(StructureType*, Uint16, Uint8, Uint16, Uint8, bool, std::__cxx11::string)': src/game/unitandstructurepool.cpp:429:19: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] structnum = structurepool.size(); ^ src/game/unitandstructurepool.cpp:439:14: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] structnum = structurepool.size(); ^ src/game/unitandstructurepool.cpp:443:43: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] unitandstructmat[cellpos].structurenumb = structnum; ^ src/game/unitandstructurepool.cpp:450:57: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] if (type->isBlocked(y*type->getXsize()+x)) { ^ c++ -o src/misc/compression.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/misc/compression.cpp src/game/unitandstructurepool.cpp:473:57: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] if (type->isBlocked(y*type->getXsize()+x)) { ^ src/game/unitandstructurepool.cpp:477:17: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] structnum = structurepool.size(); ^ src/game/unitandstructurepool.cpp:481:46: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] if (type->isBlocked(y*type->getXsize()+x) == 2) { ^ src/game/unitandstructurepool.cpp:483:48: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] unitandstructmat[curpos+x].structurenumb = structnum; ^ src/game/unitandstructurepool.cpp:487:48: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] unitandstructmat[curpos+x].structurenumb = structnum; ^ src/game/unitandstructurepool.cpp:524:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] frame = x+y*4; ^ src/game/unitandstructurepool.cpp:530:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] frame = x+y*3; ^ src/game/unitandstructurepool.cpp:536:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] frame = x+y*2; ^ src/game/unitandstructurepool.cpp: In member function 'bool UnitAndStructurePool::createReinforcements(RA_Teamtype*)': src/game/unitandstructurepool.cpp:581:56: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] owner = p::ppool->getPlayerNumByHouseNum(Team->country); ^ src/game/unitandstructurepool.cpp:581:8: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] owner = p::ppool->getPlayerNumByHouseNum(Team->country); ^ src/game/unitandstructurepool.cpp:583:107: warning: format '%i' expects argument of type 'int', but argument 4 has type 'std::vector::size_type {aka long unsigned int}' [-Wformat=] printf ("%s line %i: Team size = %i, Owner = %i\n", __FILE__, __LINE__, Team->Units.size(), (int)owner); ^ src/game/unitandstructurepool.cpp:586:55: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] cellpos = p::ccmap->getWaypoint(Team->waypoint); ^ src/game/unitandstructurepool.cpp:586:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] cellpos = p::ccmap->getWaypoint(Team->waypoint); ^ src/game/unitandstructurepool.cpp: In member function 'bool UnitAndStructurePool::createUnit(UnitType*, Uint16, Uint8, Uint8, Uint16, Uint8, Uint8, std::__cxx11::string)': src/game/unitandstructurepool.cpp:639:76: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if (getStructureAt(cellpos) != NULL && (unitandstructmat[cellpos].flags&(US_HIGH_COST) == 0)) { ^ src/game/unitandstructurepool.cpp:657:17: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] unitnum = unitpool.size(); ^ src/game/unitandstructurepool.cpp:674:11: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] unitnum = unitpool.size(); ^ src/game/unitandstructurepool.cpp:678:38: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] unitandstructmat[cellpos].unitnumb = unitnum; ^ src/game/unitandstructurepool.cpp:684:41: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] unitandstructmat[cellpos].airunitnumb = unitnum; ^ src/game/unitandstructurepool.cpp: In member function 'Uint16 UnitAndStructurePool::getSelected(Uint32)': src/game/unitandstructurepool.cpp:946:82: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] if( !unitpool[unitandstructmat[pos].unitnumb]->getInfantryGroup()->IsClear(i) ) ^ src/game/unitandstructurepool.cpp:947:80: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] if(unitpool[unitandstructmat[pos].unitnumb]->getInfantryGroup()->UnitAt(i)->isSelected() ) ^ src/game/unitandstructurepool.cpp:948:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] selected |= 1<getInfantryGroup()->IsClear(i) ) ^ src/game/unitandstructurepool.cpp:965:83: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] if(unitpool[unitandstructmat[pos].airunitnumb]->getInfantryGroup()->UnitAt(i)->isSelected() ) ^ src/game/unitandstructurepool.cpp:966:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] selected |= 1<getType())->getXsize()<<8) | 1; ^ src/game/unitandstructurepool.cpp: In member function 'Uint16 UnitAndStructurePool::preMove(Unit*, Uint8, Sint8*, Sint8*, Unit**)': src/game/unitandstructurepool.cpp:1002:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] newpos = un->getPos()-ccmap->getWidth(); ^ src/game/unitandstructurepool.cpp:1004:10: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *ymod = -unitmod; ^ src/game/unitandstructurepool.cpp:1007:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] newpos = un->getPos()-ccmap->getWidth()+1; ^ src/game/unitandstructurepool.cpp:1009:10: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *ymod = -unitmod; ^ src/game/unitandstructurepool.cpp:1012:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] newpos = un->getPos()+1; ^ src/game/unitandstructurepool.cpp:1017:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] newpos = un->getPos()+ccmap->getWidth()+1; ^ src/game/unitandstructurepool.cpp:1022:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] newpos = un->getPos()+ccmap->getWidth(); ^ src/game/unitandstructurepool.cpp:1027:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] newpos = un->getPos()+ccmap->getWidth()-1; ^ src/game/unitandstructurepool.cpp:1028:10: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xmod = -unitmod; ^ src/game/unitandstructurepool.cpp:1032:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] newpos = un->getPos()-1; ^ src/game/unitandstructurepool.cpp:1033:10: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xmod = -unitmod; ^ src/game/unitandstructurepool.cpp:1037:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] newpos = un->getPos()-ccmap->getWidth()-1; ^ src/game/unitandstructurepool.cpp:1038:10: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xmod = -unitmod; ^ src/game/unitandstructurepool.cpp:1039:10: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *ymod = -unitmod; ^ src/game/unitandstructurepool.cpp:1051:36: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if (unitandstructmat[newpos].flags&(US_HIGH_COST) != 0) ^ src/game/unitandstructurepool.cpp:1069:90: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] if (unitandstructmat[newpos].flags&(US_IS_STRUCTURE) && (unitandstructmat[newpos].flags&(US_IS_UNIT) == 0)) { ^ src/game/unitandstructurepool.cpp: In member function 'Uint8 UnitAndStructurePool::unhideUnit(Unit*, Uint16, bool)': src/game/unitandstructurepool.cpp:1210:10: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] subpos = un->getSubpos(); ^ src/game/unitandstructurepool.cpp:1233:48: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] unitandstructmat[un->getPos()].unitnumb = ig->UnitAt(i)->getNum(); ^ src/game/unitandstructurepool.cpp:1247:51: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] unitandstructmat[un->getPos()].airunitnumb = ig->UnitAt(i)->getNum(); ^ src/game/unitandstructurepool.cpp:1272:39: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] unitandstructmat[newpos].unitnumb = un->getNum(); ^ src/game/unitandstructurepool.cpp:1301:39: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] unitandstructmat[newpos].unitnumb = un->getNum(); ^ src/game/unitandstructurepool.cpp:1309:42: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] unitandstructmat[newpos].airunitnumb = un->getNum(); ^ src/game/unitandstructurepool.cpp: In member function 'void UnitAndStructurePool::hideUnit(Unit*)': src/game/unitandstructurepool.cpp:1333:47: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] ig->RemoveInfantry(un->getSubpos()); ^ src/game/unitandstructurepool.cpp: In member function 'void UnitAndStructurePool::abortMove(Unit*, Uint32)': src/game/unitandstructurepool.cpp:1351:39: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] if( !(unitandstructmat[pos].flags & US_MOVING_HERE|US_AIR_MOVING_HERE) ) { ^ src/game/unitandstructurepool.cpp: In member function 'Uint16 UnitAndStructurePool::getTileCost(Uint16) const': src/game/unitandstructurepool.cpp:1370:12: warning: variable 'str' set but not used [-Wunused-but-set-variable] Structure *str; ^ src/misc/compression.cpp: In function 'int Compression::decode80(const Uint8*, Uint8*)': src/misc/compression.cpp:94:35: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *writep++ = code; ^ src/misc/compression.cpp:124:31: warning: conversion to 'int' from 'long int' may alter its value [-Wconversion] return (writep - image_out); ^ src/misc/compression.cpp: In function 'int Compression::decode40(const Uint8*, Uint8*)': src/misc/compression.cpp:157:31: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *writep++ ^= code; ^ src/misc/compression.cpp:162:31: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *writep++ ^= *readp++; ^ src/misc/compression.cpp:193:39: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *writep++ ^= *readp++; ^ src/misc/compression.cpp:199:39: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *writep++ ^= code; ^ src/misc/compression.cpp:208:31: warning: conversion to 'int' from 'long int' may alter its value [-Wconversion] return (writep - image_out); ^ src/misc/compression.cpp: In function 'int Compression::decode20(const Uint8*, Uint8*, int)': src/misc/compression.cpp:225:18: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *w++ = v; ^ src/misc/compression.cpp:232:16: warning: conversion to 'int' from 'long int' may alter its value [-Wconversion] return w - d; ^ src/misc/compression.cpp: In function 'int Compression::dec_base64(const unsigned char*, unsigned char*, size_t)': src/misc/compression.cpp:249:12: warning: conversion to 'int' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] for( i = length-1; src[i] == '='; i-- ) { ^ src/misc/compression.cpp:262:18: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] dtable[i]= i-'A'; ^ src/misc/compression.cpp:265:18: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] dtable[i]= 26+(i-'a'); ^ src/misc/compression.cpp:268:18: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] dtable[i]= 52+(i-'0'); ^ src/misc/compression.cpp:284:19: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] target[0] = a << 2 | b >> 4; ^ src/misc/compression.cpp:285:19: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] target[1] = b << 4 | c >> 2; ^ src/misc/compression.cpp:286:19: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] target[2] = c << 6 | d; ^ src/misc/compression.cpp:296:23: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] target[0] = a << 2 | b >> 4; ^ src/misc/compression.cpp:302:23: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] target[0] = a << 2 | b >> 4; ^ src/misc/compression.cpp:303:23: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] target[1] = b << 4 | c >> 2; ^ src/game/unitandstructurepool.cpp: In member function 'Uint16 UnitAndStructurePool::getTileCost(Uint16, Unit*) const': src/game/unitandstructurepool.cpp:1425:4: warning: variable 'WaterBound' set but not used [-Wunused-but-set-variable] WaterBound = false; ^ src/game/unitandstructurepool.cpp: In member function 'UnitType* UnitAndStructurePool::getUnitTypeByName(const char*)': src/game/unitandstructurepool.cpp:1554:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] typenum = unittypepool.size(); ^ src/game/unitandstructurepool.cpp: In member function 'StructureType* UnitAndStructurePool::getStructureTypeByName(const char*)': src/game/unitandstructurepool.cpp:1583:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] typenum = structuretypepool.size(); ^ src/game/unitandstructurepool.cpp: In member function 'void UnitAndStructurePool::removeUnit(Unit*)': src/game/unitandstructurepool.cpp:1613:47: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint16 {aka short unsigned int}' may alter its value [-Wconversion] infgrp->RemoveInfantry(un->getSubpos()); ^ src/game/unitandstructurepool.cpp:1619:38: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] if(!infgrp->IsClear(i)) { ^ src/game/unitandstructurepool.cpp:1621:79: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] unitandstructmat[un->getPos()].unitnumb = infgrp->UnitAt(i)->getNum(); ^ src/game/unitandstructurepool.cpp:1621:61: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] unitandstructmat[un->getPos()].unitnumb = infgrp->UnitAt(i)->getNum(); ^ src/game/unitandstructurepool.cpp: In member function 'void UnitAndStructurePool::removeStructure(Structure*)': src/game/unitandstructurepool.cpp:1658:113: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] if( ((StructureType *)st->getType())->isBlocked(y*((StructureType *)st->getType())->getXsize()+x) ) { ^ src/game/unitandstructurepool.cpp:1678:20: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] curpos += ccmap->getWidth(); ^ src/game/unitandstructurepool.cpp: In member function 'void UnitAndStructurePool::splitORPreReqs(const char*, std::vector*)': src/game/unitandstructurepool.cpp:1839:21: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] tmp[i2] = toupper(prereqs[i]); ^ src/game/unitandstructurepool.cpp: In member function 'void UnitAndStructurePool::preloadUnitAndStructures(Uint8)': src/game/unitandstructurepool.cpp:1855:19: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] ltech = unitini->readInt(secname.c_str(),"techlevel",100); ^ src/game/unitandstructurepool.cpp:1875:19: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] ltech = structini->readInt(secname.c_str(),"techlevel",100); ^ src/game/unitandstructurepool.cpp: In member function 'void UnitAndStructurePool::generateProductionGroups()': src/game/unitandstructurepool.cpp:1903:30: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] (*ut)->setPType(ptype); ^ src/game/unitandstructurepool.cpp:1906:34: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] (*st)->setPType(ptype); ^ c++ -o src/misc/args.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/misc/args.cpp In file included from src/game/structure.cpp:3:0: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ c++ -o src/misc/mapsini.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/misc/mapsini.cpp In file included from src/misc/mapsini.cpp:5:0: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/playerpool.h:10:0, from src/game/structure.cpp:7: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/include/common.h:5:0, from src/misc/args.cpp:12: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ src/misc/args.cpp: In function 'bool parse(int, char**)': src/misc/args.cpp:93:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] config.width = freecnc_ini->readInt("Video", "Width", 640); ^ src/misc/args.cpp:94:19: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] config.height = freecnc_ini->readInt("Video", "Height", 480); ^ src/misc/args.cpp:95:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] config.bpp = freecnc_ini->readInt("Video", "Bpp", 16); ^ src/misc/args.cpp:98:18: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] config.intro = freecnc_ini->readInt("Options", "PlayIntro", 1); ^ src/misc/args.cpp:104:23: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] config.finaldelay = freecnc_ini->readInt("Options","FinalDelay",100); ^ src/misc/args.cpp:105:23: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] config.scrollstep = freecnc_ini->readInt("Options","ScrollStep",1); ^ src/misc/args.cpp:106:23: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] config.scrolltime = freecnc_ini->readInt("Options","ScrollTime",5); ^ src/misc/args.cpp:107:23: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] config.maxscroll = freecnc_ini->readInt("Options","MaxScroll",24); ^ src/misc/args.cpp:108:29: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] config.buildable_radius = internal_ini->readInt("Rules","buildable_radius",2); ^ src/misc/args.cpp:156:37: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] config.totalplayers = abs(atoi(argv[i+1])); ^ src/misc/args.cpp:173:37: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] config.totalplayers = abs(atoi(argv[i+2])); ^ src/misc/args.cpp:181:34: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] config.playernum = abs(atoi(argv[i+1])); ^ src/misc/args.cpp:221:35: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] config.serverport = abs(atoi(argv[i+1])); ^ src/misc/args.cpp:241:30: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] config.width = atoi(argv[i+1]); ^ src/misc/args.cpp:249:31: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] config.height = atoi(argv[i+1]); ^ src/misc/args.cpp:257:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] config.bpp = atoi(argv[i+1]); ^ src/misc/mapsini.cpp: In member function 'void MissionMapsClass::ReadMissionData()': src/misc/mapsini.cpp:86:12: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::__cxx11::basic_string::size_type {aka long unsigned int}' may alter its value [-Wconversion] if ((pos = tmpString.find (".INI",0)) != (Uint32)string::npos){ ^ src/misc/mapsini.cpp:88:13: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::__cxx11::basic_string::size_type {aka long unsigned int}' may alter its value [-Wconversion] if ((pos = tmpString.find ("SCU",0)) != (Uint32)string::npos){ ^ src/misc/mapsini.cpp: In member function 'void MPmapsClass::ReadMapData()': src/misc/mapsini.cpp:175:12: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::__cxx11::basic_string::size_type {aka long unsigned int}' may alter its value [-Wconversion] if ((pos = tmpString.find (".INI",0)) != (Uint32)string::npos){ ^ src/misc/mapsini.cpp:182:12: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::__cxx11::basic_string::size_type {aka long unsigned int}' may alter its value [-Wconversion] if ((pos = tmpString.find ("=",0)) != (Uint32)string::npos){ ^ src/misc/mapsini.cpp:183:14: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::__cxx11::basic_string::size_type {aka long unsigned int}' may alter its value [-Wconversion] if ((pos1 = tmpString.find (")",0)) != (Uint32)string::npos){ ^ In file included from src/game/structure.cpp:11:0: src/include/unit.h: In member function 'Uint8 InfantryGroup::GetFreePos() const': src/include/unit.h:458:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] return i; ^ src/include/unit.h: In member function 'Uint8 InfantryGroup::GetImageNums(Uint32**, Sint8**, Sint8**)': src/include/unit.h:478:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*xoffsets)[j]=positions[i]->getXoffset()+unitoffsets[i]; ^ src/include/unit.h:479:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*yoffsets)[j]=positions[i]->getYoffset()+unitoffsets[i+5]; ^ src/include/unit.h: In member function 'void InfantryGroup::GetSubposOffsets(Uint8, Uint8, Sint8*, Sint8*)': src/include/unit.h:488:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xoffs = unitoffsets[oldsp]-unitoffsets[newsp]; ^ src/include/unit.h:489:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *yoffs = unitoffsets[oldsp+5]-unitoffsets[newsp+5]; ^ In file included from src/game/structure.cpp:12:0: src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbUnits()': src/include/unitandstructurepool.h:105:55: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbUnits (void) { return unitpool.size(); } ^ src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbStructures()': src/include/unitandstructurepool.h:110:65: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbStructures (void) { return structurepool.size(); } ^ src/game/structure.cpp: In constructor 'StructureType::StructureType(const char*, INIFile*, INIFile*, const char*)': src/game/structure.cpp:83:11: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] xsize = artini->readInt(tname, "xsize",1); ^ src/game/structure.cpp:84:11: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] ysize = artini->readInt(tname, "ysize",1); ^ src/game/structure.cpp:96:13: warning: conversion to 'Sint8 {aka signed char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] xoffset = -(i%xsize)*24; ^ src/game/structure.cpp:97:13: warning: conversion to 'Sint8 {aka signed char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] yoffset = -(i/xsize)*24; ^ src/game/structure.cpp:99:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] blckoff = i; ^ src/game/structure.cpp:104:13: warning: conversion to 'Sint8 {aka signed char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] xoffset = -(i%xsize)*24; ^ src/game/structure.cpp:105:13: warning: conversion to 'Sint8 {aka signed char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] yoffset = -(i/xsize)*24; ^ src/game/structure.cpp:107:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] blckoff = i; ^ src/game/structure.cpp:121:13: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] numshps = structini->readInt(tname, "layers",1); ^ src/game/structure.cpp:126:16: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] buildlevel = structini->readInt(tname,"buildlevel",100); ^ src/game/structure.cpp:127:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] techlevel = structini->readInt(tname,"techlevel",99); ^ src/game/structure.cpp:132:21: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] powerinfo.power = structini->readInt(tname,"power",0); ^ src/game/structure.cpp:133:21: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] powerinfo.drain = structini->readInt(tname,"drain",0); ^ src/game/structure.cpp:135:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] maxhealth = structini->readInt(tname,"health",100); ^ src/game/structure.cpp:170:55: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] shpimage = new SHPImage(shpname, mapscaleq); ^ src/game/structure.cpp:175:59: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] shpimage = new SHPImage(shpname, mapscaleq); ^ src/game/structure.cpp:182:20: warning: conversion to 'Uint16 {aka short unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] shpnums[i] = pc::imagepool->size(); ^ src/game/structure.cpp:188:26: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] animinfo.loopend = structini->readInt(tname,"loopend",0); ^ src/game/structure.cpp:189:27: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] animinfo.loopend2 = structini->readInt(tname,"loopend2",0); ^ src/game/structure.cpp:191:28: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] animinfo.animspeed = structini->readInt(tname,"animspeed", 3); ^ src/game/structure.cpp:196:27: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] animinfo.animtype = structini->readInt(tname, "animtype", 0); ^ src/game/structure.cpp:197:27: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] animinfo.sectype = structini->readInt(tname, "sectype", 0); ^ src/game/structure.cpp:199:27: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] animinfo.dmgoff = structini->readInt(tname, "dmgoff", ((shptnum[0])>>1)); ^ src/game/structure.cpp:201:30: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] animinfo.dmgoff2 = structini->readInt(tname, "dmgoff2", (shptnum[1]>>1)); ^ src/game/structure.cpp:205:27: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] defaultface = structini->readInt(tname, "defaultface", 0); ^ src/game/structure.cpp:213:56: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] makeimage = new SHPImage(shpname, mapscaleq); ^ src/game/structure.cpp:214:21: warning: conversion to 'Uint16 {aka short unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] makeimg = pc::imagepool->size(); ^ src/game/structure.cpp:240:23: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] turnspeed = structini->readInt(tname,"rot",3); ^ src/game/structure.cpp:243:23: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] numwalllevels = structini->readInt(tname,"levels",1); ^ src/game/structure.cpp:248:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] cost = structini->readInt(tname, "cost", 0); ^ src/game/structure.cpp: In constructor 'Structure::Structure(StructureType*, Uint16, Uint8, Uint16, Uint8, std::__cxx11::string)': src/game/structure.cpp:322:29: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[i] |= (p::ppool->getStructpalNum(owner)<<11); ^ src/game/structure.cpp:328:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] bcellpos = cellpos+(type->getBlckOff() % type->getXsize()) + ^ src/game/structure.cpp:346:5: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] y += 2; ^ src/game/structure.cpp:348:61: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] while ( !p::ccmap->isBuildableAt(this->getOwner(), temppos) && y < p::ccmap->getHeight() ){ ^ src/game/structure.cpp:349:6: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] y += 1; ^ src/game/structure.cpp:353:56: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] if (p::ccmap->isBuildableAt(this->getOwner(), temppos)){ ^ src/game/structure.cpp:355:93: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] p::uspool->createUnit(this->type->getDeployWith()[j]/*"HARV"*/, temppos, 0, owner, 256, 0); ^ src/game/structure.cpp: In member function 'virtual Uint16 Structure::getBPos(Uint16) const': src/game/structure.cpp:394:7: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] x = cellpos%mwid; ^ src/game/structure.cpp:397:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'unsigned int' may alter its value [-Wconversion] dx = min((unsigned)(type->getXsize()-1),(unsigned)((pos%mwid)-x)-1); ^ src/game/structure.cpp:399:7: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] y = cellpos/mwid; ^ src/game/structure.cpp:402:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'unsigned int' may alter its value [-Wconversion] dy = min((unsigned)(type->getYsize()-1),(unsigned)((pos/mwid)-y)-1); ^ src/game/structure.cpp:404:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] retpos = (x+dx)+(y+dy)*mwid; ^ src/game/structure.cpp:406:8: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] sc = x+y*mwid; ^ src/game/structure.cpp:407:8: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dw = type->getXsize() - mwid; ^ src/game/structure.cpp:408:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] bpos = retpos - sc + dy*dw; ^ src/game/structure.cpp:409:51: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] while (!type->isBlocked(dx+dy*type->getXsize())) { ^ src/game/structure.cpp:420:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] retpos = (x+t)+(y+dy)*mwid; ^ src/game/structure.cpp:421:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] bpos = retpos - sc + dy*dw; ^ src/game/structure.cpp:428:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] retpos = (x+t)+(y+dy)*mwid; ^ src/game/structure.cpp:429:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] bpos = retpos - sc + dy*dw; ^ src/game/structure.cpp:439:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] retpos = (x+dx)+(y+dy)*mwid; ^ src/game/structure.cpp: In member function 'Uint16 Structure::getFreePos(Uint8*, bool)': src/game/structure.cpp:476:7: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] y += ysize; // bottom left of building ^ src/game/structure.cpp:487:46: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] curpos = p::ccmap->translateToPos(x+1,y-1); ^ src/game/structure.cpp:487:46: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src/game/structure.cpp:487:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] curpos = p::ccmap->translateToPos(x+1,y-1); ^ src/game/structure.cpp:493:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] curpos = p::ccmap->translateToPos(x,y); ^ src/game/structure.cpp:502:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] curpos = p::ccmap->translateToPos(x, y); ^ src/game/structure.cpp:509:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] curpos = p::ccmap->translateToPos(x, y); ^ src/game/structure.cpp:515:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] curpos = p::ccmap->translateToPos(x, y); ^ src/game/structure.cpp:521:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] curpos = p::ccmap->translateToPos(x, y); ^ src/game/structure.cpp: In member function 'void Structure::runAnim(Uint32)': src/game/structure.cpp:676:57: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] buildAnim = new BTurnAnimEvent(speed,this,(mode>>4)); ^ src/game/structure.cpp: In member function 'void Structure::runSecAnim(Uint32, bool)': src/game/structure.cpp:726:56: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] sec_anim = new RefineAnimEvent(2,this,param); ^ src/game/structure.cpp: In member function 'virtual void Structure::applyDamage(Sint16, Weapon*, UnitOrStructure*)': src/game/structure.cpp:815:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] health -= amount; ^ src/game/structure.cpp: In member function 'void Structure::ChangeHealth(Sint16)': src/game/structure.cpp:882:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] health += amount; ^ src/game/structure.cpp: In member function 'virtual void Structure::setImageNum(Uint32, Uint8)': src/game/structure.cpp:1030:22: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] imagenumbers[layer]=(num)|(p::ppool->getStructpalNum(owner)<<11); ^ c++ -o src/misc/inifile.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/misc/inifile.cpp In file included from src/include/common.h:5:0, from src/misc/inifile.cpp:11: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/misc/inifile.cpp:12:0: src/misc/inifile.cpp: In member function 'float INIFile::readFloat(const char*, const char*)': src/include/inifile.h:18:18: warning: conversion to 'float' alters 'int' constant value [-Wfloat-conversion] #define INIERROR 0x7fffffff ^ src/misc/inifile.cpp:254:16: note: in expansion of macro 'INIERROR' return INIERROR; ^ src/include/inifile.h:18:18: warning: conversion to 'float' alters 'int' constant value [-Wfloat-conversion] #define INIERROR 0x7fffffff ^ src/misc/inifile.cpp:268:16: note: in expansion of macro 'INIERROR' return INIERROR; ^ src/include/inifile.h:18:18: warning: conversion to 'float' alters 'int' constant value [-Wfloat-conversion] #define INIERROR 0x7fffffff ^ src/misc/inifile.cpp:271:16: note: in expansion of macro 'INIERROR' return INIERROR; ^ src/misc/inifile.cpp: In constructor 'INIFile::INIFile(const char*)': src/misc/inifile.cpp:333:24: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] key[i] = toupper(key[i]); ^ src/misc/inifile.cpp:339:24: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] key[i] = toupper(key[i]); ^ c++ -o src/misc/common.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/misc/common.cpp In file included from src/include/common.h:5:0, from src/misc/common.cpp:5: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ c++ -o src/audio/soundengine.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/audio/soundengine.cpp c++ -o src/audio/soundfile.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/audio/soundfile.cpp In file included from src/include/common.h:5:0, from src/audio/soundengine.cpp:5: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/common.h:5:0, from src/include/vfs.h:8, from src/audio/soundfile.cpp:7: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ src/audio/soundfile.cpp: In function 'void Sound::IMADecode(Uint8*, Uint8*, Uint16, Sint32&, Sint32&)': src/audio/soundfile.cpp:84:50: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] Uint16 uncompressed_size = compressed_size * 2; ^ src/audio/soundfile.cpp:94:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Code=(*InP++)>>4; // Extract upper 4 bits ^ src/audio/soundfile.cpp:128:17: warning: conversion to 'Sint16 {aka short int}' from 'Sint32 {aka int}' may alter its value [-Wconversion] *OutP++ = sample; //Clip(sample); ^ src/audio/soundfile.cpp: In function 'void Sound::WSADPCM_Decode(Uint8*, Uint8*, Uint16, Uint16)': src/audio/soundfile.cpp:156:22: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] shifted_input<<=2; ^ src/audio/soundfile.cpp:157:13: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] code=HIBYTE(shifted_input); ^ src/audio/soundfile.cpp:158:14: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] count=LOBYTE(shifted_input)>>2; ^ src/audio/soundfile.cpp:163:22: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] count<<=3; // here it's significant that (count) is signed: ^ src/audio/soundfile.cpp:164:26: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] CurSample+=count>>3; // the sign bit will be copied by these shifts! ^ src/audio/soundfile.cpp:187:26: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] CurSample+=WSTable4bit[(code & 0x0F)]; // lower nibble ^ src/audio/soundfile.cpp:189:26: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] CurSample+=WSTable4bit[(code >> 4)]; // higher nibble ^ src/audio/soundfile.cpp:191:27: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] bytes_left-=2; // two bytes added to output ^ src/audio/soundfile.cpp:197:26: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] CurSample+=WSTable2bit[(code & 0x03)]; // lower 2 bits ^ src/audio/soundfile.cpp:199:26: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] CurSample+=WSTable2bit[((code>>2) & 0x03)]; // lower middle 2 bits ^ src/audio/soundfile.cpp:201:26: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] CurSample+=WSTable2bit[((code>>4) & 0x03)]; // higher middle 2 bits ^ src/audio/soundfile.cpp:203:26: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] CurSample+=WSTable2bit[((code>>6) & 0x03)]; // higher 2 bits ^ src/audio/soundfile.cpp:205:27: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] bytes_left-=4; // 4 bytes sent to output ^ c++ -o src/vfs/vfs.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/vfs/vfs.cpp c++ -o src/video/shpimage.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/video/shpimage.cpp c++ -o src/video/vqa.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/video/vqa.cpp In file included from src/include/common.h:5:0, from src/vfs/vfs.cpp:13: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/common.h:5:0, from src/video/vqa.cpp:8: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/common.h:5:0, from src/include/vfs.h:8, from src/video/shpimage.cpp:16: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ c++ -o src/video/imagecache.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/video/imagecache.cpp src/video/shpimage.cpp: In member function 'SDL_Surface* SHPBase::scale(SDL_Surface*, int)': src/video/shpimage.cpp:374:40: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] return scaler->scale(input, quality); ^ src/video/shpimage.cpp: In constructor 'SHPImage::SHPImage(const char*, Sint8)': src/video/shpimage.cpp:406:22: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.NumImages = readword(shpdata,0); ^ src/video/shpimage.cpp:407:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.Width = readword(shpdata, 6); ^ src/video/shpimage.cpp:409:19: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.Height = readword(shpdata, 8); ^ src/video/shpimage.cpp: In member function 'void SHPImage::getImageAsAlpha(Uint16, SDL_Surface**)': src/video/shpimage.cpp:548:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] imgdata[i] = 17 - imgdata[i]; ^ src/video/shpimage.cpp: In member function 'void SHPImage::DecodeSprite(Uint8*, Uint16)': src/video/shpimage.cpp:605:37: warning: argument to 'sizeof' in 'void* memset(void*, int, size_t)' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] memset(imgdst, 0, sizeof(imgdst)); ^ src/video/shpimage.cpp:614:35: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] DecodeSprite(imgdst, i); ^ src/video/shpimage.cpp:622:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] DecodeSprite(imgdst, imgnum - 1); ^ src/video/shpimage.cpp: In member function 'Uint32 Dune2Image::getD2Header(Uint16)': src/video/shpimage.cpp:730:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imgs = readword(shpdata, 0); ^ src/video/shpimage.cpp:744:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.compression = readword(shpdata, curpos); ^ src/video/shpimage.cpp:748:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.cx = readword(shpdata, curpos); ^ src/video/shpimage.cpp:752:20: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.size_in = readword(shpdata, curpos); ^ src/video/shpimage.cpp:754:21: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.size_out = readword(shpdata, curpos); ^ In file included from src/include/common.h:5:0, from src/video/imagecache.cpp:2: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ c++ -o src/video/message.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/video/message.cpp In file included from src/include/playerpool.h:10:0, from src/video/imagecache.cpp:6: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ src/video/imagecache.cpp: In member function 'Uint32 ImageCache::loadImage(const char*, int)': src/video/imagecache.cpp:165:67: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] imagepool->push_back(new SHPImage(name.c_str(), scaleq)); ^ In file included from src/include/common.h:5:0, from src/include/message.h:9, from src/video/message.cpp:1: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ c++ -o src/video/sdllayer.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/video/sdllayer.cpp src/video/sdllayer.cpp: In function 'void set_pixel(SDL_Surface*, Uint32, Uint32, Uint32)': src/video/sdllayer.cpp:97:13: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] DestRect.x = x; ^ src/video/sdllayer.cpp:98:13: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] DestRect.y = y; ^ src/video/sdllayer.cpp: In function 'void draw_rectangle(SDL_Surface*, Uint32, Uint16, Uint16, Uint16, Uint16, Uint8)': src/video/sdllayer.cpp:144:13: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] DestRect.y = y+height-1; ^ src/video/sdllayer.cpp:154:13: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] DestRect.x = x+width-1; ^ c++ -o src/video/cpsimage.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/video/cpsimage.cpp src/video/message.cpp: In member function 'SDL_Surface* MessagePool::getMessages()': src/video/message.cpp:70:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = textimg->w; ^ src/video/message.cpp:71:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = textimg->h; ^ In file included from src/include/playerpool.h:10:0, from src/include/graphicsengine.h:12, from src/video/vqa.cpp:11: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/include/common.h:5:0, from src/include/vfs.h:8, from src/video/cpsimage.cpp:9: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ src/video/vqa.cpp: In function 'Uint8 VQAPriv::VQA_HI_BYTE(Uint32)': src/video/vqa.cpp:32:32: warning: conversion to 'Uint8 {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] return (x & 0xff000000) >> 24; ^ src/video/vqa.cpp: In member function 'void VQAMovie::play()': src/video/vqa.cpp:224:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = header.Width<<1; ^ src/video/vqa.cpp:225:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = header.Height<<1; ^ src/video/vqa.cpp:226:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = (pc::gfxeng->getWidth()-(header.Width<<1))>>1; ^ src/video/vqa.cpp:227:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = (pc::gfxeng->getHeight()-(header.Height<<1))>>1; ^ src/video/vqa.cpp:219:14: warning: variable 'dest' set but not used [-Wunused-but-set-variable] SDL_Rect dest; ^ src/video/vqa.cpp: In member function 'bool VQAMovie::DecodeFORMChunk()': src/video/vqa.cpp:374:9: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] BlockS = header.BlockH * header.BlockW; ^ src/video/vqa.cpp: In member function 'Uint32 VQAMovie::DecodeSNDChunk(Uint8*)': src/video/vqa.cpp:525:70: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Sound::IMADecode(outbuf, inbuf, chunklen, sndsample, sndindex); ^ src/video/vqa.cpp: In member function 'void VQAMovie::DecodeCPLChunk(SDL_Color*)': src/video/vqa.cpp:691:22: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] palette[i].r <<= 2; ^ src/video/vqa.cpp:692:22: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] palette[i].g <<= 2; ^ src/video/vqa.cpp:693:22: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] palette[i].b <<= 2; ^ c++ -o src/video/graphicsengine.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/video/graphicsengine.cpp c++ -o src/video/loadingscreen.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/video/loadingscreen.cpp src/video/cpsimage.cpp: In constructor 'CPSImage::CPSImage(const char*, int)': src/video/cpsimage.cpp:22:20: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.size = readword(cpsdata,0); ^ src/video/cpsimage.cpp:23:20: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.unknown = readword(cpsdata,2); ^ src/video/cpsimage.cpp:24:20: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.imsize = readword(cpsdata,4); ^ src/video/cpsimage.cpp: In member function 'void CPSImage::readPalette()': src/video/cpsimage.cpp:49:22: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] palette[i].r <<= 2; ^ src/video/cpsimage.cpp:50:22: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] palette[i].g <<= 2; ^ src/video/cpsimage.cpp:51:22: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] palette[i].b <<= 2; ^ src/video/cpsimage.cpp: In member function 'void CPSImage::loadImage()': src/video/cpsimage.cpp:89:43: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] image = scaler.scale(imgtmp,scaleq); ^ In file included from src/include/common.h:5:0, from src/include/ccmap.h:9, from src/video/graphicsengine.cpp:10: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/common.h:5:0, from src/video/loadingscreen.cpp:1: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ c++ -o src/video/wsa.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/video/wsa.cpp In file included from src/include/common.h:5:0, from src/video/wsa.cpp:3: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ In file included from src/include/playerpool.h:10:0, from src/include/graphicsengine.h:12, from src/video/loadingscreen.cpp:4: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ In file included from src/include/structure.h:9:0, from src/include/ccmap.h:11, from src/video/graphicsengine.cpp:10: src/include/weaponspool.h: In member function 'Uint8 Warhead::getVersus(armour_t)': src/include/weaponspool.h:45:36: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] return versus[(Uint8)armour]; ^ In file included from src/include/ccmap.h:11:0, from src/video/graphicsengine.cpp:10: src/include/structure.h: In member function 'void Structure::changeImage(Uint8, Sint16)': src/include/structure.h:191:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] imagenumbers[layer]+=imagechange; ^ In file included from src/include/playerpool.h:10:0, from src/include/graphicsengine.h:12, from src/video/wsa.cpp:6: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ c++ -o src/video/glSDL.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/video/glSDL.cpp In file included from src/video/graphicsengine.cpp:10:0: src/include/ccmap.h: In member function 'bool CnCMap::getResource(Uint32, Uint8*, Uint8*) const': src/include/ccmap.h:279:15: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *type = resourcematrix[pos] & 0xFF; ^ src/include/ccmap.h:280:17: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] *amount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h: In member function 'void CnCMap::decreaseResource(Uint32, Uint8)': src/include/ccmap.h:288:51: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] Uint8 TempAmount = resourcematrix[pos] >> 8; ^ src/include/ccmap.h:291:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] TempAmount -= amount; ^ src/include/ccmap.h:293:23: warning: conversion to 'short unsigned int' from 'int' may alter its value [-Wconversion] resourcematrix[pos] |= (TempAmount << 8); ^ src/include/ccmap.h: In member function 'void CnCMap::setScrollPos(Uint32, Uint32)': src/include/ccmap.h:339:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.curx = x; ^ src/include/ccmap.h:340:24: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] scrollpos.cury = y; ^ src/include/ccmap.h: In member function 'void CnCMap::translateCoord(Uint32, Uint16*, Uint16*) const': src/include/ccmap.h:421:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/64; ^ src/include/ccmap.h:424:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] *ty = linenum/128; ^ c++ -o src/video/pcximage.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/video/pcximage.cpp src/video/wsa.cpp: In constructor 'WSA::WSA(const char*)': src/video/wsa.cpp:44:26: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.NumFrames = readword(wsadata, 0); ^ src/video/wsa.cpp:45:21: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.xpos = readword(wsadata, 2); ^ src/video/wsa.cpp:46:21: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.ypos = readword(wsadata, 4); ^ src/video/wsa.cpp:47:22: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.width = readword(wsadata, 6); ^ src/video/wsa.cpp:48:23: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.height = readword(wsadata, 8); ^ src/video/wsa.cpp:63:26: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] palette[i].r <<= 2; ^ src/video/wsa.cpp:64:26: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] palette[i].g <<= 2; ^ src/video/wsa.cpp:65:26: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] palette[i].b <<= 2; ^ src/video/wsa.cpp:78:30: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.NumFrames += 1; /* Add loop frame */ ^ src/video/wsa.cpp: In member function 'void WSA::animate()': src/video/wsa.cpp:137:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = header.width<<1; ^ src/video/wsa.cpp:138:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = header.height<<1; ^ src/video/wsa.cpp:139:12: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = (pc::gfxeng->getWidth()-(header.width<<1))>>1; ^ src/video/wsa.cpp:140:12: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = (pc::gfxeng->getHeight()-(header.height<<1))>>1; ^ src/video/wsa.cpp:157:30: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] frame = decodeFrame(i); ^ src/video/wsa.cpp:131:14: warning: variable 'dest' set but not used [-Wunused-but-set-variable] SDL_Rect dest; ^ In file included from src/video/graphicsengine.cpp:13:0: src/include/cursor.h: In member function 'Uint16 Cursor::getX()': src/include/cursor.h:43:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return x+cursor_offset; ^ src/include/cursor.h: In member function 'Uint16 Cursor::getY()': src/include/cursor.h:47:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return y+cursor_offset; ^ In file included from src/include/playerpool.h:10:0, from src/include/graphicsengine.h:12, from src/video/graphicsengine.cpp:14: src/include/player.h: In member function 'Uint16 Player::getStructureLosses() const': src/include/player.h:94:44: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] Uint16 getStructureLosses() const {return structurelosses;} ^ src/video/glSDL.cpp: In function 'void clip_rect(SDL_Rect*, SDL_Rect*)': src/video/glSDL.cpp:77:8: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] r->x = dx1; ^ src/video/glSDL.cpp:78:8: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] r->y = dy1; ^ src/video/glSDL.cpp:79:8: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] r->w = dx2 - dx1; ^ src/video/glSDL.cpp:80:8: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] r->h = dy2 - dy1; ^ In file included from src/include/input.h:9:0, from src/video/graphicsengine.cpp:15: src/include/selection.h: In member function 'Uint32 Selection::numbUnits() const': src/include/selection.h:35:53: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::__cxx11::list::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 numbUnits() const {return sel_units.size();} ^ src/video/glSDL.cpp: In function 'SDL_Surface* glSDL_SetVideoMode(int, int, int, Uint32)': src/video/glSDL.cpp:905:37: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] gl.Ortho(0, scale * (float)screen->w, scale * (float)screen->h, 0, ^ src/video/glSDL.cpp:905:63: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] gl.Ortho(0, scale * (float)screen->w, scale * (float)screen->h, 0, ^ src/video/glSDL.cpp: In function 'void glSDL_UpdateRect(SDL_Surface*, Sint32, Sint32, Uint32, Uint32)': src/video/glSDL.cpp:949:6: warning: conversion to 'Sint16 {aka short int}' from 'Sint32 {aka int}' may alter its value [-Wconversion] r.x = x; ^ src/video/glSDL.cpp:950:6: warning: conversion to 'Sint16 {aka short int}' from 'Sint32 {aka int}' may alter its value [-Wconversion] r.y = y; ^ src/video/glSDL.cpp:951:6: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] r.w = w; ^ src/video/glSDL.cpp:952:6: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] r.h = h; ^ src/video/glSDL.cpp: In function 'SDL_bool glSDL_SetClipRect(SDL_Surface*, SDL_Rect*)': src/video/glSDL.cpp:1077:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] fsr.w = screen->w; ^ src/video/glSDL.cpp:1078:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] fsr.h = screen->h; ^ src/video/glSDL.cpp:1083:12: warning: variable 'r' set but not used [-Wunused-but-set-variable] SDL_Rect r; ^ src/video/glSDL.cpp: In function 'int glSDL_BlitFromGL(SDL_Rect*, SDL_Surface*, SDL_Rect*)': src/video/glSDL.cpp:1115:8: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dr.w = fake_screen->w; ^ src/video/glSDL.cpp:1116:8: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dr.h = fake_screen->h; ^ src/video/glSDL.cpp:1124:8: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] sr.w = dst->w; ^ src/video/glSDL.cpp:1144:8: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] sr.y = sy0 + i; ^ src/video/glSDL.cpp:1145:8: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dr.y = dy0 - i; ^ src/video/glSDL.cpp: In function 'void BlitGL_single(glSDL_TexInfo*, float, float, SDL_Rect*, unsigned char)': src/video/glSDL.cpp:1164:11: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] texscale = 1.0 / (float)txi->texsize; ^ src/video/glSDL.cpp: In function 'void BlitGL_htile(glSDL_TexInfo*, float, float, SDL_Rect*, unsigned char)': src/video/glSDL.cpp:1189:37: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] float texscale = 1.0 / (float)txi->texsize; ^ src/video/glSDL.cpp:1195:7: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] tile = floor(sx1); ^ src/video/glSDL.cpp:1197:40: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] yo = ((int)tile % txi->tilespertex) * tileh; ^ src/video/glSDL.cpp:1216:30: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] tdx1 -= (int)(tsx1 * txi->texsize); ^ src/video/glSDL.cpp:1249:8: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] tile += 1.0; ^ src/video/glSDL.cpp: In function 'void BlitGL_vtile(glSDL_TexInfo*, float, float, SDL_Rect*, unsigned char)': src/video/glSDL.cpp:1261:37: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] float texscale = 1.0 / (float)txi->texsize; ^ src/video/glSDL.cpp:1267:7: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] tile = floor(sy1); ^ src/video/glSDL.cpp:1269:40: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] xo = ((int)tile % txi->tilespertex) * tilew; ^ src/video/glSDL.cpp:1288:30: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] tdy1 -= (int)(tsy1 * txi->texsize); ^ src/video/glSDL.cpp:1321:8: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] tile += 1.0; ^ src/video/glSDL.cpp: In function 'void BlitGL_hvtile(SDL_Surface*, glSDL_TexInfo*, float, float, SDL_Rect*, unsigned char)': src/video/glSDL.cpp:1333:37: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] float texscale = 1.0 / (float)txi->texsize; ^ src/video/glSDL.cpp:1352:22: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] float tsy1 = sy1 - y; ^ src/video/glSDL.cpp:1353:22: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] float tsy2 = sy2 - y; ^ src/video/glSDL.cpp:1358:30: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] tdy1 -= (int)(tsy1 * txi->texsize); ^ src/video/glSDL.cpp:1370:23: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] float tsx1 = sx1 - x; ^ src/video/glSDL.cpp:1371:23: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] float tsx2 = sx2 - x; ^ src/video/glSDL.cpp:1376:31: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] tdx1 -= (int)(tsx1 * txi->texsize); ^ src/video/glSDL.cpp: In function 'int blitclip(SDL_Rect*, int, int, int*, int*, SDL_Rect*)': src/video/glSDL.cpp:1489:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] rect->x = dx1; ^ src/video/glSDL.cpp:1490:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] rect->y = dy1; ^ src/video/glSDL.cpp:1491:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] rect->w = dx2 - dx1; ^ src/video/glSDL.cpp:1492:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] rect->h = dy2 - dy1; ^ src/video/glSDL.cpp: In function 'int glSDL_BlitGL(SDL_Surface*, SDL_Rect*, SDL_Surface*, SDL_Rect*)': src/video/glSDL.cpp:1513:7: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] r.w = src->w; ^ src/video/glSDL.cpp:1514:7: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] r.h = src->h; ^ src/video/glSDL.cpp:1568:37: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] BlitGL_single(txi, x, y, &r, alpha); ^ src/video/glSDL.cpp:1568:37: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] src/video/glSDL.cpp:1571:36: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] BlitGL_htile(txi, x, y, &r, alpha); ^ src/video/glSDL.cpp:1571:36: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] src/video/glSDL.cpp:1574:36: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] BlitGL_vtile(txi, x, y, &r, alpha); ^ src/video/glSDL.cpp:1574:36: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] src/video/glSDL.cpp:1577:42: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] BlitGL_hvtile(src, txi, x, y, &r, alpha); ^ src/video/glSDL.cpp:1577:42: warning: conversion to 'float' from 'int' may alter its value [-Wconversion] src/video/glSDL.cpp: In function 'int glSDL_FillRect(SDL_Surface*, SDL_Rect*, Uint32)': src/video/glSDL.cpp:1664:14: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dstrect->x = dx1; ^ src/video/glSDL.cpp:1665:14: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dstrect->y = dy1; ^ src/video/glSDL.cpp:1666:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dstrect->w = dx2 - dx1; ^ src/video/glSDL.cpp:1667:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dstrect->h = dy2 - dy1; ^ src/video/glSDL.cpp:1693:21: warning: conversion to 'GLubyte {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] gl.Color3ub(r, g, b); ^ src/video/glSDL.cpp:1693:21: warning: conversion to 'GLubyte {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/video/glSDL.cpp:1693:21: warning: conversion to 'GLubyte {aka unsigned char}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] src/video/glSDL.cpp: In function 'int glSDL_SaveBMP(SDL_Surface*, const char*)': src/video/glSDL.cpp:1862:6: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] r.w = fake_screen->w; ^ src/video/glSDL.cpp:1863:6: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] r.h = fake_screen->h; ^ src/video/glSDL.cpp: In function 'void glSDL_Invalidate(SDL_Surface*, SDL_Rect*)': src/video/glSDL.cpp:1891:23: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] txi->invalid_area.w = surface->w; ^ src/video/glSDL.cpp:1892:23: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] txi->invalid_area.h = surface->h; ^ In file included from src/video/graphicsengine.cpp:19:0: src/include/sidebar.h: In member function 'Uint16 Sidebar::width()': src/include/sidebar.h:59:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] return sbar->w; ^ c++ -o src/video/imageproc.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/video/imageproc.cpp In file included from src/video/graphicsengine.cpp:20:0: src/include/unit.h: In member function 'Uint8 InfantryGroup::GetFreePos() const': src/include/unit.h:458:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] return i; ^ src/include/unit.h: In member function 'Uint8 InfantryGroup::GetImageNums(Uint32**, Sint8**, Sint8**)': src/include/unit.h:478:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*xoffsets)[j]=positions[i]->getXoffset()+unitoffsets[i]; ^ src/include/unit.h:479:31: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] (*yoffsets)[j]=positions[i]->getYoffset()+unitoffsets[i+5]; ^ src/include/unit.h: In member function 'void InfantryGroup::GetSubposOffsets(Uint8, Uint8, Sint8*, Sint8*)': src/include/unit.h:488:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *xoffs = unitoffsets[oldsp]-unitoffsets[newsp]; ^ src/include/unit.h:489:16: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] *yoffs = unitoffsets[oldsp+5]-unitoffsets[newsp+5]; ^ In file included from src/include/common.h:5:0, from src/include/vfs.h:8, from src/video/pcximage.cpp:9: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ src/video/imageproc.cpp: In member function 'void ImageProc::scaleInterlace(SDL_Surface*, SDL_Surface*)': src/video/imageproc.cpp:32:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] xpos[cx] = (Uint16)(cxf+0.5f)*src->format->BytesPerPixel; ^ src/video/imageproc.cpp: In member function 'void ImageProc::scaleNearest(SDL_Surface*, SDL_Surface*)': src/video/imageproc.cpp:76:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] xpos[cx] = (Uint16)(cxf+0.5f)*src->format->BytesPerPixel; ^ In file included from src/video/graphicsengine.cpp:21:0: src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbUnits()': src/include/unitandstructurepool.h:105:55: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbUnits (void) { return unitpool.size(); } ^ src/include/unitandstructurepool.h: In member function 'Uint32 UnitAndStructurePool::getNumbStructures()': src/include/unitandstructurepool.h:110:65: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::vector::size_type {aka long unsigned int}' may alter its value [-Wconversion] Uint32 getNumbStructures (void) { return structurepool.size(); } ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::setupCurrentGame()': src/video/graphicsengine.cpp:182:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] tilewidth = p::ccmap->getMapTile(0)->w; ^ src/video/graphicsengine.cpp:183:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] tileheight = p::ccmap->getMapTile(0)->h; ^ src/video/graphicsengine.cpp:187:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] maparea.h = height-pc::sidebar->getTabLocation()->h; ^ src/video/graphicsengine.cpp:189:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] maparea.w = width-pc::sidebar->getTabLocation()->w; ^ src/video/graphicsengine.cpp:192:19: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] maparea.w = p::ccmap->getWidth()*tilewidth; ^ src/video/graphicsengine.cpp:195:19: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] maparea.h = p::ccmap->getHeight()*tilewidth; ^ src/video/graphicsengine.cpp:207:21: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] minizoom.normal = (tilewidth*pc::sidebar->getTabLocation()->w)/max(maparea.w, maparea.h); ^ src/video/graphicsengine.cpp:208:21: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] minizoom.max = max(1,tilewidth*pc::sidebar->getTabLocation()->w / max( ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::clipToMaparea(SDL_Rect*)': src/video/graphicsengine.cpp:228:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest->w -= maparea.x-dest->x; ^ src/video/graphicsengine.cpp:232:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest->h = maparea.y - dest->y; ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::clipToMaparea(SDL_Rect*, SDL_Rect*)': src/video/graphicsengine.cpp:240:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] src->x = maparea.x - dest->x; ^ src/video/graphicsengine.cpp:241:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src->w -= src->x; ^ src/video/graphicsengine.cpp:246:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] src->y = maparea.y - dest->y; ^ src/video/graphicsengine.cpp:247:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src->h -= src->y; ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::DrawMinimap()': src/video/graphicsengine.cpp:400:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = maparea.x+maparea.w+clip.x; ^ src/video/graphicsengine.cpp:401:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = maparea.y+clip.y; ^ src/video/graphicsengine.cpp:403:15: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] src.x = p::ccmap->getXScroll()*minizoom; ^ src/video/graphicsengine.cpp:404:15: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] src.y = p::ccmap->getYScroll()*minizoom; ^ src/video/graphicsengine.cpp:408:19: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] src.x = minimap->w - src.w; ^ src/video/graphicsengine.cpp:411:19: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] src.y = minimap->h - src.h; ^ src/video/graphicsengine.cpp:416:14: warning: conversion to 'Uint8 {aka unsigned char}' from 'unsigned int' may alter its value [-Wconversion] minx = min(curpos%mapwidth, mapwidth - clip.tilew); ^ src/video/graphicsengine.cpp:435:14: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = maparea.x+maparea.w+clip.x+xpos*minizoom; ^ src/video/graphicsengine.cpp:436:14: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = maparea.y+clip.y+ypos*minizoom; ^ src/video/graphicsengine.cpp:446:28: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = maparea.x+maparea.w+clip.x+xpos*minizoom; ^ src/video/graphicsengine.cpp:447:28: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = maparea.y+clip.y+ypos*minizoom; ^ src/video/graphicsengine.cpp:448:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = minizoom+2; ^ src/video/graphicsengine.cpp:449:28: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = dest.w+1; ^ src/video/graphicsengine.cpp: In member function 'bool GraphicsEngine::MapPosToScreenXY(Uint32, Sint16*, Sint16*)': src/video/graphicsengine.cpp:478:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] *ScreenX *= tilewidth; ^ src/video/graphicsengine.cpp:479:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] *ScreenY *= tileheight; ^ src/video/graphicsengine.cpp:484:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] *ScreenX -= p::ccmap->getXTileScroll(); ^ src/video/graphicsengine.cpp:485:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] *ScreenY -= p::ccmap->getYTileScroll(); ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::DrawRepairing()': src/video/graphicsengine.cpp:623:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.x = xpos + (str->getType()->getXsize() * tilewidth/2)- (RepairImg->w/2); //+ (str->getType()->getXsize() * tilewidth) ^ src/video/graphicsengine.cpp:624:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.y = ypos + (str->getType()->getYsize() * tileheight/2) - (RepairImg->h/2)/* + (str->getType()->getYsize() * tileheight) */; ^ src/video/graphicsengine.cpp:625:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] udest.w = RepairImg->w; ^ src/video/graphicsengine.cpp:626:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] udest.h = RepairImg->h; ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::DrawVehicleSmoke()': src/video/graphicsengine.cpp:638:9: warning: variable 'NumbSmokeImg' set but not used [-Wunused-but-set-variable] Uint32 NumbSmokeImg; ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::DrawGroundUnitHealthBars(SDL_Rect, SDL_Rect, Uint32)': src/video/graphicsengine.cpp:724:48: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] un = p::uspool->getGroundUnitAt(curdpos,i); ^ src/video/graphicsengine.cpp:729:15: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.x = dest.x + un->getXoffset(); ^ src/video/graphicsengine.cpp:730:15: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.y = dest.y + un->getYoffset(); ^ src/video/graphicsengine.cpp:733:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.x += 6; ^ src/video/graphicsengine.cpp:734:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.y += 5; ^ src/video/graphicsengine.cpp:736:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.x += 12; ^ src/video/graphicsengine.cpp:738:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.y += 10; ^ src/video/graphicsengine.cpp:740:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.x += 12; ^ src/video/graphicsengine.cpp:741:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.y += 10; ^ src/video/graphicsengine.cpp:748:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] udest.h -= 2; ^ src/video/graphicsengine.cpp:766:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] udest.h -= 2; ^ src/video/graphicsengine.cpp:779:15: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.x = dest.x + 7 + un->getXoffset() + k * 7; ^ src/video/graphicsengine.cpp:780:15: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.y = dest.y + 43 + un->getYoffset(); ^ src/video/graphicsengine.cpp:786:48: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] if (un->GetResourceType (k, &ResourceType)) ^ src/video/graphicsengine.cpp:790:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] udest.h -= 2; ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::DrawFlyingUnitHealthBars(SDL_Rect, SDL_Rect, Uint32)': src/video/graphicsengine.cpp:832:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] udest.h -= 2; ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::DrawStructureHealthBars(SDL_Rect, SDL_Rect, Uint32)': src/video/graphicsengine.cpp:868:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] udest.h -= 2; ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::DrawFogOfWar(SDL_Rect, SDL_Rect, SDL_Rect)': src/video/graphicsengine.cpp:889:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] mapWidth = (maparea.w+p::ccmap->getXTileScroll()+tilewidth-1)/tilewidth; ^ src/video/graphicsengine.cpp:891:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] mapHeight = (maparea.h+p::ccmap->getYTileScroll()+tilewidth-1)/tilewidth; ^ src/video/graphicsengine.cpp:899:9: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = maparea.y-p::ccmap->getYTileScroll(); ^ src/video/graphicsengine.cpp:903:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = maparea.x-p::ccmap->getXTileScroll(); ^ src/video/graphicsengine.cpp:940:60: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] SDL_BlitSurface(p::ccmap->getShadowTile(0+shadowoffs), &src, screen, &udest); ^ src/video/graphicsengine.cpp:943:60: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] SDL_BlitSurface(p::ccmap->getShadowTile(1+shadowoffs), &src, screen, &udest); ^ src/video/graphicsengine.cpp:946:60: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] SDL_BlitSurface(p::ccmap->getShadowTile(3+shadowoffs), &src, screen, &udest); ^ src/video/graphicsengine.cpp:949:60: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] SDL_BlitSurface(p::ccmap->getShadowTile(5+shadowoffs), &src, screen, &udest); ^ src/video/graphicsengine.cpp:952:60: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] SDL_BlitSurface(p::ccmap->getShadowTile(8+shadowoffs), &src, screen, &udest); ^ src/video/graphicsengine.cpp:955:60: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] SDL_BlitSurface(p::ccmap->getShadowTile(9+shadowoffs), &src, screen, &udest); ^ src/video/graphicsengine.cpp:958:61: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] SDL_BlitSurface(p::ccmap->getShadowTile(10+shadowoffs), &src, screen, &udest); ^ src/video/graphicsengine.cpp:961:61: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] SDL_BlitSurface(p::ccmap->getShadowTile(11+shadowoffs), &src, screen, &udest); ^ src/video/graphicsengine.cpp:1001:61: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] SDL_BlitSurface(p::ccmap->getShadowTile(8+shadowoffs), &src, screen, &udest); ^ src/video/graphicsengine.cpp:1004:61: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] SDL_BlitSurface(p::ccmap->getShadowTile(9+shadowoffs), &src, screen, &udest); ^ src/video/graphicsengine.cpp:1007:62: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] SDL_BlitSurface(p::ccmap->getShadowTile(10+shadowoffs), &src, screen, &udest); ^ src/video/graphicsengine.cpp:1010:62: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] SDL_BlitSurface(p::ccmap->getShadowTile(11+shadowoffs), &src, screen, &udest); ^ src/video/graphicsengine.cpp:1038:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x += tilewidth; ^ src/video/graphicsengine.cpp:1042:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y += tilewidth; ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::DrawMap(SDL_Rect, SDL_Rect, SDL_Rect)': src/video/graphicsengine.cpp:1078:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] mapWidth = (maparea.w+p::ccmap->getXTileScroll()+tilewidth-1)/tilewidth; ^ src/video/graphicsengine.cpp:1080:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] mapHeight = (maparea.h+p::ccmap->getYTileScroll()+tilewidth-1)/tilewidth; ^ src/video/graphicsengine.cpp:1083:7: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] xmax = min(p::ccmap->getWidth()-(p::ccmap->getXScroll()+mapWidth), 4); ^ src/video/graphicsengine.cpp:1084:7: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] ymax = min(p::ccmap->getHeight()-(p::ccmap->getYScroll()+mapHeight), 4); ^ src/video/graphicsengine.cpp:1088:12: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = maparea.y-p::ccmap->getYTileScroll(); ^ src/video/graphicsengine.cpp:1094:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = maparea.x - p::ccmap->getXTileScroll(); ^ src/video/graphicsengine.cpp:1142:39: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] if (p::uspool->hasL2overlay(curpos)) { ^ src/video/graphicsengine.cpp:1143:33: warning: conversion to 'std::vector::value_type {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] l2overlays.push_back(curpos); ^ src/video/graphicsengine.cpp:1158:12: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y -= (tilewidth<<1); ^ src/video/graphicsengine.cpp:1166:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src.w = images.image->w; ^ src/video/graphicsengine.cpp:1167:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src.h = images.image->h; ^ src/video/graphicsengine.cpp:1168:15: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.x = dest.x+txoff; ^ src/video/graphicsengine.cpp:1169:15: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.y = dest.y+tyoff; ^ src/video/graphicsengine.cpp:1170:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] udest.w = images.image->w; ^ src/video/graphicsengine.cpp:1171:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] udest.h = images.image->h; ^ src/video/graphicsengine.cpp:1183:92: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] numshps = p::uspool->getStructureNum(curdpos, &unitorstructshps, &uxoffsets, &uyoffsets); ^ src/video/graphicsengine.cpp:1190:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src.w = images.image->w; ^ src/video/graphicsengine.cpp:1191:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src.h = images.image->h; ^ src/video/graphicsengine.cpp:1192:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.x = dest.x+uxoffsets[i]; ^ src/video/graphicsengine.cpp:1193:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.y = dest.y+uyoffsets[i]; ^ src/video/graphicsengine.cpp:1194:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] udest.w = images.image->w; ^ src/video/graphicsengine.cpp:1195:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] udest.h = images.image->h; ^ src/video/graphicsengine.cpp:1219:12: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y += (tilewidth<<1); ^ src/video/graphicsengine.cpp:1221:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x += tilewidth; ^ src/video/graphicsengine.cpp:1225:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y += tilewidth; ^ src/video/graphicsengine.cpp:1230:12: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = maparea.y-p::ccmap->getYTileScroll(); ^ src/video/graphicsengine.cpp:1234:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = maparea.x - p::ccmap->getXTileScroll(); ^ src/video/graphicsengine.cpp:1247:12: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y -= (tilewidth<<1); ^ src/video/graphicsengine.cpp:1287:87: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] numshps = p::uspool->getUnitNum(curdpos, &unitorstructshps, &uxoffsets, &uyoffsets); ^ src/video/graphicsengine.cpp:1294:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src.w = images.image->w; ^ src/video/graphicsengine.cpp:1295:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src.h = images.image->h; ^ src/video/graphicsengine.cpp:1296:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.x = dest.x+uxoffsets[i]; ^ src/video/graphicsengine.cpp:1297:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.y = dest.y+uyoffsets[i]; ^ src/video/graphicsengine.cpp:1298:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] udest.w = images.image->w; ^ src/video/graphicsengine.cpp:1299:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] udest.h = images.image->h; ^ src/video/graphicsengine.cpp:1321:93: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] numshps = p::uspool->getFlyingUnitNum(curdpos, &unitorstructshps, &uxoffsets, &uyoffsets); ^ src/video/graphicsengine.cpp:1329:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src.w = images.image->w; ^ src/video/graphicsengine.cpp:1330:14: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] src.h = images.image->h; ^ src/video/graphicsengine.cpp:1331:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.x = dest.x+uxoffsets[i]; ^ src/video/graphicsengine.cpp:1332:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.y = dest.y+uyoffsets[i]; ^ src/video/graphicsengine.cpp:1333:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] udest.w = images.image->w; ^ src/video/graphicsengine.cpp:1334:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] udest.h = images.image->h; ^ src/video/graphicsengine.cpp:1356:12: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y += (tilewidth<<1); ^ src/video/graphicsengine.cpp:1358:11: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x += tilewidth; ^ src/video/graphicsengine.cpp:1362:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y += tilewidth; ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::DrawL2Overlays()': src/video/graphicsengine.cpp:1384:10: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dest.x = maparea.x-p::ccmap->getXTileScroll()+(curpos%p::ccmap->getWidth()-p::ccmap->getXScroll())*tilewidth; ^ src/video/graphicsengine.cpp:1385:10: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dest.y = maparea.y-p::ccmap->getYTileScroll()+(curpos/p::ccmap->getWidth()-p::ccmap->getYScroll())*tilewidth; ^ src/video/graphicsengine.cpp:1386:87: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] numshps = p::uspool->getL2overlays(curpos, &unitorstructshps, &uxoffsets, &uyoffsets); ^ src/video/graphicsengine.cpp:1400:13: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.x = dest.x + uxoffsets[curdpos]; ^ src/video/graphicsengine.cpp:1401:13: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] udest.y = dest.y + uyoffsets[curdpos]; ^ src/video/graphicsengine.cpp:1402:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] udest.w = images.image->w; ^ src/video/graphicsengine.cpp:1403:13: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] udest.h = images.image->h; ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::DrawSelectionBox()': src/video/graphicsengine.cpp:1429:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = abs(Input::getMarkRect().x - Input::getMarkRect().w); ^ src/video/graphicsengine.cpp:1432:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y += abs(Input::getMarkRect().y - Input::getMarkRect().h); ^ src/video/graphicsengine.cpp:1434:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y -= abs(Input::getMarkRect().y - Input::getMarkRect().h); ^ src/video/graphicsengine.cpp:1435:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = abs(Input::getMarkRect().y - Input::getMarkRect().h); ^ src/video/graphicsengine.cpp:1438:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x += abs(Input::getMarkRect().x - Input::getMarkRect().w); ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::DrawMouse()': src/video/graphicsengine.cpp:1464:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = curimg->w; ^ src/video/graphicsengine.cpp:1465:9: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = curimg->h; ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::DrawTooltip()': src/video/graphicsengine.cpp:1487:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x -= curimg->w; ^ src/video/graphicsengine.cpp:1488:10: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x -= 2; ^ src/video/graphicsengine.cpp:1492:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = curimg->w; ^ src/video/graphicsengine.cpp:1493:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = curimg->h; ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::renderScene(bool)': src/video/graphicsengine.cpp:1540:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = curimg->w; ^ src/video/graphicsengine.cpp:1541:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = curimg->h; ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::drawSidebar()': src/video/graphicsengine.cpp:1588:23: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] maparea.h = height-tabpos->h; ^ src/video/graphicsengine.cpp:1590:23: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] maparea.w = width-tabpos->w; ^ src/video/graphicsengine.cpp:1593:27: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] maparea.w = p::ccmap->getWidth()*tilewidth; ^ src/video/graphicsengine.cpp:1594:27: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] maparea.x = (width-tabpos->w-maparea.w)>>1; ^ src/video/graphicsengine.cpp:1597:27: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] maparea.h = p::ccmap->getHeight()*tilewidth; ^ src/video/graphicsengine.cpp:1598:27: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] maparea.y = tabpos->h+((height-tabpos->h-maparea.h)>>1); ^ src/video/graphicsengine.cpp:1603:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = width - tabpos->w; ^ src/video/graphicsengine.cpp:1606:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = height - tabpos->h; ^ src/video/graphicsengine.cpp:1614:19: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] maparea.h = height-tabpos->h; ^ src/video/graphicsengine.cpp:1619:23: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] maparea.w = p::ccmap->getWidth()*tilewidth; ^ src/video/graphicsengine.cpp:1620:23: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] maparea.x = (width-maparea.w)>>1; ^ src/video/graphicsengine.cpp:1623:23: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] maparea.h = p::ccmap->getHeight()*tilewidth; ^ src/video/graphicsengine.cpp:1624:23: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] maparea.y = tabpos->h+((height-tabpos->h-maparea.h)>>1); ^ src/video/graphicsengine.cpp:1644:12: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dest.y = tabpos->y + tabpos->h - OptionsLabel->getHeight(); ^ src/video/graphicsengine.cpp:1645:12: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dest.x = ( (tabpos->w - OptionsLabel->getWidth()) >>1);//+tabpos->x; ^ src/video/graphicsengine.cpp:1654:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = OptionsSurface->w; ^ src/video/graphicsengine.cpp:1655:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = OptionsSurface->h; ^ src/video/graphicsengine.cpp:1659:13: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dest.x = ((TabImage->w - OptionsLabel->getWidth()) >>1); ^ src/video/graphicsengine.cpp:1660:13: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dest.y = tabpos->y + tabpos->h - OptionsLabel->getHeight(); ^ src/video/graphicsengine.cpp:1671:15: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] tabpos->x = width - tabpos->w; ^ src/video/graphicsengine.cpp:1690:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = MoneySurface->w; ^ src/video/graphicsengine.cpp:1691:10: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = MoneySurface->h; ^ src/video/graphicsengine.cpp:1697:10: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dest.x = ((tabpos->w - MoneyLabel->getWidth())>>1); ^ src/video/graphicsengine.cpp:1698:10: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] dest.y = tabpos->y + tabpos->h - MoneyLabel->getHeight(); ^ src/video/graphicsengine.cpp:1708:15: warning: conversion to 'Uint16 {aka short unsigned int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] framerate = (frames*1000)/(tick - firstframe+1); ^ src/video/graphicsengine.cpp:1711:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] clearCoor.w = width-2*tabpos->w;/*100;*/ ^ src/video/graphicsengine.cpp:1712:17: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] clearCoor.h = tabpos->h+4;/*20;*/ ^ src/video/graphicsengine.cpp:1736:15: warning: conversion to 'Sint16 {aka short int}' from 'Uint32 {aka unsigned int}' may alter its value [-Wconversion] clearCoor.y = tabpos->y + tabpos->h - FrameRateLabel->getHeight(); ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::drawVQAFrame(SDL_Surface*)': src/video/graphicsengine.cpp:1757:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = frame->w; ^ src/video/graphicsengine.cpp:1758:12: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = frame->h; ^ src/video/graphicsengine.cpp:1759:12: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = (screen->w-frame->w)>>1; ^ src/video/graphicsengine.cpp:1760:12: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = (screen->h-frame->h)>>1; ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::renderLoading(const string&, SDL_Surface*)': src/video/graphicsengine.cpp:1816:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = (width-logo->w)/2; ^ src/video/graphicsengine.cpp:1817:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = (height-logo->h)/2; ^ src/video/graphicsengine.cpp:1834:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.x = (width-curimg->w)/2; ^ src/video/graphicsengine.cpp:1835:16: warning: conversion to 'Sint16 {aka short int}' from 'int' may alter its value [-Wconversion] dest.y = (height-curimg->h)/2; ^ src/video/graphicsengine.cpp:1836:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.w = curimg->w; ^ src/video/graphicsengine.cpp:1837:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] dest.h = curimg->h; ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::drawLine(Sint16, Sint16, Sint16, Sint16, Uint16, Uint32)': src/video/graphicsengine.cpp:1855:12: warning: conversion to 'float' from 'double' may alter its value [-Wfloat-conversion] length = sqrt(xmod*xmod+ymod*ymod); ^ src/video/pcximage.cpp: In constructor 'PCXImage::PCXImage(const char*, int)': src/video/pcximage.cpp:45:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.XMin = readword(pcxdata,4); ^ src/video/pcximage.cpp:46:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.YMin = readword(pcxdata,6); ^ src/video/pcximage.cpp:47:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.XMax = readword(pcxdata,8); ^ src/video/pcximage.cpp:48:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.YMax = readword(pcxdata,10); ^ src/video/pcximage.cpp:49:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.HRes = readword(pcxdata,12); ^ src/video/pcximage.cpp:50:16: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.VRes = readword(pcxdata,14); ^ src/video/pcximage.cpp:71:19: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.BytesLine = readword(pcxdata,66); ^ src/video/pcximage.cpp:72:18: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.PalType = readword(pcxdata,68); ^ src/video/pcximage.cpp:73:21: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.HscreenSize = readword(pcxdata,70); ^ src/video/pcximage.cpp:74:21: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] header.VscreenSize = readword(pcxdata,72); ^ src/video/pcximage.cpp: In member function 'void PCXImage::loadImage()': src/video/pcximage.cpp:177:12: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] Number = Pixel-192; ^ src/video/pcximage.cpp:202:37: warning: conversion to 'Sint8 {aka signed char}' from 'int' may alter its value [-Wconversion] image = scaler.scale(imgtmp,scaleq); ^ c++ -o src/video/renderer.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/video/renderer.cpp c++ -o src/vfs/filesystem/externalvfs.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/vfs/filesystem/externalvfs.cpp c++ -o src/vfs/mix/ws-key.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/vfs/mix/ws-key.cpp In file included from src/include/common.h:5:0, from src/video/renderer.cpp:4: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ src/vfs/mix/ws-key.cpp: In function 'void inv_bignum(Uint32*, Uint32*, Uint32)': src/vfs/mix/ws-key.cpp:364:16: warning: conversion to 'Uint32 {aka unsigned int}' from 'long int' may alter its value [-Wconversion] n2_bytelen = ((n2_bitlen - 1) / 32) * 4; ^ src/vfs/mix/ws-key.cpp: In function 'void mul_bignum_word(Uint16*, Uint32*, Uint32, Uint32)': src/vfs/mix/ws-key.cpp:441:11: warning: conversion to 'Uint16 {aka short unsigned int}' from 'int' may alter its value [-Wconversion] n1[0] += (unsigned short)tmp; ^ src/vfs/mix/ws-key.cpp: In function 'void calc_a_key(Uint32*, Uint32*, Uint32*, Uint32*, Uint32)': src/vfs/mix/ws-key.cpp:668:12: warning: conversion to 'Uint32 {aka unsigned int}' from 'Sint64 {aka long int}' may alter its value [-Wconversion] n3_len = (n3_bitlen + 31) / 32; ^ In file included from src/include/common.h:5:0, from src/vfs/filesystem/externalvfs.h:7, from src/vfs/filesystem/externalvfs.cpp:18: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ c++ -o src/vfs/mix/blowfish.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/vfs/mix/blowfish.cpp c++ -o src/vfs/mix/mixvfs.o -c -pipe -O2 -fno-strict-aliasing -Wall -Wconversion -Wno-unused-parameter -Wall -Wconversion -Wno-unused-parameter -pthread -D_REENTRANT -D_THREAD_SAFE -Isrc/include -Isrc/include/lua -I/usr/local/include/SDL -I/usr/local/include src/vfs/mix/mixvfs.cpp src/vfs/filesystem/externalvfs.cpp: In member function 'Uint32 ExternalFiles::getFile(const char*, const char*)': src/vfs/filesystem/externalvfs.cpp:90:20: warning: conversion to 'Uint32 {aka unsigned int}' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] return fnum; ^ src/vfs/filesystem/externalvfs.cpp:95:56: warning: conversion to 'Uint32 {aka unsigned int}' from 'std::__cxx11::basic_string::size_type {aka long unsigned int}' may alter its value [-Wconversion] f = fcaseopen(&filename, mode, path[i].length()); ^ src/vfs/filesystem/externalvfs.cpp:106:20: warning: conversion to 'Uint32 {aka unsigned int}' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] return fnum; ^ src/vfs/filesystem/externalvfs.cpp: In member function 'virtual Uint32 ExternalFiles::readByte(Uint32, Uint8*, Uint32)': src/vfs/filesystem/externalvfs.cpp:121:60: warning: conversion to 'Uint32 {aka unsigned int}' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] return fread(databuf, 1, numBytes, openfiles[file].file); ^ src/vfs/filesystem/externalvfs.cpp: In member function 'virtual Uint32 ExternalFiles::readWord(Uint32, Uint16*, Uint32)': src/vfs/filesystem/externalvfs.cpp:132:13: warning: conversion to 'Uint32 {aka unsigned int}' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] numRead = fread(databuf, 2, numWords, openfiles[file].file); ^ src/vfs/filesystem/externalvfs.cpp: In member function 'virtual Uint32 ExternalFiles::readThree(Uint32, Uint32*, Uint32)': src/vfs/filesystem/externalvfs.cpp:152:13: warning: conversion to 'Uint32 {aka unsigned int}' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] numRead = fread(databuf, 3, numThrees, openfiles[file].file); ^ src/vfs/filesystem/externalvfs.cpp: In member function 'virtual Uint32 ExternalFiles::readDWord(Uint32, Uint32*, Uint32)': src/vfs/filesystem/externalvfs.cpp:173:13: warning: conversion to 'Uint32 {aka unsigned int}' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] numRead = fread(databuf, 4, numDWords, openfiles[file].file); ^ src/vfs/filesystem/externalvfs.cpp: In member function 'virtual Uint32 ExternalFiles::writeByte(Uint32, const Uint8*, Uint32)': src/vfs/filesystem/externalvfs.cpp:192:61: warning: conversion to 'Uint32 {aka unsigned int}' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] return fwrite(databuf, 1, numBytes, openfiles[file].file); ^ src/vfs/filesystem/externalvfs.cpp: In member function 'virtual Uint32 ExternalFiles::writeWord(Uint32, const Uint16*, Uint32)': src/vfs/filesystem/externalvfs.cpp:213:14: warning: conversion to 'Uint32 {aka unsigned int}' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] numWrote = fwrite(databuf, 2, numWords, openfiles[file].file); ^ src/vfs/filesystem/externalvfs.cpp: In member function 'virtual Uint32 ExternalFiles::writeThree(Uint32, const Uint32*, Uint32)': src/vfs/filesystem/externalvfs.cpp:237:14: warning: conversion to 'Uint32 {aka unsigned int}' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] numWrote = fwrite(databuf, 3, numThrees, openfiles[file].file); ^ src/vfs/filesystem/externalvfs.cpp: In member function 'virtual Uint32 ExternalFiles::writeDWord(Uint32, const Uint32*, Uint32)': src/vfs/filesystem/externalvfs.cpp:260:14: warning: conversion to 'Uint32 {aka unsigned int}' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] numWrote = fwrite(databuf, 4, numDWords, openfiles[file].file); ^ src/vfs/filesystem/externalvfs.cpp: In member function 'virtual Uint32 ExternalFiles::getPos(Uint32) const': src/vfs/filesystem/externalvfs.cpp:296:36: warning: conversion to 'Uint32 {aka unsigned int}' from 'long int' may alter its value [-Wconversion] return ftell(i->second.file); ^ src/vfs/filesystem/externalvfs.cpp: In member function 'virtual Uint32 ExternalFiles::getSize(Uint32) const': src/vfs/filesystem/externalvfs.cpp:306:26: warning: conversion to 'Uint32 {aka unsigned int}' from 'size_t {aka long unsigned int}' may alter its value [-Wconversion] return i->second.size; ^ src/video/graphicsengine.cpp: In member function 'void GraphicsEngine::DrawGroundUnitHealthBars(SDL_Rect, SDL_Rect, Uint32)': src/video/graphicsengine.cpp:797:20: warning: 'ResourceType' may be used uninitialized in this function [-Wmaybe-uninitialized] SDL_FillRect(screen, &udest, ResourceType > 4?greenpix:redpix); ^ In file included from src/include/common.h:5:0, from src/vfs/mix/mixvfs.cpp:2: src/include/mapsini.h:25:1: warning: 'typedef' was ignored in this declaration }; ^ src/include/mapsini.h:39:1: warning: 'typedef' was ignored in this declaration }; ^ src/vfs/mix/mixvfs.cpp: In member function 'virtual Uint32 MIXFiles::getFile(const char*)': src/vfs/mix/mixvfs.cpp:47:12: warning: variable 'myvfile' set but not used [-Wunused-but-set-variable] VFile *myvfile; ^ src/vfs/mix/mixvfs.cpp: In member function 'Uint32 MIXFiles::calcID(const char*)': src/vfs/mix/mixvfs.cpp:89:18: warning: conversion to 'char' from 'int' may alter its value [-Wconversion] buffer[i]=toupper(*(fname++)); ^ src/vfs/mix/mixvfs.cpp:99:13: warning: conversion to 'Uint32 {aka unsigned int}' from 'long int' may alter its value [-Wconversion] calc=ROL(calc)+(*(long *)(buffer+i)); ^ src/vfs/mix/mixvfs.cpp: In member function 'MIXPriv::MixRecord* MIXFiles::decodeHeader(VFile*, MIXPriv::MixHeader*, MIXPriv::tscheck_)': src/vfs/mix/mixvfs.cpp:138:52: warning: conversion to 'int' from 'long unsigned int' may alter its value [-Wconversion] const int m_size = sizeof(MixRecord) * header->c_files; ^ src/vfs/mix/mixvfs.cpp:139:28: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] const int m_f = m_size + 5 & ~7; ^ src/vfs/mix/mixvfs.cpp: In member function 'void MIXFiles::readMIXHeader(VFile*)': src/vfs/mix/mixvfs.cpp:207:59: warning: conversion to 'int' from 'long unsigned int' may alter its value [-Wconversion] const int m_size = sizeof(MixRecord) * header.c_files; ^ src/vfs/mix/mixvfs.cpp:221:35: warning: conversion to 'Uint32 {aka unsigned int}' from 'long unsigned int' may alter its value [-Wconversion] m_index[i].offset += 4 + sizeof(MixHeader) + m_size; ^ src/vfs/mix/mixvfs.cpp:233:55: warning: conversion to 'int' from 'long unsigned int' may alter its value [-Wconversion] const int m_size = sizeof(MixRecord) * header.c_files; ^ src/vfs/mix/mixvfs.cpp:248:24: warning: conversion to 'Uint8 {aka unsigned char}' from 'int' may alter its value [-Wconversion] mentry.filenum = (Uint8)mixfiles.size()-1; ^ c++ -o freera -Wl,-rpath,/usr/local/lib -pthread src/freera.o src/ui/selection.o src/ui/font.o src/ui/widgets.o src/ui/logger.o src/ui/pause_menu.o src/ui/menu.o src/ui/sidebar.o src/ui/cursor.o src/ui/cursorpool.o src/ui/input.o src/game/ai.o src/game/weaponspool.o src/game/actioneventqueue.o src/game/buildqueue.o src/game/loadmap.o src/game/projectileanim.o src/game/structureanims.o src/game/moneycounter.o src/game/talkback.o src/game/game.o src/game/unitanimations.o src/game/map.o src/game/unit.o src/game/dispatcher.o src/game/triggers.o src/game/path.o src/game/player.o src/game/unitandstructurepool.o src/game/playerpool.o src/game/structure.o src/misc/compression.o src/misc/args.o src/misc/mapsini.o src/misc/inifile.o src/misc/common.o src/audio/soundengine.o src/audio/soundfile.o src/vfs/vfs.o src/video/shpimage.o src/video/vqa.o src/video/imagecache.o src/video/message.o src/video/sdllayer.o src/video/cpsimage.o src/video/graphicsengine.o src/video/loadingscreen.o src/video/wsa.o src/video/glSDL.o src/video/pcximage.o src/video/imageproc.o src/video/renderer.o src/vfs/filesystem/externalvfs.o src/vfs/mix/ws-key.o src/vfs/mix/blowfish.o src/vfs/mix/mixvfs.o -L/usr/local/lib -lSDL_mixer -lSDL scons: done building targets. =========================================================================== =================================================== =========================================================================== =================================================== ===> Staging for freera-080203_6 ===> Generating temporary packing list install -s -m 555 /wrkdirs/games/freera/freera++/freera /wrkdirs/games/freera/stage/usr/local/bin/ cd /wrkdirs/games/freera/freera++/data && /bin/sh -c '(/usr/bin/find -d $0 $2 | /usr/bin/cpio -dumpl $1 >/dev/null 2>&1) && /usr/bin/find -d $0 $2 -type d -exec chmod 755 $1/{} \; && /usr/bin/find -d $0 $2 -type f -exec chmod 444 $1/{} \;' -- . /wrkdirs/games/freera/stage/usr/local/share/freera/ ====> Compressing man pages (compress-man) =========================================================================== =================================================== ===> Building package for freera-080203_6 file sizes/checksums [38]: . done packing files [38]: . done packing directories [1]: . done =========================================================================== => Cleaning up wrkdir ===> Cleaning for freera-080203_6 build of games/freera ended at Wed Oct 5 04:52:11 PDT 2016 build time: 00:01:03