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