trunk 7650 fails to compile on gcc 5.2.0

Bug #1520820 reported by Tino
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Undecided
Unassigned

Bug Description

c:/data/bzr/widelands/working/src/logic/production_program.cc: In member function 'virtual void Widelands::ProductionProgram::ActProduce::execute(Widelands::Game&, Widelands::ProductionSite&) const':
c:/data/bzr/widelands/working/src/logic/production_program.cc:1071:26: error: 'count' may be used uninitialized in this function [-Werror=maybe-uninitialized] (boost::format(ngettext("Produced %s", "Produced %s", count)) % ware_list).str();
                          ^
c:/data/bzr/widelands/working/src/logic/production_program.cc: In member function 'virtual void idelands::ProductionProgram::ActRecruit::execute(Widelands::Game&, Widelands::ProductionSite&) const':
c:/data/bzr/widelands/working/src/logic/production_program.cc:1167:26: error: 'c
ount' may be used uninitialized in this function [-Werror=maybe-uninitialized] (boost::format(ngettext("Recruited %s", "Recruited %s", count)) % unit_string).str();
                          ^
cc1plus.exe: some warnings being treated as errors
ninja: build stopped: subcommand failed.

We set -Werror=uninitialized in CMakeList.txt, i am not sure if this implicits -Wmaybe-uninitialized?

Related branches

GunChleoc (gunchleoc)
Changed in widelands:
assignee: nobody → GunChleoc (gunchleoc)
milestone: none → build19-rc1
status: New → In Progress
GunChleoc (gunchleoc)
Changed in widelands:
status: In Progress → Fix Committed
assignee: GunChleoc (gunchleoc) → nobody
GunChleoc (gunchleoc)
Changed in widelands:
status: Fix Committed → Fix Released
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build19-rc1.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.