From 35e1cea484c860fba9fc702a4e4ea9d284b26f08 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 29 May 2021 15:19:00 -0400 Subject: Remove default case from exhaustive switch --- src/.clang-tidy | 1 + src/string.c | 2 -- wscript | 1 - 3 files changed, 1 insertion(+), 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', -- cgit v1.2.1