From e9838a1d1de8d9d44fd1bac603a1d29ff97a12ff Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 8 Jun 2021 17:40:11 +0200 Subject: [PATCH] -Werror,-Wunused-but-set-variable (Clang 13 trunk) ...since the (only) read of sXmlId got removed with c50357ff625972464d1a591afe4198d3f6f42a39 "loplugin:unusedfields in sw" Change-Id: I609eae60eb0e1d440a47f97b6387c833c1404518 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116855 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/filter/xml/xmltbli.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/sw/source/filter/xml/xmltbli.cxx b/sw/source/filter/xml/xmltbli.cxx index 8e72c781ab22..560fe1c81e1f 100644 --- a/sw/source/filter/xml/xmltbli.cxx +++ b/sw/source/filter/xml/xmltbli.cxx @@ -802,7 +802,6 @@ SwXMLTableRowContext_Impl::SwXMLTableRowContext_Impl( SwXMLImport& rImport, nRowRepeat( 1 ) { OUString aStyleName, aDfltCellStyleName; - OUString sXmlId; for( auto& aIter : sax_fastparser::castToFastAttributeList(xAttrList) ) { @@ -825,7 +824,6 @@ SwXMLTableRowContext_Impl::SwXMLTableRowContext_Impl( SwXMLImport& rImport, aDfltCellStyleName = aIter.toString(); break; case XML_ELEMENT(XML, XML_ID): - sXmlId = aIter.toString(); break; default: XMLOFF_WARN_UNKNOWN("sw", aIter);