fix implicit fallthrough

This commit is contained in:
Chris Cromer 2019-05-01 18:20:02 -04:00
parent 39fe98c900
commit 3220c5f1b1
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A

View File

@ -1259,6 +1259,7 @@ int Picture::button_action(int newX, int newY)
addCode(clickX>>1); addCode(clickX>>1);
addCode(clickY); addCode(clickY);
ret=1; ret=1;
[[fallthrough]];
default: default:
addCode(newX>>1); addCode(newX>>1);
addCode(newY); addCode(newY);
@ -1284,6 +1285,7 @@ int Picture::button_action(int newX, int newY)
addCode(0xF7); addCode(0xF7);
addCode(clickX>>1); addCode(clickX>>1);
addCode(clickY); addCode(clickY);
[[fallthrough]];
default: default:
if (dX < 0) disp = (0x80 | ((((-1)*dX)-0) << 4)); if (dX < 0) disp = (0x80 | ((((-1)*dX)-0) << 4));
else disp = (dX << 4); else disp = (dX << 4);