]> Savannah Git Hosting - gnulib.git/commit
javacomp-script, javacomp: Silence javac warnings regarding [options].
authorBruno Haible <bruno@clisp.org>
Sun, 11 Jun 2023 22:42:05 +0000 (00:42 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 11 Jun 2023 22:50:30 +0000 (00:50 +0200)
commite21309c29b9187b97d0c82b7364192c9cf050103
treed41a04e5a011a22d3381de53b4dba17dd7587f4e
parent20786725637f43ee290798668ac05a41d6201942
javacomp-script, javacomp: Silence javac warnings regarding [options].

* m4/javacomp.m4 (gt_JAVACOMP): Use option '-Xlint:-options' by default
and omit it only when it does not work.
* lib/javacomp.c (compile_using_javac): Add nowarn_option parameter.
(is_envjavac_usable): Add nowarn_option_out parameter. Use option
'-Xlint:-options' by default and omit it only when it does not work.
(is_javac_usable): Likewise.
(compile_java_class): Store the nowarn_option returned from
is_envjavac_usable and use it when invoking compile_using_envjavac.
Store the nowarn_option returned from is_javac_usable and use it when
invoking compile_using_javac.
ChangeLog
lib/javacomp.c
m4/javacomp.m4