aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.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/n3.c
parentdfe59abeecba302a04a2d38a78a40fe356ec81a7 (diff)
downloadserd-4c596b02693f742a754b092285833b89036f172e.tar.gz
serd-4c596b02693f742a754b092285833b89036f172e.tar.bz2
serd-4c596b02693f742a754b092285833b89036f172e.zip
Cleanup: Add missing default switch cases
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/n3.c b/src/n3.c
index 3a18bbac..4b1ed676 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -121,6 +121,9 @@ read_UCHAR(SerdReader* reader, Ref dest, uint32_t* char_code)
// fallthru
case 1:
buf[0] = (uint8_t)c;
+ // fallthru
+ default:
+ break;
}
push_bytes(reader, dest, buf, size);
@@ -243,6 +246,8 @@ read_character(SerdReader* reader, Ref dest, SerdNodeFlags* flags, uint8_t c)
case '"': case '\'':
*flags |= SERD_HAS_QUOTE;
break;
+ default:
+ break;
}
push_byte(reader, dest, c);
return SERD_SUCCESS;
@@ -661,6 +666,8 @@ read_IRIREF(SerdReader* reader)
r_err(reader, SERD_ERR_BAD_SYNTAX,
"invalid escaped IRI character %X %c\n", code, code);
return pop_node(reader, ref);
+ default:
+ break;
}
break;
default: