Avoid def variables that aren't used NDEBUG

This commit is contained in:
David Capello 2017-03-15 15:13:50 -03:00
parent bf6a61e484
commit 70f1df4d6b

View File

@ -365,9 +365,11 @@ void composite_image_scale_down(
const LockImageBits<SrcTraits> srcBits(src, srcBounds);
LockImageBits<DstTraits> dstBits(dst, dstBounds);
auto src_it = srcBits.begin();
auto src_end = srcBits.end();
auto dst_it = dstBits.begin();
#ifdef _DEBUG
auto src_end = srcBits.end();
auto dst_end = dstBits.end();
#endif
// Adjust to src_it for each line
int adjust_per_line = (dstBounds.w*step_w)*(step_h-1);