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: An unexpected warning (trigraph)


Ryszard Kabatek wrote:-

> int main()
> {
>   const char* str = "<???>";
> }
> 
> 
> I'm wondering about the trigraph warning.

If you don't want it, put a '\' before the 2nd '?' of the trigraph,
i.e.

   const char* str = "<??\?>";

Neil.


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