Fix compiler warnings in folly_shims.cpp

This commit is contained in:
Alastair Robertson 2023-05-19 07:26:08 -07:00 committed by Alastair Robertson
parent a9ace14466
commit d71a497df5

View File

@ -8,11 +8,14 @@ namespace detail {
// requires safe_assert_terminate() to be defined. To avoid building and
// linking against folly, we define our own no-op version of this function here.
template <>
void safe_assert_terminate<false>(safe_assert_arg const* arg, ...) noexcept {
void safe_assert_terminate<false>(safe_assert_arg const* /*arg*/,
...) noexcept {
abort();
}
template <>
void safe_assert_terminate<true>(safe_assert_arg const* arg, ...) noexcept {
void safe_assert_terminate<true>(safe_assert_arg const* /*arg*/, ...) noexcept {
abort();
}
} // namespace detail