xfixes: Mark some variables as unused.

Calling Unwrap() is just a way of performing an assignment while keeping a
backup of the original value. In the CursorCloseScreen function, the backup
value doesn't seem to be useful, but Unwrap() is used anyway (probably to stay
in line with other functions). As a consequence, mark those variables as unused.

The following warnings go away accordingly:
|   CC     cursor.lo
| cursor.c: In function 'CursorCloseScreen':
| cursor.c:186:26: warning: variable 'display_proc' set but not used [-Wunused-but-set-variable]
| cursor.c:185:24: warning: variable 'close_proc' set but not used [-Wunused-but-set-variable]

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Cyril Brulebois <kibi@debian.org>
This commit is contained in:
Cyril Brulebois 2011-05-24 18:33:17 +02:00
parent f41ac25d93
commit ad0d0833d4

View File

@ -196,8 +196,8 @@ CursorCloseScreen (int index, ScreenPtr pScreen)
{ {
CursorScreenPtr cs = GetCursorScreen (pScreen); CursorScreenPtr cs = GetCursorScreen (pScreen);
Bool ret; Bool ret;
CloseScreenProcPtr close_proc; _X_UNUSED CloseScreenProcPtr close_proc;
DisplayCursorProcPtr display_proc; _X_UNUSED DisplayCursorProcPtr display_proc;
ConstrainCursorHarderProcPtr constrain_proc; ConstrainCursorHarderProcPtr constrain_proc;
Unwrap (cs, pScreen, CloseScreen, close_proc); Unwrap (cs, pScreen, CloseScreen, close_proc);