1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-09 15:50:21 +00:00

Get rid of compiler warnings on Cygwin.

* src/gmalloc.c (_free_internal_nolock, _realloc_internal_nolock)
[CYGWIN]:  Cast ptr to (char *) before comparing to _heapbase.
This commit is contained in:
Ken Brown 2012-05-20 08:19:13 -04:00
parent 754b805117
commit 1b170bc63c
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2012-05-20 Ken Brown <kbrown@cornell.edu>
* gmalloc.c (_free_internal_nolock, _realloc_internal_nolock)
[CYGWIN]: Cast ptr to (char *) before comparing to _heapbase.
2012-05-19 Ken Brown <kbrown@cornell.edu>
* xfns.c (x_in_use): Remove `static' qualifier.

View File

@ -1004,7 +1004,7 @@ _free_internal_nolock (void *ptr)
return;
#ifdef CYGWIN
if (ptr < _heapbase)
if ((char *) ptr < _heapbase)
/* We're being asked to free something in the static heap. */
return;
#endif
@ -1341,7 +1341,7 @@ _realloc_internal_nolock (void *ptr, size_t size)
return _malloc_internal_nolock (size);
#ifdef CYGWIN
if (ptr < _heapbase)
if ((char *) ptr < _heapbase)
/* ptr points into the static heap */
return special_realloc (ptr, size);
#endif