From aa2e89362fbd1613219a1f783bded44355d454dc Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 26 Jul 2018 11:01:02 +0100 Subject: [PATCH] Squash a couple of warnings in example-deconstructor-alt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit example-deconstructor-alt.c: In function ‘main’: example-deconstructor-alt.c:649:51: warning: comparison between ‘yaml_sequence_style_t {aka enum yaml_sequence_style_e}’ and ‘enum yaml_mapping_style_e’ [-Wenum-compare] example-deconstructor-alt.c:650:36: warning: comparison between ‘yaml_sequence_style_t {aka enum yaml_sequence_style_e}’ and ‘enum yaml_mapping_style_e’ [-Wenum-compare] --- tests/example-deconstructor-alt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/example-deconstructor-alt.c b/tests/example-deconstructor-alt.c index f7b06d6..b29c077 100644 --- a/tests/example-deconstructor-alt.c +++ b/tests/example-deconstructor-alt.c @@ -635,10 +635,10 @@ main(int argc, char *argv[]) /* Display the style information. */ - if (input_event.data.sequence_start.style) + if (input_event.data.mapping_start.style) { - yaml_sequence_style_t style - = (yaml_sequence_style_t) input_event.data.mapping_start.style; + yaml_mapping_style_t style + = input_event.data.mapping_start.style; /* Add 'style':