diff options
author | David Robillard <d@drobilla.net> | 2018-12-30 14:08:44 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-12-30 14:08:44 -0500 |
commit | 230bbb885ee420ef3627247c8c6fe74ba80b6db9 (patch) | |
tree | 4d3ac23c352848ec0e2bedf7fbe587c75f5c6a4f /src | |
parent | 15d1977557ac8f18ea5e4846ac67321d20e79ca2 (diff) | |
download | serd-230bbb885ee420ef3627247c8c6fe74ba80b6db9.tar.gz serd-230bbb885ee420ef3627247c8c6fe74ba80b6db9.tar.bz2 serd-230bbb885ee420ef3627247c8c6fe74ba80b6db9.zip |
Fix unused parameter warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/n3.c | 4 | ||||
-rw-r--r-- | src/reader.c | 3 | ||||
-rw-r--r-- | src/reader.h | 2 | ||||
-rw-r--r-- | src/serdi.c | 2 | ||||
-rw-r--r-- | src/writer.c | 3 |
5 files changed, 10 insertions, 4 deletions
@@ -1191,7 +1191,7 @@ read_subject(SerdReader* reader, ReadContext ctx, Ref* dest, char* s_type) } static Ref -read_labelOrSubject(SerdReader* reader, ReadContext ctx) +read_labelOrSubject(SerdReader* reader) { Ref subject = 0; bool ate_dot = false; @@ -1392,7 +1392,7 @@ read_n3_statement(SerdReader* reader) ret = read_prefixID(reader, true, false); } else if (!tokcmp(reader, ctx.subject, "graph", 5)) { read_ws_star(reader); - TRY_RET((ctx.graph = read_labelOrSubject(reader, ctx))); + TRY_RET((ctx.graph = read_labelOrSubject(reader))); read_ws_star(reader); TRY_RET(read_wrappedGraph(reader, &ctx)); pop_node(reader, ctx.graph); diff --git a/src/reader.c b/src/reader.c index f37eac14..1a7f58d4 100644 --- a/src/reader.c +++ b/src/reader.c @@ -63,6 +63,9 @@ blank_id(SerdReader* reader) static size_t serd_file_read_byte(void* buf, size_t size, size_t nmemb, void* stream) { + (void)size; + (void)nmemb; + const int c = getc((FILE*)stream); if (c == EOF) { *((uint8_t*)buf) = 0; diff --git a/src/reader.h b/src/reader.h index 723a1c5a..f6cbc7ad 100644 --- a/src/reader.h +++ b/src/reader.h @@ -36,6 +36,8 @@ eat_byte(SerdReader* reader) static inline uint8_t eat_byte_safe(SerdReader* reader, const uint8_t byte) { + (void)byte; + const uint8_t c = eat_byte(reader); assert(c == byte); return c; diff --git a/src/serdi.c b/src/serdi.c index 16767ffd..527ada50 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -110,6 +110,8 @@ missing_arg(const char* name, char opt) static SerdStatus quiet_error_sink(void* handle, const SerdError* e) { + (void)handle; + (void)e; return SERD_SUCCESS; } diff --git a/src/writer.c b/src/writer.c index 69a00d82..8dddf51c 100644 --- a/src/writer.c +++ b/src/writer.c @@ -419,7 +419,6 @@ write_literal(SerdWriter* writer, const SerdNode* node, const SerdNode* datatype, const SerdNode* lang, - Field field, SerdStatementFlags flags) { if (supports_abbrev(writer) && datatype && datatype->buf) { @@ -621,7 +620,7 @@ write_node(SerdWriter* writer, bool ret = false; switch (node->type) { case SERD_LITERAL: - ret = write_literal(writer, node, datatype, lang, field, flags); + ret = write_literal(writer, node, datatype, lang, flags); break; case SERD_URI: ret = write_uri_node(writer, node, field, flags); |