Skip to content

Commit 5f667a5

Browse files
committed
[clang][dataflow] Fix -Wunused-const-variable in WatchedLiteralsSolver.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;
1 parent 931df0e commit 5f667a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Analysis/FlowSensitive/WatchedLiteralsSolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ using Literal = uint32_t;
5959

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

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

0 commit comments

Comments
 (0)