File twinkle-0.8.1-returnval.patch of Package twinkle

--- src/audio/audio_device.cpp
+++ src/audio/audio_device.cpp
@@ -86,6 +86,11 @@
 bool t_audio_io::open(const string& device, bool playback, bool capture, bool blocking, int channels, t_audio_sampleformat format, int sample_rate, bool short_latency)
 {
 	_sample_rate = sample_rate;
+	/*
+	 * FIXME: here should be a real return value
+	 * see Bug #187369
+	 * it fix only a compiler warning but the result of this change is not sure
+	 */
 	return true;
 }
 
--- src/sender.cpp
+++ src/sender.cpp
@@ -267,4 +267,5 @@
 		MEMMAN_DELETE(event);
 		delete event;
 	}
+	return NULL;
 }
openSUSE Build Service is sponsored by