From 03822739bbf17cf60d174bb7e2935ee98b3c8746 Mon Sep 17 00:00:00 2001 From: Philippe SWARTVAGHER <philippe.swartvagher@inria.fr> Date: Mon, 9 Aug 2021 13:35:59 +0200 Subject: [PATCH] Fix warning in core_zgesum Fix #101 --- coreblas/compute/core_zgesum.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/coreblas/compute/core_zgesum.c b/coreblas/compute/core_zgesum.c index be8d2cf7e..0f6aac2fb 100644 --- a/coreblas/compute/core_zgesum.c +++ b/coreblas/compute/core_zgesum.c @@ -28,7 +28,7 @@ CORE_zgesum_col( int M, int N, CHAMELEON_Complex64_t *sum ) { int i, j; - CHAMELEON_Complex64_t *ptr = A; + const CHAMELEON_Complex64_t *ptr = A; for(j=0; j<N; j++) { for(i=0; i<M; i++) { sum[j] += *ptr; @@ -47,7 +47,7 @@ CORE_zgesum_row( int M, int N, CHAMELEON_Complex64_t *sum ) { int i, j; - CHAMELEON_Complex64_t *ptr = A; + const CHAMELEON_Complex64_t *ptr = A; for(j=0; j<N; j++) { for(i=0; i<M; i++) { sum[i] += *ptr; @@ -66,7 +66,7 @@ CORE_zgesum_elt( int M, int N, CHAMELEON_Complex64_t *sum ) { int i, j; - CHAMELEON_Complex64_t *ptr = A; + const CHAMELEON_Complex64_t *ptr = A; for(j=0; j<N; j++) { for(i=0; i<M; i++) { sum[0] += *ptr; -- GitLab