From: drowe67 Date: Fri, 9 Mar 2012 00:15:42 +0000 (+0000) Subject: applied Thomas's patch to fix some -Wall -Werror issues, thanks Thomas X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=eedcadd57f932b125c4966a1bb44d8c35d558f6c;p=freetel-svn-tracking.git applied Thomas's patch to fix some -Wall -Werror issues, thanks Thomas git-svn-id: https://svn.code.sf.net/p/freetel/code@344 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/codec2-dev/src/fft.c b/codec2-dev/src/fft.c index 73c46c84..df1fbcf1 100644 --- a/codec2-dev/src/fft.c +++ b/codec2-dev/src/fft.c @@ -76,7 +76,6 @@ fft (float x[], int n, int isign) { initialize_fft (n); } - int isReverse = 0; int c; for (c = 0; c < n * 2; c += 2) { diff --git a/codec2-dev/unittest/extract.c b/codec2-dev/unittest/extract.c index dcd75df4..36c6d681 100644 --- a/codec2-dev/unittest/extract.c +++ b/codec2-dev/unittest/extract.c @@ -33,6 +33,7 @@ #include #include #include +#include void scan_line(FILE *fp, float f[], int n); @@ -110,8 +111,8 @@ void scan_line(FILE *fp, float f[], int n) char *ps,*pe; int i; - fgets(s,MAX_STR,fp); - ps = pe = s; + ps = pe = fgets(s,MAX_STR,fp); + assert(ps); for(i=0; iWo); ps = get_next_int(ps, &model->L); diff --git a/codec2-dev/unittest/tnlp.c b/codec2-dev/unittest/tnlp.c index 5ecff877..2f85f7fd 100644 --- a/codec2-dev/unittest/tnlp.c +++ b/codec2-dev/unittest/tnlp.c @@ -116,7 +116,8 @@ char *argv[]; if (dump) dump_on(argv[dump+1]); #else -#warning "Compile with -DDUMP if you expect to dump anything." +/// TODO +/// #warning "Compile with -DDUMP if you expect to dump anything." #endif nlp_states = nlp_create(); diff --git a/codec2-dev/unittest/vqtrain.c b/codec2-dev/unittest/vqtrain.c index ef423158..dbea6f3d 100644 --- a/codec2-dev/unittest/vqtrain.c +++ b/codec2-dev/unittest/vqtrain.c @@ -37,6 +37,7 @@ #include #include #include +#include /*-----------------------------------------------------------------------*\