Skip to content

Commit

Permalink
Fix unused variable warning in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Sep 20, 2023
1 parent d537510 commit cd3420c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ void Encoder::writeRleScanline(const int w,
const color_t c = m_iterator.getPixel<T>();

for (int i=1; i<n; ++i) {
const color_t c2 = m_iterator.getPixel<T>();
#ifndef NDEBUG
const color_t c2 =
#endif
m_iterator.getPixel<T>();
assert(c == c2);
}

Expand Down

0 comments on commit cd3420c

Please sign in to comment.