Skip to content

Commit 3c7ef56

Browse files
authored
fix: warning on latest AppleClang (#2522)
Fixed in #2510 but reintroduced on one line by #2126
1 parent d74be32 commit 3c7ef56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/pybind11.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,7 @@ PYBIND11_NAMESPACE_BEGIN(detail)
14891489

14901490
inline str enum_name(handle arg) {
14911491
dict entries = arg.get_type().attr("__entries");
1492-
for (const auto &kv : entries) {
1492+
for (auto kv : entries) {
14931493
if (handle(kv.second[int_(0)]).equal(arg))
14941494
return pybind11::str(kv.first);
14951495
}

0 commit comments

Comments
 (0)