aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-30 20:45:52 +0200
committerDavid Robillard <d@drobilla.net>2020-06-21 18:12:04 +0200
commitb1e9e60444c50be83f37940dc9ca31acbaf0e686 (patch)
tree2f39082eb7ee1abc5a42d69ec8419a7dbecf1573 /src
parentaa65756284ba705a6d2e33a6fd1dca76a1602a88 (diff)
downloadserd-b1e9e60444c50be83f37940dc9ca31acbaf0e686.tar.gz
serd-b1e9e60444c50be83f37940dc9ca31acbaf0e686.tar.bz2
serd-b1e9e60444c50be83f37940dc9ca31acbaf0e686.zip
Fix warnings
Diffstat (limited to 'src')
-rw-r--r--src/env.c3
-rw-r--r--src/n3.c5
2 files changed, 4 insertions, 4 deletions
diff --git a/src/env.c b/src/env.c
index 295e7fcf..1b5617fd 100644
--- a/src/env.c
+++ b/src/env.c
@@ -275,8 +275,9 @@ serd_env_expand(const SerdEnv* env, const SerdNode* node)
return serd_new_resolved_uri_i(
serd_node_get_string(node), &env->base_uri);
default:
- return NULL;
+ break;
}
+ return NULL;
}
void
diff --git a/src/n3.c b/src/n3.c
index 88b8ff1b..a2825ca7 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -1357,11 +1357,10 @@ read_directive(SerdReader* reader)
switch (peek_byte(reader)) {
case 'B': case 'b': return read_base(reader, sparql, true);
case 'P': case 'p': return read_prefixID(reader, sparql, true);
- default:
- return r_err(reader, SERD_ERR_BAD_SYNTAX, "invalid directive\n");
+ default: break;
}
- return SERD_SUCCESS;
+ return r_err(reader, SERD_ERR_BAD_SYNTAX, "invalid directive\n");
}
static SerdStatus