diff --git a/rtengine/improcfun.cc b/rtengine/improcfun.cc index 6721850c5..5b7daa3a1 100644 --- a/rtengine/improcfun.cc +++ b/rtengine/improcfun.cc @@ -257,9 +257,9 @@ void ImProcFunctions::ciecam_02 (CieImage* ncie, double adap, int begh, int endh int width = lab->W, height = lab->H; float minQ = 10000.f; float maxQ = -1000.f; - float w_h; - float a_w; - float c_; + float w_h = 0.f; + float a_w = 0.f; + float c_ = 0.f; float f_l; double Yw; Yw = 1.0; diff --git a/rtengine/iplocallab.cc b/rtengine/iplocallab.cc index a3637c2f2..3f8926fa8 100644 --- a/rtengine/iplocallab.cc +++ b/rtengine/iplocallab.cc @@ -4125,7 +4125,7 @@ void ImProcFunctions::Lab_Local (int call, int sp, float** shbuffer, LabImage * float **bufchro = nullptr; float **buflightslid = nullptr; - int bfh, bfw; + int bfh = 0.f, bfw = 0.f; float adjustr = 1.0f; @@ -5254,12 +5254,12 @@ void ImProcFunctions::Lab_Local (int call, int sp, float** shbuffer, LabImage * float Chprov1 = sqrtBuffer[x]; sincosval.y = sincosyBuffer[x]; sincosval.x = sincosxBuffer[x]; - float chr; + float chr = 0.f; #else float aa = transformed->a[y][x]; float bb = transformed->b[y][x]; - float HH, chr; + float HH = 0.f, chr = 0.f; if (needHH) { // only do expensive atan2 calculation if needed HH = xatan2f (bb, aa);