mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
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:
parent
ed0117a0c0
commit
bf94497031
5 changed files with 9 additions and 9 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue