Browse Source

[Aarch64] Fix warning in _sbrk

2018-10-01  Christophe Lyon  <christophe.lyon@linaro.org>

    	* libgloss/aarch64/syscalls.c (_sbrk): Cast "__heap_limit" to
    	"char *".
sh3port
Christophe Lyon 3 years ago
committed by Richard Earnshaw
parent
commit
9edf0810db
  1. 2
      libgloss/aarch64/syscalls.c

2
libgloss/aarch64/syscalls.c

@ -642,7 +642,7 @@ _sbrk (int incr)
if ((heap_end + incr > stack_ptr)
/* Honour heap limit if it's valid. */
|| ((__heap_limit != 0xcafedead) && (heap_end + incr > __heap_limit)))
|| ((__heap_limit != 0xcafedead) && (heap_end + incr > (char *)__heap_limit)))
{
/* Some of the libstdc++-v3 tests rely upon detecting
out of memory errors, so do not abort here. */

Loading…
Cancel
Save