[Libreoffice-commits] core.git: sw/source
Miklos Vajna (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jul 17 19:43:02 UTC 2020
sw/source/filter/ww8/sprmids.hxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 69a33480fe5988db6e3539299e6605f7996aac43
Author: Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Fri Jul 17 20:10:40 2020 +0200
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Fri Jul 17 21:42:16 2020 +0200
sw: silence 'not all control paths return a value'
Fixes:
C:\lo\master\sw\source\filter\ww8\sprmids.hxx(290) : warning C4715: 'NS_sprm::sprm<109,0,1,1>::len': not all control paths return a value
Change-Id: I28d2af3eef3bc3efb31d29eeb920a0d5398139d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98986
Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
Tested-by: Jenkins
diff --git a/sw/source/filter/ww8/sprmids.hxx b/sw/source/filter/ww8/sprmids.hxx
index 73e0634bb6ca..47f2cb8a70b6 100644
--- a/sw/source/filter/ww8/sprmids.hxx
+++ b/sw/source/filter/ww8/sprmids.hxx
@@ -284,6 +284,9 @@ template <int ispmd, int fSpec, SGC sgc, SPRA spra> struct sprm
return 0; // variable
case SPRA::operand_3b_7:
return 3;
+ default:
+ assert(false);
+ return 0;
}
}
static constexpr bool varlen() { return (spra == SPRA::operand_varlen_6); }
More information about the Libreoffice-commits
mailing list