From 91b96a1dc7b49d4a803e09b3341ec18ecf6132b3 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 25 May 2004 04:42:16 +0000 Subject: added compiler warnings and fixed most warnings svn path=/trunk/externals/ff/; revision=1765 --- ff/ff.c | 4 +++- ff/makefile | 9 ++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ff/ff.c b/ff/ff.c index 784b2fe..20cbc4d 100644 --- a/ff/ff.c +++ b/ff/ff.c @@ -54,6 +54,8 @@ #include #include #include +#include +#include #include "input.h" @@ -455,7 +457,7 @@ void ffPeriodic_level(t_ff *x, t_floatarg level) void ffPeriodic_waveform(t_ff *x, t_symbol* waveform) { if (x->ff_fd < 0) return; - unsigned short shortwave; + unsigned short shortwave = 0; int n = 0; while (waves[n].wave) { diff --git a/ff/makefile b/ff/makefile index 99554e3..7708283 100644 --- a/ff/makefile +++ b/ff/makefile @@ -1,7 +1,14 @@ + +CFLAGS = -O2 -W -Wall + +all: ff + ff: ff.c - gcc $(CFLAGS) $(LINUXCFLAGS) $(LINUXINCLUDE) -o ff.o -c ff.c + $(CC) $(CFLAGS) $(LINUXCFLAGS) $(LINUXINCLUDE) -o ff.o -c ff.c ld -export_dynamic -shared -o ff.pd_linux ff.o -lc -lm strip --strip-unneeded ff.pd_linux rm ff.o +clean: + rm -f *~ *.pd_* *.dll *.o -- cgit v1.2.1