Re: [PATCH] Re: error, types differ in signedness

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

 



On Mon, Feb 05, 2007 at 05:27:11PM -0500, Pavel Roskin wrote:
> I think any difference between declarations other than missing argument
> names is an example of sloppy coding and should be avoided.

The original warning about pointer signedness difference is simply wrong.

There might be value to have warning about function vs function pointer. 
On the other hand, some attribute can be only specified in function prototype
declares but not the function body.

> I would prefer that sparse emits a specific warning about function vs
> function pointer mismatch.  Even if it doesn't matter, it makes the code
> easier to read and safer to modify.

I did not find a easy way to do it yet.

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