From: Stefan Monnier Date: Tue, 2 Jul 2024 20:29:07 +0000 (-0400) Subject: (dump_interval_node): Remove unused arg `offset` X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=06aa174f925e8679d892b4b8d8224c90806e830c;p=emacs.git (dump_interval_node): Remove unused arg `offset` * src/pdumper.c (dump_interval_node): Remove unused arg `offset`. (dump_overlay): Adjust call accordingly. (cherry picked from commit 667ca66481c74325f3c8e4391d185ee547fdbb36) --- diff --git a/src/pdumper.c b/src/pdumper.c index 8946c317bf9..138777e7134 100644 --- a/src/pdumper.c +++ b/src/pdumper.c @@ -2125,8 +2125,7 @@ dump_marker (struct dump_context *ctx, const struct Lisp_Marker *marker) } static dump_off -dump_interval_node (struct dump_context *ctx, struct itree_node *node, - dump_off parent_offset) +dump_interval_node (struct dump_context *ctx, struct itree_node *node) { #if CHECK_STRUCTS && !defined (HASH_itree_node_50DE304F13) # error "itree_node changed. See CHECK_STRUCTS comment in config.h." @@ -2153,17 +2152,17 @@ dump_interval_node (struct dump_context *ctx, struct itree_node *node, dump_remember_fixup_ptr_raw (ctx, offset + dump_offsetof (struct itree_node, parent), - dump_interval_node (ctx, node->parent, offset)); + dump_interval_node (ctx, node->parent)); if (node->left) dump_remember_fixup_ptr_raw (ctx, offset + dump_offsetof (struct itree_node, left), - dump_interval_node (ctx, node->left, offset)); + dump_interval_node (ctx, node->left)); if (node->right) dump_remember_fixup_ptr_raw (ctx, offset + dump_offsetof (struct itree_node, right), - dump_interval_node (ctx, node->right, offset)); + dump_interval_node (ctx, node->right)); return offset; } @@ -2180,7 +2179,7 @@ dump_overlay (struct dump_context *ctx, const struct Lisp_Overlay *overlay) dump_remember_fixup_ptr_raw (ctx, offset + dump_offsetof (struct Lisp_Overlay, interval), - dump_interval_node (ctx, overlay->interval, offset)); + dump_interval_node (ctx, overlay->interval)); return offset; }