Skip to content

Fix C function prototypes for functions that take no arguments. #1157

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

Merged
merged 1 commit into from
Aug 8, 2017

Conversation

spevans
Copy link
Contributor

@spevans spevans commented Aug 3, 2017

  • Update prototype() to prototype(void).

Xcode9/Clang includes new warnings for C function prototypes which are declared with an unspecified number of arguments () instead of with (void). Fixing these warnings will allow updating the Xcode project to the latest recommended settings.

I broke this into 2 PRs for easier review, a 2nd PR will follow to fixup the rest.

@ianpartridge
Copy link
Contributor

@swift-ci please test

@alblue
Copy link
Contributor

alblue commented Aug 3, 2017

@phausler can you review this since it's changing a number of the CF functions, and might cause merge changes if you're working in this space?

@alblue alblue requested a review from phausler August 3, 2017 15:12
@phausler
Copy link
Contributor

phausler commented Aug 3, 2017

This looks fine to me.

@spevans spevans mentioned this pull request Aug 4, 2017
@ianpartridge
Copy link
Contributor

@swift-ci please test and merge

@swift-ci swift-ci merged commit 910b1fc into swiftlang:master Aug 8, 2017
@spevans spevans deleted the pr_prototype_fixes1 branch August 9, 2017 06:37
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.

5 participants