This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] Fix more -Wc++-compat warnings
On Sat, 2009-06-27 at 22:46 +0200, Eric Botcazou wrote:
> > Index: gcc/ada/tb-gcc.c
> > ===================================================================
> > --- gcc/ada/tb-gcc.c (revision 149013)
> > +++ gcc/ada/tb-gcc.c (working copy)
> > @@ -82,7 +82,7 @@
> > if (uw_data->n_entries_filled >= uw_data->max_len)
> > return _URC_NORMAL_STOP;
> >
> > - if (pc < uw_data->exclude_min || pc > uw_data->exclude_max)
> > + if (pc < (char *)uw_data->exclude_min || pc > (char
> > *)uw_data->exclude_max) uw_data->traceback [uw_data->n_entries_filled ++] =
> > pc + PC_ADJUST;
> >
> > return _URC_NO_REASON;
>
> Thanks, please apply.
Done as revision 149018 with ChangeLog below.
Laurent
2009-06-27 Laurent GUERBY <laurent@guerby.net>
* tb-gcc.c (trace_callback): Add casts to silence warning.