mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 19:03:35 +08:00
Fixed unused variables in generated code
This commit is contained in:
@@ -314,6 +314,9 @@ public:
|
|||||||
template <typename Stream>
|
template <typename Stream>
|
||||||
void YamlStreamer< ${type_name} >::stream(Stream& s, ${type_name}::ParameterType obj, const int level)
|
void YamlStreamer< ${type_name} >::stream(Stream& s, ${type_name}::ParameterType obj, const int level)
|
||||||
{
|
{
|
||||||
|
(void)s;
|
||||||
|
(void)obj;
|
||||||
|
(void)level;
|
||||||
% for idx,a in enumerate(fields):
|
% for idx,a in enumerate(fields):
|
||||||
% if idx == 0:
|
% if idx == 0:
|
||||||
if (level > 0)
|
if (level > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user