Commit 36786db6 authored by David Gibson's avatar David Gibson Committed by Jon Loeliger
Browse files

dtc: Enable and fix -Wpointer-arith warnings



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: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 76e0622b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment