OSDN Git Service

avrcp: Fix compilation errors due to unaligned memory access
authorSzymon Janc <szymon.janc@tieto.com>
Tue, 4 Sep 2012 14:41:31 +0000 (16:41 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 5 Sep 2012 09:30:15 +0000 (12:30 +0300)
commit149396765c0acead51ce798a5ca0a27b62174079
treedd658fb33b610de1bf818e85419f8a45104f4560
parentb3fa97f8e7ad03dd181abdfc586264b2219fc4b8
avrcp: Fix compilation errors due to unaligned memory access

This fix following build errors on ARM.

  CC     audio/bluetoothd-avrcp.o
audio/avrcp.c: In function avrcp_handle_get_element_attributes:
audio/avrcp.c:667:25: error: cast increases required alignment of
target type [-Werror=cast-align]
audio/avrcp.c:690:20: error: cast increases required alignment of
target type [-Werror=cast-align]
cc1: all warnings being treated as errors
make[1]: *** [audio/bluetoothd-avrcp.o] Error 1
make: *** [all] Error 2
audio/avrcp.c