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

Adsk Contrib - Fix a bug with the Vc++ compilation flags. #1419

Conversation

hodoulp
Copy link
Member

@hodoulp hodoulp commented Jun 21, 2021

Signed-off-by: Patrick Hodoul Patrick.Hodoul@autodesk.com

The MSVC warning level was only enabled when the cmake flag warning as error was off and, the level 4 is inappropriate for existing projects as it contains lot of informational warnings. So, the code fixes the bug, set the warning level to 3 (which is the default one i.e. production quality level), and explains why level 4 is not used.

Note: The level 4 is recommended for new projects; otherwise, it could represent lot of work to fix all these warnings (even for OpenColorIO). Some warnings are related to method automatically inlined or not, structure packing, etc. Refer to the MSVC documentation for details about /W4 included warnings.

Signed-off-by: Patrick Hodoul <Patrick.Hodoul@autodesk.com>
@hodoulp
Copy link
Member Author

hodoulp commented Jul 5, 2021

Friendly reminder that the pull request can now be merged.

@doug-walker doug-walker merged commit e63ce1c into AcademySoftwareFoundation:master Jul 6, 2021
hodoulp added a commit that referenced this pull request Jul 6, 2021
Signed-off-by: Patrick Hodoul <Patrick.Hodoul@autodesk.com>
michdolan added a commit that referenced this pull request Jul 26, 2021
)

Signed-off-by: Patrick Hodoul <Patrick.Hodoul@autodesk.com>

Co-authored-by: Michael Dolan <michdolan@gmail.com>
@hodoulp hodoulp deleted the adsk_contrib/fix_warning_bug branch November 3, 2021 14:44
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.

None yet

3 participants