Universe.cpp:1804:26: error: declaration of 'const ObjectMap
Posted: Thu Jan 10, 2013 8:43 pm
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