fix(yaml): flex switch warnings (#4949)
Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com> Co-authored-by: 3djc <3djc@gh.com> Co-authored-by: elecpower <neilh713@tpg.com.au>
This commit is contained in:
co-authored by
raphaelcoeffic
3djc
elecpower
parent
dd87ecb89a
commit
0d6ce7d22d
@@ -45,6 +45,9 @@ static const struct YamlNode {{ struct.name }}[] = {
|
||||
YAML_UNION("{{ max_len(elmt.name) }}", {{elmt.bits}}, {{elmt.var_type}}_elmts, {{ elmt.func}}),
|
||||
{% elif elmt.type == 'array' %}
|
||||
YAML_ARRAY("{{ max_len(elmt.name) }}", {{elmt.bits // elmt.length}}, {{elmt.length}}, {{elmt.var_type}}, {{ elmt.func }}),
|
||||
{% if padding_bits(elmt) > 0 %}
|
||||
YAML_PADDING({{ padding_bits(elmt) }}),
|
||||
{% endif %}
|
||||
{% elif elmt.raw %}
|
||||
{{ elmt.raw }},
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user