mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-31 20:13:26 +08: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…
x
Reference in New Issue
Block a user