This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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 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.

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.

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().


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

-- 
Janne Blomqvist


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