diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cwrs32-test.c | 1 | ||||
-rw-r--r-- | tests/cwrs64-test.c | 1 | ||||
-rw-r--r-- | tests/ectest.c | 6 | ||||
-rw-r--r-- | tests/laplace-test.c | 2 | ||||
-rw-r--r-- | tests/mathops-test.c | 6 | ||||
-rw-r--r-- | tests/rotation-test.c | 2 | ||||
-rw-r--r-- | tests/type-test.c | 2 |
7 files changed, 9 insertions, 11 deletions
diff --git a/tests/cwrs32-test.c b/tests/cwrs32-test.c index 5fdd0b7..4bbfecf 100644 --- a/tests/cwrs32-test.c +++ b/tests/cwrs32-test.c @@ -26,7 +26,6 @@ int main(int _argc,char **_argv){ int x2[MMAX]; int s2[MMAX]; int y[NMAX]; - int j; int k; cwrsi(n,m,i,x,s); /*printf("%6u of %u:",i,nc);*/ diff --git a/tests/cwrs64-test.c b/tests/cwrs64-test.c index eccc5ce..5fa1ee2 100644 --- a/tests/cwrs64-test.c +++ b/tests/cwrs64-test.c @@ -27,7 +27,6 @@ int main(int _argc,char **_argv){ int x2[MMAX]; int s2[MMAX]; int y[NMAX]; - int j; int k; cwrsi64(n,m,i,x,s); /*printf("%llu of %llu:",i,nc); diff --git a/tests/ectest.c b/tests/ectest.c index a71427b..93441df 100644 --- a/tests/ectest.c +++ b/tests/ectest.c @@ -80,7 +80,7 @@ int main(int _argc,char **_argv){ } sym64=ec_dec_uint64(&dec,(ec_uint64)ft<<30); if(sym64!=((ec_uint64)i<<30|i)){ - fprintf(stderr,"Decoded %lli instead of %lli with ft of %lli.\n",sym64, + fprintf(stderr,"Decoded %lu instead of %lu with ft of %lu.\n",sym64, (ec_uint64)i<<30|i,(ec_uint64)ft<<30); ret=-1; } @@ -95,7 +95,7 @@ int main(int _argc,char **_argv){ } sym64=ec_dec_bits64(&dec,ftb+30); if(sym64!=((ec_uint64)i<<30|i)){ - fprintf(stderr,"Decoded %lli instead of %lli with ftb of %i.\n", + fprintf(stderr,"Decoded %lu instead of %lu with ftb of %i.\n", sym64,(ec_uint64)i<<30|i,ftb+30); ret=-1; } @@ -136,7 +136,7 @@ int main(int _argc,char **_argv){ ec_enc_done(&enc); if ((tell_bits+7)/8 < ec_byte_bytes(&buf)) { - fprintf (stderr, "tell() lied, there's %d bytes instead of %d\n", + fprintf (stderr, "tell() lied, there's %li bytes instead of %d\n", ec_byte_bytes(&buf), (tell_bits+7)/8); ret=-1; } diff --git a/tests/laplace-test.c b/tests/laplace-test.c index 5d0a6c6..4c0a22e 100644 --- a/tests/laplace-test.c +++ b/tests/laplace-test.c @@ -6,7 +6,7 @@ #include <stdlib.h> #include "laplace.h" -int main() +int main(void) { int i; int ret = 0; diff --git a/tests/mathops-test.c b/tests/mathops-test.c index 7044913..0a54126 100644 --- a/tests/mathops-test.c +++ b/tests/mathops-test.c @@ -14,7 +14,7 @@ int ret = 0; -void testdiv() +void testdiv(void) { celt_int32_t i; for (i=-327670;i<=327670;i++) @@ -37,7 +37,7 @@ void testdiv() } } -void testsqrt() +void testsqrt(void) { celt_int32_t i; for (i=1;i<=1000000000;i++) @@ -55,7 +55,7 @@ void testsqrt() } } -int main() +int main(void) { testdiv(); testsqrt(); diff --git a/tests/rotation-test.c b/tests/rotation-test.c index 561dcc7..b66154f 100644 --- a/tests/rotation-test.c +++ b/tests/rotation-test.c @@ -39,7 +39,7 @@ void test_rotation(int N, int K) ret = 1; } -int main() +int main(void) { test_rotation(15, 3); test_rotation(23, 5); diff --git a/tests/type-test.c b/tests/type-test.c index 792b155..47a676e 100644 --- a/tests/type-test.c +++ b/tests/type-test.c @@ -5,7 +5,7 @@ #include "celt_types.h" #include <stdio.h> -int main() +int main(void) { celt_int16_t i = 1; i <<= 14; |