diff options
-rw-r--r-- | sw/source/core/text/txtfrm.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx index 5e47bf635835..2400c2b8de82 100644 --- a/sw/source/core/text/txtfrm.cxx +++ b/sw/source/core/text/txtfrm.cxx @@ -1444,6 +1444,12 @@ static bool lcl_ErgoVadis( SwTextFrame* pFrame, sal_Int32 &rPos, const PrepareHi return true; } +// Silence over-eager warning emitted at least by GCC 5.3.1 in certain +// instantiations: +#if defined __GNUC__ && !defined __clang__ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wstrict-overflow" +#endif bool SwTextFrame::Prepare( const PrepareHint ePrep, const void* pVoid, bool bNotify ) { @@ -1820,6 +1826,9 @@ bool SwTextFrame::Prepare( const PrepareHint ePrep, const void* pVoid, return bParaPossiblyInvalid; } +#if defined __GNUC__ && !defined __clang__ +# pragma GCC diagnostic pop +#endif /** * Small Helper class: |