android/hal-bluetooth: Fix unaligned struct access
authorBastien Nocera <hadess@hadess.net>
Thu, 9 May 2019 12:37:45 +0000 (14:37 +0200)
committerhimanshu <h.himanshu@samsung.com>
Tue, 11 Feb 2020 08:57:47 +0000 (14:27 +0530)
commit5bd0b38b857e9404c11143feb33d39973d42fd09
tree7c13f4ed2e54febd9feee60bc22b4af285cb0f98
parent48427844804ef279b57a29f1e016eb7f0e8b4e53
android/hal-bluetooth: Fix unaligned struct access

android/hal-bluetooth.c: In function ‘set_adapter_property’:
android/hal-bluetooth.c:659:46: error: taking address of packed member of ‘struct hal_cmd_set_adapter_prop’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
  659 |  adapter_prop_from_hal(property, &cmd->type, &cmd->len, cmd->val);
      |                                              ^~~~~~~~~

Change-Id: Ic6714f8657c5f7f6f7a72a7aaaff26fcb63d93f5
Signed-off-by: himanshu <h.himanshu@samsung.com>
android/hal-bluetooth.c