We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98e50b7 commit c2e0043Copy full SHA for c2e0043
1 file changed
include/pybind11/stl.h
@@ -326,6 +326,10 @@ struct list_caster {
326
327
bool convert_elements(handle seq, bool convert) {
328
auto s = reinterpret_borrow<sequence>(seq);
329
+PYBIND11_WARNING_PUSH
330
+#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ >= 13
331
+PYBIND11_WARNING_DISABLE_GCC("-Wmaybe-uninitialized")
332
+#endif
333
value.clear();
334
reserve_maybe(s, &value);
335
for (const auto &it : seq) {
@@ -335,6 +339,7 @@ struct list_caster {
339
}
336
340
value.push_back(cast_op<Value &&>(std::move(conv)));
337
341
342
+PYBIND11_WARNING_POP
338
343
return true;
344
345
0 commit comments