[PATCH C/C++] Fix some diagnostics problems
Manuel López-Ibáñez
lopezibanez@gmail.com
Fri Jun 11 09:33:00 GMT 2010
On 11 June 2010 05:59, Shujing Zhao <pearly.zhao@oracle.com> wrote:
>
> + 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
You have to use %qP for parmnum, otherwise the offsets would be
inconsistent with other diagnostics. See a previous error in the same
function.
Manuel.
More information about the Gcc-patches
mailing list