Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Burgess <aburgess@redhat.com>
To: Simon Marchi <simon.marchi@efficios.com>, gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@efficios.com>
Subject: Re: [PATCH 2/2] gdb/guile: remove unused escape_symbol variable
Date: Fri, 20 Nov 2026 17:26:35 +0000	[thread overview]
Message-ID: <xhuyfeccfxvlg.fsf@aburgess-thinkpadp1gen8.rmtgb.csb> (raw)
In-Reply-To: <20261019160644.629989-2-simon.marchi@efficios.com>

Simon Marchi <simon.marchi@efficios.com> writes:

> Building GDB with a recent clang fails with:
>
>     /home/smarchi/src/binutils-gdb/gdb/guile/scm-value.c:78:12: error: variable 'escape_symbol' set but not used [-Werror,-Wunused-but-set-global]
>
> value->string only accepts 'error and 'substitute for its #:errors
> argument, so the 'escape symbol is never used.  It has been unused since
> commit ed3ef33944c3 ("Add Guile as an extension language.",
> 2014-02-09).  Remove it.

LGTM

Approved-By: Andrew Burgess <aburgess@redhat.com>

Thanks,
Andrew


>
> Change-Id: Ie088e3c133c4443a0131d5b9830814724be405fe
> ---
>  gdb/guile/scm-value.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/gdb/guile/scm-value.c b/gdb/guile/scm-value.c
> index 277195688093..0e388bf1f056 100644
> --- a/gdb/guile/scm-value.c
> +++ b/gdb/guile/scm-value.c
> @@ -75,7 +75,6 @@ static SCM length_keyword;
>  
>  /* Possible #:errors values.  */
>  static SCM error_symbol;
> -static SCM escape_symbol;
>  static SCM substitute_symbol;
>  \f
>  /* Administrivia for value smobs.  */
> @@ -1541,6 +1540,5 @@ gdbscm_initialize_values (void)
>    length_keyword = scm_from_latin1_keyword ("length");
>  
>    error_symbol = scm_from_latin1_symbol ("error");
> -  escape_symbol = scm_from_latin1_symbol ("escape");
>    substitute_symbol = scm_from_latin1_symbol ("substitute");
>  }
> -- 
> 2.56.0


  reply	other threads:[~2026-11-20 17:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19 16:06 [PATCH 1/2] gdb/guile: remove unused orig_*_port_scm variables Simon Marchi
2026-10-19 16:06 ` [PATCH 2/2] gdb/guile: remove unused escape_symbol variable Simon Marchi
2026-11-20 17:26   ` Andrew Burgess [this message]
2026-11-21  2:43     ` Simon Marchi
2026-11-20 17:27 ` [PATCH 1/2] gdb/guile: remove unused orig_*_port_scm variables Andrew Burgess

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xhuyfeccfxvlg.fsf@aburgess-thinkpadp1gen8.rmtgb.csb \
    --to=aburgess@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=simon.marchi@efficios.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox