This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: bfd_get_filename
- From: Tom Tromey <tom at tromey dot com>
- To: Alan Modra <amodra at gmail dot com>
- Cc: binutils at sourceware dot org, gdb-patches at sourceware dot org
- Date: Mon, 09 Sep 2019 12:17:13 -0600
- Subject: Re: bfd_get_filename
- References: <20190906132914.GJ30165@bubble.grove.modra.org>
>>>>> "Alan" == Alan Modra <amodra@gmail.com> writes:
Alan> This macro says:
Alan> /* Cast from const char * to char * so that caller can assign to
Alan> a char * without a warning. */
Alan> I reckon that isn't such a good idea since it can result in char*
Alan> variables where const char* is appropriate. Not very many places
Alan> need the char* cast. Applying to gdb as obvious.
Thanks for doing this. I came up with a couple of follow-up patches to
remove some of the casts. I'll send those soon.
Tom