AP_Mount: use zero length flexible arrays in unions
This commit is contained in:
parent
af116d238f
commit
ac8c4d9beb
@ -288,7 +288,7 @@ private:
|
||||
alexmos_angles angles;
|
||||
alexmos_params params;
|
||||
alexmos_angles_speed angle_speed;
|
||||
uint8_t bytes[1];
|
||||
uint8_t bytes[0];
|
||||
} _buffer,_current_parameters;
|
||||
|
||||
AP_HAL::UARTDriver *_port;
|
||||
|
@ -145,7 +145,7 @@ private:
|
||||
union PACKED SToRM32_reply {
|
||||
SToRM32_reply_data_struct data;
|
||||
SToRM32_reply_ack_struct ack;
|
||||
uint8_t bytes[1];
|
||||
uint8_t bytes[0];
|
||||
} _buffer;
|
||||
|
||||
// keep the last _current_angle values
|
||||
|
Loading…
Reference in New Issue
Block a user