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

MAYA-103572 Disable a couple warnings #293

Merged
merged 1 commit into from
Feb 24, 2020
Merged

Conversation

fowlertADSK
Copy link
Contributor

Disable a couple warnings before including a couple boost headers. Avoids "warning treated as errors" in a couple specific cases.

… headers. Avoids "warning treated as errors" in a couple specific cases.
@kxl-adsk
Copy link

This was causing compilation errors on Windows with Maya 2018 and 2019 (#279 #233).
@robthebloke please review.

#include <boost/thread.hpp>
#ifdef _MSC_VER
#pragma warning( pop )
#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No real problem against doing this. If this happens on a frequent occurrence, then a macro such as:

#define PUSH_DISABLE_WARNING_MSVC4002 \
  __pragma(warning(push)) \
  __pragma(warning(disable:4002)) 

#define PUSH_DISABLE_WARNING_MSVC4275 \
  __pragma(warning(push)) \
  __pragma(warning(disable:4275)) 

#define POP_DISABLE_WARNINGS \
  __pragma(warning(pop)) 

Might be an idea, but no real issue with this as is.

@kxl-adsk kxl-adsk merged commit bd6aa91 into dev Feb 24, 2020
@kxl-adsk kxl-adsk deleted the fowlert/fix_compiler_errors branch February 24, 2020 11:22
ppt-adsk pushed a commit that referenced this pull request Feb 28, 2023
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.

3 participants