Skip to content
This repository was archived by the owner on Mar 15, 2025. It is now read-only.

Commit cc1138d

Browse files
committed
Fix unused parameter warning.
1 parent d900082 commit cc1138d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dang-lua/include/dang-lua/State.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,15 +232,15 @@ struct SignatureInfo<TRet (*)(TArgs...)> : SignatureInfoBase<TRet, TArgs...> {
232232

233233
/// @brief Helper function to convert all arguments, as "indexOffset" relies on an index sequence itself.
234234
template <std::size_t... v_indices>
235-
static typename Base::Arguments convertArgumentsHelper(StateRef& state, std::index_sequence<v_indices...>)
235+
static typename Base::Arguments convertArgumentsHelper([[maybe_unused]] StateRef& state, std::index_sequence<v_indices...>)
236236
{
237237
return {Convert<std::remove_reference_t<TArgs>>::check(
238238
state, Base::indexOffset(std::make_index_sequence<v_indices>{}))...};
239239
}
240240

241241
/// @brief Helper function to convert all arguments, as "indexOffset" relies on an index sequence itself.
242242
template <std::size_t... v_indices>
243-
static typename Base::Arguments convertArgumentsRawHelper(lua_State* state, std::index_sequence<v_indices...>)
243+
static typename Base::Arguments convertArgumentsRawHelper([[maybe_unused]] lua_State* state, std::index_sequence<v_indices...>)
244244
{
245245
return {Convert<std::remove_reference_t<TArgs>>::check(
246246
state, Base::indexOffset(std::make_index_sequence<v_indices>{}))...};

0 commit comments

Comments
 (0)