diff options
Diffstat (limited to 'core/object.h')
-rw-r--r-- | core/object.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/object.h b/core/object.h index dec4949c8d..f87705c48b 100644 --- a/core/object.h +++ b/core/object.h @@ -533,6 +533,12 @@ public: void add_change_receptor(Object *p_receptor); void remove_change_receptor(Object *p_receptor); +// TODO: ensure 'this' is never NULL since it's UB, but by now, avoid warning flood +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wundefined-bool-conversion" +#endif + template <class T> T *cast_to() { @@ -563,6 +569,10 @@ public: #endif } +#ifdef __clang__ +#pragma clang diagnostic pop +#endif + enum { NOTIFICATION_POSTINITIALIZE = 0, |