summaryrefslogtreecommitdiffstats
path: root/media/img_utils
diff options
context:
space:
mode:
authorBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>2014-12-08 15:25:12 +0100
committerBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>2014-12-08 15:25:12 +0100
commit6c955eb0b4777eeade077f99bfa50e462906819a (patch)
treebd3ee6fc90cc02e2b320b520b00241cf84aedcca /media/img_utils
parent050ff19e650a53fd2b6f1f2490758b4bf3104ca4 (diff)
downloadframeworks_av-6c955eb0b4777eeade077f99bfa50e462906819a.zip
frameworks_av-6c955eb0b4777eeade077f99bfa50e462906819a.tar.gz
frameworks_av-6c955eb0b4777eeade077f99bfa50e462906819a.tar.bz2
Fix build with clang
In the -DNDEBUG case, nextOffset is unused, causing clang to spew a warning in code build with -Werror. Change-Id: If0101dcdf735672050f985a1de25a983edb02a52 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Diffstat (limited to 'media/img_utils')
-rw-r--r--media/img_utils/src/TiffWriter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/media/img_utils/src/TiffWriter.cpp b/media/img_utils/src/TiffWriter.cpp
index ac41734..a6f9218 100644
--- a/media/img_utils/src/TiffWriter.cpp
+++ b/media/img_utils/src/TiffWriter.cpp
@@ -106,7 +106,6 @@ status_t TiffWriter::write(Output* out, StripSource** sources, size_t sourcesCou
for (size_t i = 0; i < offVecSize; ++i) {
uint32_t ifdKey = offsetVector.keyAt(i);
- uint32_t nextOffset = offsetVector[i];
uint32_t sizeToWrite = mNamedIfds[ifdKey]->getStripSize();
bool found = false;
for (size_t j = 0; j < sourcesCount; ++j) {
@@ -124,7 +123,7 @@ status_t TiffWriter::write(Output* out, StripSource** sources, size_t sourcesCou
ALOGE("%s: No stream for byte strips for IFD %u", __FUNCTION__, ifdKey);
return BAD_VALUE;
}
- assert(nextOffset == endOut.getCurrentOffset());
+ assert(offsetVector[i] == endOut.getCurrentOffset());
}
return ret;