warnings appearing during preprocessor string concatenation (##)

"Jamie Risk" <[email protected]> Wed, 5 Mar 2003 15:34:39 -0500
Newsgroups org.kernel.vger.linux-gcc,org.kernel.vger.linux-c-programming,org.kernel.vger.linux-newbie
Message-ID <[email protected]>
I have the following line in my code,

#define FEATURE(select)     feature_structure. ## select ## .member
  ...
   FEATURE(test);

and when I run it through the compiler (gcc 3.2.2 on Linux x86) I get the
_warning_

  file.c:111:32: warning: pasting "." and "test" does not give a valid
preprocessing token
  file.c:111:32: warning: pasting "test" and "." does not give a valid
preprocessing token

If I look at the preprocessor output, (gcc's -E option) it produces what I'm
hoping for, although I'd like to avoid the warning.  Suggestions?

- Jamie

Reply to "gmane.linux.c-programming" or me directly.