diff options
author | David 'Digit' Turner <digit@android.com> | 2010-09-22 14:19:28 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2010-09-22 14:19:28 +0200 |
commit | 4e024bb4f5c8aa8b07459f7fbd65c35122127fd1 (patch) | |
tree | ccd5835eef17757d3e1c069e391c415c0135023d /elff/elf_defs.h | |
parent | 1d9873b37d2478554d9d678cd410bd3638c8dab3 (diff) | |
download | external_qemu-4e024bb4f5c8aa8b07459f7fbd65c35122127fd1.zip external_qemu-4e024bb4f5c8aa8b07459f7fbd65c35122127fd1.tar.gz external_qemu-4e024bb4f5c8aa8b07459f7fbd65c35122127fd1.tar.bz2 |
Remove compiler warnings when building the emulator.
This forces -Wall during the build. Note that this patch doesn't
remove all warnings, but most of the remaining ones are from upstream anyway.
Change-Id: I8808d8495e99866e156ce5780d2e3c305eab491f
Diffstat (limited to 'elff/elf_defs.h')
-rw-r--r-- | elff/elf_defs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/elff/elf_defs.h b/elff/elf_defs.h index 39fd1b1..1eca81b 100644 --- a/elff/elf_defs.h +++ b/elff/elf_defs.h @@ -132,4 +132,12 @@ is_little_endian_cpu(void) { return get_byte(&tmp, 0) == 0xFF;
}
+/* Use in printf() statements to dump 64-bit values
+ */
+#ifdef _WIN32
+# define FMT_I64 "I64"
+#else
+# define FMT_I64 "ll"
+#endif
+
#endif // ELFF_ELF_DEFS_H_
|