Fix unused variable warning in Pybind11 (#2726)

This commit is contained in:
Adrià Arrufat 2023-02-11 12:03:47 +09:00 committed by GitHub
parent 1958da78da
commit 73a1c2f4fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -380,7 +380,7 @@ namespace pybind11
struct pyobject_caster<dlib::numpy_image<pixel_type>> {
using type = dlib::numpy_image<pixel_type>;
bool load(handle src, bool convert) {
bool load(handle src, bool /*convert*/) {
// If passed a tuple where the first element of the tuple is a valid
// numpy_image then bind the numpy_image to that element of the tuple.
// We do this because there is a pattern of returning an image and some