mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 02:13:33 +08:00
__start() and main() declared with noreturn attribute
This commit is contained in:
@@ -151,8 +151,10 @@ static void call_init_array(unsigned long* start, unsigned long* end)
|
|||||||
// We need to disable pedantic mode to call main()
|
// We need to disable pedantic mode to call main()
|
||||||
#pragma GCC diagnostic ignored "-Wpedantic"
|
#pragma GCC diagnostic ignored "-Wpedantic"
|
||||||
|
|
||||||
|
__attribute__((noreturn))
|
||||||
extern int main();
|
extern int main();
|
||||||
|
|
||||||
|
__attribute__((noreturn))
|
||||||
void __start()
|
void __start()
|
||||||
{
|
{
|
||||||
board::init();
|
board::init();
|
||||||
|
|||||||
Reference in New Issue
Block a user