[Buildroot] [PATCH 1/1] package/bellagio: fix build with gcc 10

Thomas Petazzoni thomas.petazzoni at bootlin.com
Thu Aug 13 19:59:22 UTC 2020


On Wed, 12 Aug 2020 22:25:08 +0200
Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:

> +diff --git a/src/omx_reference_resource_manager.c b/src/omx_reference_resource_manager.c
> +index ee7766b..5983611 100644
> +--- a/src/omx_reference_resource_manager.c
> ++++ b/src/omx_reference_resource_manager.c
> +@@ -30,6 +30,11 @@
> + #include "base/omx_base_component.h"
> + #include "queue.h"
> + 
> ++int globalIndex;
> ++NameIndexType *listOfcomponentRegistered;
> ++ComponentListType **globalComponentList;
> ++ComponentListType **globalWaitingComponentList;

If these symbols are really only used in this file, then they should
preferably be declared with the static qualifier.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list