Skip to contentSkip to conversation

fix mismatching declaration

PATCH New Rosen Penev 1 participant 1 message Aug 14, 2020 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix mismatching declaration

When compiling with GCC 10 and meson, it errors on this function as it is declared with V4LCONTROL_COUNT later on.

---
 lib/libv4lconvert/control/libv4lcontrol.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/libv4lconvert/control/libv4lcontrol.c +1 -1
index 0b0a346e4..7296de1d0 100644
@@ -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.",
Signature · 1 line
2.26.2