This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bfd_get_filename


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]