warning: '/*' within comment
Doug Gwyn
gwyn at smoke.BRL.MIL
Mon Jun 4 06:24:13 AEST 1990
In article <1990Jun1.200433.6919 at druid.uucp> darcy at druid.UUCP (D'Arcy J.M. Cain) writes:
>However I got the same warning. Is there anything in the standard that
>allows the compiler to ignore the quotes while inside a comment.
There is nothing in the standard that prohibits an implementation from
blathering even about the most perfect, portable code.
>After all, quotes are required to be balanced.
No, they are not, and especially not within a comment.
My advice to you is to tell your compiler vendor that you don't
appreciate gratuitous warning messages, and that
/* stuff; /* comment */
is a fairly common usage for avoiding code generation when the
programmer wants to indication an operation that would normally
be necessary, but fortuitously happens to be already taken care
of in a particular case.
More information about the Comp.std.c
mailing list