diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2008-07-07 10:14:15 +1000 |
---|---|---|
committer | Jon Loeliger <jdl@jdl.com> | 2008-07-14 12:36:08 -0500 |
commit | 1409097db8be6ba662e3808654671554c5803bf0 (patch) | |
tree | 1ec978e791206ecb3bf2d820022059662eb6eaf8 /checks.c | |
parent | 36786db6154533b67d736b414ef63b4457009326 (diff) | |
download | dtc-1409097db8be6ba662e3808654671554c5803bf0.tar.gz |
dtc: Enable and fix -Wcast-qual warnings
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 pretty well isolated with the *_w() functions. So
in the interests of maximum safety with const qualifications, this
patch enables the warnings and fixes the existing complaints.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'checks.c')
0 files changed, 0 insertions, 0 deletions