diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-05-17 17:59:45 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-05-17 18:09:10 +0200 |
commit | 1d89c8b51913070178677e371a3d90500353fb09 (patch) | |
tree | e49b9180037f1765f41147c4be078da46c2197c6 /editor/vobj-editor.hpp | |
parent | a3f622e99dc8b468738c398e87f3df9e51f85cc6 (diff) |
wip
Diffstat (limited to 'editor/vobj-editor.hpp')
-rw-r--r-- | editor/vobj-editor.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/editor/vobj-editor.hpp b/editor/vobj-editor.hpp index 3ebf7bd8..573f00e3 100644 --- a/editor/vobj-editor.hpp +++ b/editor/vobj-editor.hpp @@ -17,7 +17,7 @@ struct entity; struct anim_atlas; struct vobj_info; -#ifdef __clang__ +#if defined __clang__ || defined __CLION_IDE__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wweak-vtables" #endif @@ -25,7 +25,7 @@ struct vobj_info; struct vobj_factory { constexpr vobj_factory() = default; - virtual constexpr ~vobj_factory() noexcept = default; + virtual constexpr ~vobj_factory() noexcept; virtual const vobj_info& info() const = 0; virtual entity_type type() const = 0; virtual std::shared_ptr<entity> make(world& w, object_id id, global_coords pos) const = 0; @@ -35,7 +35,9 @@ struct vobj_factory std::shared_ptr<anim_atlas> atlas() const; }; -#ifdef __clang__ +constexpr vobj_factory::~vobj_factory() noexcept {}; // NOLINT workaround gcc 12 bug #93413 + +#if defined __clang__ || defined __CLION_IDE__ #pragma clang diagnostic pop #endif |