Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Chameleon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
Chameleon
Commits
fef0a1a8
Commit
fef0a1a8
authored
1 year ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
common: add missing restrict to printf
parent
88e40c90
No related branches found
No related tags found
1 merge request
!407
Fix small issues
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
control/common.h
+2
-2
2 additions, 2 deletions
control/common.h
with
2 additions
and
2 deletions
control/common.h
+
2
−
2
View file @
fef0a1a8
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment