From d3e4e496a19a266ffac7c04fb7d54926e39f55a2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 4 Sep 2018 19:43:55 +0200 Subject: Fix fallthrough warnings with GCC8 --- src/n3.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/n3.c') diff --git a/src/n3.c b/src/n3.c index bb8d4d9d..0a3e1fd3 100644 --- a/src/n3.c +++ b/src/n3.c @@ -105,14 +105,17 @@ read_UCHAR(SerdReader* reader, Ref dest, uint32_t* char_code) buf[3] = 0x80 | (uint8_t)(c & 0x3F); c >>= 6; c |= (16 << 12); // set bit 4 + // fallthru case 3: buf[2] = 0x80 | (uint8_t)(c & 0x3F); c >>= 6; c |= (32 << 6); // set bit 5 + // fallthru case 2: buf[1] = 0x80 | (uint8_t)(c & 0x3F); c >>= 6; c |= 0xC0; // set bits 6 and 7 + // fallthru case 1: buf[0] = (uint8_t)c; } -- cgit v1.2.1