commit | b21c1015fdae404e973bf79c6b5c2fa4f81e436e | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Tue Jun 23 19:23:42 2020 -0700 |
committer | Arian <arian.kulmer@web.de> | Tue Nov 30 18:32:21 2021 +0100 |
tree | 3c7eb671e3ba30c2b086c0313f16bb13fea0b4d1 | |
parent | f7194a6e8aa13f40712840d62d6dd428b50fb4a3 [diff] |
hwc_session: move a break As written, this loop only runs once, which makes clang's new warning unhappy: hardware/qcom/sm8150/display/sdm/libs/hwc2/hwc_session.cpp:934:51: error: loop will run at most once (loop increment never executed) [-Werror,-Wunreachable-code-loop-increment] Chatting with qcom, this appears to be a bug, and the best fix is to move the `break` into the `if`. Bug: 150166387 Test: TreeHugger Change-Id: Icb64eed5b894b9188f5265094587dd802207ba66