Skip to content

Commit

Permalink
Add return values after TR_UNIMPLEMENTED to avoid warnings
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
fjeremic committed Mar 25, 2019
1 parent 37b9964 commit 57f6100
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/infra/OMRMonitor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<intptr_t>(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);

Expand Down

0 comments on commit 57f6100

Please sign in to comment.