Skip to content

Commit

Permalink
[clang][dataflow] Fix -Wunused-const-variable in WatchedLiteralsSolve…
Browse files Browse the repository at this point in the history
…r.cpp (NFC)

/data/llvm-project/clang/lib/Analysis/FlowSensitive/WatchedLiteralsSolver.cpp:62:26: error: unused variable 'NullLit' [-Werror,-Wunused-const-variable]
static constexpr Literal NullLit = 0;
  • Loading branch information
DamonFool committed Sep 5, 2023
1 parent 931df0e commit 5f667a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Analysis/FlowSensitive/WatchedLiteralsSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ using Literal = uint32_t;

/// A null literal is used as a placeholder in various data structures and
/// algorithms.
static constexpr Literal NullLit = 0;
[[maybe_unused]] static constexpr Literal NullLit = 0;

/// Returns the positive literal `V`.
static constexpr Literal posLit(Variable V) { return 2 * V; }
Expand Down

0 comments on commit 5f667a5

Please sign in to comment.