From 4c596b02693f742a754b092285833b89036f172e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Jun 2020 17:38:14 +0200 Subject: Cleanup: Add missing default switch cases --- src/string.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/string.c') diff --git a/src/string.c b/src/string.c index b73cea03..6a3219c7 100644 --- a/src/string.c +++ b/src/string.c @@ -41,6 +41,7 @@ serd_strerror(SerdStatus status) case SERD_ERR_ID_CLASH: return (const uint8_t*)"Blank node ID clash"; case SERD_ERR_BAD_CURIE: 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 } @@ -54,6 +55,8 @@ serd_update_flags(const uint8_t c, SerdNodeFlags* const flags) break; case '"': *flags |= SERD_HAS_QUOTE; + default: + break; } } -- cgit v1.2.1