mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-31 07:10:30 +00:00
fix -Wunused-lambda-capture warning
This commit is contained in:
parent
df244884c0
commit
cecb577a19
@ -157,6 +157,7 @@ test_initializer callbacks([](py::module &m) {
|
|||||||
|
|
||||||
return [p]() {
|
return [p]() {
|
||||||
/* p should be cleaned up when the returned function is garbage collected */
|
/* p should be cleaned up when the returned function is garbage collected */
|
||||||
|
(void) p;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user