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
9f06b8f8
Commit
9f06b8f8
authored
Feb 13, 2019
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler: allow NON_NULL_ARGS with only a single argument.
Signed-off-by:
Rusty Russell
<
rusty@rustcorp.com.au
>
parent
8cc0749a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ccan/compiler/compiler.h
ccan/compiler/compiler.h
+3
-3
No files found.
ccan/compiler/compiler.h
View file @
9f06b8f8
...
...
@@ -263,12 +263,12 @@
* The compiler will warn if any of the specified pointer args are NULL.
*
* Example:
* char *my_copy2(char *buf, char *maybenull) NON_NULL_ARGS(1
, 2
);
* char *my_copy2(char *buf, char *maybenull) NON_NULL_ARGS(1);
*/
#define NON_NULL_ARGS(
index, ...) __attribute__((__nonnull__(index,
__VA_ARGS__)))
#define NON_NULL_ARGS(
...) __attribute__((__nonnull__(
__VA_ARGS__)))
#else
#define NO_NULL_ARGS
#define NON_NULL_ARGS(
index,
...)
#define NON_NULL_ARGS(...)
#endif
...
...
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