From 0514849637eba1cd5da85912fabc9c9c4b8dbe6f Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Tue, 8 Sep 2026 16:38:55 +0200 Subject: [PATCH] oox: drop obsolete check. Minimum GCC version is 13 Since commit 16dd61ab4ddcf018c54adbe7ce2a299aee9979e5 Author: Ilmari Lauhakangas Date: Sat Mar 21 08:40:09 2026 +0200 Bump minimum GCC version to 13 Change-Id: I8ac797a49acde27bc5f39af80e479bc5d218fd69 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210554 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- oox/source/export/drawingml.cxx | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index 662c14e8b69b..50746c2ab00b 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -4216,15 +4216,8 @@ void DrawingML::WriteBodyProps(const css::uno::Reference< css::uno::XInterface > sWritingMode = "vert270"; else if (nTextPreRotateAngle == -180 || nTextPreRotateAngle == 180) { -#if defined __GNUC__ && !defined __clang__ && __GNUC__ == 12 -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" -#endif nTextRotateAngleDeg100 = NormAngle18000(nTextRotateAngleDeg100.value_or(0_deg100) + 18000_deg100); -#if defined __GNUC__ && !defined __clang__ && __GNUC__ == 12 -#pragma GCC diagnostic pop -#endif // ToDo: Examine insets. They might need rotation too. Check diagrams (SmartArt). } else @@ -4265,15 +4258,8 @@ void DrawingML::WriteBodyProps(const css::uno::Reference< css::uno::XInterface > std::optional sTextRotateAngleMSUnit; if (nTextRotateAngleDeg100.has_value()) -#if defined __GNUC__ && !defined __clang__ && __GNUC__ == 12 -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" -#endif sTextRotateAngleMSUnit = oox::drawingml::calcRotationValue(nTextRotateAngleDeg100.value().get()); -#if defined __GNUC__ && !defined __clang__ && __GNUC__ == 12 -#pragma GCC diagnostic pop -#endif // Prepare attributes 'anchor' and 'anchorCtr' // LibreOffice has 12 value sets, MS Office only 6. We map them so, that it reverses the