aboutsummaryrefslogtreecommitdiff
path: root/core/object.h
diff options
context:
space:
mode:
authorRémi Verschelde2017-07-05 10:55:11 +0200
committerGitHub2017-07-05 10:55:11 +0200
commit6f63a01302355077af2459c96a17e299c32b2960 (patch)
treec0c6ed6e20f8dc26b436e9c193a962dbd09ffcb7 /core/object.h
parent5a48b428fd349411456b785a5cb9a6ee0d5b1506 (diff)
parent211c4518903d82068c061943064824ac5595fd38 (diff)
downloadgodot-6f63a01302355077af2459c96a17e299c32b2960.tar.gz
godot-6f63a01302355077af2459c96a17e299c32b2960.tar.zst
godot-6f63a01302355077af2459c96a17e299c32b2960.zip
Diffstat (limited to 'core/object.h')
-rw-r--r--core/object.h10
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,