aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Meeuwissen <paddy-hack@member.fsf.org>2016-09-25 15:44:36 +0900
committerOlaf Meeuwissen <paddy-hack@member.fsf.org>2016-09-25 15:44:36 +0900
commite6faafcdc94e253f7f4fe793fec6110ce37e8014 (patch)
tree621c0ac2a6f1a0e4ecee27bb31804f0c1a385511
parent97d2a3d22d9c6a6d0a277de0066c73e9059abd92 (diff)
xerox_mfp: fix [-Wunused-parameter] compiler warnings
These are issued when libjpeg was not found during configuration.
-rw-r--r--backend/xerox_mfp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/xerox_mfp.c b/backend/xerox_mfp.c
index 0b88441..208187c 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*/