Commit: 28cf717c04ac33e5110f0c07dea28a920cf71fe3
Parent: 630d78a5b9eed4c5f3a219c93cc000ca8d3187d7
Author: Szymon Janc <szymon.janc@tieto.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-12-11 07:41:07
Tree: ae6ba7f66f899b73bbb8f8234ea55db1f7c71205

sdp: Fix build errors due to unaligned memory access This fix following compilation errors on ARM. CC lib/sdp.lo lib/sdp.c: In function 'sdp_device_record_unregister_binary': lib/sdp.c:2984:11: error: cast increases required alignment of target type [-Werror=cast-align] lib/sdp.c:2984:11: error: cast increases required alignment of target type [-Werror=cast-align] lib/sdp.c: In function 'sdp_device_record_update': lib/sdp.c:3089:11: error: cast increases required alignment of target type [-Werror=cast-align] lib/sdp.c:3089:11: error: cast increases required alignment of target type [-Werror=cast-align] lib/sdp.c: In function 'sdp_process': lib/sdp.c:4139:22: error: cast increases required alignment of target type [-Werror=cast-align] lib/sdp.c:4146:14: error: cast increases required alignment of target type [-Werror=cast-align] lib/sdp.c:4146:14: error: cast increases required alignment of target type [-Werror=cast-align] cc1: all warnings being treated as errors make[1]: *** [lib/sdp.lo] Error 1

Diffstat

M lib/sdp.c | 22 ++++++++++++++++++- - - -

1 files changed, 18 insertions(+), 4 deletions(-)

View Full Diff | Patch