Skip to content

Commit 464d866

Browse files
committed
Resolve superfluous warning from MSVC
1 parent ffc08ad commit 464d866

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/tao/pegtl/contrib/parse_tree.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ namespace TAO_PEGTL_NAMESPACE::parse_tree
316316
}
317317

318318
template< typename ParseInput, typename... States >
319-
static void unwind( const ParseInput& in, state< Node >& state, States&&... st )
319+
static void unwind( [[maybe_unused]] const ParseInput& in, [[maybe_unused]] state< Node >& state, States&&... st )
320320
{
321321
if constexpr( node_has_unwind< Node, Rule, void, const ParseInput&, States... > ) {
322322
state.back()->template unwind< Rule >( in, st... );
@@ -325,6 +325,10 @@ namespace TAO_PEGTL_NAMESPACE::parse_tree
325325
if constexpr( control_has_unwind< Control< Rule >, const ParseInput&, States... > ) {
326326
Control< Rule >::unwind( in, st... );
327327
}
328+
#if defined( _MSC_VER )
329+
( (void)st,
330+
... );
331+
#endif
328332
}
329333
};
330334

0 commit comments

Comments
 (0)