From 70f1df4d6b48d3775899c6414af0b907a99f3889 Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 15 Mar 2017 15:13:50 -0300 Subject: [PATCH] Avoid def variables that aren't used NDEBUG --- src/render/render.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/render/render.cpp b/src/render/render.cpp index 57ea30901..5d1a8d559 100644 --- a/src/render/render.cpp +++ b/src/render/render.cpp @@ -365,9 +365,11 @@ void composite_image_scale_down( const LockImageBits srcBits(src, srcBounds); LockImageBits 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);