Re: dtc: Enable and fix -Wpointer-arith warnings

2008-07-14 Thread Jon Loeliger
> This patch turns on the -Wpointer-arith option in the dtc Makefile, > and fixes the resulting warnings due to using (void *) in pointer > arithmetic. While convenient, pointer arithmetic on void * is not > portable, so it's better that we avoid it, particularly in libfdt. > > Signed-off-by: Dav

dtc: Enable and fix -Wpointer-arith warnings

2008-07-06 Thread David Gibson
This patch turns on the -Wpointer-arith option in the dtc Makefile, and fixes the resulting warnings due to using (void *) in pointer arithmetic. While convenient, pointer arithmetic on void * is not portable, so it's better that we avoid it, particularly in libfdt. Signed-off-by: David Gibson <[