Ralf Mardorf <[email protected]> writes:

> Hi Nedko :)

Hi Ralf

> today I tried to compile LADI, but it failed for openSuse 11.2 x86_64
> and 64 Studio 3.0-beta3 x86_64. Please take a look at the attachments.

[snip configuring and compiling ladish stuff]

> [ 4/41] cc: jack_proxy.c -> build/default/jack_proxy_1.o
> cc1: warnings being treated as errors
> ../jack_proxy.c: In function вЂ.jack_proxy_set_parameter_value’:
> ../jack_proxy.c:588: error: вЂ.type’ may be used uninitialized in this 
> function
> Waf: Leaving directory `/usr/src/ladish-0.1/build'
> Build failed
>  -> task failed (err #1): 
>       {task: cc jack_proxy.c -> jack_proxy_1.o}

This is an problem that I only recently got aware of. I saw it when I
switched to gentoo and shortly after, I got reports from users. It seems
to happen only for some gcc or something. You reported that it builds
fine on 64 Studio 3.0-beta3 and someone else reported that it builds
fine on Debian "lenny". Those warnings (treated as errors) are fixed in
git and I've made a patch (attached) against ladish-0.1 too.

Next preview release of ladish will not treat warnings as errors.

[snip configuring and compiling flowcanvas with warnings]

It looks that flowcanvas is incuding headers in wrong order or
something. These warnings can be ignored without any harm and as long as
it compiles and flowcanvas is maintained externally, there is no urge
for me to fix them.

diff -ru ladish-0.1.orig/daemon/studio.c ladish-0.1/daemon/studio.c
--- ladish-0.1.orig/daemon/studio.c	2009-08-31 04:17:50.000000000 +0300
+++ ladish-0.1/daemon/studio.c	2009-11-20 01:59:08.000000000 +0200
@@ -872,7 +872,7 @@
   char * p;
   const char * src;
   char * filename_ptr;
-  char * backup_filename_ptr;
+  char * backup_filename_ptr = NULL;
 
   len_dir = strlen(g_studios_dir);
 
Only in ladish-0.1/daemon: studio.c~
diff -ru ladish-0.1.orig/jack_proxy.c ladish-0.1/jack_proxy.c
--- ladish-0.1.orig/jack_proxy.c	2009-08-27 23:01:58.000000000 +0300
+++ ladish-0.1/jack_proxy.c	2009-11-20 01:58:36.000000000 +0200
@@ -585,7 +585,7 @@
     value_ptr = &boolean;
     break;
   default:
-    lash_error("Unknown jack parameter type %i", (int)type);
+    lash_error("Unknown jack parameter type %i", (int)parameter_ptr->type);
     return false;
   }
 
-- 
Nedko Arnaudov <GnuPG KeyID: DE1716B0>

Attachment: pgpgT5CDsXeDV.pgp
Description: PGP signature

_______________________________________________
Linux-audio-dev mailing list
[email protected]
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev

Reply via email to