mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 02:23:34 +08:00
minor build fixes and ignored warnings for GCC 9 (#14159)
- px4io task_main_trampoline add return - iridiumsbd main_loop_helper add return - drivers/uavcan ignore Wcast-align, Wdeprecated-copy, and Waddress-of-packed-member for now - flashparams ignore Wvla-larger-than - test_time fix printf type
This commit is contained in:
@@ -303,7 +303,7 @@ private:
|
||||
/**
|
||||
* Trampoline to the worker task
|
||||
*/
|
||||
static void task_main_trampoline(int argc, char *argv[]);
|
||||
static int task_main_trampoline(int argc, char *argv[]);
|
||||
|
||||
/**
|
||||
* worker task
|
||||
@@ -882,7 +882,7 @@ PX4IO::init()
|
||||
SCHED_DEFAULT,
|
||||
SCHED_PRIORITY_ACTUATOR_OUTPUTS,
|
||||
1500,
|
||||
(main_t)&PX4IO::task_main_trampoline,
|
||||
(px4_main_t)&PX4IO::task_main_trampoline,
|
||||
nullptr);
|
||||
|
||||
if (_task < 0) {
|
||||
@@ -893,10 +893,11 @@ PX4IO::init()
|
||||
return OK;
|
||||
}
|
||||
|
||||
void
|
||||
int
|
||||
PX4IO::task_main_trampoline(int argc, char *argv[])
|
||||
{
|
||||
g_dev->task_main();
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user