From 0a8291e1a4000d1065179a08e7f0430a61f30936 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Fri, 12 Apr 2013 17:11:36 +0200 Subject: [PATCH] Fix warnings: variable set but not used --- Sane/_sane.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/Sane/_sane.c b/Sane/_sane.c index b424015a8..2001be421 100644 --- a/Sane/_sane.c +++ b/Sane/_sane.c @@ -408,7 +408,6 @@ static PyObject * SaneDev_set_auto_option(SaneDevObject *self, PyObject *args) { SANE_Status st; - const SANE_Option_Descriptor *d; SANE_Int i; int n; @@ -419,7 +418,6 @@ SaneDev_set_auto_option(SaneDevObject *self, PyObject *args) PyErr_SetString(ErrorObject, "SaneDev object is closed"); return NULL; } - d=sane_get_option_descriptor(self->h, n); st=sane_control_option(self->h, n, SANE_ACTION_SET_AUTO, NULL, &i); if (st) {return PySane_Error(st);}