+2005-12-08 Eric Blake <ebb9@byu.net>
+
+ * libltdl/libltdl/lt__alloc.h (FREE): Cast away constness of
+ argument to `free' to avoid compiler warning.
+
2005-12-08 Peter O'Gorman <peter@pogma.com>
* libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG, _LT_LINKER_SHLIBS)
#define MALLOC(tp, n) (tp*) lt__malloc((n) * sizeof(tp))
#define REALLOC(tp, mem, n) (tp*) lt__realloc((mem), (n) * sizeof(tp))
#define FREE(mem) LT_STMT_START { \
- if (mem) (mem) = (free (mem), (void *) 0); } LT_STMT_END
+ if (mem) (mem) = (free ((void *)mem), (void *) 0); } LT_STMT_END
#define MEMREASSIGN(p, q) LT_STMT_START { \
if ((p) != (q)) { if (p) free (p); (p) = (q); (q) = 0; } \
- } LT_STMT_END
+ } LT_STMT_END
/* If set, this function is called when memory allocation has failed. */
LT_SCOPE void (*lt__alloc_die) (void);