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

Remove warnings about function declaration isn’t a prototype #1367

Merged
merged 1 commit into from
Apr 12, 2020

Conversation

rbuj
Copy link
Contributor

@rbuj rbuj commented Apr 6, 2020

No description provided.

Copy link
Member

@lukefromdc lukefromdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Builds and runs fine, as expected. This should build essentially the same code as before but be more maintainable. That's because declaring these as prototypes means we specify the number of argumentd they expect to receive (zero in 7 cases, one in once case) means if future programmers call them with an extra argument the compiler will throw an error and force them to fix their code.

@sc0w sc0w merged commit 4a4d740 into master Apr 12, 2020
@sc0w sc0w deleted the strict-prototypes branch April 12, 2020 03:20
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.

None yet

3 participants