loopback : remove compile time warnings
authorManisha Agrawal <manisha.agrawal@ti.com>
Thu, 16 Nov 2017 23:03:12 +0000 (17:03 -0600)
committerManisha Agrawal <manisha.agrawal@ti.com>
Thu, 16 Nov 2017 23:03:12 +0000 (17:03 -0600)
Signed-off-by: Manisha Agrawal <manisha.agrawal@ti.com>
loopback.c

index 9475c6971a6cffda0f932c02d9a9accbd939728a..057913687b003b9af810df8f653c7cc3dae06107 100644 (file)
@@ -860,13 +860,6 @@ void drm_enable_pip(void)
 }
 
 
-static int capture_frame(struct v4l2_device_info *v4l2_device,
-struct dmabuf_buffer *buf)
-{
-
-       return 0;
-}
-
 /*
 * Initialize the app resources with default parameters
 */
@@ -1082,18 +1075,28 @@ static void page_flip_handler(int fd, unsigned int frame,
 {
        int *flip_status = data;
        *flip_status = 0;
+
+       /* To avoid compile time warning */
+       (void)fd;
+       (void)frame;
+       (void)sec;
+       (void)usec;
 }
 
 static void page_flip_handler_null(int fd, unsigned int frame,
                                                               unsigned int sec, unsigned int usec,
                                                               void *data)
 {
-
+       /* To avoid compile time warning */
+       (void)fd;
+       (void)frame;
+       (void)sec;
+       (void)usec;
+       (void)data;
 }
 
 void process_frame(void)
 {
-       int ret;
        struct dmabuf_buffer *buf[2] = {NULL, NULL};
        struct v4l2_device_info *v4l2_device[2] =
        {&cap0_device, &cap1_device};