aboutsummaryrefslogtreecommitdiff
path: root/dtc.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2007-08-31 16:21:23 +1000
committerJon Loeliger <jdl@freescale.com>2007-08-31 08:34:18 -0500
commitbf944970317820867895680cf0e2c4e72eefa8b1 (patch)
tree21477a6f99c64345eaf91296056379d560d9564f /dtc.c
parented0117a0c059ec0e1257573b0850081787bd651d (diff)
downloaddtc-bf944970317820867895680cf0e2c4e72eefa8b1.tar.gz
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.
Diffstat (limited to 'dtc.c')
-rw-r--r--dtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dtc.c b/dtc.c
index ecd9fe5..8f5fe2f 100644
--- a/dtc.c
+++ b/dtc.c
@@ -71,7 +71,7 @@ void fill_fullpaths(struct node *tree, char *prefix)
fill_fullpaths(child, tree->fullpath);
}
-static void usage(void)
+static void __attribute__ ((noreturn)) usage(void)
{
fprintf(stderr, "Usage:\n");
fprintf(stderr, "\tdtc [options] <input file>\n");