From 3220c5f1b197fd006ad3c42f3406944c964daf1c Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Wed, 1 May 2019 18:20:02 -0400 Subject: [PATCH] fix implicit fallthrough --- src/picture.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/picture.cpp b/src/picture.cpp index 6e31928..82b02f4 100644 --- a/src/picture.cpp +++ b/src/picture.cpp @@ -1259,6 +1259,7 @@ int Picture::button_action(int newX, int newY) addCode(clickX>>1); addCode(clickY); ret=1; + [[fallthrough]]; default: addCode(newX>>1); addCode(newY); @@ -1284,6 +1285,7 @@ int Picture::button_action(int newX, int newY) addCode(0xF7); addCode(clickX>>1); addCode(clickY); + [[fallthrough]]; default: if (dX < 0) disp = (0x80 | ((((-1)*dX)-0) << 4)); else disp = (dX << 4);