From 58f42dec260dc9d186ff8b6453a989930723eba4 Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Sat, 10 Oct 2009 23:49:54 -0700 Subject: 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 --- crawl-ref/source/cloud.cc | 2 ++ crawl-ref/source/mutation.cc | 2 ++ crawl-ref/source/ouch.cc | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) (limited to 'crawl-ref') 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, -- cgit v1.2.3-54-g00ecf