summaryrefslogtreecommitdiff
path: root/backend/hp4200.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-02-16 10:20:08 +0100
committerJörg Frings-Fürst <debian@jff.email>2023-02-16 10:20:08 +0100
commit778ebf8ee9cb22ea5727844333bcd5a6ee6bc0de (patch)
treea754e785b286ed82b45fe4e50b980714ad80e0a7 /backend/hp4200.c
parent7d8aac1f3634dc58785bec7acf097dd6bac8c394 (diff)
parent32cb765f681299af226ca0520993cbe47ba5ecd0 (diff)
Merge branch 'release/debian/1.2.1-1'debian/1.2.1-1
Diffstat (limited to 'backend/hp4200.c')
-rw-r--r--backend/hp4200.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/backend/hp4200.c b/backend/hp4200.c
index 5b21b47..e4e885e 100644
--- a/backend/hp4200.c
+++ b/backend/hp4200.c
@@ -512,7 +512,7 @@ read_available_data (HP4200_Scanner * s, SANE_Byte * buffer,
buffer += really_read;
to_read -= really_read;
#ifdef DEBUG
- fprintf (stderr, "read %d bytes\n", really_read);
+ fprintf (stderr, "read %zu bytes\n", really_read);
#endif
}
return SANE_STATUS_GOOD;
@@ -941,7 +941,6 @@ compute_dpd (HP4200_Scanner * s, int step_size, int line_end)
static SANE_Status
read_required_bytes (HP4200_Scanner * s, int required, SANE_Byte * buffer)
{
- int read_count = 0;
unsigned char scankb1;
unsigned char scankb2;
size_t to_read;
@@ -987,7 +986,6 @@ read_required_bytes (HP4200_Scanner * s, int required, SANE_Byte * buffer)
buffer += really_read;
required -= really_read;
to_read -= really_read;
- read_count += really_read;
}
}
@@ -2369,7 +2367,7 @@ sane_init (SANE_Int * version_code, SANE_Auth_Callback authorize)
char dev_name[PATH_MAX];
FILE *fp;
- authorize = authorize; /* keep gcc quiet */
+ (void) authorize; /* keep gcc quiet */
DBG_INIT ();
@@ -2939,7 +2937,7 @@ sane_set_io_mode (SANE_Handle handle, SANE_Bool non_blocking)
HP4200_Scanner *dev = handle;
SANE_Status status;
- non_blocking = non_blocking; /* silence gcc */
+ (void) non_blocking; /* silence gcc */
if (dev->scanning == SANE_FALSE)
{
@@ -2965,8 +2963,8 @@ sane_get_select_fd (SANE_Handle h, SANE_Int * fd)
{
static char me[] = "sane_get_select_fd";
- h = h; /* keep gcc quiet */
- fd = fd; /* keep gcc quiet */
+ (void) h; /* keep gcc quiet */
+ (void) fd; /* keep gcc quiet */
DBG (DBG_proc, "%s\n", me);
return SANE_STATUS_UNSUPPORTED;