Skip to content

Commit e466b49

Browse files
Merge branch 'pybind:master' into master
2 parents 58f2eec + 31d7c87 commit e466b49

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/pybind11/eigen/matrix.h

+3
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,11 @@ struct type_caster<Type, enable_if_t<is_eigen_dense_plain<Type>::value>> {
316316
return false;
317317
}
318318

319+
PYBIND11_WARNING_PUSH
320+
PYBIND11_WARNING_DISABLE_GCC("-Wmaybe-uninitialized") // See PR #5516
319321
// Allocate the new type, then build a numpy reference into it
320322
value = Type(fits.rows, fits.cols);
323+
PYBIND11_WARNING_POP
321324
auto ref = reinterpret_steal<array>(eigen_ref_array<props>(value));
322325
if (dims == 1) {
323326
ref = ref.squeeze();

0 commit comments

Comments
 (0)