From ad4f54ae2b67ddcd4d128fd4b5c21c66a640d237 Mon Sep 17 00:00:00 2001 From: Scott Wood Date: Thu, 3 Jan 2008 17:43:33 -0600 Subject: Return a non-zero exit code if an error occurs during dts parsing. Previously, only failure to parse caused the reading of the tree to fail; semantic errors that called yyerror() but not YYERROR only emitted a message, without signalling make to stop the build. Signed-off-by: Scott Wood --- livetree.c | 1 + 1 file changed, 1 insertion(+) (limited to 'livetree.c') diff --git a/livetree.c b/livetree.c index 6ba0846..7610e78 100644 --- a/livetree.c +++ b/livetree.c @@ -172,6 +172,7 @@ struct boot_info *build_boot_info(struct reserve_info *reservelist, bi = xmalloc(sizeof(*bi)); bi->reservelist = reservelist; bi->dt = tree; + bi->error = 0; return bi; } -- cgit v1.1