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

Pedantic suggestions #141

Merged
merged 5 commits into from
Sep 26, 2024
Merged

Conversation

DimitriPapadopoulos
Copy link
Contributor

Some suggestions from the checkpatch.pl script from the Linux kernel.

I have limited this merge request to the most relevant suggestions, trying not to modify the current code formatting.

From the C99 standard:
	An identifier list declares only the identifiers of the parameters of the function.
	An empty list in a function declarator that is part of a definition of that function
	specifies that the function has no parameters. The empty list in a function declarator
	that is not part of a definition of that function specifies that no information about
	the number or types of the parameters is supplied.

Because this is a function definition, not a simple delclaration, `void`
is not required. Yet, because the function has not declared beforehand,
I find it better to add `void`.
@kiyo-masui kiyo-masui merged commit 4e37682 into kiyo-masui:master Sep 26, 2024
7 checks passed
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