summaryrefslogtreecommitdiff
path: root/backend/hp3500.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-02-12 17:36:29 +0100
committerJörg Frings-Fürst <debian@jff.email>2023-02-12 17:36:29 +0100
commit882fd010527b8d8823f09e19edbed3746265fa08 (patch)
treebe5c7cace6697afc753c152d13ad5145d0884a42 /backend/hp3500.c
parent527bedac30eb120915718eb7997e6dacd583512e (diff)
parente0d94cf4d39395df1e2c6bb4d967200298c13881 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'backend/hp3500.c')
-rw-r--r--backend/hp3500.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/backend/hp3500.c b/backend/hp3500.c
index bf07b36..acb09b6 100644
--- a/backend/hp3500.c
+++ b/backend/hp3500.c
@@ -265,7 +265,7 @@ static const SANE_Device **devlist = 0;
SANE_Status
sane_init (SANE_Int * version_code, SANE_Auth_Callback authorize)
{
- authorize = authorize; /* get rid of compiler warning */
+ (void) authorize; /* get rid of compiler warning */
DBG_INIT ();
DBG (10, "sane_init\n");
@@ -1117,7 +1117,7 @@ init_options (struct hp3500_data *scanner)
static void
do_reset (struct hp3500_data *scanner)
{
- scanner = scanner; /* kill warning */
+ (void) scanner; /* kill warning */
}
static void
@@ -1530,8 +1530,6 @@ rt_get_available_bytes (void)
static int
rt_get_data (int bytes, void *data)
{
- int total = 0;
-
while (bytes)
{
int bytesnow = bytes;
@@ -1542,7 +1540,6 @@ rt_get_data (int bytes, void *data)
(RTCMD_READBYTES, 0, bytesnow, 0, 0, bytesnow, data) < 0
|| rt_execute_commands () < 0)
return -1;
- total += bytesnow;
bytes -= bytesnow;
data = (char *) data + bytesnow;
}
@@ -2774,7 +2771,7 @@ rts8801_doscan (unsigned width,
int result = 0;
unsigned rows_supplied = 0;
- calib_info = calib_info; /* Kill warning */
+ (void) calib_info; /* Kill warning */
if (cancelled_scan)
return -1;
rt_start_moving ();
@@ -3784,7 +3781,7 @@ writefunc (struct hp3500_write_info *winfo, int bytes, char *data)
static void
sigtermHandler (int signal)
{
- signal = signal; /* get rid of compiler warning */
+ (void) signal; /* get rid of compiler warning */
cancelled_scan = 1;
}
#endif