]> git.armaanb.net Git - st.git/commitdiff
code-style: add fallthrough comment
authorHiltjo Posthuma <hiltjo@codemadness.org>
Sat, 9 May 2020 12:43:31 +0000 (14:43 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sat, 9 May 2020 12:43:31 +0000 (14:43 +0200)
Patch by Steve Ward, thanks.

st.c
x.c

diff --git a/st.c b/st.c
index 1414f989c4f4c8b6153c57d071dd13a741a54c30..a8de17d64f6104aa57a370b9a09fc854fbe6bff9 100644 (file)
--- a/st.c
+++ b/st.c
@@ -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 7bfc36f278f83a3e60d04992e07fbded36550ab3..1dc44d65cd2fc114ec9791df6e325d2bd7dfdc04 100644 (file)
--- a/x.c
+++ b/x.c
@@ -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 */