(Wii) fix compile warnings

This commit is contained in:
Toad King 2012-07-28 15:36:03 -04:00
parent 649832e702
commit 183369fd4b

View File

@ -217,8 +217,8 @@ static void render_text(rgui_handle_t *rgui, size_t begin, size_t end)
render_background(rgui); render_background(rgui);
char title[TERM_WIDTH]; char title[TERM_WIDTH];
const char *dir; const char *dir = 0;
rgui_file_type_t menu_type; rgui_file_type_t menu_type = 0;
rgui_list_back(rgui->path_stack, &dir, &menu_type, NULL); rgui_list_back(rgui->path_stack, &dir, &menu_type, NULL);
if (!rgui_is_controller_menu(menu_type) && menu_type != RGUI_SETTINGS) if (!rgui_is_controller_menu(menu_type) && menu_type != RGUI_SETTINGS)
{ {
@ -235,8 +235,8 @@ static void render_text(rgui_handle_t *rgui, size_t begin, size_t end)
for (size_t i = begin; i < end; i++, y += FONT_HEIGHT_STRIDE) for (size_t i = begin; i < end; i++, y += FONT_HEIGHT_STRIDE)
{ {
const char *path; const char *path = 0;
rgui_file_type_t type; rgui_file_type_t type = 0;
rgui_list_at(rgui->folder_buf, i, &path, &type, NULL); rgui_list_at(rgui->folder_buf, i, &path, &type, NULL);
char message[TERM_WIDTH + 1]; char message[TERM_WIDTH + 1];
char type_str[TERM_WIDTH + 1]; char type_str[TERM_WIDTH + 1];
@ -461,10 +461,10 @@ static void rgui_settings_controller_populate_entries(rgui_handle_t *rgui)
static const char *rgui_settings_iterate(rgui_handle_t *rgui, rgui_action_t action) static const char *rgui_settings_iterate(rgui_handle_t *rgui, rgui_action_t action)
{ {
rgui_file_type_t type; rgui_file_type_t type = 0;
const char *label; const char *label = 0;
rgui_list_at(rgui->folder_buf, rgui->directory_ptr, &label, &type, NULL); rgui_list_at(rgui->folder_buf, rgui->directory_ptr, &label, &type, NULL);
rgui_file_type_t menu_type; rgui_file_type_t menu_type = 0;
rgui_list_back(rgui->path_stack, NULL, &menu_type, NULL); rgui_list_back(rgui->path_stack, NULL, &menu_type, NULL);
switch (action) switch (action)
{ {
@ -485,7 +485,7 @@ static const char *rgui_settings_iterate(rgui_handle_t *rgui, rgui_action_t acti
case RGUI_ACTION_CANCEL: case RGUI_ACTION_CANCEL:
case RGUI_ACTION_SETTINGS: case RGUI_ACTION_SETTINGS:
{ {
size_t directory_ptr; size_t directory_ptr = 0;
rgui_list_back(rgui->path_stack, NULL, NULL, &directory_ptr); rgui_list_back(rgui->path_stack, NULL, NULL, &directory_ptr);
rgui_list_pop(rgui->path_stack); rgui_list_pop(rgui->path_stack);
rgui->directory_ptr = directory_ptr; rgui->directory_ptr = directory_ptr;
@ -544,7 +544,7 @@ static const char *rgui_settings_iterate(rgui_handle_t *rgui, rgui_action_t acti
const char *rgui_iterate(rgui_handle_t *rgui, rgui_action_t action) const char *rgui_iterate(rgui_handle_t *rgui, rgui_action_t action)
{ {
rgui_file_type_t menu_type; rgui_file_type_t menu_type = 0;
rgui_list_back(rgui->path_stack, NULL, &menu_type, NULL); rgui_list_back(rgui->path_stack, NULL, &menu_type, NULL);
if (menu_type == RGUI_SETTINGS || rgui_is_controller_menu(menu_type)) if (menu_type == RGUI_SETTINGS || rgui_is_controller_menu(menu_type))
@ -599,12 +599,12 @@ const char *rgui_iterate(rgui_handle_t *rgui, rgui_action_t action)
if (rgui_list_size(rgui->folder_buf) == 0) if (rgui_list_size(rgui->folder_buf) == 0)
return NULL; return NULL;
const char *path; const char *path = 0;
rgui_file_type_t type; rgui_file_type_t type = 0;
rgui_list_at(rgui->folder_buf, rgui->directory_ptr, &path, &type, NULL); rgui_list_at(rgui->folder_buf, rgui->directory_ptr, &path, &type, NULL);
const char *dir; const char *dir = 0;
size_t directory_ptr; size_t directory_ptr = 0;
rgui_list_back(rgui->path_stack, &dir, NULL, &directory_ptr); rgui_list_back(rgui->path_stack, &dir, NULL, &directory_ptr);
if (type == RGUI_FILE_DIRECTORY) if (type == RGUI_FILE_DIRECTORY)