diff options
author | Steven Noonan <steven@uplinklabs.net> | 2009-10-10 23:49:54 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2009-10-10 23:49:54 -0700 |
commit | 58f42dec260dc9d186ff8b6453a989930723eba4 (patch) | |
tree | 1fa4cc3f64e8816bfdf29e0c61a13d9d2d08fdc1 /crawl-ref/source | |
parent | 5fc330e598870b10e2d7f31c1ee3bbc0bc0c19e3 (diff) | |
download | crawl-ref-58f42dec260dc9d186ff8b6453a989930723eba4.tar.gz crawl-ref-58f42dec260dc9d186ff8b6453a989930723eba4.zip |
kill some DEBUG/WIZARD compiler warnings about unused functions
cloud.cc:45: warning: "bool _killer_whose_match(kill_category, killer_type)" defined but not used
mutation.cc:1923: warning: "bool _is_random(mutation_type)" defined but not used
ouch.cc:891: warning: "void _wizard_restore_life()" defined but not used
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/cloud.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/mutation.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/ouch.cc | 3 |
3 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/cloud.cc b/crawl-ref/source/cloud.cc index 907bfbe124..0da8010083 100644 --- a/crawl-ref/source/cloud.cc +++ b/crawl-ref/source/cloud.cc @@ -42,6 +42,7 @@ static int _actual_spread_rate(cloud_type type, int spread_rate) } } +#ifdef DEBUG static bool _killer_whose_match(kill_category whose, killer_type killer) { switch (whose) @@ -60,6 +61,7 @@ static bool _killer_whose_match(kill_category whose, killer_type killer) } return (false); } +#endif static void _new_cloud( int cloud, cloud_type type, const coord_def& p, int decay, kill_category whose, killer_type killer, diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc index f09120eabb..e984c88972 100644 --- a/crawl-ref/source/mutation.cc +++ b/crawl-ref/source/mutation.cc @@ -1920,6 +1920,7 @@ static mutation_type _get_random_mutation(bool prefer_good, return (chosen); } +#ifdef DEBUG static bool _is_random(mutation_type which_mutation) { return (which_mutation == RANDOM_MUTATION @@ -1927,6 +1928,7 @@ static bool _is_random(mutation_type which_mutation) || which_mutation == RANDOM_GOOD_MUTATION || which_mutation == RANDOM_BAD_MUTATION); } +#endif // Tries to give you the mutation by deleting a conflicting // one, or clears out conflicting mutations if we should give diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc index 45a31c189c..27b382fa6c 100644 --- a/crawl-ref/source/ouch.cc +++ b/crawl-ref/source/ouch.cc @@ -887,7 +887,7 @@ static void _maybe_spawn_jellies(int dam, const char* aux, } - +#ifdef WIZARD static void _wizard_restore_life() { if (you.hp <= 0) @@ -909,6 +909,7 @@ static void _wizard_restore_life() you.redraw_intelligence = true; } } +#endif // death_source should be set to NON_MONSTER for non-monsters. {dlb} void ouch(int dam, int death_source, kill_method_type death_type, |