diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-05-27 07:38:57 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-05-27 07:38:57 -0700 |
commit | 7457dbd640d599fb79886af46aa900bea0e124ff (patch) | |
tree | 0e75b022f2d4dbd5cb594757b7a4452526057264 /gc.c | |
parent | 88ad50aef5d3676c0c963c46c3da21e4b9973004 (diff) | |
download | txr-7457dbd640d599fb79886af46aa900bea0e124ff.tar.gz txr-7457dbd640d599fb79886af46aa900bea0e124ff.tar.bz2 txr-7457dbd640d599fb79886af46aa900bea0e124ff.zip |
gc: bug: fix compilation if HAVE_VALGRIND.
* gc.c (mark_obj_maybe): Avoid declaration after statement,
which is enforced when configured in --maintainer mode.
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -517,11 +517,12 @@ static void mark_obj_maybe(val maybe_obj) VALGRIND_MAKE_MEM_DEFINED(&maybe_obj, sizeof maybe_obj); #endif if (in_heap(maybe_obj)) { + type_t t; #if HAVE_VALGRIND if (opt_vg_debug) VALGRIND_MAKE_MEM_DEFINED(maybe_obj, SIZEOF_PTR); #endif - type_t t = maybe_obj->t.type; + t = maybe_obj->t.type; if ((t & FREE) == 0) { mark_obj(maybe_obj); } else { |