From b21a979cc02a11f4e5f850f5aa8b39c9e48d0050 Mon Sep 17 00:00:00 2001 From: Mathieu Faverge <mathieu.faverge@inria.fr> Date: Thu, 20 Feb 2025 11:41:56 +0100 Subject: [PATCH] compute/gepdf: protect declaration of descriptors D1 and D2 --- compute/zgepdf_qr.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/compute/zgepdf_qr.c b/compute/zgepdf_qr.c index 6ea672f01..787813328 100644 --- a/compute/zgepdf_qr.c +++ b/compute/zgepdf_qr.c @@ -85,8 +85,11 @@ int CHAMELEON_zgepdf_qr_Tile( int doqr, int optid, CHAM_context_t *chamctxt; RUNTIME_sequence_t *sequence = NULL; RUNTIME_request_t request = RUNTIME_REQUEST_INITIALIZER; - CHAM_desc_t D1, *D1ptr = NULL; - CHAM_desc_t D2, *D2ptr = NULL; +#if defined(CHAMELEON_COPY_DIAG) + CHAM_desc_t D1, D2; +#endif + CHAM_desc_t *D1ptr = NULL; + CHAM_desc_t *D2ptr = NULL; int status; chamctxt = chameleon_context_self(); -- GitLab