mirror of
https://github.com/X11Libre/xf86-video-nested.git
synced 2026-04-14 11:04:16 +00:00
Remove some unused variables
driver.c:553:9: warning: unused variable 'rc' [-Wunused-variable]
int rc;
^
input.c:188:18: warning: unused variable 'pInfo' [-Wunused-variable]
InputInfoPtr pInfo = device->public.devicePrivate;
^
input.c:210:26: warning: unused variable 'pNestedInput' [-Wunused-variable]
NestedInputDevicePtr pNestedInput = pInfo->private;
^
2 warnings generated.
xlibclient.c:272:11: warning: unused variable 'msg' [-Wunused-variable]
char *msg = "Cursor";
^
xlibclient.c:273:11: warning: unused variable 'msg2' [-Wunused-variable]
char *msg2 = "Root";
^
2 warnings generated.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
This commit is contained in:
@@ -548,7 +548,6 @@ Bool
|
||||
NestedAddMode(ScrnInfoPtr pScrn, int width, int height) {
|
||||
DisplayModePtr mode;
|
||||
char nameBuf[64];
|
||||
int rc;
|
||||
size_t len;
|
||||
|
||||
if (snprintf(nameBuf, 64, "%dx%d", width, height) >= 64)
|
||||
|
||||
@@ -185,8 +185,6 @@ _nested_input_init_buttons(DeviceIntPtr device) {
|
||||
|
||||
static int
|
||||
_nested_input_init_axes(DeviceIntPtr device) {
|
||||
InputInfoPtr pInfo = device->public.devicePrivate;
|
||||
|
||||
if (!InitValuatorClassDeviceStruct(device,
|
||||
NUM_MOUSE_AXES,
|
||||
(Atom*)GetMotionHistory, // Not sure about this.
|
||||
@@ -207,7 +205,6 @@ _nested_input_init_axes(DeviceIntPtr device) {
|
||||
static int
|
||||
NestedInputControl(DeviceIntPtr device, int what) {
|
||||
InputInfoPtr pInfo = device->public.devicePrivate;
|
||||
NestedInputDevicePtr pNestedInput = pInfo->private;
|
||||
|
||||
switch (what) {
|
||||
case DEVICE_INIT:
|
||||
|
||||
@@ -269,8 +269,6 @@ NestedClientUpdateScreen(NestedClientPrivatePtr pPriv, int16_t x1,
|
||||
void
|
||||
NestedClientTimerCallback(NestedClientPrivatePtr pPriv) {
|
||||
XEvent ev;
|
||||
char *msg = "Cursor";
|
||||
char *msg2 = "Root";
|
||||
|
||||
while(XCheckMaskEvent(pPriv->display, ~0, &ev)) {
|
||||
if (ev.type == Expose) {
|
||||
|
||||
Reference in New Issue
Block a user