Skip to content

Commit bc4b562

Browse files
pybind11_abseil authorscopybara-github
authored andcommitted
Made unused parameter anonymous to prevent warnings on -Wall
PiperOrigin-RevId: 601222599
1 parent d2d579c commit bc4b562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pybind11_abseil/absl_casters.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ std::tuple<bool, absl::Span<T>> LoadSpanOpaqueVector(handle src) {
447447
template <typename T,
448448
typename std::enable_if<
449449
std::is_same<std::remove_cv_t<T>, bool>::value, int>::type = 0>
450-
std::tuple<bool, absl::Span<T>> LoadSpanOpaqueVector(handle src) {
450+
std::tuple<bool, absl::Span<T>> LoadSpanOpaqueVector(handle /*src*/) {
451451
// std::vector<bool> is special and cannot directly be converted to a Span
452452
// (see https://en.cppreference.com/w/cpp/container/vector_bool).
453453
return {false, absl::Span<T>()};

0 commit comments

Comments
 (0)