This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: warning: multi-line comment (why?)
- To: Craig Rodrigues <rodrigc at mediaone dot net>
- Subject: Re: warning: multi-line comment (why?)
- From: Jan Dvorak <johnydog at go dot cz>
- Date: Mon, 18 Sep 2000 01:11:58 +0200
- Cc: gcc at gcc dot gnu dot org
- Organization: (XNET.cz)
- References: <20000917185453.A14829@mediaone.net>
On Sun, Sep 17, 2000 at 06:54:53PM -0400, Craig Rodrigues wrote:
> If I have the following code:
> ====================================================================
> // Some comment
> // \
^^
> // Some more comment
>
char '\' at end of line is threaten as that statement is continuing on next
line. '//' comments is mentioned for one line only, and for multiline
comments the right way is '/* */'.
And the warning comes from preprocesor intself - try 'cpp -Wall ./source.c'.
Jan Dvorak <johnydog@go.cz>