From b38ead219b31fed4014cd5b1078da968744b879d Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 11 Jan 2015 08:30:33 +1030 Subject: 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. --- binutils/budbg.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'binutils/budbg.h') diff --git a/binutils/budbg.h b/binutils/budbg.h index fc1ee2b..18c022d 100644 --- a/binutils/budbg.h +++ b/binutils/budbg.h @@ -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. */ -- cgit v1.1