Blender Git Commit Log

Git Commits -> Revision 9fe469c

Revision 9fe469c by Ray molenkamp (master)
February 12, 2020, 19:49 (GMT)
Cleanup/MSVC: Enable C++ conformance mode on compiler versions that support it.

MSVC has a conformance mode (/permissive-) where the C++ standard is more strictly
enforced. This mode is available on MSVC 15.5+ [1]

This patch enables this mode on compilers that support it and cleans up the few violations it threw up in the process.

- Mantaflow was using M_PI without requesting them using the _USE_MATH_DEFINES define to opt in to non default behaviour.
- Collada did not include the right header for std::cerr, this seemingly was fixed for other platforms already but put inside a platform guard.
- Ghost had some scoping issues regarding uninitialized variables and goto behaviour

[1] https://docs.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance

Differential Revision: https://developer.blender.org/D6824

Reviewed By: brecht

Commit Details:

Full Hash: 9fe469c110940af5d2525158305d5d365bd15276
Parent Commit: dd9dfad
Lines Changed: +37, -14

5 Modified Paths:

/build_files/cmake/platform/platform_win32.cmake (+13, -0) (Diff)
/extern/mantaflow/CMakeLists.txt (+4, -0) (Diff)
/intern/ghost/intern/GHOST_ContextWGL.cpp (+14, -10) (Diff)
/intern/mantaflow/CMakeLists.txt (+5, -0) (Diff)
/source/blender/collada/MeshImporter.cpp (+1, -4) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021