Summary: fit_nationset_to_players(): 'least_misfits' may be
used uninitialized in this function
Submitted by: jtn
Submitted on: Sat Dec 28 23:05:39 2013
Severity: 3 - Normal
Priority: 5 - Normal
Assigned to: None
Discussion Lock: Any
Operating System: Any
Planned Release: 2.5.0,2.6.0
Split from bug #21370:
cc1: warnings being treated as errors
plrhand.c: In function ‘fit_nationset_to_players’:
plrhand.c:2227: error: ‘least_misfits’ may be used uninitialized in this
"Ubuntu 10.4 and gcc version 4.4.3."
Don't think the warning is correct -- it's protected by another variable
'best' -- but the compiler hasn't spotted this. (There is a potential use of
invalid data, best==NULL, if nation_set_count()==0, but that should never
Some sort of warning suppression required.
Reply to this item at:
Message sent via/by Gna!
Freeciv-dev mailing list