aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-01-11 08:30:33 +1030
committerAlan Modra <amodra@gmail.com>2015-01-12 18:07:52 +1030
commitb38ead219b31fed4014cd5b1078da968744b879d (patch)
treeaa980814e17268e12648817156ffbbd9017fe100 /gas
parent005e54bb792bc74f1168def16f35078be588871a (diff)
downloadgdb-b38ead219b31fed4014cd5b1078da968744b879d.zip
gdb-b38ead219b31fed4014cd5b1078da968744b879d.tar.gz
gdb-b38ead219b31fed4014cd5b1078da968744b879d.tar.bz2
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.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/read.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 97422c1..a0deb6a 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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
diff --git a/gas/read.c b/gas/read.c
index 585d7ef..7dfc20a 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -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;