From 7d90f3c7149d3cb915075264e1c70250ba81fbe9 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 17 Nov 2012 16:57:49 +0100 Subject: [PATCH] sval: uninitialized variable warning This fixes a compiler warning triggered by building the smatch source code with gcc 4.7.1. Signed-off-by: Bart Van Assche --- smatch_math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smatch_math.c b/smatch_math.c index 92385156..b88980b5 100644 --- a/smatch_math.c +++ b/smatch_math.c @@ -74,7 +74,7 @@ static sval_t handle_expression_statement(struct expression *expr, int *undefine stmt = get_expression_statement(expr); if (!last_stmt_sval(stmt, &ret)) { *undefined = 1; - ret.value = BOGUS; + ret = bogus; } return ret; -- 2.11.4.GIT