mirror of
https://github.com/X11Libre/xf86-video-nested.git
synced 2026-03-24 01:24:18 +00:00
Quiet 3 -Wdeclaration-after-statement warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
@@ -194,8 +194,7 @@ _nested_input_init_buttons(DeviceIntPtr device) {
|
||||
|
||||
map = calloc(NUM_MOUSE_BUTTONS, sizeof(CARD8));
|
||||
|
||||
int i;
|
||||
for (i = 0; i < NUM_MOUSE_BUTTONS; i++)
|
||||
for (int i = 0; i < NUM_MOUSE_BUTTONS; i++)
|
||||
map[i] = i;
|
||||
|
||||
if (!InitButtonClassDeviceStruct(device, NUM_MOUSE_BUTTONS, buttonLabels, map)) {
|
||||
@@ -218,8 +217,7 @@ _nested_input_init_axes(DeviceIntPtr device) {
|
||||
return BadAlloc;
|
||||
}
|
||||
|
||||
int i;
|
||||
for (i = 0; i < NUM_MOUSE_AXES; i++) {
|
||||
for (int i = 0; i < NUM_MOUSE_AXES; i++) {
|
||||
xf86InitValuatorAxisStruct(device, i, (Atom)0, -1, -1, 1, 1, 1, Absolute);
|
||||
xf86InitValuatorDefaults(device, i);
|
||||
}
|
||||
|
||||
@@ -254,8 +254,9 @@ xf86DrvMsg(scrnIndex, X_INFO, "blu_mask: 0x%lx\n", pPriv->img->blue_mask);
|
||||
*retGreenMask = pPriv->img->green_mask;
|
||||
*retBlueMask = pPriv->img->blue_mask;
|
||||
|
||||
XEvent ev;
|
||||
while (1) {
|
||||
XEvent ev;
|
||||
|
||||
XNextEvent(pPriv->display, &ev);
|
||||
if (ev.type == Expose) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user