From 9352705b0a434df7c1f61256ac80c2d26c29c766 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 30 Oct 2018 19:23:06 +0000 Subject: [PATCH] Silencing a -Wunused-variable warning; NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345633 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/StaticAnalyzer/Core/SarifDiagnostics.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp b/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp index f23379e235..d86d1ff687 100644 --- a/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp +++ b/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp @@ -174,8 +174,6 @@ static json::Object createLocation(json::Object &&PhysicalLocation, } static Importance calculateImportance(const PathDiagnosticPiece &Piece) { - StringRef PieceStr = Piece.getString(); - switch (Piece.getKind()) { case PathDiagnosticPiece::Kind::Call: case PathDiagnosticPiece::Kind::Macro: -- 2.40.0