]> git.sur5r.net Git - openocd/commit
stlink: fix alignment build warning
authorAlexandre Pereira da Silva <aletes.xgr@gmail.com>
Fri, 24 Feb 2012 20:51:48 +0000 (18:51 -0200)
committerSpencer Oliver <spen@spen-soft.co.uk>
Wed, 14 Mar 2012 22:23:43 +0000 (22:23 +0000)
commit7151398cff16129764c79038a2701322f62da883
tree7f18efbbc4c11b248510e7bce416df0d6db9aa36
parent4a29a4a86d4ec3e12a9494371c80ace1b8ebedab
stlink: fix alignment build warning

The {read,write}_mem32 interface functions was asking a 32 bits buffer
but they don't need 32 bits alignment.
This will change the interface to a 8 bits buffer to remove the
alignment mismatch warning. This was causing build errors on platforms
with strict aliasing rules.

Change-Id: I338be8df5686f07a64ddb4f17c1bb494af583999
Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
Reviewed-on: http://openocd.zylin.com/483
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/jtag/drivers/stlink_usb.c
src/jtag/stlink/stlink_layout.h
src/target/stm32_stlink.c