Skip to content

Avoid empty-argument lists in C function declarations#39

Merged
eshcherb merged 1 commit intoROCm:amd-masterfrom
bertwesarg:avoid-empty-args-decls
Mar 26, 2021
Merged

Avoid empty-argument lists in C function declarations#39
eshcherb merged 1 commit intoROCm:amd-masterfrom
bertwesarg:avoid-empty-args-decls

Conversation

@bertwesarg
Copy link
Copy Markdown

() as a function argument list in C is equivalent to (...), i.e, in C
you get at most a warning, if it is called with too many arguments. Clarify
this situation by explicitly stating (void) as argument list.

`()` as a function argument list in C is equivalent to `(...)`, i.e, in C
you get at most a warning, if it is called with too many arguments. Clarify
this situation by explicitly stating `(void)` as argument list.
@eshcherb eshcherb merged commit a204da1 into ROCm:amd-master Mar 26, 2021
@bertwesarg bertwesarg deleted the avoid-empty-args-decls branch March 26, 2021 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants