aboutsummaryrefslogtreecommitdiffstats
path: root/autoreload.c
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-06-17 18:16:37 +0200
committerGitea <gitea@fake.local>2022-06-25 08:27:01 +0200
commit5c3a796e55a2de822692810d0ac77c6589b0f10e (patch)
tree8206a8778e30860b74cc9f3d496d9235f8c1c6ec /autoreload.c
parent4cf17d23492a4673a2c6addfa82e61c2117be003 (diff)
downloadnsxiv-5c3a796e55a2de822692810d0ac77c6589b0f10e.tar.zst
[ci]: slience some clang-tidy warnings
the warnings on r_readdir(), img_load_gif() and strcpy seems to be false positives. the warning about fmt being unused is valid, but not worth fixing with additional #ifdef guards. use `assert` to silence the false positive cases when possible, otherwise use a NOLINT comment with an explanation.
Diffstat (limited to 'autoreload.c')
-rw-r--r--autoreload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoreload.c b/autoreload.c
index d51e008..47751d5 100644
--- a/autoreload.c
+++ b/autoreload.c
@@ -79,7 +79,7 @@ void arl_setup(arl_t *arl, const char *filepath)
if (base != NULL) {
arl->filename[++base - filepath] = '\0';
add_watch(arl->fd, &arl->wd_dir, arl->filename, IN_CREATE | IN_MOVED_TO);
- strcpy(arl->filename, base);
+ strcpy(arl->filename, base); /* NOLINT: basename will always be shorter than fullpath */
}
}