This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] trigraphs
Matt Austern wrote:-
> t2.c:1:49: warning: trigraph ??! ignored
> Notice that we're getting this warning even without -Wall.
>
> You're almost right in thinking that this only happens in string
> literals.
> The other place it comes up is in multicharacter constants.
> Unfortunately, '????' is a useful placeholder constant in certain kinds
> of MacOS programming.
I now remember that we had a PR about -Wtrigraph being the default earlier
this year, which was argued at length. The conclusion was that warning
is good if it can change the meaning of a program. So this decision is
deliberate, and not unreasonable IMO.
If you don't like it, please just quote the 2nd question mark, or
disable it in Apple's GCC. This debate will go on forever otherwise.
Neil.