From b0d5a7b4a2c8fae72af553804a33bf11471c458a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 26 Jan 2011 01:08:50 +0000 Subject: Fix compilation in C++ (which won't implicitly cast 0 to an enum). git-svn-id: http://svn.drobilla.net/serd/trunk@82 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- src/writer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/writer.c b/src/writer.c index 5f08df62..8010dba3 100644 --- a/src/writer.c +++ b/src/writer.c @@ -166,6 +166,8 @@ write_node(SerdWriter writer, SerdChunk uri_prefix; SerdChunk uri_suffix; switch (node->type) { + case SERD_NOTHING: + return false; case SERD_ANON_BEGIN: if (writer->syntax != SERD_NTRIPLES) { ++writer->indent; -- cgit v1.2.1