From: Hans Verkuil Date: Tue, 1 Apr 2014 06:34:15 +0000 (+0200) Subject: v4l2-compliance: add missing 'class' keyword after 'friend' X-Git-Tag: v4l-utils-1.2.0~104 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c6c0816a4e687b1cc8bf839216b830261cbb692;p=platform%2Fupstream%2Fv4l-utils.git 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 --- 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)