[Buildroot] [PATCH for-next] package/optee-benchmark: fix gcc 10 warning

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat Jun 6 21:48:36 UTC 2020


On Sat, 30 May 2020 19:14:28 +0200
Romain Naour <romain.naour at gmail.com> wrote:

> The function yaml_mapping_start_event_initialize()
> take yaml_mapping_style_t style as last argument:
> 
> int yaml_mapping_start_event_initialize(
>     yaml_event_t *event,
>     const yaml_char_t *anchor,
>     const yaml_char_t *tag,
>     int implicit,
>     yaml_mapping_style_t style)
> 
> Use YAML_ANY_MAPPING_STYLE instead of YAML_ANY_SEQUENCE_STYLE
> 
> Fixes:
> main.c:173:5: error: implicit conversion from ‘enum yaml_sequence_style_e’ to ‘yaml_mapping_style_t’ {aka ‘enum yaml_mapping_style_e’} [-Werror=enum-conversion]
>   173 |     YAML_ANY_SEQUENCE_STYLE))
>       |     ^~~~~~~~~~~~~~~~~~~~~~~
> 
> Signed-off-by: Romain Naour <romain.naour at gmail.com>
> Cc: Etienne Carriere <etienne.carriere at linaro.org>
> ---
>  .../optee-benchmark/0001-main-fix-typo.patch  | 55 +++++++++++++++++++
>  1 file changed, 55 insertions(+)
>  create mode 100644 package/optee-benchmark/0001-main-fix-typo.patch

Applied to master, thanks.

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


More information about the buildroot mailing list