Blender Git Commit Log

Git Commits -> Revision 351c409

Revision 351c409 by Phil Christensen (master)
February 6, 2017, 09:44 (GMT)
C++ conformance fixes (MSVC /permissive-)

We (the Microsoft C++ team) use the Blender project as part of our "Real world code" tests.
I noticed a place in WIN32 specific code (dvpapi.cpp:85) where a string literal is losing
its const-ness when being passed to BLI_dynlib_open(). This is not permitted when using the
/permissive- conformance compiler switch (see our blog

My suggested fix is to add const and propagate it where needed. Another possible fix would be
to explicitly cast away the const.

Reviewers: mont29, sergey, LazyDodo

Subscribers: Blendify, sergey, mont29, LazyDodo

Tags: #platform:_windows

Differential Revision:

Commit Details:

Full Hash: 351c409317242857937b16a6d461b59ec6e690e0
Parent Commit: 22156d9
Committed By: Sergey Sharybin
Lines Changed: +4, -4

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2021