shithub: choc

Download patch

ref: cebecf16cc349650bf2a9b20f24b2eac6372e07b
parent: e434c7c10278a47fc686024fae04d361a0282ab8
author: Russell Rice <[email protected]>
date: Wed Mar 7 18:52:33 EST 2007

Update project
Fix a warning

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 845

--- a/codeblocks/chocolate-doom.cbp
+++ b/codeblocks/chocolate-doom.cbp
@@ -158,6 +158,10 @@
 		<Unit filename="..\src\i_main.c">
 			<Option compilerVar="CC" />
 		</Unit>
+		<Unit filename="..\src\i_pcsound.c">
+			<Option compilerVar="CC" />
+		</Unit>
+		<Unit filename="..\src\i_pcsound.h" />
 		<Unit filename="..\src\i_scale.c">
 			<Option compilerVar="CC" />
 		</Unit>
@@ -334,6 +338,16 @@
 		</Unit>
 		<Unit filename="..\src\p_tick.h" />
 		<Unit filename="..\src\p_user.c">
+			<Option compilerVar="CC" />
+		</Unit>
+		<Unit filename="..\src\pcsound\pcsound.c">
+			<Option compilerVar="CC" />
+		</Unit>
+		<Unit filename="..\src\pcsound\pcsound.h" />
+		<Unit filename="..\src\pcsound\pcsound_sdl.c">
+			<Option compilerVar="CC" />
+		</Unit>
+		<Unit filename="..\src\pcsound\pcsound_win32.c">
 			<Option compilerVar="CC" />
 		</Unit>
 		<Unit filename="..\src\r_bsp.c">
--- a/src/pcsound/pcsound_win32.c
+++ b/src/pcsound/pcsound_win32.c
@@ -34,7 +34,7 @@
 static int sound_thread_running;
 static pcsound_callback_func callback;
 
-static void SoundThread(void *unused)
+static int SoundThread(void *unused)
 {
     int frequency;
     int duration;
@@ -51,7 +51,9 @@
         {
             Sleep(duration);
         }
-    }    
+    }
+    
+    return 0;    
 }
 
 static int PCSound_Win32_Init(pcsound_callback_func callback_func)