the latest code made clang emit new warnings :
Code: Select all
In file included from /home/vince/repo/upstream/FreeOrion-llvm/UI/CombatReport/CombatReportData.cpp:2:
/home/vince/repo/upstream/FreeOrion-llvm/UI/CombatReport/../../combat/CombatEvents.h:31:1: warning: 'AttackEvent' defined as a struct here but previously declared as a class [-Wmismatched-tags]
struct AttackEvent : public CombatEvent {
^
/home/vince/repo/upstream/FreeOrion-llvm/UI/CombatReport/CombatReportData.h:10:1: note: did you mean struct here?
class AttackEvent;
^~~~~
struct
In file included from /home/vince/repo/upstream/FreeOrion-llvm/UI/CombatReport/CombatReportData.cpp:3:
/home/vince/repo/upstream/FreeOrion-llvm/UI/CombatReport/../../combat/CombatLogManager.h:11:1: warning: 'CombatParticipantState' defined as a struct here but previously declared as a class [-Wmismatched-tags]
struct CombatParticipantState {
^
/home/vince/repo/upstream/FreeOrion-llvm/UI/CombatReport/CombatReportData.h:11:1: note: did you mean struct here?
class CombatParticipantState;
^~~~~
struct
2 warnings generated.