From: Vitaly Buka Date: Mon, 14 Jun 2021 17:56:40 +0000 (-0700) Subject: [NFC] Remove unused variable X-Git-Tag: llvmorg-14-init~3999 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d650ccf6390bb1e4454dd735cfcec9eda9af8ca3;p=platform%2Fupstream%2Fllvm.git [NFC] Remove unused variable To fix 'set but not used' warning on sanitizer-x86_64-linux-android bot. --- diff --git a/clang/lib/Format/WhitespaceManager.cpp b/clang/lib/Format/WhitespaceManager.cpp index 222c4c4..b079eac 100644 --- a/clang/lib/Format/WhitespaceManager.cpp +++ b/clang/lib/Format/WhitespaceManager.cpp @@ -1068,9 +1068,6 @@ void WhitespaceManager::alignArrayInitializersLeftJustified( Changes[CellIter->Index].Spaces = CellDescs.InitialSpaces; ++CellIter; for (auto i = 1U; i < CellDescs.CellCount; i++, ++CellIter) { - unsigned NetWidth = 0U; - if (isSplitCell(*CellIter)) - NetWidth = getNetWidth(Cells.begin(), CellIter, CellDescs.InitialSpaces); auto MaxNetWidth = getMaximumNetWidth( Cells.begin(), CellIter, CellDescs.InitialSpaces, CellDescs.CellCount); auto ThisNetWidth =