From 5c2dcb40e40a789b1bf2a3b19429acd23c7674b1 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Wed, 7 Jan 2015 13:13:30 +0100 Subject: handle default cases in switches since gcc produces warnings when default cases are not handled, make it happy. Signed-off-by: Olivier Gayot --- actions.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'actions.c') diff --git a/actions.c b/actions.c index 5c31a08..0053409 100644 --- a/actions.c +++ b/actions.c @@ -107,6 +107,8 @@ void Fattaquer(SURFACES *surfaces,POSITIONS *positions,PERSONNAGES persos[],int Fblitcoloredselection(surfaces,positions,*Vtourallie,persos); } break; + default: + break; } break; @@ -191,6 +193,8 @@ void Fselectionnermagienoire(SURFACES *surfaces,POSITIONS *positions,PERSONNAGES SDL_Flip(surfaces->Pecran); continuer=Fmagieelement(surfaces,positions,persos,Vtourallie,ennemis,Vnbennemis,selection,Vtour); break; + default: + break; } } } @@ -242,6 +246,8 @@ void Fselectionnermagieblanche(SURFACES *surfaces,POSITIONS *positions,PERSONNAG if(selection==SOIN) continuer=Fmagiesoin(surfaces,positions,persos,Vtourallie,ennemis,Vnbennemis,Vtour); break; + default: + break; } } } @@ -305,6 +311,8 @@ void Fselectionnerobjet(SURFACES *surfaces,POSITIONS *positions,PERSONNAGES pers continuer=Fether(surfaces,positions,persos,Vtourallie,ennemis,Vnbennemis,objets,selection,Vtour); } break; + default: + break; } } } @@ -418,6 +426,8 @@ int Fpotion(SURFACES *surfaces,POSITIONS *positions,PERSONNAGES persos[],int *Vt else if(type==POTIONPLUS) objets->potionsplus--; break; + default: + break; } break; } @@ -538,6 +548,8 @@ int Fether(SURFACES *surfaces,POSITIONS *positions,PERSONNAGES persos[],int *Vto else if(type==ETHERPLUS) objets->ethersplus--; break; + default: + break; } break; } -- cgit v1.2.3