niash: fix [-Wunused-but-set-variable] compiler warning

This makes explicit what the compiler has effectively been doing all
along anyway since at least 727dd4ab (2004-08-03).
merge-requests/1/head
Olaf Meeuwissen 2016-09-12 20:12:28 +09:00
rodzic 6f4b88b617
commit fb0464d9e3
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -1225,7 +1225,7 @@ SimpleCalibExt (THWParams * pHWPar, unsigned char *pabCalibTable,
SANE_Bool iReversedHead; SANE_Bool iReversedHead;
int startWhiteY, endWhiteY; int startWhiteY, endWhiteY;
int startBlackY, endBlackY; int startBlackY, endBlackY;
int startBlackX, endBlackX; int endBlackX;
iHandle = pHWPar->iXferHandle; iHandle = pHWPar->iXferHandle;
iReversedHead = pHWPar->iReversedHead; iReversedHead = pHWPar->iReversedHead;
@ -1262,7 +1262,6 @@ SimpleCalibExt (THWParams * pHWPar, unsigned char *pabCalibTable,
endWhiteY = 15; endWhiteY = 15;
startBlackY = 16; startBlackY = 16;
endBlackY = 135; endBlackY = 135;
startBlackX = 0;
endBlackX = HW_PIXELS; endBlackX = HW_PIXELS;
} }
else else
@ -1271,7 +1270,6 @@ SimpleCalibExt (THWParams * pHWPar, unsigned char *pabCalibTable,
endWhiteY = 70; endWhiteY = 70;
startBlackY = 86; startBlackY = 86;
endBlackY = 135; endBlackY = 135;
startBlackX = 1666;
endBlackX = 3374; endBlackX = 3374;
} }