package/optee-benchmark: fix gcc 10 warning
authorRomain Naour <romain.naour@gmail.com>
Sat, 30 May 2020 17:14:28 +0000 (19:14 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 6 Jun 2020 21:47:19 +0000 (23:47 +0200)
commitbf306252baba39b7af41f5e307a818a58b484d9c
treeb09f2d953eb14ab9379e858986c73c4ed6674f28
parentda7ff8f6994e06de0c7d8b5c03440b5d0be3639a
package/optee-benchmark: fix gcc 10 warning

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@gmail.com>
Cc: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/optee-benchmark/0001-main-fix-typo.patch [new file with mode: 0644]