]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/50923 (No warning if function return value is not set)
authorTobias Burnus <burnus@net-b.de>
Sun, 11 Dec 2011 21:37:55 +0000 (22:37 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Sun, 11 Dec 2011 21:37:55 +0000 (22:37 +0100)
commit5d66ea591949cab2683ea77fefdf9fefeb4a4104
treee8120336984a003a4026143256bd37a1ba449e7a
parent7d8cfe38b1fe4328072b99bb5d90348e5b4271ff
re PR fortran/50923 (No warning if function return value is not set)

2011-12-11  Tobias Burnus  <burnus@net-b.de>

        PR fortran/50923
        * trans-decl.c (generate_local_decl): Set TREE_NO_WARNING only
        if the front end has printed a warning.
        (gfc_generate_function_code): Fix unset-result warning.

2011-12-11  Tobias Burnus  <burnus@net-b.de>

        PR fortran/50923
        * gfortran.dg/warn_function_without_result_2.f90: New.

From-SVN: r182213
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/warn_function_without_result_2.f90 [new file with mode: 0644]