From ecd2ef112f101a03dda582401d58080cd7c7c43d Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 17 Jan 2010 21:30:27 +0100 Subject: [PATCH] [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. --- buffer_tree.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.2