From 7279f97ab492094810a4bc88f81d53b5e8c4bb74 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Thu, 18 Dec 2014 11:50:23 -0800 Subject: Remove an uninitialized value. The assignment of this value was removed in 0d32f25, but the declaration was still there and still tested. Clang issues a warning for this. Change-Id: I748bfb8b4f78ceed1c1b5b1bb80cb4e873e4facc --- edify/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'edify') diff --git a/edify/main.c b/edify/main.c index b3fad53..b1baa0b 100644 --- a/edify/main.c +++ b/edify/main.c @@ -25,13 +25,12 @@ extern int yyparse(Expr** root, int* error_count); int expect(const char* expr_str, const char* expected, int* errors) { Expr* e; - int error; char* result; printf("."); int error_count = parse_string(expr_str, &e, &error_count); - if (error > 0 || error_count > 0) { + if (error_count > 0) { printf("error parsing \"%s\" (%d errors)\n", expr_str, error_count); ++*errors; -- cgit v1.1