From 63d3e02b59e1bd3115f60489c87a8d515dcd8992 Mon Sep 17 00:00:00 2001 From: SaeHie Park Date: Tue, 18 Aug 2015 09:50:47 +0900 Subject: [PATCH] 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 --- jerry-core/jrt/jrt-fatals.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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 */ /**