[aravis] tests: compilation warning fix.



commit d0e41b6b43a08d0d8adb29c3a26634fdd2a7c95f
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Thu Nov 28 19:17:28 2013 +0100

    tests: compilation warning fix.

 tests/timetest.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/tests/timetest.c b/tests/timetest.c
index 941af36..c3f90c8 100644
--- a/tests/timetest.c
+++ b/tests/timetest.c
@@ -19,14 +19,12 @@ static gint64
 time_wait (gint64 usec )
 {
        gint64 wt, st, tt;
-       gint64 i, wait;
+       gint64 i;
 
        st = get_time_us ();
        wt = st + usec;
-       wait = usec;
-       for( i = 0, tt = get_time_us(); tt < wt;  wait = (gint64) (wt - tt), i++ ) {
+       for (i = 0, tt = get_time_us(); tt < wt; i++ )
                tt = get_time_us ();
-       }
 
   return tt-st;
 }
@@ -81,5 +79,3 @@ main (int argc, char **argv)
 
        return EXIT_SUCCESS;
 }
-
-


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]