I totally forgot to submit this patch to fix this warning.  Here it is.

nuno alexandre wrote:

/home/ikaro/ivtv-0.3.6y/driver/ivtv-streams.c: In function
`ivtv_stop_capture':
/home/ikaro/ivtv-0.3.6y/driver/ivtv-streams.c:1328: warning: ISO C90
forbids mixed declarations and code

Index: driver/ivtv-streams.c
===================================================================
--- driver/ivtv-streams.c       (revision 337)
+++ driver/ivtv-streams.c       (working copy)
@@ -1321,12 +1321,11 @@
        int stopmode;
        u32 data[IVTV_MBOX_MAX_DATA], result;
        int thread_to_stop = 0;
+       DECLARE_WAITQUEUE(wait, current);
 
        if (st == NULL)
                return -EINVAL;
 
-       DECLARE_WAITQUEUE(wait, current);
-
        /* This function assumes that you are allowed to stop the capture
           and that we are actually capturing */
 

Reply via email to