This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Warning for trigraphs in comment?
>>>>> "Gabriel" == Gabriel Dos Reis <gdr@integrable-solutions.net> writes:
Gabriel> Paul Koning <pkoning@equallogic.com> writes:
>> Oh. So it looks like what's needed is to have -ansi NOT imply
>> -trigraphs.
Gabriel> I'm not sure we are talking about the same thing.
I was responding to your comment that "the real fix is to remove
trigraphs from the standard". Indeed it is, but until then, making it
maximally hard to turn them on would be a start.
Gabriel> What is happening with current GCC in production use is that
Gabriel> GCC choosed NOT to warn for trigraphs in comment even if
Gabriel> -Wtrigraph.
I'm guessing that you didn't say -trigraph, but rather that you got it
implicitly because you said -ansi. That's where my suggestion came
from.
paul