summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-12-23 12:20:07 +0100
committerBardur Arantsson <bardur@scientician.net>2014-12-23 12:22:35 +0100
commita44d5bc11bf6d7049d75169ff81c20bec96f996c (patch)
treecaaca9ca461082ba1a1bc9e18d263fa30a8a5e2e /src
parente07b97b94753c09abb56f56884f7e81cf3feeb92 (diff)
Clean up compiler warnings
Diffstat (limited to 'src')
-rw-r--r--src/spell_type.cc2
-rw-r--r--src/spells2.cc14
-rw-r--r--src/spells6.cc2
3 files changed, 1 insertions, 17 deletions
diff --git a/src/spell_type.cc b/src/spell_type.cc
index 9851657d..f6598bac 100644
--- a/src/spell_type.cc
+++ b/src/spell_type.cc
@@ -76,7 +76,7 @@ public:
mana_range({ -1, -1 }),
activation_timeout({ 0, 0, 0 }),
school_idxs_count(0),
- school_idxs({ -1, -1, -1 }) {
+ school_idxs{ -1, -1, -1 } {
}
};
diff --git a/src/spells2.cc b/src/spells2.cc
index 4a93b518..b285b15e 100644
--- a/src/spells2.cc
+++ b/src/spells2.cc
@@ -357,20 +357,6 @@ bool_ do_inc_stat(int stat)
*/
void identify_hooks(int i, object_type *o_ptr, identify_mode mode)
{
- cptr mode_s = NULL;
-
- switch (mode)
- {
- case IDENT_NORMAL:
- mode_s = "normal";
- break;
- case IDENT_FULL:
- mode_s = "full";
- break;
- default:
- assert(FALSE);
- }
-
/* Process the appropriate hooks */
hook_identify_in in = { o_ptr, mode };
process_hooks_new(HOOK_IDENTIFY, &in, NULL);
diff --git a/src/spells6.cc b/src/spells6.cc
index eeb41a0e..dd3e1d8b 100644
--- a/src/spells6.cc
+++ b/src/spells6.cc
@@ -140,8 +140,6 @@ static bool_ geomancy_depends_satisfied()
long get_provided_levels(school_type *school)
{
- school_provider *school_provider = NULL;
-
for (auto school_provider: school->providers->v)
{
if (school_provider.deity_idx == p_ptr->pgod)