[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/no-purespace 49a674f44ae 21/41: Avoid compiler warning in proces
From: |
Stefan Kangas |
Subject: |
scratch/no-purespace 49a674f44ae 21/41: Avoid compiler warning in process_mark_stack |
Date: |
Tue, 10 Dec 2024 19:09:39 -0500 (EST) |
branch: scratch/no-purespace
commit 49a674f44ae7f00e86662632d4523d885d311499
Author: Pip Cet <pipcet@protonmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
Avoid compiler warning in process_mark_stack
Problem reported by: Stefan Kangas <stefankangas@gmail.com>
* src/alloc.c (process_mark_stack): Only declare and assign to 'po' if
it's needed.
---
src/alloc.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/alloc.c b/src/alloc.c
index 8c8e1a99829..e557e82883c 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -6702,8 +6702,6 @@ process_mark_stack (ptrdiff_t base_sp)
{
Lisp_Object obj = mark_stack_pop ();
mark_obj: ;
- void *po = XPNTR (obj);
-
#if GC_REMEMBER_LAST_MARKED
last_marked[last_marked_index++] = obj;
last_marked_index &= LAST_MARKED_SIZE - 1;
@@ -6713,6 +6711,7 @@ process_mark_stack (ptrdiff_t base_sp)
we encounter an object we know is bogus. This increases GC time
by ~80%. */
#if GC_CHECK_MARKED_OBJECTS
+ void *po = XPNTR (obj);
/* Check that the object pointed to by PO is known to be a Lisp
structure allocated from the heap. */
@@ -6949,7 +6948,10 @@ process_mark_stack (ptrdiff_t base_sp)
set_string_marked (XSTRING (ptr->u.s.name));
mark_interval_tree (string_intervals (ptr->u.s.name));
/* Inner loop to mark next symbol in this bucket, if any. */
- po = ptr = ptr->u.s.next;
+ ptr = ptr->u.s.next;
+#if GC_CHECK_MARKED_OBJECTS
+ po = ptr;
+#endif
if (ptr)
goto nextsym;
}
- scratch/no-purespace c6870a14a3f 24/41: Don't call purecopy in common-win.el, (continued)
- scratch/no-purespace c6870a14a3f 24/41: Don't call purecopy in common-win.el, Stefan Kangas, 2024/12/10
- scratch/no-purespace e29294f7696 28/41: Don't call purecopy in help-mode.el, Stefan Kangas, 2024/12/10
- scratch/no-purespace 31c052c7ce9 32/41: Don't call purecopy in mouse.el, Stefan Kangas, 2024/12/10
- scratch/no-purespace 4af70b2fafd 15/41: Don't recognize "bootstrap" option for --temacs, Stefan Kangas, 2024/12/10
- scratch/no-purespace 5b792477252 04/41: Unexec removal: Adjust and simplify W32-specific code, Stefan Kangas, 2024/12/10
- scratch/no-purespace 1c10c259483 11/41: Pure storage removal: Adjust nativecomp code, Stefan Kangas, 2024/12/10
- scratch/no-purespace 52c8a7e3dd8 03/41: Unexec removal: Remove HYBRID_MALLOC support, Stefan Kangas, 2024/12/10
- scratch/no-purespace 42664427fbf 14/41: Pure storage removal: Documentation, Stefan Kangas, 2024/12/10
- scratch/no-purespace 63a8d3cb70f 09/41: Pure storage removal: Remove purecopy hash table flag, Stefan Kangas, 2024/12/10
- scratch/no-purespace 40faf3ededc 18/41: Purecopy removal: Lisp code, Stefan Kangas, 2024/12/10
- scratch/no-purespace 49a674f44ae 21/41: Avoid compiler warning in process_mark_stack,
Stefan Kangas <=
- scratch/no-purespace 4154dd74b90 31/41: Don't call purecopy in emacs-lisp/*.el, Stefan Kangas, 2024/12/10
- scratch/no-purespace 9e6f9030e03 25/41: Don't call purecopy in bindings.el, Stefan Kangas, 2024/12/10
- scratch/no-purespace 4e695acf2c8 23/41: Don't call purecopy in international/*.el, Stefan Kangas, 2024/12/10
- scratch/no-purespace 3ccd53e80b5 22/41: Remove purecopy calls from files.el, Stefan Kangas, 2024/12/10
- scratch/no-purespace 67ed43ae5c7 26/41: Don't call purecopy in progmodes/*.el, Stefan Kangas, 2024/12/10
- scratch/no-purespace b608b0de93f 29/41: Don't call purecopy in vc/*.el, Stefan Kangas, 2024/12/10
- scratch/no-purespace e852289e212 36/41: Remove unused function my_heap_start, Stefan Kangas, 2024/12/10
- scratch/no-purespace 6a52471cb50 27/41: Don't call purecopy in textmodes/*.el, Stefan Kangas, 2024/12/10
- scratch/no-purespace 8b8af6ac540 35/41: Remove check for working malloc_set_state, Stefan Kangas, 2024/12/10
- scratch/no-purespace 5f459b518b5 40/41: Delete variable pure-space-overflow, Stefan Kangas, 2024/12/10