diff options
author | David Robillard <d@drobilla.net> | 2018-09-30 20:45:52 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-19 20:55:30 -0500 |
commit | 980cf0ba7902fe424109918fd8d4dfb29d86c226 (patch) | |
tree | 4abe2a468800db3ae8bbecc80675acebe427e7a7 | |
parent | 1f97eee7bdb806c3e4e349a1e1be756736493bce (diff) | |
download | serd-980cf0ba7902fe424109918fd8d4dfb29d86c226.tar.gz serd-980cf0ba7902fe424109918fd8d4dfb29d86c226.tar.bz2 serd-980cf0ba7902fe424109918fd8d4dfb29d86c226.zip |
Fix warnings
-rw-r--r-- | src/env.c | 4 | ||||
-rw-r--r-- | src/n3.c | 5 |
2 files changed, 5 insertions, 4 deletions
@@ -20,6 +20,7 @@ #include "serd/serd.h" +#include <assert.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> @@ -275,8 +276,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 @@ -1351,11 +1351,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 |