[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix most warnings with gcc 4.4 on Linux
From: |
Bohdan R . Rau |
Subject: |
[PATCH] Fix most warnings with gcc 4.4 on Linux |
Date: |
Wed, 08 Sep 2010 09:13:15 +0200 |
On Tue, 07 Sep 2010 22:40:41 -0500, Christopher Brannon
<cmbrannon79 at gmail.com> wrote:
[...]
> The warnings in ivona.c are dangerous.
Urgh!
diff -urN speech-dispatcher-0.7.1-beta2/src/modules/ivona.c
speech-dispatcher-0.7.1-beta2a/src/modules/ivona.c
--- speech-dispatcher-0.7.1-beta2/src/modules/ivona.c 2010-09-01
15:30:12.000000000 +0200
+++ speech-dispatcher-0.7.1-beta2a/src/modules/ivona.c 2010-09-08
09:06:06.371353960 +0200
@@ -338,7 +338,7 @@
DBG("Got icon");
}
if (!audio && !icon[0]) {
- if(!msg || !*msg || ivona_get_msgpart(&msg,&icon,&buf,&len)) {
+ if(!msg || !*msg || ivona_get_msgpart(&msg,icon,&buf,&len)) {
ivona_speaking=0;
if (ivona_stop) module_report_event_stop();
else module_report_event_end();
@@ -361,7 +361,7 @@
next_icon[0]=0;
if (msg && *msg) {
- if (!ivona_get_msgpart(&msg,&next_icon,&buf,&len)) {
+ if (!ivona_get_msgpart(&msg,next_icon,&buf,&len)) {
if (buf && *buf) {
next_offset=0;
next_audio=ivona_get_wave_from_cache(buf,&next_samples);
--
http://milena.polip.com/ - Pa pa, Ivonko!
- [PATCH] Fix most warnings with gcc 4.4 on Linux, (continued)
[PATCH] Fix most warnings with gcc 4.4 on Linux, Christopher Brannon, 2010/09/07
[PATCH] Fix most warnings with gcc 4.4 on Linux, Andrei Kholodnyi, 2010/09/08