From 2a509ba73f177174a061185cc5d510910cc583e8 Mon Sep 17 00:00:00 2001 From: dahlbaek <30782351+dahlbaek@users.noreply.github.com> Date: Tue, 19 Jun 2018 14:48:16 +0200 Subject: [PATCH] Mark unused variables with the [[gnu::unused]] attribute --- src/selectors.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/selectors.cc b/src/selectors.cc index 16d088b8..3775cd5e 100644 --- a/src/selectors.cc +++ b/src/selectors.cc @@ -289,7 +289,7 @@ find_opening(Iterator pos, const Container& container, { 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; } @@ -317,7 +317,7 @@ find_closing(Iterator pos, const Container& container, { 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; }