Commit 95fd424
committed
Disable -Wunused-value for surfaceflinger
```
frameworks/native/services/surfaceflinger/Display/DisplayModeController.cpp:293:14: error: ignoring temporary created by a constructor declared with 'nodiscard' attribute [-Werror,-Wunused-value]
293 | (std::scoped_lock(displayPtr->desiredModeLock), displayPtr->desiredModeOpt)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
Change-Id: I5e84dbd628f5c03f5e325f5ccc5d365d2f40c9dd
Flag: EXEMPT b/369277774
Bug: b/369277774
(cherry picked from commit 4648b7e)1 parent 37f5490 commit 95fd424
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| 286 | + | |
| 287 | + | |
286 | 288 | | |
287 | 289 | | |
288 | 290 | | |
| |||
298 | 300 | | |
299 | 301 | | |
300 | 302 | | |
| 303 | + | |
301 | 304 | | |
0 commit comments