From d8e1d038b3e77fdcec01e662dc9bc6708ebcd24c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Fri, 6 May 2011 12:47:21 +0200 Subject: Fix two warnings from Clang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both are about not reading the value stored in a variable. Signed-off-by: Carlos Martín Nieto --- src/commit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commit.c') diff --git a/src/commit.c b/src/commit.c index 0c37ec59b..54d7a47fe 100644 --- a/src/commit.c +++ b/src/commit.c @@ -286,7 +286,7 @@ int commit_parse_buffer(git_commit *commit, const void *data, size_t len) if (buffer < buffer_end) { const char *line_end; - size_t message_len = buffer_end - buffer; + size_t message_len; /* Long message */ message_len = buffer_end - buffer; -- cgit v1.2.1