diff options
| author | 2024-10-10 13:47:44 -0700 | |
|---|---|---|
| committer | 2024-10-10 13:47:44 -0700 | |
| commit | 860ef88023a1a4f3fe4629d5a5d23453a106ec86 (patch) | |
| tree | 449eb7a103e10d731bb61959dacfd2f904f70d25 /libs/gui/ConsumerBase.cpp | |
| parent | 521e071ad05a63b629560de6deb4c4c9aa63b2d6 (diff) | |
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: I6b89de7a127753e435ab70b3ff392e0a84ecc31c
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions