From: Andre Noll Date: Sun, 17 Jan 2010 20:30:27 +0000 (+0100) Subject: [btr]: Avoid a gcc warning. X-Git-Tag: v0.4.2~82 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=ecd2ef112f101a03dda582401d58080cd7c7c43d [btr]: Avoid a gcc warning. Although the warning warning: 'brs[1]' may be used uninitialized in this function is clearly bogus, it can't hurt to assert that i == 2 which also makes the warning to away. --- diff --git a/buffer_tree.c b/buffer_tree.c index 0ffe6246..aff03444 100644 --- a/buffer_tree.c +++ b/buffer_tree.c @@ -849,6 +849,7 @@ static int merge_input(struct btr_node *btrn) if (i == 2) break; } + assert(i == 2); /* make a new btrb that combines the two buffers and a br to it. */ sz = szs[0] + szs[1]; buf = para_malloc(sz);