Page 1 of 1

Universe.cpp:1804:26: error: declaration of 'const ObjectMap

Posted: Thu Jan 10, 2013 8:43 pm
by Nagilum
SVN Rev 5627 currently fails to compile with gcc:
/root/freeorion/src/freeorion-build/universe/Universe.cpp: In function 'void {anonymous}::SetSameSystemPlanetsVisible(const ObjectMap&)':
/root/freeorion/src/freeorion-build/universe/Universe.cpp:1804:26: error: declaration of 'const ObjectMap& objects' shadows a parameter
/root/freeorion/src/freeorion-build/universe/Universe.cpp: In function 'void {anonymous}::PropegateVisibilityToContainerObjects(const ObjectMap&, Universe::EmpireObjectVisibilityMap&)':
/root/freeorion/src/freeorion-build/universe/Universe.cpp:1832:19: warning: unused variable 'universe' [-Wunused-variable]
/root/freeorion/src/freeorion-build/universe/Universe.cpp: At global scope:
/root/freeorion/src/freeorion-build/universe/Universe.cpp:47:10: warning: '{anonymous}::temp_bool' defined but not used [-Wunused-variable]
make[2]: *** [CMakeFiles/core_static.dir/universe/Universe.cpp.o] Error 1
make[1]: *** [CMakeFiles/core_static.dir/all] Error 2
make: *** [all] Error 2

Re: Universe.cpp:1804:26: error: declaration of 'const Objec

Posted: Thu Jan 10, 2013 9:31 pm
by Geoff the Medio
Should be fixed in SVN.

Re: Universe.cpp:1804:26: error: declaration of 'const Objec

Posted: Fri Jan 11, 2013 7:26 am
by Nagilum
Geoff the Medio wrote:Should be fixed in SVN.
Confirmend!
Thanks!