Skip to content

Commit

Permalink
AP_HAL: re-order initialiser lines so -Werror=reorder will work
Browse files Browse the repository at this point in the history
AP_HAL: correct compilation for sim-on-hardware with -werror=reorder
  • Loading branch information
peterbarker committed Nov 12, 2024
1 parent 35f2dce commit cca1edb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/AP_HAL/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ class AP_HAL::HAL {
scheduler(_scheduler),
util(_util),
opticalflow(_opticalflow),
#if AP_SIM_ENABLED && CONFIG_HAL_BOARD != HAL_BOARD_SITL
simstate(_simstate),
#endif
flash(_flash),
#if HAL_WITH_DSP
dsp(_dsp),
Expand All @@ -85,6 +82,9 @@ class AP_HAL::HAL {
_serial7,
_serial8,
_serial9}
#if AP_SIM_ENABLED && CONFIG_HAL_BOARD != HAL_BOARD_SITL
,simstate(_simstate)
#endif
{
#if HAL_NUM_CAN_IFACES > 0
if (_can_ifaces == nullptr) {
Expand Down

0 comments on commit cca1edb

Please sign in to comment.