aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Meeuwissen <paddy-hack@member.fsf.org>2016-09-12 20:12:28 +0900
committerOlaf Meeuwissen <paddy-hack@member.fsf.org>2016-09-19 12:41:58 +0900
commitfb0464d9e3e39a93306e98602ff879c43276de5c (patch)
tree5c196e5306610b26590e0f0d741c07ebd2430b1b
parent6f4b88b6173745f09e4ce1fa465db534eca85751 (diff)
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).
-rw-r--r--backend/niash_core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/backend/niash_core.c b/backend/niash_core.c
index 89aa5e0..b87f4f6 100644
--- a/backend/niash_core.c
+++ b/backend/niash_core.c
@@ -1225,7 +1225,7 @@ SimpleCalibExt (THWParams * pHWPar, unsigned char *pabCalibTable,
SANE_Bool iReversedHead;
int startWhiteY, endWhiteY;
int startBlackY, endBlackY;
- int startBlackX, endBlackX;
+ int endBlackX;
iHandle = pHWPar->iXferHandle;
iReversedHead = pHWPar->iReversedHead;
@@ -1262,7 +1262,6 @@ SimpleCalibExt (THWParams * pHWPar, unsigned char *pabCalibTable,
endWhiteY = 15;
startBlackY = 16;
endBlackY = 135;
- startBlackX = 0;
endBlackX = HW_PIXELS;
}
else
@@ -1271,7 +1270,6 @@ SimpleCalibExt (THWParams * pHWPar, unsigned char *pabCalibTable,
endWhiteY = 70;
startBlackY = 86;
endBlackY = 135;
- startBlackX = 1666;
endBlackX = 3374;
}