[hackers] [st][PATCH] Prevent warnings about fall through

From: Steve Ward <planet36_AT_gmail.com>
Date: Thu, 7 May 2020 07:39:32 -0400

---
 st.c | 1 +
 x.c  | 1 +
 2 files changed, 2 insertions(+)
diff --git a/st.c b/st.c
index 2bf133f..d968d30 100644
--- a/st.c
+++ b/st.c
_AT_@ -2153,6 +2153,7 @@ tcontrolcode(uchar ascii)
 		return;
 	case '\032': /* SUB */
 		tsetchar('?', &term.c.attr, term.c.x, term.c.y);
+		/* FALLTHROUGH */
 	case '\030': /* CAN */
 		csireset();
 		break;
diff --git a/x.c b/x.c
index e5f1737..f0980c4 100644
--- a/x.c
+++ b/x.c
_AT_@ -1528,6 +1528,7 @@ xdrawcursor(int cx, int cy, Glyph g, int ox, int oy, Glyph og)
 		switch (win.cursor) {
 		case 7: /* st extension: snowman (U+2603) */
 			g.u = 0x2603;
+			/* FALLTHROUGH */
 		case 0: /* Blinking Block */
 		case 1: /* Blinking Block (Default) */
 		case 2: /* Steady Block */
-- 
2.20.1
Received on Thu May 07 2020 - 13:39:32 CEST

This archive was generated by hypermail 2.3.0 : Thu May 07 2020 - 14:48:38 CEST