Fix 'control reaches end of non-void function' compile error for 'noreturn'
JerryScript-DCO-1.0-Signed-off-by: SaeHie Park saehie.park@samsung.com
This commit is contained in:
@@ -68,6 +68,11 @@ jerry_fatal (jerry_fatal_code_t code) /**< status code */
|
||||
{
|
||||
exit (code);
|
||||
}
|
||||
|
||||
/* to make compiler happy for some RTOS: 'control reaches end of non-void function' */
|
||||
while (true)
|
||||
{
|
||||
}
|
||||
} /* jerry_fatal */
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user