aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorJan Djärv2013-12-09 09:23:01 +0100
committerJan Djärv2013-12-09 09:23:01 +0100
commit5e48429a26cf87bdbabc242bc8fce447e3910adf (patch)
tree9a48ebdcb7aaa464a03c6dd41cbb86607c1a7f18 /src/alloc.c
parent8212d9c0da266e8bfb9100385113e0d7e744041e (diff)
downloademacs-5e48429a26cf87bdbabc242bc8fce447e3910adf.tar.gz
emacs-5e48429a26cf87bdbabc242bc8fce447e3910adf.zip
* alloc.c (Fmemory_limit): Avoid compiler warning. Return 0 always.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c
index f076075a94f..aeda42637cd 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -6633,7 +6633,12 @@ We divide the value by 1024 to make sure it fits in a Lisp integer. */)
6633{ 6633{
6634 Lisp_Object end; 6634 Lisp_Object end;
6635 6635
6636#ifdef HAVE_NS
6637 /* Avoid warning. sbrk has no relation to memory allocated anyway. */
6638 XSETINT (end, 0);
6639#else
6636 XSETINT (end, (intptr_t) (char *) sbrk (0) / 1024); 6640 XSETINT (end, (intptr_t) (char *) sbrk (0) / 1024);
6641#endif
6637 6642
6638 return end; 6643 return end;
6639} 6644}