mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 10:03:33 +08:00
mavlink: remove typedef of anonymous struct
Clang doesn't seem to like these.
This commit is contained in:
@@ -55,7 +55,7 @@ class TimestampedList
|
||||
public:
|
||||
TimestampedList(int num_items)
|
||||
{
|
||||
_list = new item_t[num_items];
|
||||
_list = new item_s[num_items];
|
||||
_list_len = num_items;
|
||||
}
|
||||
|
||||
@@ -148,12 +148,12 @@ public:
|
||||
TimestampedList operator=(const TimestampedList &) = delete;
|
||||
|
||||
private:
|
||||
typedef struct {
|
||||
struct item_s {
|
||||
hrt_abstime timestamp_us = 0; // 0 signals inactive.
|
||||
T value;
|
||||
} item_t;
|
||||
};
|
||||
|
||||
item_t *_list = nullptr;
|
||||
item_s *_list = nullptr;
|
||||
int _list_len = 0;
|
||||
int _current_i = -1;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user