diff mbox series

fix mismatching declaration

Message ID 20200814040340.218452-1-rosenp@gmail.com
State New
Headers show
Series fix mismatching declaration | expand

Commit Message

Rosen Penev Aug. 14, 2020, 4:03 a.m. UTC
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>
---
 lib/libv4lconvert/control/libv4lcontrol.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/lib/libv4lconvert/control/libv4lcontrol.c b/lib/libv4lconvert/control/libv4lcontrol.c
index 0b0a346e4..7296de1d0 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.",