Skip to content

Commit

Permalink
Made unused parameter anonymous to prevent warnings on -Wall
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 601222599
  • Loading branch information
pybind11_abseil authors authored and copybara-github committed Jan 24, 2024
1 parent d2d579c commit bc4b562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybind11_abseil/absl_casters.h
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ std::tuple<bool, absl::Span<T>> LoadSpanOpaqueVector(handle src) {
template <typename T,
typename std::enable_if<
std::is_same<std::remove_cv_t<T>, bool>::value, int>::type = 0>
std::tuple<bool, absl::Span<T>> LoadSpanOpaqueVector(handle src) {
std::tuple<bool, absl::Span<T>> LoadSpanOpaqueVector(handle /*src*/) {
// std::vector<bool> is special and cannot directly be converted to a Span
// (see https://en.cppreference.com/w/cpp/container/vector_bool).
return {false, absl::Span<T>()};
Expand Down

0 comments on commit bc4b562

Please sign in to comment.