From c35df4e8bcbc0b2de1b6cafe898b5d62b8eef40f Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Mon, 1 Mar 2021 18:33:22 -0500 Subject: Fix building with gcc 10 Fix up the mix of explicit and automatic array sizes that gcc 10 now complains about. Bug-AGL: SPEC-3819 Signed-off-by: Scott Murray Change-Id: Iea2b7802618bf6537e96e59bd035ca4b91597642 --- binding/afm-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'binding/afm-common.c') diff --git a/binding/afm-common.c b/binding/afm-common.c index 93e6f54..635fc7b 100644 --- a/binding/afm-common.c +++ b/binding/afm-common.c @@ -19,7 +19,7 @@ #include "afm-common.h" -const char *gstreamer_control_commands[] = { +const char *gstreamer_control_commands[NUM_CMDS] = { "play", "pause", "previous", @@ -34,7 +34,7 @@ const char *gstreamer_control_commands[] = { }; /* NULLs signal this functional isn't available */ -const char *avrcp_control_commands[] = { +const char *avrcp_control_commands[NUM_CMDS] = { "Play", "Pause", "Previous", -- cgit 1.2.3-korg