summaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authornotaz2011-09-05 19:31:58 +0300
committernotaz2011-09-06 00:18:06 +0300
commitbbba320911a86c0ee373f8297f80a2b82de22039 (patch)
tree3b1320f78cade24ed84ae48e565445c239765f45 /input.c
parenteb3668fc5dab138073cd4844208ac05b94086a4a (diff)
downloadpicogpsp-bbba320911a86c0ee373f8297f80a2b82de22039.tar.gz
picogpsp-bbba320911a86c0ee373f8297f80a2b82de22039.tar.bz2
picogpsp-bbba320911a86c0ee373f8297f80a2b82de22039.zip
enable -Wall and fix warnings reported by it
Diffstat (limited to 'input.c')
-rw-r--r--input.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/input.c b/input.c
index acd01f5..4917094 100644
--- a/input.c
+++ b/input.c
@@ -24,7 +24,6 @@
void trigger_key(u32 key)
{
u32 p1_cnt = io_registers[REG_P1CNT];
- u32 p1;
if((p1_cnt >> 14) & 0x01)
{
@@ -474,7 +473,7 @@ u32 update_input()
case BUTTON_ID_LOADSTATE:
{
- u8 current_savestate_filename[512];
+ char current_savestate_filename[512];
get_savestate_filename_noshot(savestate_slot,
current_savestate_filename);
load_state(current_savestate_filename);
@@ -483,7 +482,7 @@ u32 update_input()
case BUTTON_ID_SAVESTATE:
{
- u8 current_savestate_filename[512];
+ char current_savestate_filename[512];
u16 *current_screen = copy_screen();
get_savestate_filename_noshot(savestate_slot,
current_savestate_filename);
@@ -670,6 +669,9 @@ gui_action_type get_gui_input()
case SDLK_BACKSPACE:
gui_action = CURSOR_BACK;
break;
+
+ default:
+ break;
}
break;
}
@@ -742,7 +744,7 @@ u32 update_input()
if(event.key.keysym.sym == SDLK_F5)
{
- u8 current_savestate_filename[512];
+ char current_savestate_filename[512];
u16 *current_screen = copy_screen();
get_savestate_filename_noshot(savestate_slot,
current_savestate_filename);
@@ -753,7 +755,7 @@ u32 update_input()
if(event.key.keysym.sym == SDLK_F7)
{
- u8 current_savestate_filename[512];
+ char current_savestate_filename[512];
get_savestate_filename_noshot(savestate_slot,
current_savestate_filename);
load_state(current_savestate_filename);