commit | fa4eaa63caae8eefa3ca6eba9830be747eb32cd0 | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Tue Jul 18 16:28:28 2017 -0700 |
committer | George Burgess IV <gbiv@google.com> | Tue Jul 18 17:21:28 2017 -0700 |
tree | a1eb9e77cf90dc3795728577b6a1fca0b711c812 | |
parent | 1ad8903bb6f8c7f4b77e71f73cb0ea2aa9db2576 [diff] |
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