gcj/157: gcj -Wunused prints spurious warning
Tom Tromey
tromey@cygnus.com
Sat Feb 26 23:50:00 GMT 2000
>Number: 157
>Category: gcj
>Synopsis: gcj -Wunused prints spurious warning
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 26 23:50:00 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:
>Unformatted:
More information about the Java-prs
mailing list