diff --git a/jerry-core/jrt/jrt-fatals.cpp b/jerry-core/jrt/jrt-fatals.cpp index cfae74892..0b54f89f4 100644 --- a/jerry-core/jrt/jrt-fatals.cpp +++ b/jerry-core/jrt/jrt-fatals.cpp @@ -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 */ /**