Skip to contentSkip to conversation

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

PATCH New Christopher Li 1 participant 1 message Mar 20, 2009 Sparse checker

lore
Share & tools
lore

Christopher Li

author maintainer
#0 lore raw

PATCH 1/1 warning for preprocessor directive in macro Was: Segfault at evaluate.c:341

Quoted 7 lines · Christopher Li

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