mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 22:39:09 +00:00
fix: AppleClang 12 warnings (#2510)
* fix: AppleClang 12 new warning * Fix: AppleClang X.X.0 will not trigger this warning
This commit is contained in:
@@ -128,7 +128,7 @@ TEST_SUBMODULE(pytypes, m) {
|
||||
d["basic_attr"] = o.attr("basic_attr");
|
||||
|
||||
auto l = py::list();
|
||||
for (const auto &item : o.attr("begin_end")) {
|
||||
for (auto item : o.attr("begin_end")) {
|
||||
l.append(item);
|
||||
}
|
||||
d["begin_end"] = l;
|
||||
|
||||
Reference in New Issue
Block a user