tests/: add void to prototypes to build with -Wstrict-prototypes
authorPaul Brossier <piem@piem.org>
Mon, 30 Dec 2013 21:09:32 +0000 (17:09 -0400)
committerPaul Brossier <piem@piem.org>
Mon, 30 Dec 2013 21:09:32 +0000 (17:09 -0400)
32 files changed:
tests/src/onset/test-peakpicker.c
tests/src/pitch/test-pitch.c
tests/src/pitch/test-pitchfcomb.c
tests/src/pitch/test-pitchmcomb.c
tests/src/pitch/test-pitchschmitt.c
tests/src/pitch/test-pitchspecacf.c
tests/src/pitch/test-pitchyin.c
tests/src/pitch/test-pitchyinfft.c
tests/src/spectral/test-fft.c
tests/src/spectral/test-filterbank.c
tests/src/spectral/test-filterbank_mel.c
tests/src/spectral/test-mfcc.c
tests/src/spectral/test-phasevoc.c
tests/src/spectral/test-specdesc.c
tests/src/spectral/test-tss.c
tests/src/tempo/test-beattracking.c
tests/src/temporal/test-a_weighting.c
tests/src/temporal/test-biquad.c
tests/src/temporal/test-c_weighting.c
tests/src/temporal/test-filter.c
tests/src/temporal/test-resampler.c
tests/src/test-cvec.c
tests/src/test-delnull.c
tests/src/test-fmat.c
tests/src/test-fvec.c
tests/src/test-lvec.c
tests/src/test-mathutils-window.c
tests/src/test-mathutils.c
tests/src/utils/test-hist.c
tests/src/utils/test-parameter.c
tests/src/utils/test-scale.c
tests/utils_tests.h

index 4113082..e86232d 100644 (file)
@@ -2,7 +2,7 @@
 
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   uint_t win_s = 1024; // window size
   fvec_t * in = new_fvec (win_s); // input buffer
index 57427e3..1509870 100644 (file)
@@ -1,6 +1,6 @@
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   // 1. allocate some memory
   uint_t n = 0; // frame counter
index 1ce1e5d..718537b 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   uint_t i = 0;
   uint_t win_s = 1024; // window size
index 471bffd..9e8483b 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   uint_t n = 10; // compute n times
   uint_t win_s = 1024; // window size
index b856302..bae7f81 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   uint_t n = 10; // compute n times
   uint_t win_s = 1024; // window size
index de22c07..5a4fa23 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   uint_t n = 10; // compute n times
   uint_t win_s = 1024; // window size
index a7cad73..9b45c55 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   uint_t n = 10; // compute n times
   uint_t win_s = 1024; // window size
index 158aea7..ee1ece8 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   uint_t n = 10; // compute n times
   uint_t win_s = 1024; // window size
index 101c406..6405de4 100644 (file)
@@ -1,6 +1,6 @@
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   uint_t win_s = 8; // window size
   fvec_t * in = new_fvec (win_s); // input buffer
index d839bc6..543226d 100644 (file)
@@ -1,6 +1,6 @@
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   uint_t win_s = 1024; // window size
   uint_t n_filters = 13; // number of filters
index 23e402e..0a0c670 100644 (file)
@@ -1,6 +1,6 @@
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   uint_t samplerate = 16000; // samplerate of signal to filter
   uint_t win_s = 512; // fft size
index a2d4d58..23f8c64 100644 (file)
@@ -1,6 +1,6 @@
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   uint_t win_s = 512; // fft size
   uint_t n_filters = 40; // number of filters
index d4edb23..e43b881 100644 (file)
@@ -1,6 +1,6 @@
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   uint_t n = 6; // compute n times
   uint_t win_s = 32; // window size
index b99ea16..f890e59 100644 (file)
@@ -1,6 +1,6 @@
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   uint_t win_s = 1024; // window size
   cvec_t *in = new_cvec (win_s); // input buffer
index 201d35b..0e18b20 100644 (file)
@@ -1,6 +1,6 @@
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   uint_t n = 10; // compute n times
   uint_t win_s = 1024; // window size
index 864ea96..323e493 100644 (file)
@@ -3,7 +3,7 @@
 #include <aubio.h>
 #include <stdio.h>
 
