summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-16 11:58:47 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-16 12:17:02 -0700
commita8ff2170cb89145056d6f30a96219393316f1a96 (patch)
tree51a4fc6b1955dc53c9d013b328ee7d1afaf3f89b
parent72323bf07cc74fb03e63898b14136ae30a770580 (diff)
downloadxorg-driver-xf86-input-mouse-a8ff2170cb89145056d6f30a96219393316f1a96.tar.gz
checkForErraticMovements: Fix -Wempty-body warnings
mouse.c: In function ‘checkForErraticMovements’: mouse.c:3759:52: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] AP_DBG(("accDx=%i\n",mPriv->accDx)); ^ mouse.c:3772:52: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] AP_DBG(("accDy=%i\n",mPriv->accDy)); ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/mouse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mouse.c b/src/mouse.c
index 8bd6547..e06dbc6 100644
--- a/src/mouse.c
+++ b/src/mouse.c
@@ -3755,8 +3755,9 @@ checkForErraticMovements(InputInfoPtr pInfo, int dx, int dy)
mPriv->acc = abs(mPriv->accDx);
AP_DBG(("acc=%i\n",mPriv->acc));
}
- else
+ else {
AP_DBG(("accDx=%i\n",mPriv->accDx));
+ }
} else {
mPriv->accDx = 0;
}
@@ -3768,8 +3769,9 @@ checkForErraticMovements(InputInfoPtr pInfo, int dx, int dy)
if (abs(mPriv->accDy) > mPriv->acc) {
mPriv->acc = abs(mPriv->accDy);
AP_DBG(("acc: %i\n",mPriv->acc));
- } else
+ } else {
AP_DBG(("accDy=%i\n",mPriv->accDy));
+ }
} else {
mPriv->accDy = 0;
}