diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-10-24 03:03:21 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-10-24 03:43:50 +0200 |
commit | 3bb8291c80cc13362be3ed83fdcc37b3dd016d7f (patch) | |
tree | 95c8a690ee78f25f54fa1c8529e4c5c7891c3c3c /crawl-ref/source/tilereg-dgn.cc | |
parent | 2380f20c02f590f058be0f02bb8f96929edb713d (diff) | |
download | crawl-ref-3bb8291c80cc13362be3ed83fdcc37b3dd016d7f.tar.gz crawl-ref-3bb8291c80cc13362be3ed83fdcc37b3dd016d7f.zip |
Fix a number of gcc -Wextra warnings.
One case is an ambiguous constructor, which I'd say should be an error
rather than a warning.
Diffstat (limited to 'crawl-ref/source/tilereg-dgn.cc')
-rw-r--r-- | crawl-ref/source/tilereg-dgn.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/crawl-ref/source/tilereg-dgn.cc b/crawl-ref/source/tilereg-dgn.cc index b9cb389e35..df525285f4 100644 --- a/crawl-ref/source/tilereg-dgn.cc +++ b/crawl-ref/source/tilereg-dgn.cc @@ -386,8 +386,7 @@ static void _add_targetting_commands(const coord_def& pos) macro_buf_add_cmd(CMD_TARGET_MOUSE_SELECT); } -static const bool _is_appropriate_spell(spell_type spell, - const actor* target) +static bool _is_appropriate_spell(spell_type spell, const actor* target) { ASSERT(is_valid_spell(spell)); @@ -437,8 +436,8 @@ static const bool _is_appropriate_spell(spell_type spell, return (friendly == helpful); } -static const bool _is_appropriate_evokable(const item_def& item, - const actor* target) +static bool _is_appropriate_evokable(const item_def& item, + const actor* target) { if (!item_is_evokable(item, false, false, true)) return false; @@ -466,7 +465,7 @@ static const bool _is_appropriate_evokable(const item_def& item, return _is_appropriate_spell(spell, target); } -static const bool _have_appropriate_evokable(const actor* target) +static bool _have_appropriate_evokable(const actor* target) { // Felids cannot use wands. if (you.species == SP_FELID) @@ -634,7 +633,7 @@ static bool _cast_spell_on_target(actor* target) return true; } -static const bool _have_appropriate_spell(const actor* target) +static bool _have_appropriate_spell(const actor* target) { for (size_t i = 0; i < you.spells.size(); i++) { |