This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH C/C++] Fix some diagnostics problems
On 06/10/2010 08:47 PM, Jason Merrill wrote:
On 06/10/2010 02:33 AM, Shujing Zhao wrote:
+ permerror (input_location, "member initializer expression "
+ "list treated as compound expression");
expression list treated as compound expression in mem-initializer
+ case ELK_FUNC_CAST:
+ permerror (input_location, "functional cast expression "
+ "list treated as compound expression");
expression list treated as compound expression in functional cast
Ok.
+ warning (OPT_Wmissing_format_attribute,
+ "target of argument passing might be a candidate "
+ "for a format attribute");
parameter might be...
+ warning (OPT_Wmissing_format_attribute,
+ "default argument might be a candidate "
+ "for a format attribute");
parameter might be...
Ok. Fix this part to
+ case ICR_ARGPASS:
+ case ICR_DEFAULT_ARGUMENT:
+ if (fndecl)
+ warning (OPT_Wmissing_format_attribute,
+ "parameter %d of %qD might be a candidate "
+ "for a format attribute", parmnum, fndecl);
+ else
+ warning (OPT_Wmissing_format_attribute,
+ "parameter might be a candidate "
+ "for a format attribute");
+ break;
Committed to trunk at revision 160591.
Thanks
Pearly