diff options
author | David Robillard <d@drobilla.net> | 2021-05-29 15:19:00 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-05-31 11:31:37 -0400 |
commit | 35e1cea484c860fba9fc702a4e4ea9d284b26f08 (patch) | |
tree | d0cc99277c7f609307c6aa0fc4551d98e999ce98 /src | |
parent | f74fb7216c60c8a1efc1a4ba362c5b5feb8fbf46 (diff) | |
download | serd-35e1cea484c860fba9fc702a4e4ea9d284b26f08.tar.gz serd-35e1cea484c860fba9fc702a4e4ea9d284b26f08.tar.bz2 serd-35e1cea484c860fba9fc702a4e4ea9d284b26f08.zip |
Remove default case from exhaustive switch
Diffstat (limited to 'src')
-rw-r--r-- | src/.clang-tidy | 1 | ||||
-rw-r--r-- | src/string.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/.clang-tidy b/src/.clang-tidy index 5be37470..79f266d9 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -9,6 +9,7 @@ Checks: > -cert-dcl51-cpp, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, -google-readability-todo, + -hicpp-multiway-paths-covered, -hicpp-signed-bitwise, -llvm-header-guard, -llvmlibc-*, diff --git a/src/string.c b/src/string.c index 6c834cc4..55654033 100644 --- a/src/string.c +++ b/src/string.c @@ -50,8 +50,6 @@ serd_strerror(SerdStatus status) return (const uint8_t*)"Invalid CURIE"; case SERD_ERR_INTERNAL: return (const uint8_t*)"Internal error"; - default: - break; } return (const uint8_t*)"Unknown error"; // never reached } |