On Fri, Jul 8, 2011 at 12:42 PM, Øyvind Harboe <oyvind.har...@zylin.com> wrote: >> I still can not reproduce a problem - it buidls just fine. No warnings >> whatsoever. > > > libtool: compile: nios2-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. > -I/home/oyvind/workspace/zy1000/build/../openocd/src/target -I../.. > -I/home/oyvind/workspace/zy1000/build/../openocd/src -I../../src > -DPKGDATADIR=\"/opt/zy1000/share/openocd\" > -DPKGLIBDIR=\"/opt/zy1000/lib/openocd\" -O3 -g > -I/home/oyvind/nios2-linux/uClinux-dist/staging/usr/include > -I/opt/zy1000/include -Wall -Wstrict-prototypes -Wformat-security > -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast > -Wcast-align -Wredundant-decls -Werror -MT mips_m4k.lo -MD -MP -MF > .deps/mips_m4k.Tpo -c > /home/oyvind/workspace/zy1000/build/../openocd/src/target/mips_m4k.c > -o mips_m4k.o > cc1: warnings being treated as errors > /home/oyvind/workspace/zy1000/build/../openocd/src/target/mips_m4k.c: > In function 'mips_m4k_read_memory': > /home/oyvind/workspace/zy1000/build/../openocd/src/target/mips_m4k.c:880: > warning: cast increases required alignment of target type > /home/oyvind/workspace/zy1000/build/../openocd/src/target/mips_m4k.c:884: > warning: cast increases required alignment of target type > /home/oyvind/workspace/zy1000/build/../openocd/src/target/mips_m4k.c: > In function 'mips_m4k_write_memory': > /home/oyvind/workspace/zy1000/build/../openocd/src/target/mips_m4k.c:933: > warning: cast increases required alignment of target type > /home/oyvind/workspace/zy1000/build/../openocd/src/target/mips_m4k.c:937: > warning: cast increases required alignment of target type > /home/oyvind/workspace/zy1000/build/../openocd/src/target/mips_m4k.c: > In function 'mips_m4k_bulk_write_memory': > /home/oyvind/workspace/zy1000/build/../openocd/src/target/mips_m4k.c:1077: > warning: cast increases required alignment of target type
OK, I was looking at mips32_pracc.c, but actually it is this in mips_m4k.c : for(i = 0; i < (count*size); i += size) { switch(size) { case 4: t32 = *(uint32_t*)&buffer[i]; target_buffer_set_u32(target,&buffer[i], t32); break; case 2: t16 = *(uint16_t*)&buffer[i]; target_buffer_set_u16(target,&buffer[i], t16); break; } } that casts void* buf to uint32_t*. BR, Drasko _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development