]> Savannah Git Hosting - gnulib.git/commit
javacomp: Silence -Wanalyzer-possible-null-argument warning.
authorBruno Haible <bruno@clisp.org>
Fri, 2 Jun 2023 18:11:57 +0000 (20:11 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 2 Jun 2023 18:25:50 +0000 (20:25 +0200)
commit333fa52f1c292ea030c76dadfd13d0fd1eac111d
treebed7b6c650b2d84987bd2a7b7f8bef4ae59e9bcf
parentfce9817d48c97339c3f66a92e72faba8e69d405c
javacomp: Silence -Wanalyzer-possible-null-argument warning.

* lib/javacomp.c: Include verify.h.
(is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_13_usable,
is_envjavac_nongcj_usable, compile_java_class): Assert that the
xasprintf results are non-NULL. This is possible since all involved
format strings are valid and don't use %ls, and all argument strings
are small compared to INT_MAX.
* modules/javacomp (Depends-on): Add verify.
ChangeLog
lib/javacomp.c
modules/javacomp