Bug#811616: FTBFS with GCC 6: cannot convert x to y

Martin Michlmayr tbm at hpe.com
Wed Jan 20 00:21:45 UTC 2016


Package: warmux
Version: 1:11.04.1+repack2-1
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-cannot-convert

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Note that only the first error is reported; there might be more.  You
can find a snapshot of GCC 6 in experimental.  To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> g++ -DHAVE_CONFIG_H -I. -I../lib/warmux/include   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I ../src -DINSTALL_DATADIR=\"/usr/share/games/warmux/\" -DINSTALL_LOCALEDIR=\"/usr/share/locale\" -DFONT_FILE=\"/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf\" -DPACKAGE_VERSION=\"11.04\" -I../lib/warmux/include -I../lib/fixedpoint -Wall -Wextra -Wall -Wextra -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/libpng12 -I/usr/include/libxml2 -I/usr/include/fribidi -fno-rtti -fno-exceptions -c -o network_menu.o `test -f 'menu/network_menu.cpp' || echo './'`menu/network_menu.cpp
> interface/weapon_menu.cpp: In member function 'AffineTransform2D WeaponsMenu::ComputeToolTransformation()':
> interface/weapon_menu.cpp:334:8: warning: variable 'scroll_border' set but not used [-Wunused-but-set-variable]
>    uint scroll_border = 0;
>         ^~~~~~~~~~~~~
> 
> interface/weapon_menu.cpp: In member function 'AffineTransform2D WeaponsMenu::ComputeWeaponTransformation()':
> interface/weapon_menu.cpp:352:8: warning: variable 'scroll_border' set but not used [-Wunused-but-set-variable]
>    uint scroll_border = 0;
>         ^~~~~~~~~~~~~
> 
> interface/weapon_menu.cpp: In member function 'Weapon* WeaponsMenu::UpdateCurrentOverflyItem(const Polygon*)':
> interface/weapon_menu.cpp:394:12: error: cannot convert 'bool' to 'Weapon*' in return
>      return false;
>             ^~~~~
> 
> map/tile.cpp: In member function 'Tile::SynchTileList Tile::GetTilesToSynch()':
> map/tile.cpp:676:50: warning: narrowing conversion of 'i' from 'uint {aka unsigned int}' to 'uint16_t {aka short unsigned int}' inside { } [-Wnarrowing]
>        SynchTileInfo info = { i, t->GetSynchsum() };
>                                                   ^

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise



More information about the Pkg-games-devel mailing list