From f5becbb76fbd294b2965fd3093718ac19e2db3c4 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 7 Apr 2003 14:29:19 -0700 Subject: [PATCH] Make the initializer show routine output a dummy instead of being anal and warning. We want warnings to show real problems, not hide them by being too verbose. --- show-parse.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/show-parse.c b/show-parse.c index 21a36691..781b6a0e 100644 --- a/show-parse.c +++ b/show-parse.c @@ -723,6 +723,12 @@ static int show_statement_expr(struct expression *expr) return show_statement(expr->statement); } +static int show_initializer_expr(struct expression *expr) +{ + printf("\t// initializer goes here\n"); + return 0; +} + /* * Print out an expression. Return the pseudo that contains the * variable. @@ -763,8 +769,7 @@ int show_expression(struct expression *expr) case EXPR_BITFIELD: return show_bitfield_expr(expr); case EXPR_INITIALIZER: - warn(expr->pos, "unable to show initializer expression"); - return 0; + return show_initializer_expr(expr); case EXPR_IDENTIFIER: warn(expr->pos, "unable to show identifier expression"); return 0; -- 2.11.4.GIT