[patch, fortran] PR40290, disable warning on internal type conversion
Jerry DeLisle
jvdelisle@verizon.net
Fri Dec 11 21:00:00 GMT 2009
Daniel Franke wrote:
> Hi all,
>
> the flag -Wconversion warns about REAL OP COMPLEX, when REAL is promoted to
> COMPLEX. This is an implementation detail and should not be exposed to the
> user. Hence, attached patch disables that warning.
>
>
> 2009-12-11 Daniel Franke <franke.daniel@gmail.com>
>
> PR fortran/40290
> * expr.c (gfc_type_convert_binary): Added warn-on-conversion flag,
> passed on to gfc_convert_type_warn() instead of gfc_convert_type();
> enabled warnings on all callers but ...
> * arith.c (eval_intrinsic): Disabled warnings on implicit type
> conversion.
> * gfortran.h gfc_type_convert_binary): Adjusted prototype.
>
>
> Regression tested on i686-pc-linux-gnu. Ok for trunk?
>
OK.
Thanks for patch.
Jerry
More information about the Fortran
mailing list