forked from Mirrorlandia_minetest/minetest
Fix some gcc 7.3 reported warnings
``` src/client/joystick_controller.h:85:2: warning: duplicate 'virtual' declaration specifier [-Wduplicate-decl-specifier] virtual bool isTriggered(const irr::SEvent::SJoystickEvent &ev) const; /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.3.1/../../../../include/c++/7.3.1/ext/new_allocator.h:140:22: warning: destructor called on non-final 'JoystickAxisCmb' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] destroy(_Up* __p) { __p->~_Up(); } /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/7.3.1/../../../../include/c++/7.3.1/ext/new_allocator.h:140:22: warning: destructor called on non-final 'JoystickButtonCmb' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] destroy(_Up* __p) { __p->~_Up(); } ```
This commit is contained in:
parent
9293d8e271
commit
eab652fd52
@ -60,6 +60,8 @@ struct JoystickButtonCmb : public JoystickCombination {
|
|||||||
this->key = key;
|
this->key = key;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual ~JoystickButtonCmb() = default;
|
||||||
|
|
||||||
virtual bool isTriggered(const irr::SEvent::SJoystickEvent &ev) const;
|
virtual bool isTriggered(const irr::SEvent::SJoystickEvent &ev) const;
|
||||||
|
|
||||||
u32 filter_mask;
|
u32 filter_mask;
|
||||||
@ -78,7 +80,9 @@ struct JoystickAxisCmb : public JoystickCombination {
|
|||||||
this->key = key;
|
this->key = key;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool isTriggered(const irr::SEvent::SJoystickEvent &ev) const;
|
virtual ~JoystickAxisCmb() = default;
|
||||||
|
|
||||||
|
bool isTriggered(const irr::SEvent::SJoystickEvent &ev) const override;
|
||||||
|
|
||||||
u16 axis_to_compare;
|
u16 axis_to_compare;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user