aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-06-21 17:38:14 +0200
committerDavid Robillard <d@drobilla.net>2020-06-21 18:06:28 +0200
commit4c596b02693f742a754b092285833b89036f172e (patch)
treee64c91560e288f46a7a8f7176b9f7d63c618096d /src/writer.c
parentdfe59abeecba302a04a2d38a78a40fe356ec81a7 (diff)
downloadserd-4c596b02693f742a754b092285833b89036f172e.tar.gz
serd-4c596b02693f742a754b092285833b89036f172e.tar.bz2
serd-4c596b02693f742a754b092285833b89036f172e.zip
Cleanup: Add missing default switch cases
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/writer.c b/src/writer.c
index aeac9b36..f4edf731 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -259,6 +259,8 @@ lname_must_escape(const uint8_t c)
case '(': case ')': case '*': case '+': case ',': case '/':
case ';': case '=': case '?': case '@': case '~':
return true;
+ default:
+ break;
}
return false;
}
@@ -338,6 +340,7 @@ write_text(SerdWriter* writer, TextContext ctx,
switch (in) {
case '\b': len += sink("\\b", 2, writer); continue;
case '\f': len += sink("\\f", 2, writer); continue;
+ default: break;
}
}
}