Skip to content
Snippets Groups Projects
Commit 279878cc authored by Paul Fertser's avatar Paul Fertser Committed by Spencer Oliver
Browse files

target/nds32_disassembler: fix format specifiers warnings


According to the standard every operation returns at least an integer,
so PRIu8 format specifier is not suitable for these values as is.

This breaks build on OS X (x86_64-apple-darwin13.0.0) with "Apple LLVM
version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)".

Fix by adding appropriate casts. In fact there's plenty of room (and
I'd say necessity) for factoring out common code in there, but it's
too invasive for a non-maintainer.

Change-Id: I7d2182eb1d2f86fa22c882fbbaa6cfadf1c3e8fc
Signed-off-by: default avatarPaul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/1878


Tested-by: jenkins
Reviewed-by: default avatarXiaofan <xiaofanc@gmail.com>
Reviewed-by: default avatarHsiangkai Wang <hsiangkai@gmail.com>
Reviewed-by: default avatarSpencer Oliver <spen@spen-soft.co.uk>
parent 3e0f34b1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment