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

Bug: Issues with /WX #4652

Closed
bartoli opened this issue Jul 20, 2022 · 2 comments · Fixed by #4731
Closed

Bug: Issues with /WX #4652

bartoli opened this issue Jul 20, 2022 · 2 comments · Fixed by #4731
Labels
Bug Global flag to mark a deviation from expected behaviour Build Global flag to mark build relates topics

Comments

@bartoli
Copy link

bartoli commented Jul 20, 2022

I'm trying to update to >=5.1. But i'm getting errors because of compiler warnings, even in 5.2.4.
The build environment is cmake 3.23 generating makefiles for VS2015

The current code has warnigns in this configuration, but tries to compile with /WX. Is it normal that it is here by default?

Also, running cmake with ASSIMP_WARNINGS_AS_ERRORS=OFF does not solve the issue, as the variable is not tested in all CMakeLists.txt that add /WX

Some of the warnigns are not trivial to fix, so i ended manually removing the /WX from the scripts.

The warnings/errors in VS2015 might be a duplicate of #4198

But I think, at least, ASSIMP_WARNINGS_AS_ERRORS should apply to the whole codebase?

@bartoli bartoli added the Bug Global flag to mark a deviation from expected behaviour label Jul 20, 2022
@kimkulling kimkulling added the Build Global flag to mark build relates topics label Jul 28, 2022
@kimkulling
Copy link
Member

I guess removing this complier switch will be the best method to fix this. Most of the compiler warnings are only visible at VS2015.

@kimkulling
Copy link
Member

You are right, using Warnings as errors seems not to get applied to the whole code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Global flag to mark a deviation from expected behaviour Build Global flag to mark build relates topics
Projects
Development

Successfully merging a pull request may close this issue.

2 participants