Commit 6ab6ccb
FTL: Silence warnings for FTL_FAKE_GUARD
Do not return an lvalue reference to avoid warnings like:
warning: returning variable 'mPhysicalDisplays' by reference
requires holding mutex 'mStateLock' exclusively
[-Wthread-safety-reference-return]
The removal of the lambda means that FTL_FAKE_GUARD(m, e) can no longer
be used in a function that REQUIRES(m), which was redundant. Remove one
such instance in SF.
Bug: 354740314
Bug: 185536303
Flag: EXEMPT compile-time change
Test: m surfaceflinger
Merged-In: I35b029885e9c541c1715c280d4f3542de5096145
Change-Id: I35b029885e9c541c1715c280d4f3542de50961451 parent 795c8b3 commit 6ab6ccb
2 files changed
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 79 | + | |
| 80 | + | |
85 | 81 | | |
86 | 82 | | |
87 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6675 | 6675 | | |
6676 | 6676 | | |
6677 | 6677 | | |
6678 | | - | |
| 6678 | + | |
6679 | 6679 | | |
6680 | 6680 | | |
6681 | 6681 | | |
| |||
6695 | 6695 | | |
6696 | 6696 | | |
6697 | 6697 | | |
6698 | | - | |
| 6698 | + | |
6699 | 6699 | | |
6700 | 6700 | | |
6701 | 6701 | | |
| |||
0 commit comments