diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2020-02-24 11:02:04 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-02-24 19:23:38 +0100 |
commit | 1ca7e41fa8e300d0f5b8e0427ea3e6cad27ce175 (patch) | |
tree | 5d98bfd7793673962079aaf449f1e47874d6e524 /include/tools | |
parent | 589abe39262a37fb1205fac229d7004ee01dd3f9 (diff) |
workaround GCC 9.2.1 -Og -Werror=maybe-uninitialized
vcl/unx/generic/gdi/salbmp.cxx:727:32: error: ‘pixmapHandle’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
vcl/unx/gtk3/gtk3gtkinst.cxx:7336:16: error: ‘eRet’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
etc.
One looks like it might occur in practice.
Change-Id: I09af7d36b134b31cb7bd8047b5c73f4a49c9d9b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89351
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'include/tools')
-rw-r--r-- | include/tools/color.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tools/color.hxx b/include/tools/color.hxx index cf11e0ae9df2..b5555c4cfccd 100644 --- a/include/tools/color.hxx +++ b/include/tools/color.hxx @@ -242,7 +242,7 @@ inline void Color::Merge( const Color& rMergeColor, sal_uInt8 cTransparency ) // to reduce the noise when moving these into and out of Any inline bool operator >>=( const css::uno::Any & rAny, Color & value ) { - sal_Int32 nTmp; + sal_Int32 nTmp = {}; // spurious -Werror=maybe-uninitialized if (!(rAny >>= nTmp)) return false; value = Color(nTmp); |