Assorted compiler warning fixes
The C standard doesn't guarantee a function pointer can be cast to void* and vice versa. binutils/ * prdbg.c (print_debugging_info): Don't use void* for function pointer param. * budbg.h (print_debugging_info): Update prototype. gas/ * read.c (s_altmacro, s_reloc): Make definition static.
This commit is contained in:
parent
005e54bb79
commit
b38ead219b
5 changed files with 17 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
|||
2015-01-12 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* prdbg.c (print_debugging_info): Don't use void* for function
|
||||
pointer param.
|
||||
* budbg.h (print_debugging_info): Update prototype.
|
||||
|
||||
2015-01-08 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR binutils/17512
|
||||
|
|
|
@ -29,7 +29,8 @@ extern void *read_debugging_info (bfd *, asymbol **, long, bfd_boolean);
|
|||
/* Routine used to print generic debugging information. */
|
||||
|
||||
extern bfd_boolean print_debugging_info
|
||||
(FILE *, void *, bfd *, asymbol **, void *, bfd_boolean);
|
||||
(FILE *, void *, bfd *, asymbol **,
|
||||
char * (*) (struct bfd *, const char *, int), bfd_boolean);
|
||||
|
||||
/* Routines used to read and write stabs information. */
|
||||
|
||||
|
|
|
@ -291,7 +291,8 @@ static const struct debug_write_fns tg_fns =
|
|||
|
||||
bfd_boolean
|
||||
print_debugging_info (FILE *f, void *dhandle, bfd *abfd, asymbol **syms,
|
||||
void *demangler, bfd_boolean as_tags)
|
||||
char * (*demangler) (struct bfd *, const char *, int),
|
||||
bfd_boolean as_tags)
|
||||
{
|
||||
struct pr_handle info;
|
||||
|
||||
|
@ -302,7 +303,7 @@ print_debugging_info (FILE *f, void *dhandle, bfd *abfd, asymbol **syms,
|
|||
info.filename = NULL;
|
||||
info.abfd = abfd;
|
||||
info.syms = syms;
|
||||
info.demangler = (char * (*)(struct bfd *, const char *, int)) demangler;
|
||||
info.demangler = demangler;
|
||||
|
||||
if (as_tags)
|
||||
{
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2015-01-12 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* read.c (s_altmacro, s_reloc): Make definition static.
|
||||
|
||||
2015-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||
|
||||
* config/tc-avr.c (md_apply_fix): Update the contents of VALP for
|
||||
|
|
|
@ -1579,7 +1579,7 @@ s_align_ptwo (int arg)
|
|||
|
||||
/* Switch in and out of alternate macro mode. */
|
||||
|
||||
void
|
||||
static void
|
||||
s_altmacro (int on)
|
||||
{
|
||||
demand_empty_rest_of_line ();
|
||||
|
@ -3984,7 +3984,7 @@ s_rva (int size)
|
|||
|
||||
/* .reloc offset, reloc_name, symbol+addend. */
|
||||
|
||||
void
|
||||
static void
|
||||
s_reloc (int ignore ATTRIBUTE_UNUSED)
|
||||
{
|
||||
char *stop = NULL;
|
||||
|
|
Loading…
Reference in a new issue