File tapiir-no-return-in-nonvoid.patch of Package tapiir

diff -up tapiir-0.7.2/src/alsaio.cxx.orig tapiir-0.7.2/src/alsaio.cxx
--- tapiir-0.7.2/src/alsaio.cxx.orig	2009-04-22 20:29:49.000000000 +0200
+++ tapiir-0.7.2/src/alsaio.cxx	2009-04-23 10:34:36.000000000 +0200
@@ -626,6 +626,7 @@ int run_alsa(int argc, char *argv[])
 
 	pthread_cancel(thread);
 	pthread_join(thread,NULL);
+	return -1;
 }
 
 void applyeffect(short* buffer,int size);
@@ -738,11 +739,12 @@ void* audiothread(void*ptr)
 		snd_pcm_hw_free(chandle);
 	}
 	pthread_cleanup_pop(1);
+	return (void*)-1;
 }
 
 void audiocleanup(void* ptr)
 {
-   snd_pcm_close(phandle);
+	snd_pcm_close(phandle);
 	snd_pcm_close(chandle);
 }
 
diff -up tapiir-0.7.2/src/FileIO.cxx.orig tapiir-0.7.2/src/FileIO.cxx
--- tapiir-0.7.2/src/FileIO.cxx.orig	2009-04-22 20:29:28.000000000 +0200
+++ tapiir-0.7.2/src/FileIO.cxx	2009-04-23 09:25:24.000000000 +0200
@@ -19,10 +19,12 @@ int load_mtd(char* filename)
 {
 	MTDStore store;
 	store.Load(*mtd,filename);
+	return 0;
 }
 
 int save_mtd(char* filename)
 {
 	MTDStore store;
 	store.Save(*mtd,filename);
+	return 0;
 }
openSUSE Build Service is sponsored by