aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-05-29 15:19:00 -0400
committerDavid Robillard <d@drobilla.net>2021-05-31 11:31:37 -0400
commit35e1cea484c860fba9fc702a4e4ea9d284b26f08 (patch)
treed0cc99277c7f609307c6aa0fc4551d98e999ce98
parentf74fb7216c60c8a1efc1a4ba362c5b5feb8fbf46 (diff)
downloadserd-35e1cea484c860fba9fc702a4e4ea9d284b26f08.tar.gz
serd-35e1cea484c860fba9fc702a4e4ea9d284b26f08.tar.bz2
serd-35e1cea484c860fba9fc702a4e4ea9d284b26f08.zip
Remove default case from exhaustive switch
-rw-r--r--src/.clang-tidy1
-rw-r--r--src/string.c2
-rw-r--r--wscript1
3 files changed, 1 insertions, 3 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
}
diff --git a/wscript b/wscript
index 1735b867..e9cba85b 100644
--- a/wscript
+++ b/wscript
@@ -61,7 +61,6 @@ def configure(conf):
'-Wno-cast-align',
'-Wno-cast-qual',
'-Wno-conversion',
- '-Wno-covered-switch-default',
'-Wno-disabled-macro-expansion',
'-Wno-double-promotion',
'-Wno-format-nonliteral',