On Thu, Jul 7, 2011 at 11:52 AM, Øyvind Harboe <oyvind.har...@zylin.com> wrote: > 011/7/7 Mahr, Stefan <stefan.m...@sphairon.com>: >> Øyvind Harboe wrote: >>> It is not obvious at all from the context that there is an alignment >>> guarantee. >> >> If alignment is not guaranteed, casting from uint32 to void would cause >> problems too, wouldn't it? > > Why? > >> http://openocd.git.sourceforge.net/git/gitweb.cgi?p=openocd/openocd;a=blob;f=src/target/mips32_pracc.c;h=af60d321638652aad0a52a573add2aceacbfb7d9;hb=HEAD#l310 > > > => this is strange, why cast to uint8_t ? > > return mips32_pracc_read_mem16(ejtag_info, addr, count, (uint8_t*)buf);
There is no particular need to cast this into uint8_t* and this can be kept as a void*. Would that suppress the warnings ? BR, Drasko _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development