We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c2d237 commit 8431eb4Copy full SHA for 8431eb4
1 file changed
src/clipdelmenu.c
@@ -11,11 +11,13 @@ struct delete_state {
11
uint64_t hash_to_delete;
12
};
13
14
+// cppcheck-suppress-begin constParameterCallback
15
static enum cs_remove_action _nonnull_
16
remove_if_hash_match(uint64_t hash, const char *line _unused_, void *private) {
17
const struct delete_state *state = private;
18
return hash == state->hash_to_delete ? CS_ACTION_REMOVE : CS_ACTION_KEEP;
19
}
20
+// cppcheck-suppress-end constParameterCallback
21
22
static int _nonnull_ clipdelmenu_action(struct config *cfg, uint64_t hash) {
23
_drop_(close) int content_dir_fd = open(get_cache_dir(cfg), O_RDONLY);
0 commit comments