From 6c230bf1cf23b51cfd07002d43ab7ccb83f818be Mon Sep 17 00:00:00 2001 From: Mateusz Loskot Date: Thu, 29 Mar 2018 00:10:18 +0200 Subject: [PATCH] Remove redundant local num_values in packed_channel_reference_base::set() Pre-defined packed_channel_reference_base::set::num_values already represents the value. Fixes warning C4458: declaration of 'num_values' hides class member --- include/boost/gil/channel.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/include/boost/gil/channel.hpp b/include/boost/gil/channel.hpp index d37089a0b..34afa660d 100644 --- a/include/boost/gil/channel.hpp +++ b/include/boost/gil/channel.hpp @@ -351,7 +351,6 @@ protected: private: void set(integer_t value) const { // can this be done faster?? - const integer_t num_values = max_val+1; this->derived().set_unsafe(((value % num_values) + num_values) % num_values); } integer_t get() const { return derived().get(); }