Skip to content

Commit

Permalink
Fix warning about unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mloskot committed Mar 29, 2019
1 parent 715d760 commit 89ce280
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/boost/gil/concepts/color_base.hpp
Expand Up @@ -13,6 +13,7 @@
#include <boost/gil/concepts/concept_check.hpp>
#include <boost/gil/concepts/fwd.hpp>

#include <boost/core/ignore_unused.hpp>
#include <boost/type_traits.hpp>

#if defined(BOOST_CLANG)
Expand Down Expand Up @@ -237,6 +238,7 @@ struct HomogeneousColorBaseConcept

using R0 = typename kth_element_const_reference_type<ColorBase, 0>::type;
R0 r = dynamic_at_c(cb, 0);
boost::ignore_unused(r);
}
ColorBase cb;
};
Expand All @@ -259,6 +261,7 @@ struct MutableHomogeneousColorBaseConcept
gil_function_requires<HomogeneousColorBaseConcept<ColorBase>>();
using R0 = typename kth_element_reference_type<ColorBase, 0>::type;
R0 r = dynamic_at_c(cb, 0);
boost::ignore_unused(r);
dynamic_at_c(cb, 0) = dynamic_at_c(cb, 0);
}
ColorBase cb;
Expand Down

0 comments on commit 89ce280

Please sign in to comment.