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

Fix compilation warning on windows. #2877

Merged
merged 1 commit into from
Sep 11, 2018
Merged

Fix compilation warning on windows. #2877

merged 1 commit into from
Sep 11, 2018

Conversation

fohly
Copy link
Contributor

@fohly fohly commented Sep 11, 2018

Existing code results in a warning, and since warnings are treated as errors, the compilation fails.

@SeanTAllen
Copy link
Member

@kulibali can you verify/comment on this?

@chalcolith
Copy link
Member

The change looks fine to me. However, I cannot repro the issue itself. Ponyc master builds without warnings for me with VS2017 15.8.3, using make.bat.

@fohly, can you provide more context for this, please? What version of VS are you using, and how are you building ponyc (using make.bat or by loading the folder in VS itself)?

@fohly
Copy link
Contributor Author

fohly commented Sep 11, 2018

Building with make.bat. I think it uses VS 2015.

Error message:

ponyc\src\libponyc\codegen\gendebug.cc(85): error C2220: warning treated as error - no 'object' file generated
ponyc\src\libponyc\codegen\gendebug.cc(85): warning C4800: 'int': forcing value to bool 'true' or 'false' (performance warning)

@chalcolith
Copy link
Member

Not sure what went wrong with the ARM CI build, but it doesn't seem related.

@chalcolith chalcolith added changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge windows labels Sep 11, 2018
@chalcolith chalcolith changed the title fix compilation on windows fix compilation warning on windows Sep 11, 2018
@mfelsche mfelsche changed the title fix compilation warning on windows Fix compilation warning on windows. Sep 11, 2018
@mfelsche
Copy link
Contributor

Indeed worrying but completely unrelated, merging.

@mfelsche mfelsche merged commit 0bee1a6 into ponylang:master Sep 11, 2018
ponylang-main added a commit that referenced this pull request Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants