summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-02-24 11:02:04 +0100
committerMichael Stahl <michael.stahl@cib.de>2020-02-24 19:23:38 +0100
commit1ca7e41fa8e300d0f5b8e0427ea3e6cad27ce175 (patch)
tree5d98bfd7793673962079aaf449f1e47874d6e524 /oox
parent589abe39262a37fb1205fac229d7004ee01dd3f9 (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 'oox')
-rw-r--r--oox/source/helper/propertymap.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/helper/propertymap.cxx b/oox/source/helper/propertymap.cxx
index 34a58cf12bb9..75716b851534 100644
--- a/oox/source/helper/propertymap.cxx
+++ b/oox/source/helper/propertymap.cxx
@@ -532,7 +532,8 @@ static const char *lclGetEnhancedParameterType( sal_uInt16 nType )
static void printParameterPairData(int level, EnhancedCustomShapeParameterPair const &pp)
{
// These are always sal_Int32s so lets depend on that for our packing ...
- sal_Int32 nFirstValue, nSecondValue;
+ sal_Int32 nFirstValue = {};
+ sal_Int32 nSecondValue = {}; // spurious -Werror=maybe-uninitialized
if (!(pp.First.Value >>= nFirstValue))
assert (false);
if (!(pp.Second.Value >>= nSecondValue))