summaryrefslogtreecommitdiff
path: root/backend/ricoh.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/ricoh.c
parent302276dc1b90cfc972fb726ca94a23b18f4b0088 (diff)
New upstream version 1.2.1upstream/1.2.1upstream
Diffstat (limited to 'backend/ricoh.c')
-rw-r--r--backend/ricoh.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/backend/ricoh.c b/backend/ricoh.c
index d1f20c0..c4dd641 100644
--- a/backend/ricoh.c
+++ b/backend/ricoh.c
@@ -485,7 +485,7 @@ sane_init (SANE_Int * version_code, SANE_Auth_Callback authorize)
char devnam[PATH_MAX] = "/dev/scanner";
FILE *fp;
- authorize = authorize; /* silence gcc */
+ (void) authorize; /* silence gcc */
DBG_INIT ();
DBG (11, ">> sane_init\n");
@@ -514,7 +514,8 @@ sane_init (SANE_Int * version_code, SANE_Auth_Callback authorize)
continue; /* ignore empty lines */
/* skip white space: */
- for (lp = line; isspace(*lp); ++lp);
+ for (lp = line; isspace(*lp); ++lp)
+ ;
strcpy (devnam, lp);
}
fclose (fp);
@@ -550,7 +551,7 @@ sane_get_devices (const SANE_Device *** device_list, SANE_Bool local_only)
Ricoh_Device *dev;
int i;
- local_only = local_only; /* silence gcc */
+ (void) local_only; /* silence gcc */
DBG (11, ">> sane_get_devices\n");
@@ -1007,8 +1008,8 @@ sane_cancel (SANE_Handle handle)
SANE_Status
sane_set_io_mode (SANE_Handle handle, SANE_Bool non_blocking)
{
- handle = handle; /* silence gcc */
- non_blocking = non_blocking; /* silence gcc */
+ (void) handle; /* silence gcc */
+ (void) non_blocking; /* silence gcc */
DBG (5, ">> sane_set_io_mode\n");
DBG (5, "<< sane_set_io_mode\n");
@@ -1019,8 +1020,8 @@ sane_set_io_mode (SANE_Handle handle, SANE_Bool non_blocking)
SANE_Status
sane_get_select_fd (SANE_Handle handle, SANE_Int * fd)
{
- handle = handle; /* silence gcc */
- fd = fd; /* silence gcc */
+ (void) handle; /* silence gcc */
+ (void) fd; /* silence gcc */
DBG (5, ">> sane_get_select_fd\n");
DBG (5, "<< sane_get_select_fd\n");