diff options
| author | Jörg Frings-Fürst <debian@jff.email> | 2023-02-16 10:20:08 +0100 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff.email> | 2023-02-16 10:20:08 +0100 | 
| commit | 778ebf8ee9cb22ea5727844333bcd5a6ee6bc0de (patch) | |
| tree | a754e785b286ed82b45fe4e50b980714ad80e0a7 /backend/hp3500.c | |
| parent | 7d8aac1f3634dc58785bec7acf097dd6bac8c394 (diff) | |
| parent | 32cb765f681299af226ca0520993cbe47ba5ecd0 (diff) | |
Merge branch 'release/debian/1.2.1-1'debian/1.2.1-1
Diffstat (limited to 'backend/hp3500.c')
| -rw-r--r-- | backend/hp3500.c | 11 | 
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 | 
