]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/libltdl/lt__alloc.h (FREE): Cast away constness of
authorEric Blake <ebb9@byu.net>
Thu, 8 Dec 2005 17:27:09 +0000 (17:27 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 8 Dec 2005 17:27:09 +0000 (17:27 +0000)
argument to `free' to avoid compiler warning.

ChangeLog
libltdl/libltdl/lt__alloc.h

index 77d8bd55c3198474326cc950ad24d37e0f6e85e7..66ee8d01067c3e2ffcba3cf63706caaf24c85d88 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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)
index 71c426d439889c2a682e8708230d14b2cfc561b3..b5c615715a1eb1ec6525d4995d1b94802e7d1a70 100644 (file)
@@ -37,10 +37,10 @@ LT_BEGIN_C_DECLS
 #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);