aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-01-23 17:56:42 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-01-23 17:56:42 +0000
commitb614183d637d97b51c82f700039152a1166c6077 (patch)
tree3122e21bd818219c2613654d5c37849cef21cfdd
parentc9e58457bb14a6441ed887e0604040994100408d (diff)
cleaned up code so we get hardly any warnings when compiling with "-Wall"
svn path=/trunk/externals/zexy/; revision=4473
-rw-r--r--src/0x3c0x7e.c2
-rw-r--r--src/0x3d0x3d0x7e.c2
-rw-r--r--src/fifop.c2
-rw-r--r--src/index.c2
-rw-r--r--src/lifop.c2
-rw-r--r--src/lpt.c3
-rw-r--r--src/msgfile.c3
-rw-r--r--src/noish~.c1
-rw-r--r--src/noisi~.c1
-rw-r--r--src/regex.c2
-rw-r--r--src/relay.c1
-rw-r--r--src/sort.c2
-rw-r--r--src/tabdump.c1
-rw-r--r--src/tabminmax.c1
-rw-r--r--src/tabset.c1
-rw-r--r--src/zexy.c2
16 files changed, 14 insertions, 14 deletions
diff --git a/src/0x3c0x7e.c b/src/0x3c0x7e.c
index e489190..80639db 100644
--- a/src/0x3c0x7e.c
+++ b/src/0x3c0x7e.c
@@ -129,7 +129,7 @@ t_int *lt_tilde_performSSE(t_int *w)
const __m128 one = _mm_set1_ps(1.f);
while (n--) {
- __m128 xmm0, xmm1, xmm2;
+ __m128 xmm0, xmm1;
xmm0 = _mm_cmplt_ps(in1[0], in2[0]);
out[0] = _mm_and_ps (xmm0 , one);
diff --git a/src/0x3d0x3d0x7e.c b/src/0x3d0x3d0x7e.c
index c089a28..8dd27b2 100644
--- a/src/0x3d0x3d0x7e.c
+++ b/src/0x3d0x3d0x7e.c
@@ -127,7 +127,7 @@ t_int *eq_tilde_performSSE(t_int *w)
const __m128 one = _mm_set1_ps(1.f);
while (n--) {
- __m128 xmm0, xmm1, xmm2;
+ __m128 xmm0, xmm1;
xmm0 = _mm_cmpeq_ps(in1[0], in2[0]);
out[0] = _mm_and_ps (xmm0 , one);
diff --git a/src/fifop.c b/src/fifop.c
index f1c7c2e..b605445 100644
--- a/src/fifop.c
+++ b/src/fifop.c
@@ -57,7 +57,6 @@ typedef struct _fifop
static t_fifop_prioritylist*fifop_genprioritylist(t_fifop*x, t_float priority)
{
- int i;
t_fifop_prioritylist*result=0, *dummy=0;
if(x->fifo_list!=0)
@@ -101,7 +100,6 @@ static t_fifop_prioritylist*fifop_genprioritylist(t_fifop*x, t_float priority)
static int add2fifo(t_fifop_prioritylist*fifoprio, int argc, t_atom *argv)
{
- t_atom*buffer=0;
t_fifop_list*fifo=0;
t_fifop_list*entry=0;
diff --git a/src/index.c b/src/index.c
index 1e8c5dc..15d3a2b 100644
--- a/src/index.c
+++ b/src/index.c
@@ -125,7 +125,6 @@ static void index_float(t_index *x, t_float findex)
static void index_add(t_index *x, t_symbol *s, t_float f)
{
int newentry=(int)f;
- int ok = 0;
if (! (find_item(s, x->names, x->maxentries)+1) ) {
if (x->auto_resize && (x->entries==x->maxentries || newentry>=x->maxentries)){
@@ -291,7 +290,6 @@ static void *index_new(t_symbol *s, int argc, t_atom *argv)
t_symbol** buf;
int maxentries = 0, automod=0;
- int i;
if (argc--) {
maxentries = (int)atom_getfloat(argv++);
diff --git a/src/lifop.c b/src/lifop.c
index 8d63c63..e03c03c 100644
--- a/src/lifop.c
+++ b/src/lifop.c
@@ -96,8 +96,6 @@ static t_lifop_prioritylist*lifop_genprioritylist(t_lifop*x, t_float priority)
static int add2lifo(t_lifop_prioritylist*lifoprio, int argc, t_atom *argv)
{
- t_atom*buffer=0;
- t_lifop_list*lifo=0;
t_lifop_list*entry=0;
if(lifoprio==0){
diff --git a/src/lpt.c b/src/lpt.c
index d0d5b1b..9539efd 100644
--- a/src/lpt.c
+++ b/src/lpt.c
@@ -47,10 +47,12 @@
# include <errno.h>
# ifdef HAVE_LINUX_PPDEV_H
+# include <unistd.h>
# include <sys/ioctl.h>
# include <linux/ppdev.h>
# include <linux/parport.h>
# include <fcntl.h>
+# include <stdio.h>
# endif /* HAVE_LINUX_PPDEV_H */
@@ -192,7 +194,6 @@ static void *lpt_new(t_symbol *s, int argc, t_atom *argv)
we ignore the file (device) case by now;
LATER think about this
*/
- int bla;
x->device=-1;
x->port=strtol(devname, 0, 16);
if(0==x->port){
diff --git a/src/msgfile.c b/src/msgfile.c
index 770294b..164466c 100644
--- a/src/msgfile.c
+++ b/src/msgfile.c
@@ -425,7 +425,6 @@ static int atomcmp(t_atom *this, t_atom *that)
static void msgfile_find(t_msgfile *x, t_symbol *s, int ac, t_atom *av)
{
- int searching = 1;
t_msglist *found = 0;
t_msglist *cur=x->current;
@@ -532,7 +531,7 @@ static void msgfile_read(t_msgfile *x, t_symbol *filename, t_symbol *format)
if ((fd = open_via_path(dirname,
filename->s_name, "", buf, &bufptr, MAXPDSTRING, 0)) < 0) {
- if(fd=open(filename->s_name, rmode) < 0) {
+ if((fd=open(filename->s_name, rmode)) < 0) {
error("%s: can't open in %s", filename->s_name, dirname);
return;
}
diff --git a/src/noish~.c b/src/noish~.c
index d1cb409..35adf00 100644
--- a/src/noish~.c
+++ b/src/noish~.c
@@ -181,6 +181,7 @@ void noish_tilde_setup(void)
class_addmethod(noish_class, (t_method)noish_helper, gensym("help"), 0);
class_sethelpsymbol(noish_class, gensym("zexy/noish~"));
+ zexy_register("noish~");
}
void z_noish__setup(void)
diff --git a/src/noisi~.c b/src/noisi~.c
index 78f89b1..27cb427 100644
--- a/src/noisi~.c
+++ b/src/noisi~.c
@@ -164,6 +164,7 @@ void noisi_tilde_setup(void){
class_addmethod(noisi_class, (t_method)noisi_helper, gensym("help"), 0);
class_sethelpsymbol(noisi_class, gensym("zexy/noisi~"));
+ zexy_register("noisi~");
}
void z_noisi__setup(void)
diff --git a/src/regex.c b/src/regex.c
index 4d819c8..948a77c 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -116,8 +116,6 @@ static void regex_regex(t_regex *x, t_symbol*s, int argc, t_atom*argv)
#ifdef HAVE_REGEX_H
char*result=0;
int length=0;
- t_atom*ap=argv;
- int i=argc;
int flags = 0;
flags |= REG_EXTENDED;
diff --git a/src/relay.c b/src/relay.c
index 667484a..7e4c35f 100644
--- a/src/relay.c
+++ b/src/relay.c
@@ -175,6 +175,7 @@ void relay_setup(void)
(t_method)relay_free, sizeof(t_relay), 0, A_GIMME, 0);
class_addlist(relay_class, relay_list);
class_addanything(relay_class, relay_anything);
+ zexy_register("relay");
}
void z_relay_setup(void)
{
diff --git a/src/sort.c b/src/sort.c
index 06e92ea..001acef 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -52,7 +52,7 @@ static void sort_dir(t_sort *x, t_float f)
static void sort_buffer(t_sort *x, int argc, t_atom *argv)
{
int n = argc;
- t_float *buf, *idx;
+ t_float *buf;
t_atom *atombuf = argv;
if (argc != x->bufsize) {
diff --git a/src/tabdump.c b/src/tabdump.c
index fb1ed60..2a7d3c9 100644
--- a/src/tabdump.c
+++ b/src/tabdump.c
@@ -114,6 +114,7 @@ void tabdump_setup(void)
class_addmethod(tabdump_class, (t_method)tabdump_helper, gensym("help"), 0);
class_sethelpsymbol(tabdump_class, gensym("zexy/tabdump"));
+ zexy_register("tabdump");
}
void z_tabdump_setup(void)
diff --git a/src/tabminmax.c b/src/tabminmax.c
index 0c80af0..f7a7dbe 100644
--- a/src/tabminmax.c
+++ b/src/tabminmax.c
@@ -137,6 +137,7 @@ void tabminmax_setup(void)
class_addmethod(tabminmax_class, (t_method)tabminmax_helper, gensym("help"), 0);
class_sethelpsymbol(tabminmax_class, gensym("zexy/tabminmax"));
+ zexy_register("tabminmax");
}
void z_tabminmax_setup(void)
diff --git a/src/tabset.c b/src/tabset.c
index 004a48b..e491ef6 100644
--- a/src/tabset.c
+++ b/src/tabset.c
@@ -99,6 +99,7 @@ void tabset_setup(void)
class_addmethod(tabset_class, (t_method)tabset_helper, gensym("help"), 0);
class_sethelpsymbol(tabset_class, gensym("zexy/tabset"));
+ zexy_register("tabset");
}
void z_tabset_setup(void)
diff --git a/src/zexy.c b/src/zexy.c
index f121c22..16ab156 100644
--- a/src/zexy.c
+++ b/src/zexy.c
@@ -141,4 +141,6 @@ void zexy_setup(void)
zexy_class = class_new(gensym("zexy"), zexy_new, 0, sizeof(t_zexy), 0, 0);
class_addmethod(zexy_class, zexy_help, gensym("help"), 0);
+
+ zexy_register("zexy");
}