Re: [PATCH] remove warning "call with no type"

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

 



On Wed, Jan 31, 2018 at 2:40 AM, Luc Van Oostenryck
<luc.vanoostenryck@xxxxxxxxx> wrote:
> 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.

The change looks fine to me. This the change assume the
expr->ctype be NULL is result of an error and has been reported
before. I am sure that assumption holds for most of the cases. Not
sure it holds for all corner cases. On the other hand, if the expr->ctype
is NULL, it is already screwed, change it to VOID is not too bad.

Chris
--
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