summaryrefslogtreecommitdiff
path: root/backend/coolscan2.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-02-12 17:35:53 +0100
committerJörg Frings-Fürst <debian@jff.email>2023-02-12 17:35:53 +0100
commit84357741a6a6e6430f199b2c3f7498e0e97da9ad (patch)
tree23e8d66ede9506b94c76fb36910ca3c7dd15c74e /backend/coolscan2.c
parent302276dc1b90cfc972fb726ca94a23b18f4b0088 (diff)
New upstream version 1.2.1upstream/1.2.1upstream
Diffstat (limited to 'backend/coolscan2.c')
-rw-r--r--backend/coolscan2.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/backend/coolscan2.c b/backend/coolscan2.c
index f0d897f..641784a 100644
--- a/backend/coolscan2.c
+++ b/backend/coolscan2.c
@@ -344,7 +344,7 @@ sane_init (SANE_Int * version_code, SANE_Auth_Callback authorize)
DBG (10, "sane_init() called.\n");
DBG (1, "coolscan2 backend, version %i.%i.%i initializing.\n", CS2_VERSION_MAJOR, CS2_VERSION_MINOR, CS2_REVISION);
- authorize = authorize; /* to shut up compiler */
+ (void) authorize; /* to shut up compiler */
if (version_code)
*version_code =
@@ -378,7 +378,7 @@ sane_get_devices (const SANE_Device *** list, SANE_Bool local_only)
char line[PATH_MAX], *p;
FILE *config;
- local_only = local_only; /* to shut up compiler */
+ (void) local_only; /* to shut up compiler */
DBG (10, "sane_get_devices() called.\n");
@@ -468,7 +468,10 @@ sane_open (SANE_String_Const name, SANE_Handle * h)
for (i_option = 0; i_option < CS2_N_OPTIONS; i_option++)
{
o.name = o.title = o.desc = NULL;
- o.type = o.unit = o.cap = o.constraint_type = o.size = 0;
+ o.type = SANE_TYPE_BOOL;
+ o.unit = SANE_UNIT_NONE;
+ o.size = o.cap = 0;
+ o.constraint_type = SANE_CONSTRAINT_NONE;
o.constraint.range = NULL; /* only one union member needs to be NULLed */
switch (i_option)
{
@@ -1738,8 +1741,8 @@ sane_get_select_fd (SANE_Handle h, SANE_Int * fd)
DBG (10, "sane_get_select_fd() called.\n");
- fd = fd; /* to shut up compiler */
- s = s; /* to shut up compiler */
+ (void) fd; /* to shut up compiler */
+ (void) s; /* to shut up compiler */
return SANE_STATUS_UNSUPPORTED;
}
@@ -2003,7 +2006,7 @@ cs2_scsi_sense_handler (int fd, u_char * sense_buffer, void *arg)
{
cs2_t *s = (cs2_t *) arg;
- fd = fd; /* to shut up compiler */
+ (void) fd; /* to shut up compiler */
/* sort this out ! XXXXXXXXX */