aboutsummaryrefslogtreecommitdiffstats
path: root/src/env.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-14 16:02:35 +0200
committerDavid Robillard <d@drobilla.net>2020-08-14 19:07:52 +0200
commita9a6a4e417189b53ee559278be5d242986120422 (patch)
tree76b4df6c11520af0f2998cdd1b1914122524458f /src/env.c
parent1172f40724d2774be6c9f089c46ef377f2325957 (diff)
downloadserd-a9a6a4e417189b53ee559278be5d242986120422.tar.gz
serd-a9a6a4e417189b53ee559278be5d242986120422.tar.bz2
serd-a9a6a4e417189b53ee559278be5d242986120422.zip
Fix Wswitch-enum warnings
Diffstat (limited to 'src/env.c')
-rw-r--r--src/env.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/env.c b/src/env.c
index 19e2abe8..e5cb954a 100644
--- a/src/env.c
+++ b/src/env.c
@@ -210,6 +210,13 @@ serd_env_expand_node(const SerdEnv* env,
const SerdNode* node)
{
switch (node->type) {
+ case SERD_NOTHING:
+ case SERD_LITERAL:
+ break;
+ case SERD_URI: {
+ SerdURI ignored;
+ return serd_node_new_uri_from_node(node, &env->base_uri, &ignored);
+ }
case SERD_CURIE: {
SerdChunk prefix;
SerdChunk suffix;
@@ -223,13 +230,10 @@ serd_env_expand_node(const SerdEnv* env,
ret.n_chars = serd_strlen(buf, NULL, NULL);
return ret;
}
- case SERD_URI: {
- SerdURI ignored;
- return serd_node_new_uri_from_node(node, &env->base_uri, &ignored);
- }
- default:
- return SERD_NODE_NULL;
+ case SERD_BLANK:
+ break;
}
+ return SERD_NODE_NULL;
}
void