DTC 1.0.0 Release

Olaf Hering olaf at aepfle.de
Sat Aug 11 07:21:29 EST 2007


On Thu, Aug 09, Jon Loeliger wrote:

> As usual, please let me know of any issues with it.

tests/truncated_property.c:45: warning: 'err' is used uninitialized in this function

(untested patch)

---
 tests/truncated_property.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/tests/truncated_property.c
+++ b/tests/truncated_property.c
@@ -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();
 }



More information about the Linuxppc-dev mailing list