v4l2-compliance: add missing 'class' keyword after 'friend'
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 1 Apr 2014 06:34:15 +0000 (08:34 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Tue, 1 Apr 2014 06:34:15 +0000 (08:34 +0200)
This led to this compile error for some compilers:

In file included from v4l2-compliance.h:31,
                 from v4l2-compliance.cpp:37:
./cv4l-helpers.h:9: error: a class-key must be used when declaring a friend
./cv4l-helpers.h:9: error: friend declaration does not name a class or function

I'm not sure why this doesn't fail for all compilers, weird.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: Prabhakar Lad <prabhakar.csengg@gmail.com>
utils/v4l2-compliance/cv4l-helpers.h

index 2423ef9..e2729a6 100644 (file)
@@ -6,7 +6,7 @@
 class cv4l_buffer;
 
 class cv4l_queue : v4l_queue {
-       friend cv4l_buffer;
+       friend class cv4l_buffer;
 public:
        cv4l_queue(v4l_fd *_fd, unsigned type = V4L2_BUF_TYPE_VIDEO_CAPTURE,
                                unsigned memory = V4L2_MEMORY_MMAP)