* alloc.c (mark_object): Remove "#ifdef GC_CHECK_MARKED_OBJECTS"

wrapper that is not needed because the wrapped code is a no-op (zero
machine instructions) when GC_CHECK_MARKED_OBJECTS is not defined.
This avoids a -Wunused-macros diagnostic with GCC 4.7.1 x86-64.
This commit is contained in:
Paul Eggert 2012-07-02 00:36:17 -07:00
parent cf5c017598
commit 3b3e4caca7
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2012-07-02 Paul Eggert <eggert@cs.ucla.edu>
* alloc.c (mark_object): Remove "#ifdef GC_CHECK_MARKED_OBJECTS"
wrapper that is not needed because the wrapped code is a no-op (zero
machine instructions) when GC_CHECK_MARKED_OBJECTS is not defined.
This avoids a -Wunused-macros diagnostic with GCC 4.7.1 x86-64.
2012-07-02 Dmitry Antipov <dmantipov@yandex.ru>
* alloc.c (mark_buffer): Simplify. Remove prototype.

View file

@ -5924,10 +5924,8 @@ mark_object (Lisp_Object arg)
else
pvectype = 0;
#ifdef GC_CHECK_MARKED_OBJECTS
if (pvectype != PVEC_SUBR && pvectype != PVEC_BUFFER)
CHECK_LIVE (live_vector_p);
#endif /* GC_CHECK_MARKED_OBJECTS */
if (pvectype == PVEC_BUFFER)
{