Avoid C-style cast warnings
hardware/libhardware/include was being included with -isystem, which hides warnings. Use a macro to convert modules to hw_device_t** to call the open function that works in C++ and C. Bug: 32018017 Test: m -j Change-Id: If68bf15581975f1217fcab366cef7bc784894641
This commit is contained in:
@@ -124,7 +124,7 @@ static inline int sound_trigger_hw_device_open(const struct hw_module_t* module,
|
||||
struct sound_trigger_hw_device** device)
|
||||
{
|
||||
return module->methods->open(module, SOUND_TRIGGER_HARDWARE_INTERFACE,
|
||||
(struct hw_device_t**)device);
|
||||
TO_HW_DEVICE_T_OPEN(device));
|
||||
}
|
||||
|
||||
static inline int sound_trigger_hw_device_close(struct sound_trigger_hw_device* device)
|
||||
|
||||
Reference in New Issue
Block a user