[Patch, Fortran] PR37420 - Fix -Wunused-variable.
Paul Richard Thomas
paul.richard.thomas@gmail.com
Wed Sep 10 05:59:00 GMT 2008
Tobias,
On Tue, Sep 9, 2008 at 8:07 PM, Tobias Burnus <burnus@net-b.de> wrote:
> With the support for warning about unset result variables, printing a
> warning about other unused variables got disabled. The solution is to
> move sym->mark down.
Ahhh yes....
>
> sym->mask = sym->result->mark is unneeded. If the function name = result
> name then sym->result is a pointer to sym and if not, then setting
> sym->mask is not needed.
... indeed!
>
> Build and check-gfortran regtested on x86-64-linux.
> OK for the trunk?
OK for trunk
Thanks for the patch
Paul
More information about the Fortran
mailing list