summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dbg-util.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-05-30 16:10:06 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-08-28 00:17:44 +0200
commit33e7c498ba8227245115231373b9a25430ca5eb2 (patch)
treecaa36c0ef1ba76bbf6d2a3350b63b24242a61c5b /crawl-ref/source/dbg-util.cc
parentcdeb0bb5e5473b9a929d612e1cffabb4f533646f (diff)
downloadcrawl-ref-33e7c498ba8227245115231373b9a25430ca5eb2.tar.gz
crawl-ref-33e7c498ba8227245115231373b9a25430ca5eb2.zip
Allow "%"PRI to build in C++11 mode.
This is a misdesign in the standard, the committee is debating whether it's a defect or not, we'll know the result in ten years or so. In the meantime, gcc-4.8 and clang(version?) added a fix so formerly legal code compiles (but with a warning...). This fix is not yet in gcc-4.7 nor clang-3.1, and since failing to build on compilers that happen in the wild is a bad idea, let's kludge it around with spaces. More info: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52538
Diffstat (limited to 'crawl-ref/source/dbg-util.cc')
-rw-r--r--crawl-ref/source/dbg-util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/dbg-util.cc b/crawl-ref/source/dbg-util.cc
index 625950b064..d3c9061aeb 100644
--- a/crawl-ref/source/dbg-util.cc
+++ b/crawl-ref/source/dbg-util.cc
@@ -129,7 +129,7 @@ static void _debug_mid_name(mid_t mid)
if (mons)
fprintf(stderr, "%s", debug_mon_str(mons).c_str());
else
- fprintf(stderr, "bad monster[%"PRImidt"]", mid);
+ fprintf(stderr, "bad monster[%" PRImidt"]", mid);
}
}
@@ -312,7 +312,7 @@ void debug_dump_mon(const monster* mon, bool recurse)
fprintf(stderr, "\n");
}
- fprintf(stderr, "attitude: %d, behaviour: %d, number: %d, flags: 0x%"PRIx64"\n",
+ fprintf(stderr, "attitude: %d, behaviour: %d, number: %d, flags: 0x%" PRIx64"\n",
mon->attitude, mon->behaviour, mon->number, mon->flags);
fprintf(stderr, "colour: %d, foe_memory: %d, shield_blocks:%d, "