From 903ef3f54548112ec844aa30631dfe464aa8d028 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 21 Apr 2025 14:40:21 -0700 Subject: [PATCH] mouse.c: Remove stray semicolons after closing brackets Clears warnings from clang 19.1.7: mouse.c:364:14: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] 364 | }; | ^ mouse.c:595:13: warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt] 595 | }; | ^ Signed-off-by: Alan Coopersmith Part-of: --- src/mouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mouse.c b/src/mouse.c index b79e425..ff6fb25 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -361,7 +361,7 @@ MouseCommonOptions(InputInfoPtr pInfo) xf86Msg(X_WARNING, "DragLock: Invalid button number = %d\n", lock); break; - }; + } /* turn into a button mask */ lockM = 1 << (lock - 1); @@ -592,7 +592,7 @@ MouseCommonOptions(InputInfoPtr pInfo) xf86Msg(X_WARNING, "ButtonMapping: Invalid button number = %d\n", b); break; - }; + } pMse->buttonMap[n++] = 1 << (b-1); if (b > pMse->buttons) pMse->buttons = b; }