public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
* gcj and '-Wall'?
@ 2000-04-01  0:00 ADAM Sulmicki
  2000-04-01  0:00 ` Bryce McKinlay
  2000-04-01  0:00 ` Tom Tromey
  0 siblings, 2 replies; 3+ messages in thread
From: ADAM Sulmicki @ 2000-04-01  0:00 UTC (permalink / raw)
  To: java-discuss

It seems that '-Wall' is not supported with gcj.
Is this correct? I was hoping to use gcj to let me
know about any unused variables, and any other possible
bugs..

For that matter, does anyone know any other java compiler which has -Wall
like feature? 

bash$ cat hello.c 
#include<stdio.h>
main () {
        char ch;
        printf("hello\n");
}
bash$ gcc -Wall hello.c 
hello.c:2: warning: return-type defaults to `int'
hello.c: In function `main':
hello.c:3: warning: unused variable `ch'
hello.c:5: warning: control reaches end of non-void function
bash$ cat HelloWorld.java 
public class HelloWorld {
        public static void main(String [] args) {
                char ch;
                System.out.println("Hello");
        }
}
bash$ gcj -Wall --main=HelloWorld HelloWorld.java 
bash$


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-04-01  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-01  0:00 gcj and '-Wall'? ADAM Sulmicki
2000-04-01  0:00 ` Bryce McKinlay
2000-04-01  0:00 ` 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).