Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57fa4482 authored by William Escande's avatar William Escande
Browse files

Fix reorder-init-list in power telemetry

```
stack_power_telemetry.cc:518:7: warning: ISO C++ requires field
designators to be specified in declaration order;
field 'channel_type' will be initialized after field 'src'
[-Wreorder-init-list]
      .src.cid = static_cast<uint16_t>(src_id),
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stack_power_telemetry.cc:517:23: note: previous initialization for field
'channel_type' is here
      .channel_type = channel_type,
                      ^~~~~~~~~~~~
 ```

Bug: 297606425
Test: m Bluetooth | Only build needed no-op change
Change-Id: Ifad027799e58a93afb11ea97c54c30adefb104ea
parent 40bf9f85
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -514,10 +514,10 @@ void power_telemetry::PowerTelemetry::LogChannelConnected(
  ChannelDetails channel_details = {
      .bd_addr = bd_addr,
      .psm = psm,
      .channel_type = channel_type,
      .src.cid = static_cast<uint16_t>(src_id),
      .dst.cid = static_cast<uint16_t>(dst_id),
      .state = State::kConnected,
      .channel_type = channel_type,
      .data_transfer = {},
      .duration.begin = get_current_time(),
      .rx = {},