diff --git a/tests/test_callbacks.cpp b/tests/test_callbacks.cpp index bd3dcc4dc..f89cc1c79 100644 --- a/tests/test_callbacks.cpp +++ b/tests/test_callbacks.cpp @@ -157,6 +157,7 @@ test_initializer callbacks([](py::module &m) { return [p]() { /* p should be cleaned up when the returned function is garbage collected */ + (void) p; }; });