Removed some warnings (option -W)

This commit is contained in:
fabio.olimpieri 2014-05-16 22:43:19 +00:00
parent 6729b461c2
commit f9825294f7
6 changed files with 8 additions and 6 deletions

View File

@ -87,7 +87,8 @@ char rom_cartridge[MAX_PATH_LENGTH];
char pasted_file[MAX_PATH_LENGTH];
unsigned int colors[80];
unsigned int jump_frames,curr_frames, turbo_n;
unsigned int curr_frames, turbo_n;
int jump_frames;
static SDL_Surface *image;

View File

@ -51,7 +51,8 @@ extern char rom_cartridge[MAX_PATH_LENGTH];
extern char pasted_file[MAX_PATH_LENGTH];
extern unsigned int colors[80];
extern unsigned int jump_frames,curr_frames, turbo_n;
extern unsigned int curr_frames, turbo_n;
extern int jump_frames;
extern unsigned char sdismount, usbismount, smbismount, tmpismade, ftpismount,networkisinit;
void SDL_Fullscreen_Switch(void);

View File

@ -272,7 +272,7 @@ static void tape_browser()
block_n_int=atoi(block_n);
if ((block_n_int<0)||(block_n_int >(MAX_BROWSER_ITEM-1))) return;
if (block_n_int >(MAX_BROWSER_ITEM-1)) return;
tape_position=browser_list[block_n_int]->position;

View File

@ -1618,7 +1618,7 @@ int menu_is_inited(void)
}
//Sound must be reseted before calling this function (except for ASND)
void play_click(sound)
void play_click(int sound)
{
if (!ordenador.gui_sound) return;
#ifdef GEKKO

View File

@ -261,7 +261,7 @@ int sound_init_sdl() {
#ifdef GEKKO
int voice;
void callback(voice)
void callback(int voice)
{}
int sound_init_asnd() {

View File

@ -482,7 +482,7 @@ int select_block(FILE * fichero)
block_n_int=atoi(block_n);
if ((block_n_int<0)||(block_n_int >(MAX_SELECT_ITEM-1))||block_select_list[block_n_int]==NULL) return -1;
if ((block_n_int >(MAX_SELECT_ITEM-1))||block_select_list[block_n_int]==NULL) return -1;
if ((block_select_list[block_n_int]->offset+blk_sel_pos) > (MAX_BROWSER_ITEM-1)) return -1;