From 9bbff3216b9f99d86f3757dbad70c9d91ef8d700 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Wed, 7 Jan 2015 13:43:25 +0100 Subject: fixed some compilation warnings Signed-off-by: Olivier Gayot --- blits.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'blits.c') diff --git a/blits.c b/blits.c index eef8414..3a5a574 100644 --- a/blits.c +++ b/blits.c @@ -11,6 +11,10 @@ void Fblitterennemis (SURFACES *surfaces, POSITIONS *positions,ENNEMIS ennemis[],int Vnbennemis) { int i; + + /* TODO understand if this is needed or not */ + (void) ennemis; + Finitialiserpositionsennemis (surfaces,positions,Vnbennemis); for (i = 0;i <= Vnbennemis;i++) SDL_BlitSurface (surfaces->Tennemi[i],NULL,surfaces->Pecran,&positions->Vpositionennemis[i]); @@ -70,6 +74,9 @@ void Fchangercurseurennemis (SURFACES *surfaces, POSITIONS *positions,int select void Fchangercurseurpersos (SURFACES *surfaces, POSITIONS *positions,int selection,PERSONNAGES persos[]) { + /* TODO undestand if this is needed or not */ + (void) persos; + SDL_BlitSurface (surfaces->Pfondjeu,&positions->Vpositioncurseurallies,surfaces->Pecran,&positions->Vpositioncurseurallies); SDL_Flip (surfaces->Pecran); SELECTION (0,ALLIE) @@ -213,6 +220,10 @@ void Fafficherdegats (SURFACES *surfaces, POSITIONS *positions, int degats,int c void Faffichersoins (SURFACES *surfaces, POSITIONS *positions, int degats,int clan, int cible,PERSONNAGES persos[]) { char chaine[10]; + + /* TODO understand if this is needed or not */ + (void) persos; + TTF_Font *police = NULL; SDL_Color fg = {80,255,80,0}; @@ -350,7 +361,7 @@ void Fblitterfond(SURFACES* surfaces) SDL_Flip(surfaces->Pecran); } -void Fcolourselection(SURFACES* surfaces, PERSONNAGES persos[],int Vtourallie,POSITIONS* positions) +void Fcolourselection(SURFACES* surfaces, PERSONNAGES persos[], int Vtourallie, POSITIONS* positions) { int x=0; int i; @@ -359,6 +370,12 @@ void Fcolourselection(SURFACES* surfaces, PERSONNAGES persos[],int Vtourallie,PO Uint32 pixel; Uint8 r,g,b,a; int ajout=30; + + /* TODO understand if these are needed or not */ + (void) persos; + (void) Vtourallie; + (void) positions; + for(i=0;i<3;i++) { tampon=0; -- cgit v1.2.3