OSDN Git Service

monitor: Fix build errors due to unaligned memory access
authorSzymon Janc <szymon.janc@tieto.com>
Fri, 23 Nov 2012 10:09:13 +0000 (11:09 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 11 Dec 2012 05:41:08 +0000 (07:41 +0200)
commitf4ececd75a1aeb3303ff88421a40699442a0edb2
treee9ba5d25d55569d2e5b3053abf74b5949c0c1055
parent28cf717c04ac33e5110f0c07dea28a920cf71fe3
monitor: Fix build errors due to unaligned memory access

This fix following compilation errors on ARM.

  CC     monitor/hcidump.o
monitor/hcidump.c: In function ‘device_callback’:
monitor/hcidump.c:147:11: error: cast increases required alignment of
target type [-Werror=cast-align]
monitor/hcidump.c:150:10: error: cast increases required alignment of
target type [-Werror=cast-align]
monitor/hcidump.c: In function ‘stack_internal_callback’:
monitor/hcidump.c:348:9: error: cast increases required alignment of
target type [-Werror=cast-align]
cc1: all warnings being treated as errors
make[1]: *** [monitor/hcidump.o] Error 1

  CC     monitor/control.o
monitor/control.c: In function ‘data_callback’:
monitor/control.c:584:10: error: cast increases required alignment of
target type [-Werror=cast-align]
cc1: all warnings being treated as errors
make[1]: *** [monitor/control.o] Error 1
monitor/control.c
monitor/hcidump.c