This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, libgfortran] PR43899 Wrong unused-variable warning with NAMELISTs


On 11/03/2010 03:44 AM, Janne Blomqvist wrote:
On Wed, Nov 3, 2010 at 07:39, Jerry DeLisle<jvdelisle@frontier.com> wrote:
2010-11-02 Jerry DeLisle<jvdelisle@gcc.gnu.org>

        PR libgfortran/43899
        * runtime/error.c (generate_error): New function to generate a run
        time warning message. Fix some whitespace.

OK, Copy/Paste fat fingers, thanks.

generate_warning, not generate_error. The comment above the function in the patch also suffers from the same problem. Also, the iexport() line should be removed (see below).

* gfortran.map: Add symbol for new function.

Please remove this. We don't need to export generate_warning, as it's never called from outside the library.

OK



If at some point in the future we need to do that, it can be exported then.


* libgfortran.h: Add prototype for new function.

Due to the above, should be marked with internal_proto() instead of iexport_proto().


OK and thanks for review.

Otherwise the patch looks good. Ok for trunk with the above changes.



Will fix before commit.


Jerry


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]