diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-09-03 22:49:37 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-09-20 13:12:35 +0200 |
commit | f6a3fc818bc6a24b6c5bbcc6057f72d2b0b2e2ab (patch) | |
tree | 2b9430c70669a47b3503e00612b68238a70a3ea9 /src/helper | |
parent | 32ab98c9e9672d0f1d8758c7dfb478b0316c13af (diff) | |
download | riscv-openocd-f6a3fc818bc6a24b6c5bbcc6057f72d2b0b2e2ab.zip riscv-openocd-f6a3fc818bc6a24b6c5bbcc6057f72d2b0b2e2ab.tar.gz riscv-openocd-f6a3fc818bc6a24b6c5bbcc6057f72d2b0b2e2ab.tar.bz2 |
warnings: fix alignment warnings
These warnings are for architectures that do not
support non-aligned word access.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/types.h b/src/helper/types.h index 1010dcd..04b0059 100644 --- a/src/helper/types.h +++ b/src/helper/types.h @@ -80,7 +80,7 @@ typedef bool _Bool; */ #define container_of(ptr, type, member) ({ \ const typeof( ((type *)0)->member ) *__mptr = (ptr); \ - (type *)( (char *)__mptr - offsetof(type,member) );}) + (type *)( (void *) ( (char *)__mptr - offsetof(type,member) ) );}) /** |