Core/Misc: Fix GCC 8 warnings

(cherry picked from commit 1d04a3b216)
This commit is contained in:
jackpoz
2019-03-30 17:48:36 +01:00
committed by Shauren
parent ad322b2b01
commit 43a41caafb
12 changed files with 19 additions and 14 deletions

View File

@@ -563,7 +563,9 @@ public:
Spark->DisappearAndDie();
DespawnNagaFlag(false);
me->DisappearAndDie();
default: return 99999999;
/* fallthrough */
default:
return 99999999;
}
}

View File

@@ -231,7 +231,7 @@ class ValithriaDespawner : public BasicEvent
case NPC_VALITHRIA_DREAMWALKER:
if (InstanceScript* instance = creature->GetInstanceScript())
instance->SendEncounterUnit(ENCOUNTER_FRAME_DISENGAGE, creature);
// no break
/* fallthrough */
case NPC_BLAZING_SKELETON:
case NPC_SUPPRESSER:
case NPC_BLISTERING_ZOMBIE:

View File

@@ -534,7 +534,7 @@ public:
break;
}
}
/* fallthrough */
/* fallthrough */
case EVENT_MISS:
{
shooter->CastSpell(wilhelm, SPELL_MISS_APPLE);

View File

@@ -149,6 +149,8 @@ class boss_shattered_executioner : public CreatureScript
/* fallthrough */
case 1:
me->RemoveLootMode(LOOT_MODE_HARD_MODE_3);
/* fallthrough */
default:
break;
}
}