summaryrefslogtreecommitdiff
path: root/cpu_threaded.c
diff options
context:
space:
mode:
authornotaz2011-09-05 19:31:58 +0300
committernotaz2011-09-06 00:18:06 +0300
commitbbba320911a86c0ee373f8297f80a2b82de22039 (patch)
tree3b1320f78cade24ed84ae48e565445c239765f45 /cpu_threaded.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 'cpu_threaded.c')
-rw-r--r--cpu_threaded.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpu_threaded.c b/cpu_threaded.c
index 547b3c0..db7155c 100644
--- a/cpu_threaded.c
+++ b/cpu_threaded.c
@@ -3177,7 +3177,7 @@ block_exit_type block_exits[MAX_EXITS];
s32 translate_block_##type(u32 pc, translation_region_type \
translation_region, u32 smc_enable) \
{ \
- u32 opcode; \
+ u32 opcode = 0; \
u32 last_opcode; \
u32 condition; \
u32 last_condition; \
@@ -3192,9 +3192,9 @@ s32 translate_block_##type(u32 pc, translation_region_type \
u32 branch_target; \
u32 cycle_count = 0; \
u8 *translation_target; \
- u8 *backpatch_address; \
- u8 *translation_ptr; \
- u8 *translation_cache_limit; \
+ u8 *backpatch_address = NULL; \
+ u8 *translation_ptr = NULL; \
+ u8 *translation_cache_limit = NULL; \
s32 i; \
u32 flag_status; \
block_exit_type external_block_exits[MAX_EXITS]; \