Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
f3269383
Commit
f3269383
authored
Jun 09, 2021
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configurator: HAVE_ATTRIBUTE_RETURNS_NONNULL
Signed-off-by:
Rusty Russell
<
rusty@rustcorp.com.au
>
parent
48b4ffc3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tools/configurator/configurator.c
tools/configurator/configurator.c
+3
-0
No files found.
tools/configurator/configurator.c
View file @
f3269383
...
@@ -142,6 +142,9 @@ static const struct test base_tests[] = {
...
@@ -142,6 +142,9 @@ static const struct test base_tests[] = {
{
"HAVE_ATTRIBUTE_NONNULL"
,
"__attribute__((nonnull)) support"
,
{
"HAVE_ATTRIBUTE_NONNULL"
,
"__attribute__((nonnull)) support"
,
"DEFINES_FUNC"
,
NULL
,
NULL
,
"DEFINES_FUNC"
,
NULL
,
NULL
,
"static char *__attribute__((nonnull)) func(char *p) { return p; }"
},
"static char *__attribute__((nonnull)) func(char *p) { return p; }"
},
{
"HAVE_ATTRIBUTE_RETURNS_NONNULL"
,
"__attribute__((returns_nonnull)) support"
,
"DEFINES_FUNC"
,
NULL
,
NULL
,
"static const char *__attribute__((returns_nonnull)) func(void) { return
\"
hi
\"
; }"
},
{
"HAVE_ATTRIBUTE_SENTINEL"
,
"__attribute__((sentinel)) support"
,
{
"HAVE_ATTRIBUTE_SENTINEL"
,
"__attribute__((sentinel)) support"
,
"DEFINES_FUNC"
,
NULL
,
NULL
,
"DEFINES_FUNC"
,
NULL
,
NULL
,
"static int __attribute__((sentinel)) func(int i, ...) { return i; }"
},
"static int __attribute__((sentinel)) func(int i, ...) { return i; }"
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment