aboutsummaryrefslogtreecommitdiffstats
path: root/src/string.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-06-21 17:38:14 +0200
committerDavid Robillard <d@drobilla.net>2020-06-21 18:06:28 +0200
commit4c596b02693f742a754b092285833b89036f172e (patch)
treee64c91560e288f46a7a8f7176b9f7d63c618096d /src/string.c
parentdfe59abeecba302a04a2d38a78a40fe356ec81a7 (diff)
downloadserd-4c596b02693f742a754b092285833b89036f172e.tar.gz
serd-4c596b02693f742a754b092285833b89036f172e.tar.bz2
serd-4c596b02693f742a754b092285833b89036f172e.zip
Cleanup: Add missing default switch cases
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c3
1 files changed, 3 insertions, 0 deletions
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;
}
}