kopia lustrzana https://gitlab.com/sane-project/backends
xerox_mfp: fix [-Wunused-parameter] compiler warnings
These are issued when libjpeg was not found during configuration.merge-requests/1/head
rodzic
97d2a3d22d
commit
e6faafcdc9
|
@ -92,7 +92,8 @@ static char *str_cmd(int cmd)
|
||||||
#define MAX_DUMP 70
|
#define MAX_DUMP 70
|
||||||
const char *encTmpFileName = "/tmp/stmp_enc.tmp";
|
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
|
#ifdef HAVE_LIBJPEG
|
||||||
int rc;
|
int rc;
|
||||||
|
@ -198,7 +199,7 @@ static int dump_to_tmp_file(struct device *dev)
|
||||||
return srcLen;
|
return srcLen;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int isSupportedDevice(struct device *dev)
|
static int isSupportedDevice(struct device __sane_unused__ *dev)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_LIBJPEG
|
#ifdef HAVE_LIBJPEG
|
||||||
/* Checking device which supports JPEG Lossy compression for color scanning*/
|
/* Checking device which supports JPEG Lossy compression for color scanning*/
|
||||||
|
|
Ładowanie…
Reference in New Issue