public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/1157: gcj -Wunused prints spurious warning
@ 2000-12-20 12:20 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2000-12-20 12:20 UTC (permalink / raw)
To: java-gnats
>Number: 1157
>Category: java
>Synopsis: gcj -Wunused prints spurious warning
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 20 12:16:20 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Tom Tromey
>Release: current cvs
>Organization:
>Environment:
>Description:
I compiled this program with gcj -Wunused:
public class HelloWorld {
public static void main(String [] args) {
char ch;
System.out.println("Hello");
}
}
I get this output:HelloWorld.java: In class `HelloWorld':
HelloWorld.java: In method `main(java.lang.String[])':
HelloWorld.java:2: warning: value computed is not used
HelloWorld.java: In method `<init>()':
HelloWorld.java:1: warning: value computed is not used
I believe the message about the <init> method is
in incorrect and should not appear in the output.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Formerly PR gcj/157
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-12-20 12:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-20 12:20 java/1157: gcj -Wunused prints spurious warning Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).