* lib/javaversion.h: Include <stdlib.h>.
(javaexec_version): Declare that deallocation must happen through
'free'.
+2021-08-07 Bruno Haible <bruno@clisp.org>
+
+ javaversion: Improve GCC 11 allocation-deallocation checking.
+ * lib/javaversion.h: Include <stdlib.h>.
+ (javaexec_version): Declare that deallocation must happen through
+ 'free'.
+
2021-08-07 Bruno Haible <bruno@clisp.org>
ino-map: Improve GCC 11 allocation-deallocation checking.
#ifndef _JAVAVERSION_H
#define _JAVAVERSION_H
+#include <stdlib.h>
+
#ifdef __cplusplus
extern "C" {
This is the value of System.getProperty("java.specification.version").
Some possible values are: 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 9, 10, 11.
Return NULL if the Java version cannot be determined. */
-extern char * javaexec_version (void);
+extern char * javaexec_version (void)
+ _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE;
#ifdef __cplusplus