Skip to content

Commit

Permalink
[ompd] Fix gdb-plugin warnings after D100185
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Oct 25, 2022
1 parent a54f334 commit b0fc18d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openmp/libompd/gdb-plugin/ompdModule.c
Expand Up @@ -515,7 +515,7 @@ ompd_rc_t _print(const char *str, int category) {
return ompd_rc_ok;
}

void _printf(char *format, ...) {
void _printf(const char *format, ...) {
va_list args;
va_start(args, format);
char output[1024];
Expand Down Expand Up @@ -783,11 +783,11 @@ _thread_context(ompd_address_space_context_t *context, /* IN */
return ompd_rc_unsupported;
long int tid;
if (sizeof(long int) >= 8 && sizeof_thread_id == 8)
tid = *(uint64_t *)thread_id;
tid = *(const uint64_t *)thread_id;
else if (sizeof(long int) >= 4 && sizeof_thread_id == 4)
tid = *(uint32_t *)thread_id;
tid = *(const uint32_t *)thread_id;
else if (sizeof(long int) >= 2 && sizeof_thread_id == 2)
tid = *(uint16_t *)thread_id;
tid = *(const uint16_t *)thread_id;
else
return ompd_rc_bad_input;
PyObject *pFunc = PyObject_GetAttrString(pModule, "_thread_context");
Expand Down

0 comments on commit b0fc18d

Please sign in to comment.