Open travisgriggs opened 6 years ago
I think as both start_address and block_size are aligned values, you are safe to use void instead of unsigned char here, so the whole block would be:
void **p_tmp;
void *p_block;
int i;
p_tmp = (void **)fmem->start_addr;
p_block = (unsigned char*)fmem->start_addr + fmem->block_size;
.... loop comes here
But then of course you'll get "pointer of type ‘void *’ used in arithmetic", i've fixed it in this way:
p_block = (unsigned char *)p_block + fmem->block_size;
I'm trying to use tneo in my samd21 (m0+) project. Since I have my own build engine based on python, I'm doing the "build manually" route. One of the options I compile with is
-Wcast-align
. However, doing so is producing the following error:I'm not sure what the best way to get around this is. I can remove that option, but once upon a time, I had convinced myself that was a good thing to check for.