diff options
| author | 2016-09-30 17:24:06 -0700 | |
|---|---|---|
| committer | 2016-10-05 09:55:41 -0700 | |
| commit | b1f30bae12a0df810a62f819ab3ac680b00768b9 (patch) | |
| tree | f1eff573c55bee67297d56241853f74ea4aa1186 /libs/gui/ConsumerBase.cpp | |
| parent | c72b9a3ce4e6aebdbd59e5e98450856213dc3b8b (diff) | |
Fix anonymous struct and union warnings
gui/BufferItem.h and android/sensor.h uses anymous structs and nested
anonymous unions, which are GNU extensions. sensor.h uses them as part
of its API, so disable the warnings in libgui, the only module that
tries to use it with -Weverything. BufferItem.h only uses the unioned
fields inside libgui, remove the union and do the 64-bit to 32-bit
slicing manually so libvulkan doesn't need the warnings disabled.
Bug: 31752268
Test: m -j
Change-Id: I92d59b1202f4d6e5419edaa6d27b6e1c50ac0042
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions