diff options
| author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2016-05-11 16:17:08 +1000 |
|---|---|---|
| committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2016-05-11 22:13:06 +1000 |
| commit | 0efbf18b80c261708da9ef61bcd420fa94cfed42 (patch) | |
| tree | a9fe8bad32060fa4bf18adc6ff29c4844a3b0495 /rts/Linker.c | |
| parent | 584ade67630f4e5c599c8422801e93f352b9a6df (diff) | |
| download | haskell-0efbf18b80c261708da9ef61bcd420fa94cfed42.tar.gz | |
rts: Fix C compiler warnings on Windows
Summary:
Specifcally we want the MinGW compiler to use ISO print format
specfifiers.
Test Plan: Validate on Linux, OS X and Windows
Reviewers: Phyx, austin, bgamari, simonmar
Reviewed By: bgamari, simonmar
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D2192
Diffstat (limited to 'rts/Linker.c')
| -rw-r--r-- | rts/Linker.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/rts/Linker.c b/rts/Linker.c index 981df2553f..09d4f6a8f9 100644 --- a/rts/Linker.c +++ b/rts/Linker.c @@ -3799,9 +3799,12 @@ ocVerifyImage_PEi386 ( ObjectCode* oc ) IF_DEBUG(linker, i=1); if (i == 0) return 1; - debugBelch( "sectab offset = %" FMT_Int "\n", ((UChar*)sectab) - ((UChar*)hdr) ); - debugBelch( "symtab offset = %" FMT_Int "\n", ((UChar*)symtab) - ((UChar*)hdr) ); - debugBelch( "strtab offset = %" FMT_Int "\n", ((UChar*)strtab) - ((UChar*)hdr) ); + debugBelch("sectab offset = %" FMT_SizeT "\n", + ((UChar*)sectab) - ((UChar*)hdr) ); + debugBelch("symtab offset = %" FMT_SizeT "\n", + ((UChar*)symtab) - ((UChar*)hdr) ); + debugBelch("strtab offset = %" FMT_SizeT "\n", + ((UChar*)strtab) - ((UChar*)hdr) ); debugBelch("\n" ); debugBelch( "Machine: 0x%x\n", (UInt32)(hdr->Machine) ); |
