nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit e60be2eaa247f2618f94c8be2769f302780f7092
parent 72ee94ed6ef9ffe09f2b9cda215479e6c703c432
Author: NRK <nrk@disroot.org>
Date:   Wed, 24 Apr 2024 06:48:37 +0000

silence new clang-tidy warnings

Diffstat:
Msrc/.clang-tidy | 3+++
Msrc/nnn.c | 2+-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/.clang-tidy b/src/.clang-tidy @@ -22,10 +22,13 @@ Checks: > -readability-identifier-length, -readability-isolate-declaration, -readability-suspicious-call-argument, + -readability-avoid-nested-conditional-operator, -bugprone-easily-swappable-parameters, -bugprone-narrowing-conversions, -bugprone-reserved-identifier, -bugprone-switch-missing-default-case, + -bugprone-inc-dec-in-conditions, + -bugprone-multi-level-implicit-pointer-conversion WarningsAsErrors: '*' HeaderFilterRegex: '.*(?<!lookup3.c)$' diff --git a/src/nnn.c b/src/nnn.c @@ -925,7 +925,7 @@ static bool test_set_bit(uint_t nr) nr &= HASH_BITS; pthread_mutex_lock(&hardlink_mutex); - ullong_t *m = ((ullong_t *)ihashbmp) + (nr >> 6); + ullong_t *m = ihashbmp + (nr >> 6); if (*m & (1 << (nr & 63))) { pthread_mutex_unlock(&hardlink_mutex);