diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/helper/strhelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/helper/strhelper.cxx b/vcl/source/helper/strhelper.cxx index 9d05b2c9811e..ebe48d1200ef 100644 --- a/vcl/source/helper/strhelper.cxx +++ b/vcl/source/helper/strhelper.cxx @@ -363,13 +363,13 @@ OString WhitespaceToSpace(std::string_view rLine) // there might be a space at beginning or end assert(pLeap > pBuffer); pLeap--; -#if defined(__GNUC__) && __GNUC__ == 12 +#if defined(__GNUC__) && (__GNUC__ == 12 || __GNUC__ == 13) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" #endif if( *pLeap == ' ' ) *pLeap = 0; -#if defined(__GNUC__) && __GNUC__ == 12 +#if defined(__GNUC__) && (__GNUC__ == 12 || __GNUC__ == 13) #pragma GCC diagnostic pop #endif return *pBuffer == ' ' ? pBuffer+1 : pBuffer; |