Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c_api: Fix function prototypes with no argument #5436

Merged
merged 1 commit into from
Apr 20, 2024

Conversation

quink-black
Copy link
Contributor

Here is a big difference between C and C++. foo() in C means that the funtion takes an unspecified number of arguments, while foo(void) means the function takes no argument.

Fix -Wstrict-prototypes warning.

Here is a big difference between C and C++. foo() in C means that
the funtion takes an unspecified number of arguments, while
foo(void) means the function takes no argument.

Fix -Wstrict-prototypes warning.

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
@github-actions github-actions bot added the core label Apr 18, 2024
@tencent-adm
Copy link

tencent-adm commented Apr 18, 2024

CLA assistant check
All committers have signed the CLA.

@nihui nihui merged commit e31be49 into Tencent:master Apr 20, 2024
67 checks passed
@nihui
Copy link
Member

nihui commented Apr 20, 2024

Thanks for your contribution !

senli123 pushed a commit to senli123/ncnn that referenced this pull request May 7, 2024
Here is a big difference between C and C++. foo() in C means that
the funtion takes an unspecified number of arguments, while
foo(void) means the function takes no argument.

Fix -Wstrict-prototypes warning.

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants