Next: Linking, Previous: Encodings, Up: Invoking gcj [Contents][Index]
gcj
implements several warnings. As with other generic
gcc
warnings, if an option of the form -Wfoo
enables a
warning, then -Wno-foo
will disable it. Here we’ve chosen to
document the form of the warning which will have an effect – the
default being the opposite of what is listed.
-Wredundant-modifiers
With this flag, gcj
will warn about redundant modifiers. For
instance, it will warn if an interface method is declared public
.
-Wextraneous-semicolon
This causes gcj
to warn about empty statements. Empty statements
have been deprecated.
-Wno-out-of-date
This option will cause gcj
not to warn when a source file is
newer than its matching class file. By default gcj
will warn
about this.
-Wno-deprecated
Warn if a deprecated class, method, or field is referred to.
-Wunused
This is the same as gcc
’s -Wunused
.
-Wall
This is the same as -Wredundant-modifiers -Wextraneous-semicolon
-Wunused
.