I call javac from my ant script like this:
use nowarn attribute see below
e.g.
by default nowarn attribute is off