]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - sim/msp430/msp430-sim.c
sim: msp430: fix build time warnings
authorMike Frysinger <vapier@gentoo.org>
Fri, 7 Mar 2014 04:29:37 +0000 (23:29 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 11 Mar 2014 02:59:22 +0000 (22:59 -0400)
commita3271a3e6c841729a9ece40af973e275ea2de875
treedb2911deb63aa4a00f36e921b124b2619db8463c
parent60d847df0b9691b7cb38bfba41b9d6aafd97efc2
sim: msp430: fix build time warnings

This fix is simple:

msp430-sim.c: In function 'maybe_perform_syscall':
msp430-sim.c:898:10: warning: format '%d' expects argument of type 'int',
                     but argument 5 has type 'long int' [-Wformat]

This one we change to use casts like everyone else does in the code base:

msp430-sim.c: In function 'msp430_step_once':
msp430-sim.c:985:7: warning: passing argument 3 of 'init_disassemble_info'
                    from incompatible pointer type [enabled by default]
include/dis-asm.h:368:13: note: expected 'fprintf_ftype' but argument is
of type 'int (*)(struct FILE * __restrict__,  const char * __restrict__)'
sim/msp430/ChangeLog
sim/msp430/msp430-sim.c