summaryrefslogtreecommitdiff
path: root/backend/canon630u.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/canon630u.c')
-rw-r--r--backend/canon630u.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/backend/canon630u.c b/backend/canon630u.c
index 659c31f..25c59d6 100644
--- a/backend/canon630u.c
+++ b/backend/canon630u.c
@@ -133,9 +133,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;
@@ -168,8 +168,8 @@ static SANE_Status
optionCalibrateCallback (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)
{
@@ -221,7 +221,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)
{
@@ -268,8 +268,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)
{
@@ -315,9 +315,9 @@ static SANE_Status
optionAGainCallback (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 */
switch (action)
{
@@ -357,9 +357,9 @@ static SANE_Status
optionGammaCallback (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 */
switch (action)
{
@@ -418,9 +418,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)
{
@@ -462,8 +462,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)
{
@@ -506,8 +506,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)
{
@@ -550,8 +550,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)
{
@@ -912,7 +912,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))
@@ -924,7 +924,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",
@@ -945,7 +945,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;
@@ -1035,7 +1035,7 @@ 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 */
return SANE_STATUS_UNSUPPORTED;
}