Skip to content

Silence warning C4996 about deprecated 'std::tr1' namespace - Windows only. #59

@end2endzone

Description

@end2endzone

When building on Windows using Visual Studio 2017, the following warnings is displayed whenever a file is including google's test header gtest-printers.h:

D:\dev\bin2cpp\third_parties\googletest\install\include\gtest/gtest-printers.h(605): warning C4996: 'std::tr1': warning STL4002: The non-Standard std::tr1 namespace and TR1-only machinery are deprecated and will be REMOVED. You can define _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING to acknowledge that you have received this warning. [D:\bin2cpp\build\src\rapidassist\rapidassist.vcxproj]

There are multiple warnings which create scrolling blindness. This specific warnings should be disabled since it comes from an external library (googletest).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions