[Patch] warning for preprocessor directive in macro Was: Segfault at evaluate.c:341

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

 



On Thu, Mar 19, 2009 at 4:11 PM, Christopher Li <sparse@xxxxxxxxxxx> wrote:
> Thanks Al,
>
> I will apply it later tonight.
>
> If no one beats to me, I will try to add the warning for using preprocessor
> directive inside macro expansion. It should be a better error message
> than the current one.

OK, attached patch generate warning like this:

macro-argument-ifdef.c:10:1: warning: invalid usage of "#ifdef" in
macro argument

The wording of the error message can be improved. Any suggestion?

Chris

Attachment: warn-macro-argument-ifdef
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