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
This commit is contained in:
Dan Albert 2014-12-18 11:50:23 -08:00
parent c43b17f0ad
commit 7279f97ab4

View file

@ -25,13 +25,12 @@ extern int yyparse(Expr** root, int* error_count);
int expect(const char* expr_str, const char* expected, int* errors) { int expect(const char* expr_str, const char* expected, int* errors) {
Expr* e; Expr* e;
int error;
char* result; char* result;
printf("."); printf(".");
int error_count = parse_string(expr_str, &e, &error_count); 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", printf("error parsing \"%s\" (%d errors)\n",
expr_str, error_count); expr_str, error_count);
++*errors; ++*errors;