We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 375bfdc commit f01e63fCopy full SHA for f01e63f
1 file changed
src/clipdelmenu.c
@@ -11,11 +11,13 @@ struct delete_state {
11
uint64_t hash_to_delete;
12
};
13
14
-static enum cs_remove_action _nonnull_
15
-remove_if_hash_match(uint64_t hash, const char *line _unused_, void *private) {
+// cppcheck-suppress-begin constParameterCallback
+static enum cs_remove_action _nonnull_ remove_if_hash_match(
16
+ 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