Skip to content

Commit

Permalink
Fix CCN3280
Browse files Browse the repository at this point in the history
```
WARNING CCN3280 /u/jenkins/fjeremic/omr/thread/common/thrprof.c:245   Function argument assignment between types "unsigned int*" and "int*" is not allowed.
```
  • Loading branch information
fjeremic committed Aug 18, 2021
1 parent 859c4bf commit 926386e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions thread/common/thrprof.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ omrthread_get_cpu_time_ex(omrthread_t thread, int64_t *cpuTime)
unsigned char *output_buffer = (unsigned char *) &threadData;
uint32_t output_size = sizeof(struct j9pg_thread_data);
uint32_t input_size = sizeof(struct pgtha);
int32_t ret_val = 0;
uint32_t ret_val = 0;
uint32_t ret_code = 0;
uint32_t reason_code = 0;
uint32_t data_offset = 0;
Expand Down Expand Up @@ -749,7 +749,7 @@ omrthread_get_process_times(omrthread_process_time_t *processTime)
unsigned char *output_buffer = (unsigned char *) &threadData;
uint32_t output_size = sizeof(struct j9pg_thread_data);
struct pgthc *pgthc = NULL;
int32_t ret_val = 0;
uint32_t ret_val = 0;
uint32_t ret_code = 0;
uint32_t reason_code = 0;
uint32_t data_offset = 0;
Expand Down
2 changes: 1 addition & 1 deletion util/omrutil/gettimebase.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ getTimebase(void)
#elif defined(LINUX) && defined(S390)
asm("stck %0" : "=m" (tsc));
#elif defined(J9ZOS390)
__stck(&tsc);
__stck((unsigned long long*)&tsc);
#elif defined(LINUX) && (defined(OMR_ARCH_ARM) || defined(OMR_ARCH_RISCV) || defined(RISCV64))
/* For now, use the system nano clock */
#define J9TIME_NANOSECONDS_PER_SECOND J9CONST_U64(1000000000)
Expand Down

0 comments on commit 926386e

Please sign in to comment.