+2023-06-03 Bruno Haible <bruno@clisp.org>
+
+ classpath, csharpexec: Avoid "candidate for attribute 'malloc'" warning.
+ * lib/classpath.h (set_classpath): Mark with attribute 'malloc'.
+
2023-06-03 Bruno Haible <bruno@clisp.org>
propername-lite: Improve documentation.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */
+/* This file uses _GL_ATTRIBUTE_MALLOC. */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
/* Return the new CLASSPATH value. The given classpaths are prepended to
the current CLASSPATH value. If use_minimal_classpath, the current
CLASSPATH is ignored. */
/* Set CLASSPATH and returns a safe copy of its old value. */
extern char * set_classpath (const char * const *classpaths,
unsigned int classpaths_count,
- bool use_minimal_classpath, bool verbose);
+ bool use_minimal_classpath, bool verbose)
+ _GL_ATTRIBUTE_MALLOC;
/* Restore CLASSPATH to its previous value. */
extern void reset_classpath (char *old_classpath);