mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 16:22:22 +03:00
Fix warnings: variable set but not used
This commit is contained in:
parent
3b6392bbda
commit
0a8291e1a4
|
@ -408,7 +408,6 @@ static PyObject *
|
||||||
SaneDev_set_auto_option(SaneDevObject *self, PyObject *args)
|
SaneDev_set_auto_option(SaneDevObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
SANE_Status st;
|
SANE_Status st;
|
||||||
const SANE_Option_Descriptor *d;
|
|
||||||
SANE_Int i;
|
SANE_Int i;
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
|
@ -419,7 +418,6 @@ SaneDev_set_auto_option(SaneDevObject *self, PyObject *args)
|
||||||
PyErr_SetString(ErrorObject, "SaneDev object is closed");
|
PyErr_SetString(ErrorObject, "SaneDev object is closed");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
d=sane_get_option_descriptor(self->h, n);
|
|
||||||
st=sane_control_option(self->h, n, SANE_ACTION_SET_AUTO,
|
st=sane_control_option(self->h, n, SANE_ACTION_SET_AUTO,
|
||||||
NULL, &i);
|
NULL, &i);
|
||||||
if (st) {return PySane_Error(st);}
|
if (st) {return PySane_Error(st);}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user