dtc: Optimise by default, fix warnings thus uncovered

This patch turns on optimisation in the Makefile by default.  With the
optimizer on, some uninitialized variable warnings (one real, two
bogus) are now generated.  This patch also squashes those again.
This commit is contained in:
David Gibson 2007-08-31 16:21:23 +10:00 committed by Jon Loeliger
parent ed0117a0c0
commit bf94497031
5 changed files with 9 additions and 9 deletions

View file

@ -33,7 +33,6 @@ int main(int argc, char *argv[])
{
void *fdt = &_truncated_property;
const void *prop;
int err;
int len;
test_init(argc, argv);
@ -43,7 +42,7 @@ int main(int argc, char *argv[])
FAIL("fdt_getprop() succeeded on truncated property");
if (len != -FDT_ERR_BADSTRUCTURE)
FAIL("fdt_getprop() failed with \"%s\" instead of \"%s\"",
fdt_strerror(err), fdt_strerror(-FDT_ERR_BADSTRUCTURE));
fdt_strerror(len), fdt_strerror(-FDT_ERR_BADSTRUCTURE));
PASS();
}