Skip to content

Commit

Permalink
Remove an uninitialized value.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
DanAlbert committed Dec 18, 2014
1 parent c43b17f commit 7279f97
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions edify/main.c
Expand Up @@ -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;
Expand Down

0 comments on commit 7279f97

Please sign in to comment.