OSDN Git Service

Appease the static analyzer
authorGeorge Burgess IV <gbiv@google.com>
Tue, 18 Jul 2017 23:28:28 +0000 (16:28 -0700)
committerGeorge Burgess IV <gbiv@google.com>
Wed, 19 Jul 2017 00:21:28 +0000 (17:21 -0700)
commitfa4eaa63caae8eefa3ca6eba9830be747eb32cd0
treea1eb9e77cf90dc3795728577b6a1fca0b711c812
parent1ad8903bb6f8c7f4b77e71f73cb0ea2aa9db2576
Appease the static analyzer

Since the static analyzer assumes that
`head == blockToRemove && blockToRemove->prevBlock == nullptr` may be
true, it complains that we're deleting `head` and returning `head`
shortly afterward.

Assert (without assertions, since -DNDEBUG is passed) that this isn't
the case.

Bug: 27101951
Test: mma. Warning is gone.
Change-Id: I33e98eec7b293fcf0d8826f89c287a3b870758f2
libs/hwui/font/CacheTexture.cpp