From e6faafcdc94e253f7f4fe793fec6110ce37e8014 Mon Sep 17 00:00:00 2001 From: Olaf Meeuwissen Date: Sun, 25 Sep 2016 15:44:36 +0900 Subject: [PATCH] xerox_mfp: fix [-Wunused-parameter] compiler warnings These are issued when libjpeg was not found during configuration. --- backend/xerox_mfp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/xerox_mfp.c b/backend/xerox_mfp.c index 0b8844128..208187c51 100644 --- a/backend/xerox_mfp.c +++ b/backend/xerox_mfp.c @@ -92,7 +92,8 @@ static char *str_cmd(int cmd) #define MAX_DUMP 70 const char *encTmpFileName = "/tmp/stmp_enc.tmp"; -static int decompress(struct device *dev, const char *infilename) +static int decompress(struct device __sane_unused__ *dev, + const char __sane_unused__ *infilename) { #ifdef HAVE_LIBJPEG int rc; @@ -198,7 +199,7 @@ static int dump_to_tmp_file(struct device *dev) return srcLen; } -static int isSupportedDevice(struct device *dev) +static int isSupportedDevice(struct device __sane_unused__ *dev) { #ifdef HAVE_LIBJPEG /* Checking device which supports JPEG Lossy compression for color scanning*/