aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-08-13 21:03:40 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-08-20 14:27:20 +0200
commitfd2b9cdabdbb6b1b04298a54f560849c1510b445 (patch)
tree2ec3733ed75373da964efe5d54d05d70fa664a56
parentdb3112262c84813e0d2d095be020c5ca0ae32e93 (diff)
fix mismatching declaration
When compiling with GCC 10 and meson, it errors on this function as it is declared with V4LCONTROL_COUNT later on. Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--lib/libv4lconvert/control/libv4lcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libv4lconvert/control/libv4lcontrol.c b/lib/libv4lconvert/control/libv4lcontrol.c
index 0b0a346e..7296de1d 100644
--- a/lib/libv4lconvert/control/libv4lcontrol.c
+++ b/lib/libv4lconvert/control/libv4lcontrol.c
@@ -262,7 +262,7 @@ static const struct v4lcontrol_flags_info v4lcontrol_flags[] = {
{ 0x1046, 0x9967, 0, NULL, NULL, V4LCONTROL_FORCE_TINYJPEG },
};
-static const struct v4l2_queryctrl fake_controls[];
+static const struct v4l2_queryctrl fake_controls[V4LCONTROL_COUNT];
static const char *asus_board_vendor[] = {
"ASUSTeK Computer Inc.",

Privacy Policy