C++ warnings vs. errors

Mark Mitchell mark@codesourcery.com
Thu Jun 19 22:21:00 GMT 2008


Jonathan Wakely wrote:
> 2008/6/18 Mark Mitchell:
>>> * I don't think the pedwarn in joust() in cp/call.c should be a
>>> permerror, is this a GNU extension?
>>>          if (warn)
>>>            {
>>>              pedwarn ("\
>>> ISO C++ says that these are ambiguous, even \
>>> though the worst conversion for the first is better than \
>>> the worst conversion for the second:");
>>>              print_z_candidate (_("candidate 1:"), w);
>>>              print_z_candidate (_("candidate 2:"), l);
>>>            }
>> Yes, that is a historical GNU extension.  I think this should just be a
>> warning, given that the whole section of code is guarded with !pedantic.
> 
> OK. Should I also get rid of the escaped newlines and rely on string
> concatenation for the text?

It's fine if you want to do that, but I don't think it's important 
either way.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc mailing list