Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions include/pybind11/stl.h
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,10 @@ struct list_caster {

bool convert_elements(handle seq, bool convert) {
auto s = reinterpret_borrow<sequence>(seq);
PYBIND11_WARNING_PUSH
#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ >= 13
PYBIND11_WARNING_DISABLE_GCC("-Wmaybe-uninitialized")
#endif
value.clear();
reserve_maybe(s, &value);
for (const auto &it : seq) {
Expand All @@ -335,6 +339,7 @@ struct list_caster {
}
value.push_back(cast_op<Value &&>(std::move(conv)));
}
PYBIND11_WARNING_POP
return true;
}

Expand Down
Loading