Skip to content

Commit 8431eb4

Browse files
committed
clipdelmenu: Suppress remove_if_hash_match for callback
1 parent 8c2d237 commit 8431eb4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/clipdelmenu.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ struct delete_state {
1111
uint64_t hash_to_delete;
1212
};
1313

14+
// cppcheck-suppress-begin constParameterCallback
1415
static enum cs_remove_action _nonnull_
1516
remove_if_hash_match(uint64_t hash, const char *line _unused_, void *private) {
1617
const struct delete_state *state = private;
1718
return hash == state->hash_to_delete ? CS_ACTION_REMOVE : CS_ACTION_KEEP;
1819
}
20+
// cppcheck-suppress-end constParameterCallback
1921

2022
static int _nonnull_ clipdelmenu_action(struct config *cfg, uint64_t hash) {
2123
_drop_(close) int content_dir_fd = open(get_cache_dir(cfg), O_RDONLY);

0 commit comments

Comments
 (0)