From 7e516b6d24d8c0c6549a9a60fcf487e3a1615020 Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Wed, 8 Apr 2009 16:38:08 -0700 Subject: Silence warning in i830_dmi_store_field Just add a dummy ret variable to shut up gcc. --- src/i830_quirks.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/i830_quirks.c') diff --git a/src/i830_quirks.c b/src/i830_quirks.c index 78292f72..81ea3c25 100644 --- a/src/i830_quirks.c +++ b/src/i830_quirks.c @@ -70,12 +70,13 @@ static char *i830_dmi_data[dmi_data_max]; static void i830_dmi_store_##field(void) \ {\ FILE *f = NULL;\ + int ret;\ f = fopen(DMIID_FILE(field), "r");\ if (f == NULL) {\ xfree(i830_dmi_data[field]); i830_dmi_data[field] = NULL;\ return;\ }\ - fread(i830_dmi_data[field], 64, 1, f);\ + ret = fread(i830_dmi_data[field], 64, 1, f); \ fclose(f);\ } -- cgit v1.2.3