aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2009-10-09 10:05:45 +0000
committerMax Horn2009-10-09 10:05:45 +0000
commit8549e48707fda26046a104eee851a4172689fcc1 (patch)
tree4037c3f000b2ba288d402a7d9cd59c0129f16488
parente6dd7e24f29ba6aa76a1b9361a480e6d099a3667 (diff)
downloadscummvm-rg350-8549e48707fda26046a104eee851a4172689fcc1.tar.gz
scummvm-rg350-8549e48707fda26046a104eee851a4172689fcc1.tar.bz2
scummvm-rg350-8549e48707fda26046a104eee851a4172689fcc1.zip
PS2: Fix warnings
svn-id: r44813
-rw-r--r--backends/platform/ps2/systemps2.cpp16
-rw-r--r--backends/platform/ps2/systemps2.h6
2 files changed, 11 insertions, 11 deletions
diff --git a/backends/platform/ps2/systemps2.cpp b/backends/platform/ps2/systemps2.cpp
index a0e7b7d488..813bb86eb2 100644
--- a/backends/platform/ps2/systemps2.cpp
+++ b/backends/platform/ps2/systemps2.cpp
@@ -167,11 +167,11 @@ s32 timerInterruptHandler(s32 cause) {
}
void systemTimerThread(OSystem_PS2 *system) {
- system->timerThread();
+ system->timerThreadCallback();
}
void systemSoundThread(OSystem_PS2 *system) {
- system->soundThread();
+ system->soundThreadCallback();
}
void gluePowerOffCallback(void *system) {
@@ -417,7 +417,7 @@ void OSystem_PS2::initTimer(void) {
T0_MODE = TIMER_MODE( 2, 0, 0, 0, 1, 1, 1, 0, 1, 1);
}
-void OSystem_PS2::timerThread(void) {
+void OSystem_PS2::timerThreadCallback(void) {
while (!_systemQuit) {
WaitSema(g_TimerThreadSema);
_scummTimerManager->handler();
@@ -425,7 +425,7 @@ void OSystem_PS2::timerThread(void) {
ExitThread();
}
-void OSystem_PS2::soundThread(void) {
+void OSystem_PS2::soundThreadCallback(void) {
int16 *soundBufL = (int16*)memalign(64, SMP_PER_BLOCK * sizeof(int16) * 2);
int16 *soundBufR = soundBufL + SMP_PER_BLOCK;
@@ -659,7 +659,7 @@ void OSystem_PS2::grabOverlay(OverlayColor *buf, int pitch) {
}
void OSystem_PS2::copyRectToOverlay(const OverlayColor *buf, int pitch, int x, int y, int w, int h) {
- _screen->copyOverlayRect((uint16*)buf, (uint16)pitch, (uint16)x, (uint16)y, (uint16)w, (uint16)h);
+ _screen->copyOverlayRect((const uint16*)buf, (uint16)pitch, (uint16)x, (uint16)y, (uint16)w, (uint16)h);
}
Graphics::PixelFormat OSystem_PS2::getOverlayFormat(void) const {
@@ -729,7 +729,7 @@ int16 OSystem_PS2::getWidth(void) {
return _screen->getWidth();
}
-void OSystem_PS2::msgPrintf(int millis, char *format, ...) {
+void OSystem_PS2::msgPrintf(int millis, const char *format, ...) {
va_list ap;
char resStr[1024];
memset(resStr, 0, 1024);
@@ -912,14 +912,14 @@ bool OSystem_PS2::prepMC() {
fio.mkdir("mc0:ScummVM");
f = ps2_fopen("mc0:ScummVM/scummvm.icn", "w");
- printf("f = %p\n", f);
+ printf("f = %p\n", (const void *)f);
ps2_fwrite(data, size, 2, f);
ps2_fclose(f);
f = ps2_fopen("mc0:ScummVM/icon.sys", "w");
- printf("f = %p\n", f);
+ printf("f = %p\n", (const void *)f);
ps2_fwrite(&icon, sizeof(icon), 1, f);
ps2_fclose(f);
diff --git a/backends/platform/ps2/systemps2.h b/backends/platform/ps2/systemps2.h
index 31aa29e83f..e78f57befb 100644
--- a/backends/platform/ps2/systemps2.h
+++ b/backends/platform/ps2/systemps2.h
@@ -126,9 +126,9 @@ public:
virtual void getTimeAndDate(TimeDate &t) const;
- void timerThread(void);
- void soundThread(void);
- void msgPrintf(int millis, char *format, ...);
+ void timerThreadCallback(void);
+ void soundThreadCallback(void);
+ void msgPrintf(int millis, const char *format, ...) GCC_PRINTF(3, 4);
void makeConfigPath(void);
bool prepMC();