2025-08-03 16:19 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003776Spring engineGeneralpublic2013-05-05 17:16
Reporterabma 
Assigned ToKloot 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusresolvedResolutionfixed 
Product Version94.1.1+git 
Target Version95.0Fixed in Version94.1.1+git 
Summary0003776: clang compile warning: CHoverAirMoveType::SetGoal' hides overloaded virtual function
DescriptionIn file included from rts/Sim/Units/UnitTypes/TransportUnit.cpp:8:
rts/Sim/MoveTypes/HoverAirMoveType.h:79:7: warning: 'CHoverAirMoveType::SetGoal' hides overloaded virtual function [-Woverloaded-virtual]
        void SetGoal(float3 newPos, float distance);
             ^
rts/Sim/MoveTypes/MoveType.h:29:15: note: hidden overloaded virtual function 'AMoveType::SetGoal' declared here
        virtual void SetGoal(const float3& pos) { goalPos = pos; }



In file included from rts/Sim/Weapons/BombDropper.cpp:9:
rts/Sim/MoveTypes/HoverAirMoveType.h:79:7: warning: 'CHoverAirMoveType::SetGoal' hides overloaded virtual function [-Woverloaded-virtual]
        void SetGoal(float3 newPos, float distance);
             ^
rts/Sim/MoveTypes/MoveType.h:29:15: note: hidden overloaded virtual function 'AMoveType::SetGoal' declared here
        virtual void SetGoal(const float3& pos) { goalPos = pos; }
                     ^
1 warning generated.



rts/Sim/MoveTypes/HoverAirMoveType.h:79:7: warning: 'CHoverAirMoveType::SetGoal' hides overloaded virtual function [-Woverloaded-virtual]
        void SetGoal(float3 newPos, float distance);
             ^
rts/Sim/MoveTypes/MoveType.h:29:15: note: hidden overloaded virtual function 'AMoveType::SetGoal' declared here
        virtual void SetGoal(const float3& pos) { goalPos = pos; }
                     ^
1 warning generated.

Additional Informationnot sure how to fix, i guess adding the parameter float distance to all SetGoal functions...
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes
There are no notes attached to this issue.
+Notes

-Issue History
Date Modified Username Field Change
2013-05-05 14:32 abma New Issue
2013-05-05 14:33 abma Description Updated View Revisions
2013-05-05 17:00 Kloot Changeset attached => spring develop cae2c9ba
2013-05-05 17:00 Kloot Assigned To => Kloot
2013-05-05 17:00 Kloot Resolution open => fixed
2013-05-05 17:16 Kloot Status new => resolved
2013-05-05 17:16 Kloot Fixed in Version => 94.1.1+git
+Issue History