From: Øyvind Kolås Date: Thu, 28 Nov 2019 17:09:35 +0000 (+0100) Subject: CIE: comment out self assignments X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~10^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=823286af4c045edc0cedb05d074c704672db04ff;p=babl.git CIE: comment out self assignments This squelches warnings when using clang as the compiler. --- diff --git a/extensions/CIE.c b/extensions/CIE.c index 85f8bc5..1607b27 100644 --- a/extensions/CIE.c +++ b/extensions/CIE.c @@ -1076,7 +1076,7 @@ xyYf_to_rgbf (const Babl *conversion,float *src, else { X = (x * Y) / y; - Y = Y; + //Y = Y; Z = ((1 - x - y) * Y) / y; } @@ -1130,7 +1130,7 @@ xyYf_to_rgbaf (const Babl *conversion, else { X = (x * Y) / y; - Y = Y; + //Y = Y; Z = ((1 - x - y) * Y) / y; } @@ -1183,7 +1183,7 @@ xyYaf_to_rgbaf (const Babl *conversion, else { X = (x * Y) / y; - Y = Y; + //Y = Y; Z = ((1 - x - y) * Y) / y; } @@ -1238,7 +1238,7 @@ Yuvf_to_rgbf (const Babl *conversion,float *src, else { X = ((9.0 * u * Y)/(4.0 * v)); - Y = Y; + //Y = Y; Z = -(((20.0 * v + 3.0 * u - 12.0) * Y)/(4.0 * v)); } @@ -1291,7 +1291,7 @@ Yuvf_to_rgbaf (const Babl *conversion, else { X = ((9.0 * u * Y)/(4.0 * v)); - Y = Y; + //Y = Y; Z = -(((20.0 * v + 3.0 * u - 12.0) * Y)/(4.0 * v)); } @@ -1344,7 +1344,7 @@ Yuvaf_to_rgbaf (const Babl *conversion, else { X = ((9.0 * u * Y)/(4.0 * v)); - Y = Y; + //Y = Y; Z = -(((20.0 * v + 3.0 * u - 12.0) * Y)/(4.0 * v)); }