aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-26 01:08:50 +0000
committerDavid Robillard <d@drobilla.net>2011-01-26 01:08:50 +0000
commitb0d5a7b4a2c8fae72af553804a33bf11471c458a (patch)
tree66360b08861b530059e7a172334e870ff6a64479 /src/writer.c
parent36a5b19d492827eed3daa7ff7517580c83e3e9ff (diff)
downloadserd-b0d5a7b4a2c8fae72af553804a33bf11471c458a.tar.gz
serd-b0d5a7b4a2c8fae72af553804a33bf11471c458a.tar.bz2
serd-b0d5a7b4a2c8fae72af553804a33bf11471c458a.zip
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
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c2
1 files changed, 2 insertions, 0 deletions
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;