diff options
author | David Robillard <d@drobilla.net> | 2018-09-30 20:45:52 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-06-21 18:12:04 +0200 |
commit | b1e9e60444c50be83f37940dc9ca31acbaf0e686 (patch) | |
tree | 2f39082eb7ee1abc5a42d69ec8419a7dbecf1573 /src | |
parent | aa65756284ba705a6d2e33a6fd1dca76a1602a88 (diff) | |
download | serd-b1e9e60444c50be83f37940dc9ca31acbaf0e686.tar.gz serd-b1e9e60444c50be83f37940dc9ca31acbaf0e686.tar.bz2 serd-b1e9e60444c50be83f37940dc9ca31acbaf0e686.zip |
Fix warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/env.c | 3 | ||||
-rw-r--r-- | src/n3.c | 5 |
2 files changed, 4 insertions, 4 deletions
@@ -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 @@ -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 |