This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: warning: multi-line comment (why?)


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]