[PATCH 14/14] xfree86/os-support: Mark one more variable as unused.
Cyril Brulebois
kibi at debian.org
Tue May 24 09:41:18 PDT 2011
Removing the data_l computing would lead data to be unused in turn, and
a comment confirms it's apparently useless. Keep it anyway just in case,
and only mark the computed length as unused for now.
This warning goes away accordingly:
| CC lnx_acpi.lo
| lnx_acpi.c: In function 'lnxACPIGetEventFromOs':
| lnx_acpi.c:81:30: warning: variable 'data_l' set but not used [-Wunused-but-set-variable]
Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
hw/xfree86/os-support/linux/lnx_acpi.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/hw/xfree86/os-support/linux/lnx_acpi.c b/hw/xfree86/os-support/linux/lnx_acpi.c
index b90cb19..8d1e707 100644
--- a/hw/xfree86/os-support/linux/lnx_acpi.c
+++ b/hw/xfree86/os-support/linux/lnx_acpi.c
@@ -78,7 +78,8 @@ lnxACPIGetEventFromOs(int fd, pmEvent *events, int num)
_X_UNUSED char *GFX = NULL;
char *notify = NULL;
char *data = NULL; /* doesn't appear to be used in the kernel */
- unsigned long int notify_l, data_l;
+ unsigned long int notify_l;
+ _X_UNUSED unsigned long int data_l;
video = strtok(ev, " ");
--
1.7.5.1
More information about the xorg-devel
mailing list