On Mon, Aug 29, 2016 at 04:25:25PM +0200, Tobias Burnus wrote:
> Prathamesh Kulkarni wrote:
> > Attachment: pr35503-3.txt
> 
> I tried the patch - and it found a bug in our code; nice!
> 
> 
> (a) Regarding the [-Werror] output:
> 
>    error: passing argument 24 to restrict qualified parameter aliases with 
> argument 29 [-Werror]
> 
> Shouldn't that output "[-Werror=restrict]" instead of a bare "[-Werror]? 
> Namely, instead of
> 
> +     warning_at (loc, 0,
> +                 "passing argument %u to restrict qualified parameter 
> aliases with "
> +                 "argument %u", param_pos + 1, i + 1);
> 
> I think one gets this with
>         warning_at (loc, OPT_Wrestrict, ...
 
Yes, this needs to be fixed in the patch.

        Marek

Reply via email to