Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixed "This function declaration is not a prototype" errors in Xcode 9#405

Open
sgravrock wants to merge 1 commit into
cedarbdd:master from
sgravrock:xcode9-build-fix
Open

Fixed "This function declaration is not a prototype" errors in Xcode 9 #405
sgravrock wants to merge 1 commit into
cedarbdd:master from
sgravrock:xcode9-build-fix

Conversation

@sgravrock

@sgravrock sgravrock commented May 28, 2018

Copy link
Copy Markdown
Contributor

Cedar's headers declare no-args functions in a way that means "this function takes no arguments" in C++ but "this function takes an unspecified number of arguments" in C and Objective-C. With the default project settings applied, Xcode treats those declarations as errors.

Copy link
Copy Markdown
Contributor

Woah, rad. Thanks for the PR Steven !

I’ll take some time to merge this PR tonight but it looks eminently mergeable.

Out of curiosity, did you look at the test failure ? Is it unrelated or did this manage to break anything in our test suite ?

Copy link
Copy Markdown
Contributor Author

It looks unrelated to me:

==> xcodebuild -project Cedar.xcodeproj -configuration Release clean analyze ARCHS=i386 -target "Cedar-iOS StaticLib Specs" -sdk "iphonesimulator8.1" SYMROOT='/Users/travis/build/cedarbdd/cedar/build'
xcodebuild: error: SDK "iphonesimulator8.1" cannot be located.

Locally, I get hundreds of lines of error output from com.apple.CoreSimulator, most of them relating to services crashing and being restarted. That happens both before and after my change. I'm not sure if something's wrong with my environment or if ios-sim has gone the way of the tools it replaced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /