aboutsummaryrefslogtreecommitdiff
path: root/sim/rx/rx.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2021-01-28 17:24:45 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2021-02-08 11:01:07 +0000
commit1c3e93a41f88703818999ed492699de26b0748cd (patch)
treee682e34b11aeb7e3b3c681bd204b17915cba399d /sim/rx/rx.c
parent93a01471f3df559fffc567247288b3301620c4d7 (diff)
downloadgdb-1c3e93a41f88703818999ed492699de26b0748cd.zip
gdb-1c3e93a41f88703818999ed492699de26b0748cd.tar.gz
gdb-1c3e93a41f88703818999ed492699de26b0748cd.tar.bz2
sim/rx: fill in missing 'void' for empty argument lists
Ensure we have 'void' inside empty argument lists. This was causing several warnings for the rx simulator. sim/rx/ChangeLog: * cpu.h (trace_register_changes): Add void parameter type. * err.c (ee_overrides): Likewise. * mem.c (mem_usage_stats): Likewise. (e): Likewise. * reg.c (stack_heap_stats): Likewise. * rx.c (pop): Likewise. (poppc): Likewise. (decode_opcode): Likewise. * syscalls.c (arg): Likewise.
Diffstat (limited to 'sim/rx/rx.c')
-rw-r--r--sim/rx/rx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/rx/rx.c b/sim/rx/rx.c
index beed6a1..e3737a5 100644
--- a/sim/rx/rx.c
+++ b/sim/rx/rx.c
@@ -682,7 +682,7 @@ pushpc(int val)
}
static int
-pop()
+pop (void)
{
int rv;
int rsp = get_reg (sp);
@@ -693,7 +693,7 @@ pop()
}
static int
-poppc()
+poppc (void)
{
int rv;
int rsp = get_reg (sp);
@@ -931,7 +931,7 @@ op_is_memory (const RX_Opcode_Decoded *rd, int i)
#define DO_RETURN(x) { longjmp (decode_jmp_buf, x); }
int
-decode_opcode ()
+decode_opcode (void)
{
unsigned int uma=0, umb=0;
int ma=0, mb=0;