Re: dtc: Enable and fix -Wcast-qual warnings

2008-07-14 Thread Jon Loeliger
> Enabling -Wcast-qual warnings in dtc shows up a number of places where > we are incorrectly discarding a const qualification. There are also > some places where we are intentionally discarding the 'const', and we > need an ugly cast through uintptr_t to suppress the warning. However, > most of

dtc: Enable and fix -Wcast-qual warnings

2008-07-06 Thread David Gibson
Enabling -Wcast-qual warnings in dtc shows up a number of places where we are incorrectly discarding a const qualification. There are also some places where we are intentionally discarding the 'const', and we need an ugly cast through uintptr_t to suppress the warning. However, most of these are