mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 21:13:33 +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:
@@ -23,7 +23,7 @@ enum class params : uint16_t {
|
|||||||
static constexpr param_info_s parameters[] = {
|
static constexpr param_info_s parameters[] = {
|
||||||
{% for param in params %}
|
{% for param in params %}
|
||||||
{
|
{
|
||||||
"{{ param.attrib["name"] }}",
|
.name = "{{ param.attrib["name"] }}",
|
||||||
{%- if param.attrib["type"] == "FLOAT" %}
|
{%- if param.attrib["type"] == "FLOAT" %}
|
||||||
.val = {{ "{" }} .f = {{ param.attrib["default"] }} {{ "}" }},
|
.val = {{ "{" }} .f = {{ param.attrib["default"] }} {{ "}" }},
|
||||||
{%- elif param.attrib["type"] == "INT32" %}
|
{%- elif param.attrib["type"] == "INT32" %}
|
||||||
|
|||||||
Reference in New Issue
Block a user