Fix FTBFS with GCC6

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 8 years ago
parent 4cba3ad2e4
commit 81067ed9e3

@ -454,7 +454,7 @@ static void* greycstoration_thread(void *arg) {
p.temporary = 0;
p.counter = 0;
p.tile = p.tile_border = p.thread = p.nb_threads = 0;
p.stop_request = false;
p.stop_request = 0;
greycstoration_mutex_destroy(p);
}
p.is_running = false;

@ -247,11 +247,11 @@ LPGAMMATABLE cmsxEstimateGamma(LPSAMPLEDCURVE X, LPSAMPLEDCURVE Y, int nResultin
/* maximum will not fall on exactly 100. */
if (!OneTry(X, Y, a))
return false;
return 0;
/* Got parameters. Compute maximum. */
e = a[1]* 255.0 + a[2];
if (e < 0) return false;
if (e < 0) return 0;
Max = pow(e, a[0]);
@ -261,7 +261,7 @@ LPGAMMATABLE cmsxEstimateGamma(LPSAMPLEDCURVE X, LPSAMPLEDCURVE Y, int nResultin
/* Do the final fitting */
if (!OneTry(XNorm, YNorm, a))
return false;
return 0;
/* Type 3 = IEC 61966-2.1 (sRGB) */
/* Y = (aX + b)^Gamma | X >= d */

@ -199,7 +199,7 @@ void tdeio_digikamdates::special(const TQByteArray& data)
.arg(moEndStr, 2)
.arg(yrStart, 4)
.arg(moStartStr, 2),
&values, false);
&values, 0, false);
TQ_LLONG imageid;
TQString name;

Loading…
Cancel
Save