diff options
author | Eike Rathke <erack@redhat.com> | 2014-07-03 00:08:51 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-07-03 00:09:54 +0200 |
commit | 397362d8532d7b0abe38f2024dd2cefe2482d6a3 (patch) | |
tree | 842363ca85116cb178b7f4274d4f6813ceff33dc /svl | |
parent | 836e504c859a5b67f7ab7ba842785951d41058cd (diff) |
work around nonsense -Werror=maybe-uninitialized, fdo#80166 follow-up
Change-Id: I0f9cf74550e43d174bf6ac75e70c51ab7f51ccf8
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zforfind.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx index c2946c3776fb..993b71233be4 100644 --- a/svl/source/numbers/zforfind.cxx +++ b/svl/source/numbers/zforfind.cxx @@ -1210,6 +1210,13 @@ bool ImpSvNumberInputScan::IsAcceptedDatePattern( sal_uInt16 nStartPatternAt ) nMaxLen = 2; nMaxVal = 31; break; + default: + // This merely exists against + // -Werror=maybe-uninitialized, which is nonsense + // after the (c == 'M' || c == 'D') check above, + // but ... + nMaxLen = 2; + nMaxVal = 31; } bOk = (sStrArray[nNext].getLength() <= nMaxLen); if (bOk) |