Re: [PATCH] Null ctype should have ptr_ctype as its base type.

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

 



On Sun, Dec 28, 2008 at 7:14 AM, Alexey Zaytsev
<alexey.zaytsev@xxxxxxxxx> wrote:

> So, we are getting a sizeof(NULL), or a sizeof((void *)0). It triggers here

That is my fault. My test for void type should have been more careful.

> because we are getting a null_ctype, and it's base_type points to
> void_ctype. I'm not sure if this patch is correct, but it seems to do
> the trick, all void warnings are gone. Christopher?

No, that is not the right way to fix it. Now you declare NULL as pointer
to a pointer type "(void**) 0".

Thanks for finding it out. Does my patch work for you?

Chris

Attachment: 0001-Correct-testing-for-void-type.patch
Description: Binary data


[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