summaryrefslogtreecommitdiff
path: root/backend/umax1220u.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/umax1220u.c
parent7d8aac1f3634dc58785bec7acf097dd6bac8c394 (diff)
parent32cb765f681299af226ca0520993cbe47ba5ecd0 (diff)
Merge branch 'release/debian/1.2.1-1'debian/1.2.1-1
Diffstat (limited to 'backend/umax1220u.c')
-rw-r--r--backend/umax1220u.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/backend/umax1220u.c b/backend/umax1220u.c
index 8c6098c..e5ecbef 100644
--- a/backend/umax1220u.c
+++ b/backend/umax1220u.c
@@ -131,9 +131,9 @@ static SANE_Status
optionNumOptionsCallback (SANE_Option * option, SANE_Handle handle,
SANE_Action action, void *value, SANE_Int * info)
{
- option = option;
- handle = handle;
- info = info; /* Eliminate warning about unused parameters */
+ (void) option;
+ (void) handle;
+ (void) info; /* Eliminate warning about unused parameters */
if (action != SANE_ACTION_GET_VALUE)
return SANE_STATUS_INVAL;
@@ -173,7 +173,7 @@ optionResolutionCallback (SANE_Option * option, SANE_Handle handle,
SANE_Status status;
SANE_Word autoValue = 75;
- handle = handle; /* Eliminate warning about unused parameters */
+ (void) handle; /* Eliminate warning about unused parameters */
switch (action)
{
@@ -217,8 +217,8 @@ static SANE_Status
optionGrayscaleCallback (SANE_Option * option, SANE_Handle handle,
SANE_Action action, void *value, SANE_Int * info)
{
- handle = handle;
- option = option; /* Eliminate warning about unused parameters */
+ (void) handle;
+ (void) option; /* Eliminate warning about unused parameters */
switch (action)
{
@@ -261,10 +261,10 @@ optionLampOffCallback (SANE_Option * option, SANE_Handle handle,
SANE_Status res = SANE_STATUS_GOOD;
/* Eliminate warnings about unused parameters */
- option = option;
- handle = handle;
- info = info;
- value = value;
+ (void) option;
+ (void) handle;
+ (void) info;
+ (void) value;
if (action != SANE_ACTION_SET_VALUE)
return SANE_STATUS_INVAL;
@@ -308,9 +308,9 @@ static SANE_Status
optionTopLeftXCallback (SANE_Option * option, SANE_Handle handle,
SANE_Action action, void *value, SANE_Int * info)
{
- option = option;
- handle = handle;
- value = value; /* Eliminate warning about unused parameters */
+ (void) option;
+ (void) handle;
+ (void) value; /* Eliminate warning about unused parameters */
switch (action)
{
@@ -351,8 +351,8 @@ optionTopLeftYCallback (SANE_Option * option, SANE_Handle handle,
SANE_Action action, void *value, SANE_Int * info)
{
/* Eliminate warnings about unused parameters */
- option = option;
- handle = handle;
+ (void) option;
+ (void) handle;
switch (action)
{
@@ -394,8 +394,8 @@ optionBotRightXCallback (SANE_Option * option, SANE_Handle handle,
SANE_Action action, void *value, SANE_Int * info)
{
/* Eliminate warnings about unused parameters */
- option = option;
- handle = handle;
+ (void) option;
+ (void) handle;
switch (action)
{
@@ -437,8 +437,8 @@ optionBotRightYCallback (SANE_Option * option, SANE_Handle handle,
SANE_Action action, void *value, SANE_Int * info)
{
/* Eliminate warnings about unused parameters */
- option = option;
- handle = handle;
+ (void) option;
+ (void) handle;
switch (action)
{
@@ -780,7 +780,7 @@ sane_close (SANE_Handle handle)
const SANE_Option_Descriptor *
sane_get_option_descriptor (SANE_Handle handle, SANE_Int option)
{
- handle = handle; /* Eliminate compiler warning */
+ (void) handle; /* Eliminate compiler warning */
DBG (3, "sane_get_option_descriptor: option = %d\n", option);
if (option < 0 || option >= NELEMS (so))
@@ -792,7 +792,7 @@ SANE_Status
sane_control_option (SANE_Handle handle, SANE_Int option,
SANE_Action action, void *value, SANE_Int * info)
{
- handle = handle; /* Eliminate compiler warning */
+ (void) handle; /* Eliminate compiler warning */
DBG (3,
"sane_control_option: handle=%p, opt=%d, act=%d, val=%p, info=%p\n",
@@ -812,7 +812,7 @@ sane_get_parameters (SANE_Handle handle, SANE_Parameters * params)
SANE_UNFIX (optionBotRightYValue -
optionTopLeftYValue) / MM_IN_INCH * optionResolutionValue;
- handle = handle; /* Eliminate compiler warning */
+ (void) handle; /* Eliminate compiler warning */
DBG (3, "sane_get_parameters\n");
parms.depth = 8;