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

primegen: fix errors when compiling using Xcode 12 #9473

Merged
merged 2 commits into from Dec 29, 2020

Conversation

toy
Copy link
Contributor

@toy toy commented Dec 19, 2020

Description

Fix issues in code that are causing error in Xcode 12 and caused warnings in previous versions. Namely include missing stdio.h, use int as return type for main and use return instead of exit in main.

https://trac.macports.org/ticket/61870

Type(s)
  • bugfix
  • enhancement
  • security fix
Tested on

macOS 10.15.7 19H15
Xcode 12.3 12C33

Verification

Have you

  • followed our Commit Message Guidelines?
  • squashed and minimized your commits?
  • checked that there aren't other open pull requests for the same change?
  • referenced existing tickets on Trac with full URL?
  • checked your Portfile with port lint?
  • tried a full install with sudo port -vst install?
  • tested basic functionality of all binary files?

@herbygillot
Copy link
Member

Thanks for this submission, @toy. However one comment: the commit message should start with the port name. So the message should look like:

primegen: fix errors when compiling using Xcode 12

Fix issues in code that are causing error in Xcode 12 and caused
warnings in previous versions. Namely include missing stdio.h, use int
as return type for main and use return instead of exit in main.

Closes: https://trac.macports.org/ticket/61870
@toy toy force-pushed the math-primegen-modernise-code branch from fe51368 to d8e3b92 Compare December 19, 2020 20:33
@toy
Copy link
Contributor Author

toy commented Dec 19, 2020

Thanks for quick reply @herbygillot, I fixed the subject and force-pushed.

@herbygillot
Copy link
Member

Thanks for quick reply @herbygillot, I fixed the subject and force-pushed.

Looks good. We'll leave the PR open for a bit longer for others to review. Thanks again.

math/primegen/Portfile Outdated Show resolved Hide resolved
@ryandesign ryandesign merged commit 7752f4c into macports:master Dec 29, 2020
@ryandesign ryandesign changed the title fix errors when compiling using Xcode 12 primegen: fix errors when compiling using Xcode 12 Dec 29, 2020
@toy toy deleted the math-primegen-modernise-code branch December 29, 2020 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 participants