[Crosstoolchain-logs] [device-tree-compiler] 04/29: tests: Correct warning in sw_tree1.c
Vagrant Cascadian
vagrant at moszumanska.debian.org
Tue Jan 23 06:34:37 UTC 2018
This is an automated email from the git hooks/post-receive script.
vagrant pushed a commit to branch debian/master
in repository device-tree-compiler.
commit b0ae9e4b0ceb3b9e220bcca0f7434923781ad715
Author: David Gibson <david at gibson.dropbear.id.au>
Date: Thu Oct 26 09:08:29 2017 +0200
tests: Correct warning in sw_tree1.c
At least some clang versions (correctly) warn that 'size' is used
unititialized, if sw_tree1 is invoked with argc > 2. This corrects the
warning.
Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
tests/sw_tree1.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/sw_tree1.c b/tests/sw_tree1.c
index 6a338fc..386b05f 100644
--- a/tests/sw_tree1.c
+++ b/tests/sw_tree1.c
@@ -111,6 +111,8 @@ int main(int argc, char *argv[])
CONFIG("Bad allocation mode \"%s\" specified",
argv[1]);
}
+ } else {
+ CONFIG("sw_tree1 <dtb file> [<allocation mode>]");
}
fdt = xmalloc(size);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git
More information about the Crosstoolchain-logs
mailing list