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 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.