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 1f6e9a8 commit e654460Copy full SHA for e654460
include/pybind11/stl.h
@@ -370,12 +370,19 @@ struct variant_caster<V<Ts...>> {
370
371
template <typename U, typename... Us>
372
bool load_alternative(handle src, bool convert, type_list<U, Us...>) {
373
+#if defined(__MINGW32__)
374
+# pragma GCC diagnostic push
375
+# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
376
+#endif
377
auto caster = make_caster<U>();
378
if (caster.load(src, convert)) {
379
value = cast_op<U>(std::move(caster));
380
return true;
381
}
382
return load_alternative(src, convert, type_list<Us...>{});
383
384
+# pragma GCC diagnostic pop
385
386
387
388
bool load_alternative(handle, bool, type_list<>) { return false; }
0 commit comments