diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-06-01 15:48:30 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-06-01 18:23:19 +0200 |
commit | 9ff2b61876843584d6c4fb3cadda48089b8a84b7 (patch) | |
tree | e9bc1f96cbedf4eac805a7f3d42e387f9198297b /sw | |
parent | 619d022fb0e01a2073b6c2635e2e8dc1c29162bc (diff) |
WaE: -Wmaybe-uninitialized with GCC 13
Change-Id: I69e0f28ab6f6a8a2c7181876735b128d39394b52
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152503
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/flowfrm.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/core/layout/flowfrm.cxx b/sw/source/core/layout/flowfrm.cxx index 402f47f8004e..cb47267f1195 100644 --- a/sw/source/core/layout/flowfrm.cxx +++ b/sw/source/core/layout/flowfrm.cxx @@ -2020,7 +2020,15 @@ bool SwFlowFrame::MoveFwd( bool bMakePage, bool bPageBreak, bool bMoveAlways ) } } +// prevent -Werror=maybe-uninitialized under gcc 11.2.0 +#if defined __GNUC__ && !defined __clang__ && __GNUC__ == 13 +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif std::optional<SwFrameDeleteGuard> oDeleteGuard; +#if defined __GNUC__ && !defined __clang__ && __GNUC__ == 13 +#pragma GCC diagnostic pop +#endif if (bMakePage) oDeleteGuard.emplace(pOldBoss); |