Kaydet (Commit) 59f190a5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Silence some odd -Werror=strict-overflow (GCC 6)

Change-Id: I7facae62c7ce0977e8c40d60720e4fe32460cd3d
üst b03879a9
......@@ -681,7 +681,15 @@ sal_Int32 SwTextFrame::FindBrk( const OUString &rText,
bool SwTextFrame::IsIdxInside( const sal_Int32 nPos, const sal_Int32 nLen ) const
{
// Silence over-eager warning emitted at least by GCC trunk towards 6:
#if defined __GNUC__ && !defined __clang__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-overflow"
#endif
if( nLen != COMPLETE_STRING && GetOfst() > nPos + nLen ) // the range preceded us
#if defined __GNUC__ && !defined __clang__
#pragma GCC diagnostic pop
#endif
return false;
if( !GetFollow() ) // the range doesn't precede us,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment