From 404a8fc038037d1775861b9f7c921ada7c91c7d6 Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Thu, 12 Aug 2004 19:22:22 -0700 Subject: [PATCH] [PATCH] fix double warnings in inline calls Fix double warnings on type mismatch in inline arguments; once we'd got a warning, cast the damn thing and be done with that. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- evaluate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evaluate.c b/evaluate.c index bcd0493a..8d6d4ff8 100644 --- a/evaluate.c +++ b/evaluate.c @@ -892,10 +892,10 @@ static int compatible_assignment_types(struct expression *expr, struct symbol *t } } - // FIXME!! Cast it? warn(expr->pos, "incorrect type in %s (%s)", where, typediff); info(expr->pos, " expected %s", show_typename(target)); info(expr->pos, " got %s", show_typename(source)); + *rp = cast_to(*rp, target); return 0; Cast: *rp = cast_to(*rp, target); -- 2.11.4.GIT