From beb13ac7e7a59642224b4b9b4ebb71e28bb054bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20Gr=C3=A4ser?= <graeser@dune-project.org> Date: Mon, 1 Dec 2014 11:11:08 +0100 Subject: [PATCH] [cleanup] Avoid unused variable warning in test --- dune/common/test/bitsetvectortest.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dune/common/test/bitsetvectortest.cc b/dune/common/test/bitsetvectortest.cc index 504eac275..94a9f87c5 100644 --- a/dune/common/test/bitsetvectortest.cc +++ b/dune/common/test/bitsetvectortest.cc @@ -4,7 +4,9 @@ #include "config.h" #endif +#include <dune/common/unused.hh> #include <dune/common/bitsetvector.hh> + #if defined(__GNUC__) && ! defined(__clang__) #include <ext/malloc_allocator.h> #endif @@ -18,7 +20,7 @@ struct ConstReferenceOp typedef typename BBF::const_reference const_reference; void operator()(const_reference t){ - bitset x = t[0]; + DUNE_UNUSED bitset x = t[0]; } }; -- GitLab