From 3e9763c0aeecbc203b040e342b34d015ad270e77 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 22 Jan 2026 09:37:46 +0100 Subject: [PATCH] -Werror=maybe-uninitialized MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > xmloff/source/text/txtimppr.cxx:615:9: error: ‘nVertOrient’ may be used uninitialized [-Werror=maybe-uninitialized] > 615 | switch( nVertOrient ) > | ^~~~~~ So use the same approach for nVertOrient as was already used for nVertOrientRel in 7ab4c76e73e6ebabe1363f542d61c9bc5b91cbc2 "INTEGRATION: CWS warningfixes02 (1.18.10); FILE MERGED", initializing it to 0 aka css.text.VertOrientation.NONE. Change-Id: Ibf9b259f87fb030e426664bc3bbd63fc1bfb0797 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197832 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- xmloff/source/text/txtimppr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmloff/source/text/txtimppr.cxx b/xmloff/source/text/txtimppr.cxx index 7fde78724227..38e6f66960e4 100644 --- a/xmloff/source/text/txtimppr.cxx +++ b/xmloff/source/text/txtimppr.cxx @@ -608,7 +608,7 @@ void XMLTextImportPropertyMapper::finished( if( pVertOrient && pVertOrientRelAsChar ) { - sal_Int16 nVertOrient; + sal_Int16 nVertOrient = 0; pVertOrient->maValue >>= nVertOrient; sal_Int16 nVertOrientRel = 0; pVertOrientRelAsChar->maValue >>= nVertOrientRel;