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

Questions, problems and discussion about compiling FreeOrion.
Post Reply
Message
Author
User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

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

#1 Post by Nagilum » 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

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12245
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

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

#2 Post by Geoff the Medio » Thu Jan 10, 2013 9:31 pm

Should be fixed in SVN.

User avatar
Nagilum
Release Manager, Design
Posts: 212
Joined: Thu Dec 31, 2009 3:25 pm
Location: Germany

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

#3 Post by Nagilum » Fri Jan 11, 2013 7:26 am

Geoff the Medio wrote:Should be fixed in SVN.

Confirmend!
Thanks!

Post Reply