tools/source/generic/color.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 01ed4bf52db701c4e7824f4a92b5a3afa2a5ca4b Author: Tor Lillqvist <t...@collabora.com> Date: Thu Aug 27 08:40:20 2015 +0300 Avoid slightly silly warnings from Clang Clang (at least the one from newest Xcode 7 Beta) warn both that fResult "is used uninitialized whenever 'if' condition is false" *and* that the very same "condition is always true". Change-Id: I9e2424e7323046edbfe1af3c9f960df49e0809dd diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx index 4ab32d4..3fb3294 100644 --- a/tools/source/generic/color.cxx +++ b/tools/source/generic/color.cxx @@ -319,7 +319,7 @@ void Color::ApplyTintOrShade(sal_Int16 n100thPercent) basegfx::BColor aBColor = basegfx::tools::rgb2hsl(getBColor()); double fFactor = 1.0 - (std::abs(double(n100thPercent)) / 10000.0); - double fResult; + double fResult = 0; if (n100thPercent > 0) // tint { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits