Skip to content

Commit f01e63f

Browse files
committed
clipdelmenu: Suppress remove_if_hash_match for callback
1 parent 375bfdc commit f01e63f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/clipdelmenu.c

Lines changed: 4 additions & 2 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-
static enum cs_remove_action _nonnull_
15-
remove_if_hash_match(uint64_t hash, const char *line _unused_, void *private) {
14+
// cppcheck-suppress-begin constParameterCallback
15+
static enum cs_remove_action _nonnull_ remove_if_hash_match(
16+
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)