Commit 860ef88
committed
Disable warning: ignoring temporary created by a constructor declared with 'nodiscard' attribute
```
frameworks/native/services/surfaceflinger/Scheduler/Scheduler.cpp:492:29: error: ignoring tempora
ry created by a constructor declared with 'nodiscard' attribute [-Werror,-Wunused-value]
492 | (std::scoped_lock(mDisplayLock), displayId == mPacesetterDispl
ayId));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
frameworks/native/include/ftl/fake_guard.h:85:72: note: expanded from macro 'FTL_FAKE_GUARD'
85 | FTL_MAKE_FAKE_GUARD(__VA_ARGS__, FTL_FAKE_GUARD2, FTL_FAKE_GUARD1, )(__VA_ARGS__)
| ^~~~~~~~~~~
frameworks/native/include/ftl/fake_guard.h:80:38: note: expanded from macro 'FTL_FAKE_GUARD2'
80 | (android::ftl::FakeGuard(mutex), expr)
| ^~~~
frameworks/native/services/surfaceflinger/Scheduler/Scheduler.cpp:916:27: error: ignoring temporary created by a constructor declared with 'nodiscard' attribute [-Werror,-Wunused-value]
```
Flag: EXEMPT b/369277774
Bug: b/369277774
Change-Id: I6b89de7a127753e435ab70b3ff392e0a84ecc31c1 parent 521e071 commit 860ef88
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
| 489 | + | |
| 490 | + | |
489 | 491 | | |
490 | 492 | | |
491 | 493 | | |
| |||
497 | 499 | | |
498 | 500 | | |
499 | 501 | | |
| 502 | + | |
500 | 503 | | |
501 | 504 | | |
502 | 505 | | |
| |||
912 | 915 | | |
913 | 916 | | |
914 | 917 | | |
| 918 | + | |
| 919 | + | |
915 | 920 | | |
916 | 921 | | |
917 | 922 | | |
| |||
920 | 925 | | |
921 | 926 | | |
922 | 927 | | |
| 928 | + | |
923 | 929 | | |
924 | 930 | | |
925 | 931 | | |
| |||
0 commit comments