summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2019-08-04 11:14:39 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-08-04 11:23:33 -0700
commit194cb45ceb510c3e580460919cd7e5dd31a285c8 (patch)
tree39a7c1fd1229bd6ecf57bb6e5e2ae8f0e3325a7e /src/util
parentddbee30d3525cdd66b84056affc407601680cc29 (diff)
fontxlfd.c: tell gcc that switch fallthrough is intentional
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 <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/fontxlfd.c1
1 files changed, 1 insertions, 0 deletions
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);