aubio


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Aubio patches to fix a number of Linux build issues.



Hi Paul

Your aubio-0.2.0beta1 just needs this one patch to build on my Linux box.
I also noticed that you are passing -Werror on the command line. This
was generating a strange error:

gcc -DHAVE_CONFIG_H -I. -I../../../aubio-0.2.0beta1/examples -I../src    -I../../../aubio-0.2.0beta1/examples/../src -I../../../aubio-0.2.0beta1/examples/../ext  -O2 -Wall -Werror -Wmissing-prototypes -Wmissing-declarations -Wno-char-subscripts -Wno-unknown-pragmas -c ../../../aubio-0.2.0beta1/examples/utils.c
cc1: warnings being treated as errors
../../../aubio-0.2.0beta1/examples/utils.c: In function `examples_common_init':
../../../aubio-0.2.0beta1/examples/utils.c:219: warning: value computed is not used

I am not really sure what is up with that, but perhaps -Werror is a bit too strict.

thanks much
Mo DeJong

diff -r -u clean_aubio-0.2.0beta1/examples/utils.h aubio-0.2.0beta1/examples/utils.h
--- clean_aubio-0.2.0beta1/examples/utils.h	Fri Aug 12 12:35:19 2005
+++ aubio-0.2.0beta1/examples/utils.h	Fri Aug 12 12:40:33 2005
@@ -26,9 +26,15 @@
 #include <aubio.h>
 #include <aubioext.h>
 
+#ifdef HAVE_C99_VARARGS_MACROS
 #define debug(...) if (verbose) fprintf (stderr, __VA_ARGS__)
 #define errmsg(...) fprintf (stderr, __VA_ARGS__)
 #define outmsg(...) fprintf (stdout, __VA_ARGS__)
+#else
+#define debug(format, args...)	if (verbose) fprintf(stderr, format , ##args)
+#define errmsg(format, args...)	fprintf(stderr, format , ##args)
+#define outmsg(format, args...)	fprintf(stdout, format , ##args)
+#endif
 
 extern int frames;
 extern int verbose;


-- 
To unsubscribe, send mail to aubio-unsubscribe@piem.org.