From: Jonathan Nieder Date: Wed, 16 Mar 2011 11:37:50 GMT Subject: [PATCH 5/6] wt-status: protect against invalid change_type Message-ID: <20110316113750.GG15739@elie> In-Reply-To: <20110316113540.GB15739@elie> Noticed with gcc -Wuninitialized. Signed-off-by: Jonathan Nieder --- wt-status.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/wt-status.c b/wt-status.c index 3298897..25a411b 100644 --- a/wt-status.c +++ b/wt-status.c @@ -181,6 +181,8 @@ static void wt_status_print_change_data(struct wt_status *s, } status = d->worktree_status; break; + default: + die("BUG: invalid change_type"); } one = quote_path(one_name, -1, &onebuf, s->prefix); -- 1.7.4.1