Skip to content

Commit cd3420c

Browse files
committed
Fix unused variable warning in release mode
1 parent d537510 commit cd3420c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

encoder.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,10 @@ void Encoder::writeRleScanline(const int w,
180180
const color_t c = m_iterator.getPixel<T>();
181181

182182
for (int i=1; i<n; ++i) {
183-
const color_t c2 = m_iterator.getPixel<T>();
183+
#ifndef NDEBUG
184+
const color_t c2 =
185+
#endif
186+
m_iterator.getPixel<T>();
184187
assert(c == c2);
185188
}
186189

0 commit comments

Comments
 (0)