From 194cb45ceb510c3e580460919cd7e5dd31a285c8 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 4 Aug 2019 11:14:39 -0700 Subject: fontxlfd.c: tell gcc that switch fallthrough is intentional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Quiets: src/util/fontxlfd.c: In function ‘FontParseXLFDName’: src/util/fontxlfd.c:450:14: warning: this statement may fall through [-Wimplicit-fallthrough=] replaceChar = '*'; ~~~~~~~~~~~~^~~~~ src/util/fontxlfd.c:451:5: note: here case FONT_XLFD_REPLACE_ZERO: ^~~~ Signed-off-by: Alan Coopersmith --- src/util/fontxlfd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/util/fontxlfd.c') diff --git a/src/util/fontxlfd.c b/src/util/fontxlfd.c index 141a564..0a4be1d 100644 --- a/src/util/fontxlfd.c +++ b/src/util/fontxlfd.c @@ -448,6 +448,7 @@ FontParseXLFDName(char *fname, FontScalablePtr vals, int subst) break; case FONT_XLFD_REPLACE_STAR: replaceChar = '*'; + /* FALLTHROUGH */ case FONT_XLFD_REPLACE_ZERO: strlcpy(tmpBuf, ptr2, sizeof(tmpBuf)); ptr5 = tmpBuf + (ptr5 - ptr2); -- cgit v1.2.3