diff options
| author | Rémi Verschelde | 2017-07-05 10:55:11 +0200 |
|---|---|---|
| committer | GitHub | 2017-07-05 10:55:11 +0200 |
| commit | 6f63a01302355077af2459c96a17e299c32b2960 (patch) | |
| tree | c0c6ed6e20f8dc26b436e9c193a962dbd09ffcb7 /core/object.h | |
| parent | 5a48b428fd349411456b785a5cb9a6ee0d5b1506 (diff) | |
| parent | 211c4518903d82068c061943064824ac5595fd38 (diff) | |
| download | godot-6f63a01302355077af2459c96a17e299c32b2960.tar.gz godot-6f63a01302355077af2459c96a17e299c32b2960.tar.zst godot-6f63a01302355077af2459c96a17e299c32b2960.zip | |
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 dec4949c8..f87705c48 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, |
