mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
px4_parameters.hpp.jinja: explicitly set .name attribute
Fixes the compile error on llvm: mixture of designated and non-designated initializers in the same initializer list is a C99 extension [-Wc99-designator]
This commit is contained in:
parent
1370cc0d74
commit
2c96bb3746
@ -23,7 +23,7 @@ enum class params : uint16_t {
|
||||
static constexpr param_info_s parameters[] = {
|
||||
{% for param in params %}
|
||||
{
|
||||
"{{ param.attrib["name"] }}",
|
||||
.name = "{{ param.attrib["name"] }}",
|
||||
{%- if param.attrib["type"] == "FLOAT" %}
|
||||
.val = {{ "{" }} .f = {{ param.attrib["default"] }} {{ "}" }},
|
||||
{%- elif param.attrib["type"] == "INT32" %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user