diff options
author | Orgad Shaneh <orgads@gmail.com> | 2021-10-29 06:42:15 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-10-31 04:11:38 -0400 |
commit | 4ab6404b1c5798155640edf4bb207c8d1de37b5d (patch) | |
tree | b8eea26be95ff413f199ba86630d2368adff9669 /sim/erc32/func.c | |
parent | 65dcce8f793757be996377b5a15453b4bdf5f87b (diff) | |
download | fsf-binutils-gdb-4ab6404b1c5798155640edf4bb207c8d1de37b5d.zip fsf-binutils-gdb-4ab6404b1c5798155640edf4bb207c8d1de37b5d.tar.gz fsf-binutils-gdb-4ab6404b1c5798155640edf4bb207c8d1de37b5d.tar.bz2 |
sim: erc32: fix signedness compatibility and redefinition warnings
Diffstat (limited to 'sim/erc32/func.c')
-rw-r--r-- | sim/erc32/func.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sim/erc32/func.c b/sim/erc32/func.c index ff53f3b..d168a31 100644 --- a/sim/erc32/func.c +++ b/sim/erc32/func.c @@ -139,7 +139,7 @@ set_regi(struct pstate *sregs, int32 reg, uint32 rval) } void -get_regi(struct pstate * sregs, int32 reg, char *buf) +get_regi(struct pstate * sregs, int32 reg, unsigned char *buf) { uint32 cwp; uint32 rval = 0; @@ -996,7 +996,9 @@ sys_halt(void) #include "libiberty.h" #include "bfd.h" +#ifndef min #define min(A, B) (((A) < (B)) ? (A) : (B)) +#endif #define LOAD_ADDRESS 0 int |