[PATCH] remove warning "call with no type"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This warning is issued when trying to linearize a call
expressions with a null expr->ctype but such null ctype
is a consequence of an error detected during evaluation
and this error must already have issued a warning or an
error message specific to the problem.

In short, this "call with no type" is non-informative
and redundant, so avoid usless noise and remove this
warning.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 linearize.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/linearize.c b/linearize.c
index 898acac88..739fc7c07 100644
--- a/linearize.c
+++ b/linearize.c
@@ -1273,10 +1273,8 @@ static pseudo_t linearize_call_expression(struct entrypoint *ep, struct expressi
 	struct symbol *fntype;
 	struct context *context;
 
-	if (!expr->ctype) {
-		warning(expr->pos, "call with no type!");
+	if (!expr->ctype)
 		return VOID;
-	}
 
 	fn = expr->fn;
 	fntype = fn->ctype;
-- 
2.16.0

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux