From: John Baldwin <jhb@FreeBSD.org>
To: Tom Tromey <tom@tromey.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Remove a couple of VLAs
Date: Sat, 20 Apr 2024 13:27:38 -0700 [thread overview]
Message-ID: <28842942-ca46-435b-a3e5-1e29033b8235@FreeBSD.org> (raw)
In-Reply-To: <20240417230112.1791762-1-tom@tromey.com>
On 4/17/24 4:01 PM, Tom Tromey wrote:
> I found a couple of spots where VLAs are in use but where they can
> easily be removed.
>
> In one spot, adding 'const' is enough -- and is already done in
> similar code elsewhere in the file.
>
> In another spot, one of two arrays will be used, so making the buffer
> large enough for both works.
Approved-By: John Baldwin <jhb@FreeBSD.org>
--
John Baldwin
prev parent reply other threads:[~2024-04-20 20:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-17 23:01 Tom Tromey
2024-04-20 20:27 ` John Baldwin [this message]
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=28842942-ca46-435b-a3e5-1e29033b8235@FreeBSD.org \
--to=jhb@freebsd.org \
--cc=gdb-patches@sourceware.org \
--cc=tom@tromey.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).