From 6c6c0816a4e687b1cc8bf839216b830261cbb692 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Tue, 1 Apr 2014 08:34:15 +0200 Subject: [PATCH] v4l2-compliance: add missing 'class' keyword after 'friend' 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 Reported-by: Prabhakar Lad --- utils/v4l2-compliance/cv4l-helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/v4l2-compliance/cv4l-helpers.h b/utils/v4l2-compliance/cv4l-helpers.h index 2423ef9..e2729a6 100644 --- a/utils/v4l2-compliance/cv4l-helpers.h +++ b/utils/v4l2-compliance/cv4l-helpers.h @@ -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) -- 2.7.4