diff --git a/rtengine/rtthumbnail.cc b/rtengine/rtthumbnail.cc index 95b1a24c9..65c03ac96 100644 --- a/rtengine/rtthumbnail.cc +++ b/rtengine/rtthumbnail.cc @@ -100,7 +100,7 @@ void adjustBlackLevels(float cblack[4], rtengine::eSensorType sensorType, const break; } - for (int i = 0; i < black_adjust.size(); i++) { + for (unsigned int i = 0; i < black_adjust.size(); i++) { cblack[i] = std::max(0.f, cblack[i] + black_adjust[i]); } } @@ -118,7 +118,7 @@ void calculate_scale_mul(float scale_mul[4], const float pre_mul_[4], const floa { std::array c_white; - for (int i = 0; i < c_white.size(); ++i) { + for (unsigned int i = 0; i < c_white.size(); ++i) { c_white[i] = static_cast(ri->get_white(i)); } diff --git a/rtengine/simpleprocess.cc b/rtengine/simpleprocess.cc index ad0ce9cc0..b5c5cdcdd 100644 --- a/rtengine/simpleprocess.cc +++ b/rtengine/simpleprocess.cc @@ -287,7 +287,6 @@ private: int kmin = 20; float minhist = 1000000000.f; float maxhist = -1000.f; - double tempitc = 5000.f; double greenitc = 1.; float temp0 = 5000.f; bool extra = false;