Skip to content

Commit

Permalink
t: suppress clang-tidy false positive
Browse files Browse the repository at this point in the history
These tokens can never be uninitialized.

Tool: clang-tidy
  • Loading branch information
mptre committed Aug 6, 2024
1 parent becae09 commit c309110
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,8 @@ static void
test_token_position_after_impl(struct context *ctx,
struct test_token_move *arg, int lno)
{
struct token *after, *move;
struct token *after = NULL;
struct token *move = NULL;
int found;

KS_expect_scope("token_position_after", lno, e);
Expand Down

0 comments on commit c309110

Please sign in to comment.