From a6ab2465fcf7a6ce62bfea5bb3a3353a2c72f738 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 29 Oct 2008 15:51:42 +0000 Subject: [PATCH] Fixed some warnings reported by gcc under linux. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@317 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- gfxcfg.c | 2 +- operatio.c | 1 + palette.c | 6 +++--- sdlscreen.c | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gfxcfg.c b/gfxcfg.c index b7539aaf..82e70957 100644 --- a/gfxcfg.c +++ b/gfxcfg.c @@ -234,7 +234,7 @@ char * Interpretation_du_fichier_config() ChunkData[Numero_chunk] = Ptr; Chunk[Numero_chunk].Taille = Taille_chunk; - printf("%d %6X %d\n", Numero_chunk, Ptr - FichierConfig, Taille_chunk); +// printf("%d %6X %d\n", Numero_chunk, Ptr - FichierConfig, Taille_chunk); Ptr+=Taille_chunk; } // Si la config contenait des touches, on les initialise: diff --git a/operatio.c b/operatio.c index 4b37db50..356fed3a 100644 --- a/operatio.c +++ b/operatio.c @@ -31,6 +31,7 @@ #include "boutons.h" #include "pages.h" #include "erreurs.h" +#include "sdlscreen.h" #ifdef __WATCOMC__ #define M_PI 3.14159265358979323846 diff --git a/palette.c b/palette.c index d4e0d004..05670cac 100644 --- a/palette.c +++ b/palette.c @@ -209,7 +209,7 @@ void Remap_image_HIGH(byte * Table_de_conversion) } -void Swap(int X_Swap,short Debut_Bloc_1,short Debut_Bloc_2,short Taille_du_bloc,T_Palette Palette, dword * Utilisation_couleur, int update_palette) +void Swap(int X_Swap,short Debut_Bloc_1,short Debut_Bloc_2,short Taille_du_bloc,T_Palette Palette, dword * Utilisation_couleur) { short Pos_1; short Pos_2; @@ -1102,7 +1102,7 @@ void Bouton_Palette(void) Backup_de_l_image_effectue=1; } - Swap(Bouton_clicke==8,Debut_block,Couleur_temporaire,Premiere_couleur,Palette_de_travail,Utilisation_couleur, 1); + Swap(Bouton_clicke==8,Debut_block,Couleur_temporaire,Premiere_couleur,Palette_de_travail,Utilisation_couleur); memcpy(Palette_temporaire,Palette_de_travail,sizeof(T_Palette)); @@ -1674,7 +1674,7 @@ void Bouton_Palette(void) && (h