Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c955eb0 authored by Bernhard Rosenkränzer's avatar Bernhard Rosenkränzer
Browse files

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: default avatarBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
parent 050ff19e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;