From 57f61007ddd4e738a1494c673513d2a5e2d2daf1 Mon Sep 17 00:00:00 2001 From: Filip Jeremic Date: Mon, 25 Mar 2019 14:33:29 -0400 Subject: [PATCH] Add return values after TR_UNIMPLEMENTED to avoid warnings Avoid following warnings by adding proper return values: ``` "/omr/compiler/infra/OMRMonitor.hpp", line 50.46: CCN6101 (W) A return value of type "int" is expected. "/omr/compiler/infra/OMRMonitor.hpp", line 54.77: CCN6101 (W) A return value of type "long" is expected. "/omr/compiler/infra/OMRMonitor.hpp", line 57.48: CCN6101 (W) A return value of type "int" is expected. "/omr/compiler/infra/OMRMonitor.hpp", line 50.46: CCN6101 (W) A return value of type "int" is expected. "/omr/compiler/infra/OMRMonitor.hpp", line 54.77: CCN6101 (W) A return value of type "long" is expected. ``` Signed-off-by: Filip Jeremic --- compiler/infra/OMRMonitor.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/infra/OMRMonitor.hpp b/compiler/infra/OMRMonitor.hpp index 5321f662fc5..785bce02fe2 100644 --- a/compiler/infra/OMRMonitor.hpp +++ b/compiler/infra/OMRMonitor.hpp @@ -47,14 +47,14 @@ class Monitor static TR::Monitor *create(char *name); static void destroy(TR::Monitor *monitor); void enter(); - int32_t try_enter() { TR_UNIMPLEMENTED(); } + int32_t try_enter() { TR_UNIMPLEMENTED(); return 0; } int32_t exit(); // returns 0 on success void destroy(); void wait() { TR_UNIMPLEMENTED(); } - intptr_t wait_timed(int64_t millis, int32_t nanos) { TR_UNIMPLEMENTED(); } + intptr_t wait_timed(int64_t millis, int32_t nanos) { TR_UNIMPLEMENTED(); return static_cast(0); } void notify() { TR_UNIMPLEMENTED(); } void notifyAll() { TR_UNIMPLEMENTED(); } - int32_t num_waiting() { TR_UNIMPLEMENTED(); } + int32_t num_waiting() { TR_UNIMPLEMENTED(); return 0; } char const *getName(); bool init(char *name);