public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
From: ADAM Sulmicki <adam@cfar.umd.edu>
To: java-discuss@sourceware.cygnus.com
Subject: gcj and '-Wall'?
Date: Sat, 01 Apr 2000 00:00:00 -0000	[thread overview]
Message-ID: <Pine.SOL.3.95.1000226220805.19569T-100000@chia.umiacs.umd.edu> (raw)

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$


             reply	other threads:[~2000-04-01  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-01  0:00 ADAM Sulmicki [this message]
2000-04-01  0:00 ` Bryce McKinlay
2000-04-01  0:00 ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.SOL.3.95.1000226220805.19569T-100000@chia.umiacs.umd.edu \
    --to=adam@cfar.umd.edu \
    --cc=java-discuss@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).