View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0003776 | Spring engine | General | public | 2013-05-05 14:32 | 2013-05-05 17:16 | ||||
Reporter | abma | ||||||||
Assigned To | Kloot | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 94.1.1+git | ||||||||
Target Version | 95.0 | Fixed in Version | 94.1.1+git | ||||||
Summary | 0003776: clang compile warning: CHoverAirMoveType::SetGoal' hides overloaded virtual function | ||||||||
Description | In 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 Information | not sure how to fix, i guess adding the parameter float distance to all SetGoal functions... | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|||
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 |