From 2a7ee47a44630012a6feb020a054f7e804c306a3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 18 Feb 2022 11:24:46 +0200 Subject: -Werror=maybe-uninitialized MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /home/noel/libo3/svx/source/toolbars/extrusionbar.cxx: In static member function ‘static void svx::ExtrusionBar::getState(const SdrView*, SfxItemSet&)’: /home/noel/libo3/svx/source/toolbars/extrusionbar.cxx:938:25: error: ‘eMetalType’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 938 | if (eMetalType == EnhancedCustomShapeMetalType::MetalMSCompatible) | ^~ /home/noel/libo3/svx/source/toolbars/extrusionbar.cxx:933:31: note: ‘eMetalType’ was declared here 933 | sal_Int16 eMetalType; | ^~~~~~~~~~ Change-Id: Ie98bb04900d271299cb930bf6d12af46d45ae8c9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130128 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/toolbars/extrusionbar.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx') diff --git a/svx/source/toolbars/extrusionbar.cxx b/svx/source/toolbars/extrusionbar.cxx index 10b56ad4b369..a3247cc02666 100644 --- a/svx/source/toolbars/extrusionbar.cxx +++ b/svx/source/toolbars/extrusionbar.cxx @@ -930,7 +930,7 @@ static void getExtrusionSurfaceState( SdrView const * pSdrView, SfxItemSet& rSet if( bMetal ) { nSurface = 3; // metal ODF - sal_Int16 eMetalType; + sal_Int16 eMetalType = EnhancedCustomShapeMetalType::MetalODF; pAny = rGeometryItem.GetPropertyValueByName( sExtrusion, u"MetalType" ); if (pAny) { -- cgit