Silences related warning. Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx> --- src/tracefs-sqlhist.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/tracefs-sqlhist.c b/src/tracefs-sqlhist.c index f4dc004..2eb65bd 100644 --- a/src/tracefs-sqlhist.c +++ b/src/tracefs-sqlhist.c @@ -488,14 +488,6 @@ __hidden void *add_number(struct sqlhist_bison *sb, long val) create_number(num, &expr); *num = val; return expr; - - expr = calloc(1, sizeof(expr)); - if (!expr) - return NULL; - - expr->type = EXPR_NUMBER; - expr->number = val; - return expr; } __hidden int table_start(struct sqlhist_bison *sb) -- 2.33.0.153.gba50c8fa24-goog