Commit 3c7ef56b by Henry Schreiner Committed by GitHub

fix: warning on latest AppleClang (#2522)

Fixed in #2510 but reintroduced on one line by #2126
parent d74be321
......@@ -1489,7 +1489,7 @@ PYBIND11_NAMESPACE_BEGIN(detail)
inline str enum_name(handle arg) {
dict entries = arg.get_type().attr("__entries");
for (const auto &kv : entries) {
for (auto kv : entries) {
if (handle(kv.second[int_(0)]).equal(arg))
return pybind11::str(kv.first);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment