Silence some compiler warnings that have accumulated.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6211 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice 2010-09-16 04:22:27 +00:00
parent 72af7b3e5e
commit 7824855116
6 changed files with 9 additions and 9 deletions

View File

@ -46,9 +46,9 @@ SCoreStartupParameter::SCoreStartupParameter()
bHLE_BS2(true), bUseFastMem(false), bHLE_BS2(true), bUseFastMem(false),
bLockThreads(false), bLockThreads(false),
bEnableCheats(false), bEnableCheats(false),
bMergeBlocks(false),
bRunCompareServer(false), bRunCompareClient(false), bRunCompareServer(false), bRunCompareClient(false),
bMMU(false), bMMUBAT(false), iTLBHack(0), bAlternateRFI(false), bMMU(false), bMMUBAT(false), iTLBHack(0), bAlternateRFI(false),
bMergeBlocks(false),
SelectedLanguage(0), bWii(false), SelectedLanguage(0), bWii(false),
bConfirmStop(false), bHideCursor(false), bConfirmStop(false), bHideCursor(false),
bAutoHideCursor(false), bUsePanicHandlers(true), bAutoHideCursor(false), bUsePanicHandlers(true),

View File

@ -482,7 +482,7 @@ bool CWII_IPC_HLE_Device_es::IOCtlV(u32 _CommandAddress)
FILE* pFile = fopen(TicketFilename.c_str(), "rb"); FILE* pFile = fopen(TicketFilename.c_str(), "rb");
if (pFile) if (pFile)
{ {
int View = 0; unsigned int View = 0;
u8 Ticket[SIZE_OF_ONE_TICKET]; u8 Ticket[SIZE_OF_ONE_TICKET];
while (View < maxViews && fread(Ticket, SIZE_OF_ONE_TICKET, 1, pFile) == 1) while (View < maxViews && fread(Ticket, SIZE_OF_ONE_TICKET, 1, pFile) == 1)
{ {

View File

@ -498,7 +498,7 @@ const u8* Jit64::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBloc
js.downcountAmount = 0; js.downcountAmount = 0;
if (!Core::g_CoreStartupParameter.bEnableDebugging) if (!Core::g_CoreStartupParameter.bEnableDebugging)
{ {
for (int i = 0; i < merged_addresses.size(); ++i) for (unsigned int i = 0; i < merged_addresses.size(); ++i)
{ {
const u32 address = merged_addresses[i]; const u32 address = merged_addresses[i];
js.downcountAmount += PatchEngine::GetSpeedhackCycles(address); js.downcountAmount += PatchEngine::GetSpeedhackCycles(address);

View File

@ -472,7 +472,7 @@ const u8* JitIL::DoJit(u32 em_address, PPCAnalyst::CodeBuffer *code_buf, JitBloc
js.downcountAmount = 0; js.downcountAmount = 0;
if (!Core::g_CoreStartupParameter.bEnableDebugging) if (!Core::g_CoreStartupParameter.bEnableDebugging)
{ {
for (int i = 0; i < merged_addresses.size(); ++i) for (unsigned int i = 0; i < merged_addresses.size(); ++i)
{ {
const u32 address = merged_addresses[i]; const u32 address = merged_addresses[i];
js.downcountAmount += PatchEngine::GetSpeedhackCycles(address); js.downcountAmount += PatchEngine::GetSpeedhackCycles(address);

View File

@ -434,7 +434,7 @@ u32 Flatten(u32 address, int *realsize, BlockStats *st, BlockRegStats *gpa, Bloc
} }
bool follow = false; bool follow = false;
u32 destination; u32 destination = 0;
if (inst.OPCD == 18 && blockSize > 1) if (inst.OPCD == 18 && blockSize > 1)
{ {
//Is bx - should we inline? yes! //Is bx - should we inline? yes!

View File

@ -88,16 +88,16 @@ struct CachedDisplayList
{ {
CachedDisplayList() CachedDisplayList()
: uncachable(false), : uncachable(false),
pass(DLPASS_ANALYZE),
next_check(1),
num_xf_reg(0), num_xf_reg(0),
num_cp_reg(0), num_cp_reg(0),
num_bp_reg(0), num_bp_reg(0),
num_index_xf(0), num_index_xf(0),
num_draw_call(0), num_draw_call(0),
pass(DLPASS_ANALYZE),
next_check(1),
BufferCount(0),
Regions(NULL), Regions(NULL),
LastRegion(NULL), LastRegion(NULL)
BufferCount(0)
{ {
frame_count = frameCount; frame_count = frameCount;
} }