From: Samuel Thibault Date: Sun, 7 Jul 2024 19:54:03 +0000 (+0200) Subject: gcc-14 X-Git-Tag: archive/raspbian/1.4.5+dfsg-2+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=57c75a4442f1d1e04d47ca8f9a696c2dc4be6681;p=starpu.git gcc-14 commit 1b1683aab9ba6e5af7a84fc281a19858176790fd Author: Samuel Thibault Date: Mon Jan 29 14:29:36 2024 +0100 omp: Fix warnings commit 788e31b00df7442e903f7c1d68310075ea295019 Author: Samuel Thibault Date: Sun Jul 7 21:29:44 2024 +0200 gcc 14 wants an explicit cast Gbp-Pq: Name gcc-14 --- diff --git a/starpu_openmp_llvm/src/openmp_runtime_support_llvm.c b/starpu_openmp_llvm/src/openmp_runtime_support_llvm.c index 2809cfe..88d4ac4 100644 --- a/starpu_openmp_llvm/src/openmp_runtime_support_llvm.c +++ b/starpu_openmp_llvm/src/openmp_runtime_support_llvm.c @@ -1,6 +1,6 @@ /* StarPU --- Runtime system for heterogeneous multicore architectures. * - * Copyright (C) 2018-2023 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria + * Copyright (C) 2018-2024 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria * * StarPU is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -357,7 +357,7 @@ kmp_task_t *__kmpc_omp_task_alloc(ident_t *loc_ref, kmp_int32 gtid, static void task_call_variants(void (*fn)(void*, ...), void *buffers[], void *args) { void **arg_ptrs = args; - int nargs = arg_ptrs[1]; + intptr_t nargs = (intptr_t) arg_ptrs[1]; // TODO: asm it, as we could do it nicely in a loop switch (nargs) { @@ -411,7 +411,7 @@ kmp_task_t *__kmpc_omp_task_alloc_variants(ident_t *loc_ref, kmp_int32 gtid, size_t sizeof_kmp_task_t, size_t sizeof_shareds, kmp_routine_entry_t task_entry, - kmp_int32 nvariants) + kmp_int32 nvariants STARPU_ATTRIBUTE_UNUSED) { kmp_task_t *task = __kmpc_omp_task_alloc(loc_ref, gtid, flags, sizeof_kmp_task_t, sizeof_shareds, task_entry); #ifdef _STARPU_OPENMP_LLVM_VARIANT @@ -453,7 +453,7 @@ kmp_int32 __kmpc_omp_task_with_deps(ident_t *loc_ref, kmp_int32 gtid, /* This is freed in starpu_omp_task_region, as attr.cl_arg_free is set to true*/ void **arg_ptrs = calloc(4, sizeof(void*)); arg_ptrs[0] = new_task; - arg_ptrs[1] = ndeps + ndeps_noalias; + arg_ptrs[1] = (void*) (intptr_t) (ndeps + ndeps_noalias); #ifdef _STARPU_OPENMP_LLVM_VARIANT if (new_task->nvariants == 0)