-int main ()
+int main (void)
 {
   uint_t i = 0;
   uint_t win_s = 1024; // window size
index 3ac3c26..f6399b5 100644 (file)
@@ -1,6 +1,6 @@
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   
   aubio_filter_t * f;
index 33c1ca0..8317b06 100644 (file)
@@ -1,6 +1,6 @@
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   uint_t win_s = 64; // window size
 
index dccaa58..96d8ee7 100644 (file)
@@ -1,6 +1,6 @@
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   aubio_filter_t * f;
 
index 8461db0..260d81b 100644 (file)
@@ -1,6 +1,6 @@
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   uint_t win_s = 16; // window size
   uint_t impulse_at = win_s / 2;
index 1ac65e9..ee818e1 100644 (file)
@@ -1,6 +1,6 @@
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   uint_t win_s = 1024; // window size
   smpl_t ratio = 0.5;
index 9b02d12..59272f0 100644 (file)
@@ -1,7 +1,7 @@
 #include <aubio.h>
 #include "utils_tests.h"
 
-int main ()
+int main (void)
 {
   uint_t i, window_size = 16; // window size
   utils_init_random();
index 96d472c..1c7ecd8 100644 (file)
@@ -4,7 +4,7 @@
 // Because aubio does not check for double free, this program will crash.
 // Programs that call these functions should check for null pointers.
 
-int main ()
+int main (void)
 {
   del_fvec(NULL);
   del_lvec(NULL);
index 718903d..ab8b274 100644 (file)
@@ -4,7 +4,7 @@
 // create a new matrix and fill it with i * 1. + j * .1, where i is the row,
 // and j the column.
 
-int main ()
+int main (void)
 {
   uint_t height = 3, length = 9, i, j;
   // create fmat_t object
index 8a1e63c..fbbd418 100644 (file)
@@ -1,7 +1,7 @@
 #include <aubio.h>
 #include <assert.h>
 
-int main ()
+int main (void)
 {
   uint_t vec_size = 10, i;
   fvec_t * vec = new_fvec (vec_size);
index b115bb3..6e5c531 100644 (file)
@@ -1,7 +1,7 @@
 #include <aubio.h>
 #include "utils_tests.h"
 
-int main()
+int main (void)
 {
   uint_t win_s = 32; // window size
   lvec_t * sp = new_lvec (win_s); // input buffer
index e3db514..e09626f 100644 (file)
@@ -2,7 +2,7 @@
 #include <math.h>
 #include <stdio.h>
 
-int main ()
+int main (void)
 {
   uint_t length = 0;
   uint_t n_length = 4, n_types = 10, i, t;
index 96ace80..62631f0 100644 (file)
@@ -3,7 +3,7 @@
 #define AUBIO_UNSTABLE 1
 #include <aubio.h>
 
-int test_next_power_of_two()
+int test_next_power_of_two (void)
 {
   uint_t a, b;
   a = 15; b = aubio_next_power_of_two(a); assert(b == 16);
@@ -24,7 +24,7 @@ int test_next_power_of_two()
   return 0;
 }
 
-int test_miditofreq()
+int test_miditofreq (void)
 {
   smpl_t a, b;
   fprintf(stdout, "b = aubio_miditofreq(a): [");
@@ -55,7 +55,7 @@ int test_miditofreq()
   return 0;
 }
 
-int test_freqtomidi()
+int test_freqtomidi (void)
 {
   smpl_t midi, freq;
   fprintf(stdout, "b = aubio_freqtomidi(a): [");
@@ -87,7 +87,7 @@ int test_freqtomidi()
   return 0;
 }
 
-int test_aubio_window()
+int test_aubio_window (void)
 {
   uint_t window_size = 16;
   fvec_t * window = new_aubio_window("default", window_size);
@@ -107,7 +107,7 @@ int test_aubio_window()
   return 0;
 }
 
-int main ()
+int main (void)
 {
   test_next_power_of_two();
   test_miditofreq();
index dc347e7..ee3bc9b 100644 (file)
@@ -2,7 +2,7 @@
 
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   uint_t length;
   for (length = 1; length < 10; length ++ ) {
index 177e63d..dd2b963 100644 (file)
@@ -20,7 +20,7 @@ void get_some_steps ( aubio_parameter_t * param )
 
 }
 
-int main ()
+int main (void)
 {
   smpl_t max_value = 100.;
   smpl_t min_value = 0.;
index bc80296..df1f0d8 100644 (file)
@@ -2,7 +2,7 @@
 
 #include <aubio.h>
 
-int main ()
+int main (void)
 {
   uint_t n = 0;
   uint_t win_s = 1024; // window size
index 8ab5fe7..07f0719 100644 (file)
@@ -26,7 +26,9 @@ uint_t random(void) {
 }
 #endif
 
-void utils_init_random () {
+void utils_init_random (void);
+
+void utils_init_random (void) {
   time_t now = time(0);
   struct tm *tm_struct = localtime(&now);
   int seed = tm_struct->tm_sec;