__start() and main() declared with noreturn attribute

This commit is contained in:
Pavel Kirienko
2014-04-14 15:30:20 +04:00
parent f451aba2c6
commit af2141daaf
@@ -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();