mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-26 17:10:35 +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()
|
||||
#pragma GCC diagnostic ignored "-Wpedantic"
|
||||
|
||||
__attribute__((noreturn))
|
||||
extern int main();
|
||||
|
||||
__attribute__((noreturn))
|
||||
void __start()
|
||||
{
|
||||
board::init();
|
||||
|
||||
Reference in New Issue
Block a user