This is the mail archive of the
mailing list for the GCC project.
Re: An unexpected warning (trigraph)
- To: Ryszard Kabatek <Ryszard dot Kabatek at softax dot pl>
- Subject: Re: An unexpected warning (trigraph)
- From: Robert Lipe <robertlipe at usa dot net>
- Date: Wed, 23 May 2001 08:49:36 -0500
- Cc: gcc at gcc dot gnu dot org
- References: <3B0B8C51.1752CDF2@softax.pl>
Ryszard Kabatek wrote:
> x.cc:3:24: warning: trigraph ??> ignored
> x.cc: In function `int main()':
> x.cc:3: warning: unused variable `const char*str'
> int main()
> const char* str = "<???>";
Trigraphs are part of standard C and presumably standard c++. They
provide a way of representing characters not present on all keyboards.
(Think international keyboards, in particular.)
See invoke.texi and search for trigraph.
Mostly they serve to head-screw programmers...