forked from bartvdbraak/blender
75a5ea01c1
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 Second landing of this patch, earlier commit was reverted due to some compiler configurations having slipped though testing [1] https://docs.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance Differential Revision: https://developer.blender.org/D6824 Reviewed By: brecht |
||
---|---|---|
.. | ||
config | ||
example_scripts | ||
Modules | ||
platform | ||
buildinfo.cmake | ||
clang_array_check.py | ||
cmake_consistency_check_config.py | ||
cmake_consistency_check.py | ||
cmake_netbeans_project.py | ||
cmake_print_build_options.py | ||
cmake_qtcreator_project.py | ||
cmake_static_check_clang_array.py | ||
cmake_static_check_cppcheck.py | ||
cmake_static_check_smatch.py | ||
cmake_static_check_sparse.py | ||
cmake_static_check_splint.py | ||
macros.cmake | ||
packaging.cmake | ||
project_info.py | ||
project_source_info.py | ||
RpmBuild.cmake |