Re: xasprintf and -Wanalyzer-possible-null-argument

2023-06-02 Thread Paul Eggert
On 6/2/23 11:47, Bruno Haible wrote: I'm therefore considering (c). Although it will mean that xasprintf will depend on vasnprintf, even on glibc systems. Sounds like the best way to go, unfortunately.

xasprintf and -Wanalyzer-possible-null-argument

2023-06-02 Thread Bruno Haible
Another warning from gcc13's -Wanalyzer-possible-null-argument, seen in GNU gettext, is: gettext-tools/gnulib-lib/javacomp.c:296:20: warning: use of possibly-NULL 'javac' where non-null expected [CWE-690] The problem here is that we use xasprintf with a format string such as "%s -source %s" to