From 2949f33b8a296064363f6416f64f535afe6b8eaa Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Thu, 8 Sep 2011 12:59:22 +0200 Subject: [PATCH] src/emacs.c (my_heap_start): #ifdef to avoid warnings when unused. --- src/ChangeLog | 4 ++++ src/emacs.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 44b8e168031..a4c985b1a0c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-09-08 Juanma Barranquero + + * emacs.c (my_heap_start): #ifdef to avoid warnings when unused. + 2011-09-07 Eli Zaretskii * xdisp.c (move_it_in_display_line_to): Call RESTORE_IT on ppos_it diff --git a/src/emacs.c b/src/emacs.c index 83ad8d95156..ed4d9c49eb8 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -171,8 +171,10 @@ int display_arg; Tells GC how to save a copy of the stack. */ char *stack_bottom; +#if defined (DOUG_LEA_MALLOC) || defined (GNU_LINUX) /* The address where the heap starts (from the first sbrk (0) call). */ static void *my_heap_start; +#endif #ifdef GNU_LINUX /* The gap between BSS end and heap start as far as we can tell. */ -- 2.39.2