From fef0a1a825bd460995779b6078002aff39e646fa Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Fri, 1 Sep 2023 14:06:44 +0200
Subject: [PATCH] common: add missing restrict to printf

---
 control/common.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/control/common.h b/control/common.h
index 4c4d4acb5..476c7ff27 100644
--- a/control/common.h
+++ b/control/common.h
@@ -119,9 +119,9 @@ void chameleon_pclag2z(CHAM_context_t *chamctxt);
 */
 
 #if defined(__GNUC__)
-static inline int chameleon_asprintf( char **strp, const char *fmt, ... ) __attribute__((format(printf,2,3)));
+static inline int chameleon_asprintf( char **restrict strp, const char *fmt, ... ) __attribute__((format(printf,2,3)));
 #endif
-static inline int chameleon_asprintf( char **strp, const char *fmt, ... )
+static inline int chameleon_asprintf( char **restrict strp, const char *fmt, ... )
 {
     va_list ap;
     int rc;
-- 
GitLab