diff options
| author | Praetonus <praetonus@gmail.com> | 2014-05-14 16:42:34 +0200 | 
|---|---|---|
| committer | Praetonus <praetonus@gmail.com> | 2014-05-15 21:32:47 +0200 | 
| commit | f296095191c7b5c6b10f79c2b1433dc227a462f5 (patch) | |
| tree | 2be2a3ee995851f2212c985c358e96c032a9096d /src/server/scripts/Outland/TempestKeep | |
| parent | 9d760098a5a1bf5203fce8e3ba7b462a7885ee75 (diff) | |
Fix various warnings. The core, the scripts and the tools now compile without warnings with -Wall -Wextra -pedantic.
-Fix warnings from -Woverflow on implicit constant conversion.
-Fix warnings from -pedantic.
-Fix warnings from -pedantic.
-Fix warnings from -Wformat.
Two minor changes in addition :
-Replace a defined value equal to 2^31 - 1 by std::numeric_limits<int>::max().
-Remove useless null-check on pointer returned by new. New doesn't returns nullptr on failure, it throws std::bad_alloc.
Diffstat (limited to 'src/server/scripts/Outland/TempestKeep')
3 files changed, 4 insertions, 4 deletions
diff --git a/src/server/scripts/Outland/TempestKeep/Eye/boss_astromancer.cpp b/src/server/scripts/Outland/TempestKeep/Eye/boss_astromancer.cpp index 5f92445f9dd..716963391e6 100644 --- a/src/server/scripts/Outland/TempestKeep/Eye/boss_astromancer.cpp +++ b/src/server/scripts/Outland/TempestKeep/Eye/boss_astromancer.cpp @@ -513,7 +513,7 @@ class spell_astromancer_wrath_of_the_astromancer : public SpellScriptLoader          class spell_astromancer_wrath_of_the_astromancer_AuraScript : public AuraScript          { -            PrepareAuraScript(spell_astromancer_wrath_of_the_astromancer_AuraScript); +            PrepareAuraScript(spell_astromancer_wrath_of_the_astromancer_AuraScript)              bool Validate(SpellInfo const* /*spellInfo*/) override              { diff --git a/src/server/scripts/Outland/TempestKeep/Mechanar/boss_mechano_lord_capacitus.cpp b/src/server/scripts/Outland/TempestKeep/Mechanar/boss_mechano_lord_capacitus.cpp index f8861d1fa7f..7ea39f3faed 100644 --- a/src/server/scripts/Outland/TempestKeep/Mechanar/boss_mechano_lord_capacitus.cpp +++ b/src/server/scripts/Outland/TempestKeep/Mechanar/boss_mechano_lord_capacitus.cpp @@ -163,7 +163,7 @@ class spell_capacitus_polarity_charge : public SpellScriptLoader          class spell_capacitus_polarity_charge_SpellScript : public SpellScript          { -            PrepareSpellScript(spell_capacitus_polarity_charge_SpellScript); +            PrepareSpellScript(spell_capacitus_polarity_charge_SpellScript)              bool Validate(SpellInfo const* /*spell*/) override              { @@ -231,7 +231,7 @@ class spell_capacitus_polarity_shift : public SpellScriptLoader          class spell_capacitus_polarity_shift_SpellScript : public SpellScript          { -            PrepareSpellScript(spell_capacitus_polarity_shift_SpellScript); +            PrepareSpellScript(spell_capacitus_polarity_shift_SpellScript)              bool Validate(SpellInfo const* /*spell*/) override              { diff --git a/src/server/scripts/Outland/TempestKeep/botanica/boss_commander_sarannis.cpp b/src/server/scripts/Outland/TempestKeep/botanica/boss_commander_sarannis.cpp index 7b831e82a75..4320dbc422f 100644 --- a/src/server/scripts/Outland/TempestKeep/botanica/boss_commander_sarannis.cpp +++ b/src/server/scripts/Outland/TempestKeep/botanica/boss_commander_sarannis.cpp @@ -156,7 +156,7 @@ class spell_commander_sarannis_summon_reinforcements : public SpellScriptLoader          class spell_commander_sarannis_summon_reinforcements_SpellScript : public SpellScript          { -            PrepareSpellScript(spell_commander_sarannis_summon_reinforcements_SpellScript); +            PrepareSpellScript(spell_commander_sarannis_summon_reinforcements_SpellScript)              void HandleCast(SpellEffIndex /*effIndex*/)              {  | 
