Skip to content

Commit a9c0b2a

Browse files
committed
fix: suppress immutable parser callback warning
1 parent ae3925a commit a9c0b2a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎internal/cbm/cbm.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ typedef struct {
220220
static CBM_TLS uint64_t tl_parse_wall_seam_offset_ns = 0;
221221
#endif
222222

223+
/* Tree-sitter fixes this callback ABI as TSParseState *, although this
224+
* observer reads only the payload. */
225+
// cppcheck-suppress constParameterCallback
223226
static bool cbm_timeout_cb(TSParseState *state) {
224227
const CBMParseBudget *budget = (const CBMParseBudget *)state->payload;
225228
uint64_t wall = now_ns();

0 commit comments

Comments
 (0)