From: "Jamie Risk" <jamie_risk@yahoo.ca>
To: linux-gcc@vger.kernel.org
Cc: linux-newbie@vger.kernel.org, linux-c-programming@vger.kernel.org
Subject: warnings appearing during preprocessor string concatenation (##)
Date: Wed, 5 Mar 2003 15:34:39 -0500 [thread overview]
Message-ID: <b45mva$re8$2@main.gmane.org> (raw)
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.
next reply other threads:[~2003-03-05 20:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-05 20:34 Jamie Risk [this message]
2003-03-06 13:10 ` warnings appearing during preprocessor string concatenation (##) Robert Schiele
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='b45mva$re8$2@main.gmane.org' \
--to=jamie_risk@yahoo.ca \
--cc=linux-c-programming@vger.kernel.org \
--cc=linux-gcc@vger.kernel.org \
--cc=linux-newbie@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.