From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16503 invoked by alias); 26 Oct 2004 11:15:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 16488 invoked by uid 48); 26 Oct 2004 11:15:26 -0000 Date: Tue, 26 Oct 2004 11:15:00 -0000 Message-ID: <20041026111526.16487.qmail@sourceware.org> From: "martin at mpa-garching dot mpg dot de" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20041022140406.18111.martin@mpa-garching.mpg.de> References: <20041022140406.18111.martin@mpa-garching.mpg.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug fortran/18111] spurious warnings with -W -Wunused X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg03165.txt.bz2 List-Id: ------- Additional Comments From martin at mpa-garching dot mpg dot de 2004-10-26 11:15 ------- The patch indeed supresses the warnings about .__result. But the problem appears to be more general. The following code still generates a warning: module linebufmod implicit none private public linebuf_set contains subroutine linebuf_set (orig) character(len=80), dimension(:), intent(in) :: orig print *,orig end subroutine linebuf_set end module linebufmod ~/tmp>gfortran -W -Wunused -c gfbug.f90 gfbug.f90:5: warning: unused parameter '_orig' It seems that it is issued for all array-shaped arguments of a subroutine/function which is referenced in an interface statement or something similar. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18111