Mentions légales du service

Skip to content
Snippets Groups Projects
Commit fef0a1a8 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

common: add missing restrict to printf

parent 88e40c90
No related branches found
No related tags found
1 merge request!407Fix small issues
...@@ -119,9 +119,9 @@ void chameleon_pclag2z(CHAM_context_t *chamctxt); ...@@ -119,9 +119,9 @@ void chameleon_pclag2z(CHAM_context_t *chamctxt);
*/ */
#if defined(__GNUC__) #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 #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; va_list ap;
int rc; int rc;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment