diff options
-rw-r--r-- | sw/inc/ndindex.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/ndindex.hxx b/sw/inc/ndindex.hxx index d700ac11c2f0..775546597500 100644 --- a/sw/inc/ndindex.hxx +++ b/sw/inc/ndindex.hxx @@ -36,12 +36,12 @@ class SAL_WARN_UNUSED SW_DLLPUBLIC SwNodeIndex final : public sw::Ring<SwNodeInd SwNodes& rNodes = GetNodes(); if(!rNodes.m_vIndices) { -#if defined(__GNUC__) && __GNUC__ == 12 +#if defined(__GNUC__) && (__GNUC__ == 12 || __GNUC__ == 13) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdangling-pointer" #endif rNodes.m_vIndices = this; -#if defined(__GNUC__) && __GNUC__ == 12 +#if defined(__GNUC__) && (__GNUC__ == 12 || __GNUC__ == 13) #pragma GCC diagnostic pop #endif } |