sw/source/core/fields/reffld.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 65372d470c4b8c4f1b2340b6d2af1544b1141d80 Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Thu Nov 15 20:58:14 2018 +0200 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Thu Nov 15 20:58:14 2018 +0200 WaE: -Wimplicit-fallthrough Change-Id: I4d80a64a228c7225df13ca17d933b8f940ddc3e3 diff --git a/sw/source/core/fields/reffld.cxx b/sw/source/core/fields/reffld.cxx index bdeb3f9f42b8..0ba15e80664e 100644 --- a/sw/source/core/fields/reffld.cxx +++ b/sw/source/core/fields/reffld.cxx @@ -559,7 +559,9 @@ void SwGetRefField::UpdateField( const SwTextField* pFieldTextAttr ) default: assert(false); // fall through to appease MSVC C4701 +#ifdef NDEBUG SAL_FALLTHROUGH; +#endif // "Reference" (whole Text) case REF_CONTENT: nStart = 0; @@ -601,7 +603,9 @@ void SwGetRefField::UpdateField( const SwTextField* pFieldTextAttr ) default: assert(false); // fall through to appease MSVC C4701 +#ifdef NDEBUG SAL_FALLTHROUGH; +#endif case REF_SETREFATTR: nStart = nNumStart; nEnd = nNumEnd; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits