diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-05-23 02:00:10 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-05-23 17:06:55 +0200 |
commit | c83826b3135fe0c385bcd3d8f7728b8fa2ea0d2d (patch) | |
tree | 7e0f762d7d83f754a97a022ab0b1a918f03034f6 /crawl-ref/source/dactions.cc | |
parent | f0e8eeb62104326fef05f51dcb0913775269c834 (diff) | |
download | crawl-ref-c83826b3135fe0c385bcd3d8f7728b8fa2ea0d2d.tar.gz crawl-ref-c83826b3135fe0c385bcd3d8f7728b8fa2ea0d2d.zip |
Work around a clang warning.
At least, they finally fixed glaring errors in their handling of printf(),
so warning-less clang builds are now a reasonable possibility.
Diffstat (limited to 'crawl-ref/source/dactions.cc')
-rw-r--r-- | crawl-ref/source/dactions.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/dactions.cc b/crawl-ref/source/dactions.cc index 35649c20de..9ca51fe5fd 100644 --- a/crawl-ref/source/dactions.cc +++ b/crawl-ref/source/dactions.cc @@ -21,6 +21,7 @@ #include "travel.h" #include "view.h" +#ifdef DEBUG_DIAGNOSTICS static const char *daction_names[] = { "holy beings go hostile", @@ -45,6 +46,7 @@ static const char *daction_names[] = "corpses rot", "Tomb loses -cTele", }; +#endif static bool _mons_matches_counter(const monster* mon, daction_type act) { @@ -105,7 +107,9 @@ void update_da_counters(LevelInfo *lev) void add_daction(daction_type act) { +#ifdef DEBUG_DIAGNOSTICS COMPILE_CHECK(ARRAYSZ(daction_names) == NUM_DACTIONS); +#endif dprf("scheduling delayed action: %s", daction_names[act]); you.dactions.push_back(act); |