Skip to content

Commit

Permalink
[StaticAnalyzer] Fix -Wunused-variable in SVals.h (NFC)
Browse files Browse the repository at this point in the history
/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h:321:14: error: unused variable 'K' [-Werror,-Wunused-variable]
    SValKind K = data.first.getKind();
             ^
1 error generated.
  • Loading branch information
DamonFool committed Nov 4, 2023
1 parent 58ad3e8 commit bceb6a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ class LocAsInteger : public NonLoc {
: NonLoc(LocAsIntegerKind, &data) {
// We do not need to represent loc::ConcreteInt as LocAsInteger,
// as it'd collapse into a nonloc::ConcreteInt instead.
SValKind K = data.first.getKind();
[[maybe_unused]] SValKind K = data.first.getKind();
assert(K == loc::MemRegionValKind || K == loc::GotoLabelKind);
}

Expand Down

0 comments on commit bceb6a1

Please sign in to comment.