diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-04-01 02:21:21 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-04-01 02:22:58 -0400 |
commit | 269e9c185f67d477a99574f53ead904d50fddfda (patch) | |
tree | 0177a3d3718cc79c55ae0ff07d9d4d974397800d /sim/m32c/m32c.opc | |
parent | 0fe84f3fbe9a740c38a8dbaa0150b8e4c25c69dd (diff) | |
download | binutils-269e9c185f67d477a99574f53ead904d50fddfda.zip binutils-269e9c185f67d477a99574f53ead904d50fddfda.tar.gz binutils-269e9c185f67d477a99574f53ead904d50fddfda.tar.bz2 |
sim: m32c: enable warnings & clean up a bunch
This doesn't clean up all the warnings, just most of them.
The ones that are left will require some care to unravel.
Diffstat (limited to 'sim/m32c/m32c.opc')
-rw-r--r-- | sim/m32c/m32c.opc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sim/m32c/m32c.opc b/sim/m32c/m32c.opc index d345694..7462b1d 100644 --- a/sim/m32c/m32c.opc +++ b/sim/m32c/m32c.opc @@ -32,7 +32,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #define tprintf if (trace) printf static unsigned char -getbyte () +getbyte (void) { int tsave = trace; unsigned char b; @@ -105,8 +105,8 @@ IMM(int bytes) /* Indicate which sorts of prefixes are allowed for the current opcode. */ -void -prefix (src_allowed, dest_allowed, index_bytewidth) +static void +prefix (int src_allowed, int dest_allowed, int index_bytewidth) { /* At the moment, we don't do anything with this information. We just wanted to get the information entered in some @@ -394,7 +394,7 @@ static int pcs[16]; static int ipcs = 0; int -decode_m32c() +decode_m32c (void) { unsigned char op[40]; int opi; |