summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-16 12:02:51 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-16 12:17:11 -0700
commit03fb2ae36be7314416b1c57b391039fb948468eb (patch)
tree976ab4a767e956a288ee04dd558d505dfa37baa0
parenta8ff2170cb89145056d6f30a96219393316f1a96 (diff)
downloadxorg-driver-xf86-input-mouse-03fb2ae36be7314416b1c57b391039fb948468eb.tar.gz
SetupMouse: fix -Wsign-compare warning
mouse.c: In function ‘SetupMouse’: mouse.c:2620:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < sizeof(pMse->protoPara); i++) ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/mouse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mouse.c b/src/mouse.c
index e06dbc6..4cb9de1 100644
--- a/src/mouse.c
+++ b/src/mouse.c
@@ -2586,7 +2586,6 @@ static Bool
SetupMouse(InputInfoPtr pInfo)
{
MouseDevPtr pMse;
- int i;
int protoPara[8] = {-1, -1, -1, -1, -1, -1, -1, -1};
const char *name = NULL;
Bool automatic = FALSE;
@@ -2617,7 +2616,7 @@ SetupMouse(InputInfoPtr pInfo)
if (automatic) {
if (name) {
/* Possible protoPara overrides from SetupAuto. */
- for (i = 0; i < sizeof(pMse->protoPara); i++)
+ for (size_t i = 0; i < sizeof(pMse->protoPara); i++)
if (protoPara[i] != -1)
pMse->protoPara[i] = protoPara[i];
/* if we come here PnP/OS mouse probing was successful */