Mark unused variables with the [[gnu::unused]] attribute
This commit is contained in:
parent
a13e36b4b7
commit
2a509ba73f
|
@ -289,7 +289,7 @@ find_opening(Iterator pos, const Container& container,
|
||||||
{
|
{
|
||||||
if (nestable)
|
if (nestable)
|
||||||
{
|
{
|
||||||
for (auto m : RegexIt{match[0].second, pos, container.begin(), container.end(), closing})
|
for (auto m [[gnu::unused]] : RegexIt{match[0].second, pos, container.begin(), container.end(), closing})
|
||||||
++level;
|
++level;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -317,7 +317,7 @@ find_closing(Iterator pos, const Container& container,
|
||||||
{
|
{
|
||||||
if (nestable)
|
if (nestable)
|
||||||
{
|
{
|
||||||
for (auto m : RegexIt{pos, match[0].first, container.begin(), container.end(), opening})
|
for (auto m [[gnu::unused]] : RegexIt{pos, match[0].first, container.begin(), container.end(), opening})
|
||||||
++level;
|
++level;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user