We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 109a165 commit 88cec11Copy full SHA for 88cec11
include/pybind11/numpy.h
@@ -59,7 +59,13 @@ class LazyInitializeAtLeastOnceDestroyNever {
59
initialized_ = true;
60
}
61
62
+ PYBIND11_WARNING_PUSH
63
+#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ < 5
64
+ // Needed for gcc 4.8.5
65
+ PYBIND11_WARNING_DISABLE_CLANG("-Wstrict-aliasing")
66
+#endif
67
return *reinterpret_cast<T *>(value_storage_);
68
+ PYBIND11_WARNING_POP
69
70
71
private:
0 commit comments