commit | 248ec3da8be61befd19f6c01019a4243edc8c319 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Thu Oct 06 16:53:00 2016 -0700 |
committer | Colin Cross <ccross@android.com> | Fri Oct 07 13:10:07 2016 -0700 |
tree | eecf9927862e048a6135fe505ba0144cac3b65c1 | |
parent | 867e1e3043c230d7a19027bcad5bd66114f06a4d [diff] |
Fix enum switch warnings hardware/libhardware/include was being included with -isystem, which hides warnings. -Wswitch requires that all cases in a switch statement on an enum be enum values. For enums being used as bit flags, cast the enum to an int. Bug: 32018017 Test: m -j Change-Id: Idb430c451d017bb7ec61a7119d6abd87b6dcdc87