Skip to content

Commit b0fc18d

Browse files
committed
[ompd] Fix gdb-plugin warnings after D100185
1 parent a54f334 commit b0fc18d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

openmp/libompd/gdb-plugin/ompdModule.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ ompd_rc_t _print(const char *str, int category) {
515515
return ompd_rc_ok;
516516
}
517517

518-
void _printf(char *format, ...) {
518+
void _printf(const char *format, ...) {
519519
va_list args;
520520
va_start(args, format);
521521
char output[1024];
@@ -783,11 +783,11 @@ _thread_context(ompd_address_space_context_t *context, /* IN */
783783
return ompd_rc_unsupported;
784784
long int tid;
785785
if (sizeof(long int) >= 8 && sizeof_thread_id == 8)
786-
tid = *(uint64_t *)thread_id;
786+
tid = *(const uint64_t *)thread_id;
787787
else if (sizeof(long int) >= 4 && sizeof_thread_id == 4)
788-
tid = *(uint32_t *)thread_id;
788+
tid = *(const uint32_t *)thread_id;
789789
else if (sizeof(long int) >= 2 && sizeof_thread_id == 2)
790-
tid = *(uint16_t *)thread_id;
790+
tid = *(const uint16_t *)thread_id;
791791
else
792792
return ompd_rc_bad_input;
793793
PyObject *pFunc = PyObject_GetAttrString(pModule, "_thread_context");

0 commit comments

Comments
 (0)