Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/openmp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-10-25 08:28:27 +0300
committerFangrui Song <i@maskray.me>2022-10-25 08:28:27 +0300
commitb0fc18da5bd9f6c6da5f8af775f75a7af9c27af1 (patch)
tree370e703c5f39c2ba30685ae7263f5f3a646d0cd6 /openmp
parenta54f3347e8b39cb606dc1b722da1d0f171ab2fcd (diff)
[ompd] Fix gdb-plugin warnings after D100185
Diffstat (limited to 'openmp')
-rw-r--r--openmp/libompd/gdb-plugin/ompdModule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/openmp/libompd/gdb-plugin/ompdModule.c b/openmp/libompd/gdb-plugin/ompdModule.c
index 7e61e68d5600..df602c54aba3 100644
--- a/openmp/libompd/gdb-plugin/ompdModule.c
+++ b/openmp/libompd/gdb-plugin/ompdModule.c
@@ -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];
@@ -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");