diff options
author | Oto Šťáva <oto.stava@nic.cz> | 2024-04-29 15:09:01 +0200 |
---|---|---|
committer | Oto Šťáva <oto.stava@nic.cz> | 2024-05-13 15:09:21 +0200 |
commit | c1bdcd06cb20948971c0110e6f28a4254828ea23 (patch) | |
tree | 8aa044a01c9ea79558f9f30a6cbce0b45f396541 /lib/cache | |
parent | .gitlab-ci, tests, modules: adapt to knot-resolver-ci repo (diff) | |
download | knot-resolver-c1bdcd06cb20948971c0110e6f28a4254828ea23.tar.xz knot-resolver-c1bdcd06cb20948971c0110e6f28a4254828ea23.zip |
Silence Clang-Tidy
This commit makes lots of changes to the C code to appease the
Clang-Tidy linter. Some of the less obvious ones are due to C's weird
semantics regarding handling of numeric literals.
We also disable a bunch of the detections because they are
super-pedantic, arguably useless, or we have our own unwritten coding
style rules that solve the issues.
Diffstat (limited to 'lib/cache')
-rw-r--r-- | lib/cache/peek.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/cache/peek.c b/lib/cache/peek.c index 191e8556..f0bb79cc 100644 --- a/lib/cache/peek.c +++ b/lib/cache/peek.c @@ -174,6 +174,7 @@ int peek_nosync(kr_layer_t *ctx, knot_pkt_t *pkt) knot_db_val_bound(v), new_ttl); return ret == kr_ok() ? KR_STATE_DONE : ctx->state; } + default:; // Continue below } /* We have to try proving from NSEC*. */ |