]> git.sur5r.net Git - u-boot/commit
dtc: Enable and fix -Wcast-qual warnings
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 7 Jul 2008 00:14:15 +0000 (10:14 +1000)
committerGerald Van Baren <vanbaren@cideas.com>
Mon, 25 Aug 2008 02:20:49 +0000 (22:20 -0400)
commitc66830263af19831f2b7db307f79d1943febf7f9
treeabb2037bd454ea11f56c527ad52c66bbc7291681
parentef4e8ce1beb5b93aedda5a4c1b90bfd989c6791e
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>
Acked-by: Gerald Van Baren <vanbaren@cideas.com>
include/libfdt.h
libfdt/fdt_ro.c
libfdt/fdt_rw.c
libfdt/libfdt_internal.h