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@xxxxxxxxx> --- lib/libv4lconvert/control/libv4lcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.", -- 2.26.2