Printf compile warning fixes

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1849 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY 2009-01-11 13:05:43 +00:00
parent 4d4ff5c8f5
commit 9d9de41c0a
2 changed files with 4 additions and 4 deletions

View File

@ -245,7 +245,7 @@ Thread::Thread(ThreadFunc function, void* arg)
__FUNCTION__, &thread_id, &attr, function, arg, strerror(ret)); __FUNCTION__, &thread_id, &attr, function, arg, strerror(ret));
#ifdef THREAD_DEBUG #ifdef THREAD_DEBUG
fprintf(stderr, "created new thread %d (func=%p, arg=%p)\n", thread_id, function, arg); fprintf(stderr, "created new thread %lu (func=%p, arg=%p)\n", thread_id, function, arg);
#endif #endif
} }
@ -262,9 +262,9 @@ void Thread::WaitForDeath()
{ {
void* exit_status; void* exit_status;
int ret = pthread_join(thread_id, &exit_status); int ret = pthread_join(thread_id, &exit_status);
if (ret) fprintf(stderr, "error joining thread %d: %s\n", thread_id, strerror(ret)); if (ret) fprintf(stderr, "error joining thread %lu: %s\n", thread_id, strerror(ret));
if (exit_status) if (exit_status)
fprintf(stderr, "thread %d exited with status %d\n", thread_id, *(int *)exit_status); fprintf(stderr, "thread %d exited with status %lu\n", thread_id, *(int *)exit_status);
thread_id = 0; thread_id = 0;
} }
} }

View File

@ -165,7 +165,7 @@ void wxCheatsWindow::OnEvent_CheatsList_ItemSelected(wxCommandEvent& WXUNUSED (e
m_Label_Codename->SetLabel(wxT("Name: ") + wxString::FromAscii(code.name.c_str())); m_Label_Codename->SetLabel(wxT("Name: ") + wxString::FromAscii(code.name.c_str()));
char text[CHAR_MAX]; char text[CHAR_MAX];
char* numcodes = text; char* numcodes = text;
sprintf(numcodes, "Number of Codes: %i", code.ops.size()); sprintf(numcodes, "Number of Codes: %lu", code.ops.size());
m_Label_NumCodes->SetLabel(wxString::FromAscii(numcodes)); m_Label_NumCodes->SetLabel(wxString::FromAscii(numcodes));
m_ListBox_CodesList->Clear(); m_ListBox_CodesList->Clear();
for (size_t j = 0; j < code.ops.size(); j++) for (size_t j = 0; j < code.ops.size(); j++)