From d650ba38f00f0168d3741becf075fa848e213bb0 Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Sun, 15 Nov 2009 02:01:05 -0800 Subject: teleport.cc: quite non-debug unused warning Get rid of "unused variable" warnings for non-debug builds. --- crawl-ref/source/teleport.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/crawl-ref/source/teleport.cc b/crawl-ref/source/teleport.cc index aafc685583..e7ffb3e528 100644 --- a/crawl-ref/source/teleport.cc +++ b/crawl-ref/source/teleport.cc @@ -122,6 +122,9 @@ void blink_other_close(actor* victim, const coord_def &target) return; bool success = victim->blink_to(dest); ASSERT(success); +#ifndef DEBUG + UNUSED(success); +#endif } // Blink the monster away from its foe. @@ -135,6 +138,9 @@ void blink_away(monsters* mon) return; bool success = mon->blink_to(dest); ASSERT(success); +#ifndef DEBUG + UNUSED(success); +#endif } // Blink the monster within range but at distance to its foe. @@ -148,6 +154,9 @@ void blink_range(monsters* mon) return; bool success = mon->blink_to(dest); ASSERT(success); +#ifndef DEBUG + UNUSED(success); +#endif } // Blink the monster close to its foe. @@ -161,6 +170,9 @@ void blink_close(monsters* mon) return; bool success = mon->blink_to(dest); ASSERT(success); +#ifndef DEBUG + UNUSED(success); +#endif } bool random_near_space(const coord_def& origin, coord_def& target, -- cgit v1.2.3-54-g00ecf