diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-03-27 13:15:06 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-03-27 13:16:50 +0100 |
commit | 88a822a2d8c40d345cf5060a70b6b132221ef651 (patch) | |
tree | ea890255c30c0840858b5ad7dca312bb55aa3957 /scaddins | |
parent | c5058e6b8edd092670ab5e16035ffce8f0dbcc24 (diff) |
scaddins: workaround spurious MSVC warning C4701
Change-Id: I5b184a552b258e922d594cabd52c9f2bae3bb2b1
Diffstat (limited to 'scaddins')
-rw-r--r-- | scaddins/source/analysis/analysishelper.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx index bf13aadeb508..575186927469 100644 --- a/scaddins/source/analysis/analysishelper.cxx +++ b/scaddins/source/analysis/analysishelper.cxx @@ -600,6 +600,12 @@ double GetYearFrac( sal_Int32 nNullDate, sal_Int32 nStartDate, sal_Int32 nEndDat case 3: // 3=exact/365 nDaysInYear = 365; break; +#ifdef _MSC_VER + // Coverity complains this is dead code, but MSVC thinks nDaysInYear + // is uninitialized if it's missing. + default: + throw lang::IllegalArgumentException(); +#endif } return double( nDayDiff ) / nDaysInYear; |