[Scummvm-cvs-logs] SF.net SVN: scummvm:[44813] scummvm/trunk/backends/platform/ps2

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Fri Oct 9 12:05:45 CEST 2009


Revision: 44813
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44813&view=rev
Author:   fingolfin
Date:     2009-10-09 10:05:45 +0000 (Fri, 09 Oct 2009)

Log Message:
-----------
PS2: Fix warnings

Modified Paths:
--------------
    scummvm/trunk/backends/platform/ps2/systemps2.cpp
    scummvm/trunk/backends/platform/ps2/systemps2.h

Modified: scummvm/trunk/backends/platform/ps2/systemps2.cpp
===================================================================
--- scummvm/trunk/backends/platform/ps2/systemps2.cpp	2009-10-09 10:05:16 UTC (rev 44812)
+++ scummvm/trunk/backends/platform/ps2/systemps2.cpp	2009-10-09 10:05:45 UTC (rev 44813)
@@ -167,11 +167,11 @@
 }
 
 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 @@
 	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 @@
 	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::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 @@
 	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 @@
 		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);

Modified: scummvm/trunk/backends/platform/ps2/systemps2.h
===================================================================
--- scummvm/trunk/backends/platform/ps2/systemps2.h	2009-10-09 10:05:16 UTC (rev 44812)
+++ scummvm/trunk/backends/platform/ps2/systemps2.h	2009-10-09 10:05:45 UTC (rev 44813)
@@ -126,9 +126,9 @@
 
 	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();
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list