mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-19 18:09:06 +08:00
Fixed unused arguments in generated data types
This commit is contained in:
parent
206551bf78
commit
65cdbbdddb
@ -118,6 +118,7 @@ struct ${t.cpp_type_name}
|
||||
${a.name} == rhs.${a.name} ${'&&' if (idx + 1) < len(fields) else ';'}
|
||||
% endfor
|
||||
% else:
|
||||
(void)rhs;
|
||||
return true;
|
||||
% endif
|
||||
}
|
||||
@ -126,6 +127,9 @@ struct ${t.cpp_type_name}
|
||||
static int ${call_name}(${self_parameter_type} self, ::uavcan::ScalarCodec& codec,
|
||||
::uavcan::TailArrayOptimizationMode tao_mode = ::uavcan::TailArrayOptEnabled)
|
||||
{
|
||||
(void)self;
|
||||
(void)codec;
|
||||
(void)tao_mode;
|
||||
int res = 1;
|
||||
% for idx,a in enumerate(fields):
|
||||
res = FieldTypes::${a.name}::${call_name}(self.${a.name}, codec, \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user