This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

[ob] remove spurious 'return'.


Happened to stumble on PR 9186.  Since I took the trouble of reading
it, I thought I might as well fix it.

From the PR:

 cc: "hppa-hpux-tdep.c", line 1933: error 1610: Attempting to return value from function of type void.

hppa_write_pc's prototype is:

 void hppa_write_pc (struct regcache *regcache, CORE_ADDR pc);

This obvious patch should fix it.  I've no way to test this, but, it
doesn't look like there's many ways this can be wrong.

Checked in.

-- 
Pedro Alves
2009-01-18  Pedro Alves  <pedro@codesourcery.com>

	PR build/9186:
	* hppa-hpux-tdep.c (hppa_hpux_write_pc): Remove 'return'.

---
 gdb/hppa-hpux-tdep.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: src/gdb/hppa-hpux-tdep.c
===================================================================
--- src.orig/gdb/hppa-hpux-tdep.c	2009-01-18 01:18:26.000000000 +0000
+++ src/gdb/hppa-hpux-tdep.c	2009-01-18 01:19:03.000000000 +0000
@@ -1404,7 +1404,7 @@ hppa_hpux_write_pc (struct regcache *reg
   if (flags & HPPA_HPUX_SS_INSYSCALL)
     regcache_cooked_write_unsigned (regcache, HPPA_R31_REGNUM, pc | 0x3);
 
-  return hppa_write_pc (regcache, pc);
+  hppa_write_pc (regcache, pc);
 }
 
 static CORE_ADDR

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