diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/bfd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/bfd.h b/include/bfd.h index 7e8c547..80605fa 100644 --- a/include/bfd.h +++ b/include/bfd.h @@ -551,7 +551,9 @@ extern CONST short _bfd_host_big_endian; /* The bfd itself */ -#define bfd_get_filename(abfd) ((abfd)->filename) +/* Cast from const char * to char * so that caller can assign to + a char * without a warning. */ +#define bfd_get_filename(abfd) ((char *) (abfd)->filename) #define bfd_get_format(abfd) ((abfd)->format) #define bfd_get_target(abfd) ((abfd)->xvec->name) #define bfd_get_file_flags(abfd) ((abfd)->flags) |