Re: Possible bug with _Static_assert & sparse

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

 



On Wed, Jul 30, 2014 at 10:32 AM, Mike Holmes <mike.holmes@xxxxxxxxxx> wrote:
> Hi
>
> I wondered if the following sparse error indication was expected
> behaviour or if it is a bug,
> I would not expect sparse to error with "got 9"
>
>
> $ cat static.c
> #include <stdio.h>
>
> #define fake 9
> _Static_assert( fake > 8, "test message");

_Static_assert is a C11 thing?
The current sparse know nothing about _Static_assert().
So it treat it as a function declare.

Patch are welcome if any one want to give it a try.

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